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