Arrow syntax for getters (#156483)
This egotistical PR aims to draw attention to a [style guideline](https://github.com/flutter/flutter/blob/master/docs/contributing/Style-guide-for-Flutter-repo.md#use--for-getters-and-callbacks-that-just-return-literals-or-switch-expressions) that I changed: > #### Use `=>` for getters and callbacks that just return literals or switch expressions <br> There was an opportunity for valuable discussion in #154753 about how this structure affects readability, but I shut it down pretty quick since there was a lot of other stuff going on there. Interested to hear thoughts from @Piinks and others.
This commit is contained in:
@@ -1247,13 +1247,11 @@ class FakeAsyncCrashingDoctor extends Doctor {
|
||||
/// overriding the doctor.
|
||||
class FakeDoctorValidatorsProvider implements DoctorValidatorsProvider {
|
||||
@override
|
||||
List<DoctorValidator> get validators {
|
||||
return <DoctorValidator>[
|
||||
PassingValidator('Passing Validator'),
|
||||
PassingValidator('Another Passing Validator'),
|
||||
PassingValidator('Providing validators is fun'),
|
||||
];
|
||||
}
|
||||
List<DoctorValidator> get validators => <DoctorValidator>[
|
||||
PassingValidator('Passing Validator'),
|
||||
PassingValidator('Another Passing Validator'),
|
||||
PassingValidator('Providing validators is fun'),
|
||||
];
|
||||
|
||||
@override
|
||||
List<Workflow> get workflows => <Workflow>[];
|
||||
|
||||
Reference in New Issue
Block a user