Turn on avoid_return_types_on_setters and cleanup annotated setters.
It's safe to remove the unneeded `void`s from setters since the blocking issues in the `always_declare_return_types` lint have been fixed (https://github.com/dart-lang/linter/). We can also safely flip the bit on `avoid_return_types_on_setters`.
This commit is contained in:
@@ -30,7 +30,7 @@ class ComplexLayoutAppState extends State<ComplexLayoutApp> {
|
||||
|
||||
bool _lightTheme = true;
|
||||
bool get lightTheme => _lightTheme;
|
||||
void set lightTheme(bool value) {
|
||||
set lightTheme(bool value) {
|
||||
setState(() {
|
||||
_lightTheme = value;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user