add explicit const keywords (#23652)
This commit is contained in:
@@ -21,7 +21,7 @@ class CupertinoPickerDemo extends StatefulWidget {
|
||||
class _CupertinoPickerDemoState extends State<CupertinoPickerDemo> {
|
||||
int _selectedColorIndex = 0;
|
||||
|
||||
Duration timer = Duration();
|
||||
Duration timer = const Duration();
|
||||
|
||||
// Value that is shown in the date picker in date mode.
|
||||
DateTime date = DateTime.now();
|
||||
@@ -276,4 +276,4 @@ class _CupertinoPickerDemoState extends State<CupertinoPickerDemo> {
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user