Commit 50ab1eb
committed
login [nfc]: Reorder members of LoginPage
Greg points out, referring to the Flutter style guide at
https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#order-other-class-members-in-a-way-that-makes-sense :
#600 (comment)
> I think it's likely helpful to treat [`buildRoute`] for the
> ordering as if it does return the class's type, though. It plays
> pretty much the role of a factory constructor — it's the thing
> that application code, at least, should always use instead of
> calling the actual constructor directly. (Possibly we should even
> make the constructor private when we have a `buildRoute` method
> like this; but that might be annoying in tests.)1 parent 87619b4 commit 50ab1eb
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
242 | | - | |
243 | 241 | | |
244 | 242 | | |
245 | 243 | | |
246 | 244 | | |
247 | 245 | | |
| 246 | + | |
| 247 | + | |
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| |||
0 commit comments