@@ -19,7 +19,7 @@ class DatePicker {
1919 ///
2020 /// Display date picker bottom sheet.
2121 ///
22- static Future <DateTime > showDatePicker (
22+ static Future <DateTime ? > showDatePicker (
2323 BuildContext context, {
2424 bool showTitleActions: true ,
2525 DateTime ? minTime,
@@ -55,7 +55,7 @@ class DatePicker {
5555 ///
5656 /// Display time picker bottom sheet.
5757 ///
58- static Future <DateTime > showTimePicker (
58+ static Future <DateTime ? > showTimePicker (
5959 BuildContext context, {
6060 bool showTitleActions: true ,
6161 bool showSecondsColumn: true ,
@@ -89,7 +89,7 @@ class DatePicker {
8989 ///
9090 /// Display time picker bottom sheet with AM/PM.
9191 ///
92- static Future <DateTime > showTime12hPicker (
92+ static Future <DateTime ? > showTime12hPicker (
9393 BuildContext context, {
9494 bool showTitleActions: true ,
9595 DateChangedCallback ? onChanged,
@@ -121,7 +121,7 @@ class DatePicker {
121121 ///
122122 /// Display date&time picker bottom sheet.
123123 ///
124- static Future <DateTime > showDateTimePicker (
124+ static Future <DateTime ? > showDateTimePicker (
125125 BuildContext context, {
126126 bool showTitleActions: true ,
127127 DateTime ? minTime,
@@ -157,7 +157,7 @@ class DatePicker {
157157 ///
158158 /// Display date picker bottom sheet witch custom picker model.
159159 ///
160- static Future <DateTime > showPicker (
160+ static Future <DateTime ? > showPicker (
161161 BuildContext context, {
162162 bool showTitleActions: true ,
163163 DateChangedCallback ? onChanged,
0 commit comments