Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // According to the Dart language linter this is considered better:
- // Define constructor before declaring fields
- class Something {
- Something(this.value);
- final double value;
- ...
- }
- // For me, this is more natural:
- // Declare fields before the constructor
- class Something {
- final double value;
- Something(this.value);
- ...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement