@@ -19,7 +19,7 @@ class DatePicker {
19
19
///
20
20
/// Display date picker bottom sheet.
21
21
///
22
- static Future <DateTime > showDatePicker (
22
+ static Future <DateTime ? > showDatePicker (
23
23
BuildContext context, {
24
24
bool showTitleActions: true ,
25
25
DateTime ? minTime,
@@ -55,7 +55,7 @@ class DatePicker {
55
55
///
56
56
/// Display time picker bottom sheet.
57
57
///
58
- static Future <DateTime > showTimePicker (
58
+ static Future <DateTime ? > showTimePicker (
59
59
BuildContext context, {
60
60
bool showTitleActions: true ,
61
61
bool showSecondsColumn: true ,
@@ -89,7 +89,7 @@ class DatePicker {
89
89
///
90
90
/// Display time picker bottom sheet with AM/PM.
91
91
///
92
- static Future <DateTime > showTime12hPicker (
92
+ static Future <DateTime ? > showTime12hPicker (
93
93
BuildContext context, {
94
94
bool showTitleActions: true ,
95
95
DateChangedCallback ? onChanged,
@@ -121,7 +121,7 @@ class DatePicker {
121
121
///
122
122
/// Display date&time picker bottom sheet.
123
123
///
124
- static Future <DateTime > showDateTimePicker (
124
+ static Future <DateTime ? > showDateTimePicker (
125
125
BuildContext context, {
126
126
bool showTitleActions: true ,
127
127
DateTime ? minTime,
@@ -157,7 +157,7 @@ class DatePicker {
157
157
///
158
158
/// Display date picker bottom sheet witch custom picker model.
159
159
///
160
- static Future <DateTime > showPicker (
160
+ static Future <DateTime ? > showPicker (
161
161
BuildContext context, {
162
162
bool showTitleActions: true ,
163
163
DateChangedCallback ? onChanged,
0 commit comments