add explicit const keywords (#23652)

This commit is contained in:
Devon Carew
2018-10-29 22:39:40 -07:00
committed by GitHub
parent ec5719a1e0
commit e30f9a9447
4 changed files with 5 additions and 5 deletions

View File

@@ -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> {
),
);
}
}
}