StandardDateField constructor
const
StandardDateField({
- Key? key,
- DateTime? initialValue,
- FormFieldValidator<
DateTime> ? validator, - bool enabled = true,
- DateTime? firstDate,
- DateTime? lastDate,
- required dynamic onChanged(),
- required String labelText,
- String emptyText = "Select a date",
- TextStyle? labelStyle,
- bool includeTime = false,
- bool autoValidate = false,
Implementation
const StandardDateField({
super.key,
this.initialValue,
this.validator,
this.enabled = true,
this.firstDate,
this.lastDate,
required this.onChanged,
required this.labelText,
this.emptyText = "Select a date",
this.labelStyle,
this.includeTime = false,
this.autoValidate = false,
});