FormDateTimeFieldDelegate class abstract
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があります。
- Annotations
Constructors
- FormDateTimeFieldDelegate({DateTime? startDate, DateTime? endDate, DateTime? defaultDateTime, String? helpText, String? cancelText, String? confirmText, Locale? locale, String? errorFormatText, String? errorInvalidText, String? fieldHintText, String? fieldLabelText, DatePickerMode initialDatePickerMode = DatePickerMode.day, required String dateFormat, Color? backgroundColor, Color? foregroundColor, Color? primaryColor, Color? onPrimaryColor, Color? headerBackgroundColor, Color? headerForegroundColor})
-
A delegate where the form picker and formatter are defined.
const
Properties
- backgroundColor → Color?
-
Background color of the picker.
final
- cancelText → String?
-
Picker cancel text.
final
- confirmText → String?
-
The definitive text of the picker.
final
- dateFormat → String
-
Define date and time formats.
final
- defaultDateTime → DateTime?
-
Default value if not selected.
final
- endDate → DateTime?
-
The most recent date to be selected.
final
- errorFormatText → String?
-
Text to be displayed if a formatting error occurs.
final
- errorInvalidText → String?
-
Text in case of some error.
final
- fieldHintText → String?
-
Hint text for text fields in the dialog.
final
- fieldLabelText → String?
-
Label text for text fields in the dialog.
final
- foregroundColor → Color?
-
Picker text color.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headerBackgroundColor → Color?
-
Picker header background color.
final
- headerForegroundColor → Color?
-
Picker header foreground color.
final
- helpText → String?
-
Hint text to be displayed in the picker.
final
- initialDatePickerMode → DatePickerMode
-
Element that appears at the beginning of the dialog.
final
- locale → Locale?
-
Dialog locale.
final
- onPrimaryColor → Color?
-
Picker on primary color.
final
- primaryColor → Color?
-
Picker primary color.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startDate → DateTime?
-
The earliest date to be selected.
final
Methods
-
format(
DateTime dateTime) → String - Pass DateTime to get String.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parse(
String dateTimeString) → DateTime - Pass String to get DateTime.
-
picker(
BuildContext context, DateTime currentDateTime) → Future< DateTime> - Callback to display picker.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited