CardSettingsDatePicker constructor
CardSettingsDatePicker({
- Key? key,
- AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction,
- FormFieldSetter<
DateTime> ? onSaved, - FormFieldValidator<
DateTime> ? validator, - DateTime? initialValue,
- bool enabled = true,
- bool visible = true,
- String label = 'Date',
- ValueChanged<
DateTime> ? onChanged, - TextAlign? contentAlign,
- Icon? icon,
- TextAlign? labelAlign,
- double? labelWidth,
- Widget? requiredIndicator,
- DateTime? firstDate,
- DateTime? lastDate,
- DateFormat? dateFormat,
- TextStyle? style,
- bool? showMaterialonIOS,
- EdgeInsetsGeometry? fieldPadding,
Implementation
CardSettingsDatePicker({
Key? key,
// bool autovalidate: false,
AutovalidateMode autovalidateMode: AutovalidateMode.onUserInteraction,
FormFieldSetter<DateTime>? onSaved,
FormFieldValidator<DateTime>? validator,
DateTime? initialValue,
this.enabled = true,
this.visible = true,
this.label = 'Date',
this.onChanged,
this.contentAlign,
this.icon,
this.labelAlign,
this.labelWidth,
this.requiredIndicator,
this.firstDate,
this.lastDate,
this.dateFormat,
this.style,
this.showMaterialonIOS,
this.fieldPadding,
}) : super(
key: key,
initialValue: initialValue ?? DateTime.now(),
onSaved: onSaved,
validator: validator,
// autovalidate: autovalidate,
autovalidateMode: autovalidateMode,
builder: (FormFieldState<DateTime> field) =>
(field as _CardSettingsDatePickerState)._build(field.context));