There's no way to run "dartfmt --fix"

The dartanalyzer and test tasks a list of optional parameters to pass to the corresponding tools, but the dartfmt task doesn’t. This means there’s no way to run dartfmt --fix to ensure that non-whitespace formatting is appropriate.

Also, if you do write dartmft: --fix, you get an error message (example), but it doesn’t cause the task to fail.