return_ types_ on_ setters
Avoid return types on setters.
This rule is available as of Dart 2.0.0.
This rule has a quick fix available.
AVOID return types on setters.
As setters do not return a value, declaring the return type of one is redundant.
void set speed(int ms);
set speed(int ms);
To enable the
avoid_return_types_on_setters under linter > rules in your
linter: rules: - avoid_return_types_on_setters