FDateFieldControl.lifted constructor
const
FDateFieldControl.lifted({
- required DateTime? date,
- required ValueChanged<
DateTime?> onChange, - FormFieldValidator<
DateTime> validator,
Creates a FDateFieldControl for controlling a date field using lifted state.
The date represents the currently selected date.
The onChange callback is invoked when the user selects a date. The given date is always in UTC.
validator returns an error string to display if the input is invalid, or null otherwise. It is also used to
determine whether a date in a calendar is selectable. Defaults to always returning null.
Note
Partial dates typed into input fields are treated as null, and not validated incrementally.
Implementation
const factory FDateFieldControl.lifted({
required DateTime? date,
required ValueChanged<DateTime?> onChange,
FormFieldValidator<DateTime> validator,
}) = _Lifted;