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