showDatePicker method

Future<DateTime?> showDatePicker({
  1. required DateTime initialDate,
  2. required DateTime firstDate,
  3. required DateTime lastDate,
  4. DateTime? currentDate,
  5. DatePickerEntryMode initialEntryMode = DatePickerEntryMode.calendar,
  6. SelectableDayPredicate? selectableDayPredicate,
  7. String? helpText,
  8. String? cancelText,
  9. String? confirmText,
  10. Locale? locale,
  11. bool useRootNavigator = true,
  12. RouteSettings? routeSettings,
  13. TextDirection? textDirection,
  14. TransitionBuilder? builder,
  15. DatePickerMode initialDatePickerMode = DatePickerMode.day,
  16. String? errorFormatText,
  17. String? errorInvalidText,
  18. String? fieldHintText,
  19. String? fieldLabelText,
  20. TextInputType? keyboardType,
  21. Offset? anchorPoint,
})

Implementation

Future<DateTime?> showDatePicker({
  required DateTime initialDate,
  required DateTime firstDate,
  required DateTime lastDate,
  DateTime? currentDate,
  DatePickerEntryMode initialEntryMode = DatePickerEntryMode.calendar,
  SelectableDayPredicate? selectableDayPredicate,
  String? helpText,
  String? cancelText,
  String? confirmText,
  Locale? locale,
  bool useRootNavigator = true,
  RouteSettings? routeSettings,
  TextDirection? textDirection,
  TransitionBuilder? builder,
  DatePickerMode initialDatePickerMode = DatePickerMode.day,
  String? errorFormatText,
  String? errorInvalidText,
  String? fieldHintText,
  String? fieldLabelText,
  TextInputType? keyboardType,
  Offset? anchorPoint,
}) async {
  return m.showDatePicker(
      context: this,
      initialDate: initialDate,
      firstDate: firstDate,
      lastDate: lastDate,
      currentDate: currentDate,
      initialEntryMode: initialEntryMode,
      selectableDayPredicate: selectableDayPredicate,
      helpText: helpText,
      cancelText: cancelText,
      confirmText: confirmText,
      locale: locale,
      useRootNavigator: useRootNavigator,
      routeSettings: routeSettings,
      textDirection: textDirection,
      initialDatePickerMode: initialDatePickerMode,
      errorFormatText: errorFormatText,
      errorInvalidText: errorInvalidText,
      fieldHintText: fieldHintText,
      fieldLabelText: fieldLabelText,
      keyboardType: keyboardType,
      anchorPoint: anchorPoint);
}