Constants! Constants everywhere! (#9286)
Aggressively apply the const lint.
This commit is contained in:
@@ -35,7 +35,7 @@ class _LifecycleWatcherState extends State<LifecycleWatcher>
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (_lastLifecyleState == null)
|
||||
return new Text('This widget has not observed any lifecycle changes.');
|
||||
return const Text('This widget has not observed any lifecycle changes.');
|
||||
return new Text('The most recent lifecycle state this widget observed was: $_lastLifecyleState.');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user