Idiomatically format Dart source code
Arguments
Name | Description |
---|
files-or-directory | The files or directories to format |
Options
Name | Description |
---|
-h, --help | Print this usage information |
-v, --verbose | Show all options and flags with --help |
-o, --output <json> <none> <show> <write> <--show> <--summary> | Set where to write formatted output |
--set-exit-if-changed | Return exist code 1 if there are any formatting changes |
--fix | Apply all style fixes |
--fix-doc-comments | Use triple slash for documentation comments |
--fix-function-typedefs | Use new syntax for function type typedefs |
--fix-named-default-separator | Use '=' as the separator before named parameter default values |
--fix-optional-const | Remove 'const' keyword inside constant context |
--fix-optional-new | Remove 'new' keyword |
--fix-single-cascade-statements | Remove unnecessary single cascades from expression statements |
-l, --line-length <line-length> | Wrap lines longer than this. Defaults to 80 |
-i, --indent <number-of-spaces> | Add this many spaces of leading indentation |
--follow-links | Follow links to files and directories. If unset, links will be ignored |
--version | Show dart_style version |
--selection | Track selection (given as 'start:length') through formatting |
--stdin-name <name> | Use this path in error messages when input is read from stdin. (defaults to 'stdin') |