MaterialDatePickerOptions constructor

const MaterialDatePickerOptions({
  1. DateTime? currentDate,
  2. DatePickerEntryMode initialEntryMode = DatePickerEntryMode.calendar,
  3. SelectableDayPredicate? selectableDayPredicate,
  4. String? helpText,
  5. String? cancelText,
  6. String? confirmText,
  7. Locale? locale,
  8. bool useRootNavigator = true,
  9. TextDirection? textDirection,
  10. TransitionBuilder? builder,
  11. DatePickerMode initialDatePickerMode = DatePickerMode.day,
  12. String? errorFormatText,
  13. String? errorInvalidText,
  14. String? fieldHintText,
  15. String? fieldLabelText,
  16. TextInputType? keyboardType,
  17. Icon? switchToInputEntryModeIcon,
  18. Icon? switchToCalendarEntryModeIcon,
})

Implementation

const MaterialDatePickerOptions({
  this.currentDate,
  this.initialEntryMode = DatePickerEntryMode.calendar,
  this.selectableDayPredicate,
  this.helpText,
  this.cancelText,
  this.confirmText,
  this.locale,
  this.useRootNavigator = true,
  this.textDirection,
  this.builder,
  this.initialDatePickerMode = DatePickerMode.day,
  this.errorFormatText,
  this.errorInvalidText,
  this.fieldHintText,
  this.fieldLabelText,
  this.keyboardType,
  this.switchToInputEntryModeIcon,
  this.switchToCalendarEntryModeIcon,
});