Merge pull request #3880 from pq/void_setters
Turn on `avoid_return_types_on_setters` and cleanup annotated setters.
This commit is contained in:
@@ -31,7 +31,7 @@ linter:
|
||||
- annotate_overrides
|
||||
- avoid_as
|
||||
- avoid_init_to_null
|
||||
# - avoid_return_types_on_setters # https://github.com/dart-lang/linter/issues/202
|
||||
- avoid_return_types_on_setters
|
||||
- camel_case_types
|
||||
# - constant_identifier_names # https://github.com/dart-lang/linter/issues/204 (and 203)
|
||||
- empty_constructor_bodies
|
||||
|
||||
@@ -204,7 +204,7 @@ class AdbDevice {
|
||||
/// Device model; can be null. `XT1045`, `Nexus_7`
|
||||
String get modelID => _info['model'];
|
||||
|
||||
void set modelID(String value) {
|
||||
set modelID(String value) {
|
||||
_info['model'] = value;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user