Dart Coding Style
Effective dart has a style guide https://dart.dev/effective-dart/style
Format
Dart format is enforced using dart format
command, which is similar to gofmt
in Go.
- https://dart.dev/effective-dart/style#formatting
- https://github.com/dart-lang/dart_style/wiki/Formatting-Rules
In short the rules are
- Use two spaces
- Use trailing comma
Linter
TODO: dartanalyzer?