FormDateTimeFieldDelegate constructor

const FormDateTimeFieldDelegate({
  1. DateTime? startDate,
  2. DateTime? endDate,
  3. DateTime? defaultDateTime,
  4. String? helpText,
  5. String? cancelText,
  6. String? confirmText,
  7. Locale? locale,
  8. String? errorFormatText,
  9. String? errorInvalidText,
  10. String? fieldHintText,
  11. String? fieldLabelText,
  12. DatePickerMode initialDatePickerMode = DatePickerMode.day,
  13. required String dateFormat,
  14. Color? backgroundColor,
  15. Color? foregroundColor,
  16. Color? primaryColor,
  17. Color? onPrimaryColor,
  18. Color? headerBackgroundColor,
  19. Color? headerForegroundColor,
})

A delegate where the form picker and formatter are defined.

There is a FormDateTimeFieldDateTimeDelegate that allows you to select both date and time together, and a FormDateTimeFieldDateDelegate that allows you to select only date.

フォームのピッカーやフォーマッタが定義されているデリゲート。

日付と時間を合わせて選択できるFormDateTimeFieldDateTimeDelegateと日付のみを選択できるFormDateTimeFieldDateDelegateがあります。

Implementation

const FormDateTimeFieldDelegate({
  this.startDate,
  this.endDate,
  this.defaultDateTime,
  this.helpText,
  this.cancelText,
  this.confirmText,
  this.locale,
  this.errorFormatText,
  this.errorInvalidText,
  this.fieldHintText,
  this.fieldLabelText,
  this.initialDatePickerMode = DatePickerMode.day,
  required this.dateFormat,
  this.backgroundColor,
  this.foregroundColor,
  this.primaryColor,
  this.onPrimaryColor,
  this.headerBackgroundColor,
  this.headerForegroundColor,
});