CardSettingsTimePicker constructor

CardSettingsTimePicker({
  1. Key? key,
  2. FormFieldSetter<TimeOfDay>? onSaved,
  3. FormFieldValidator<TimeOfDay>? validator,
  4. TimeOfDay? initialValue,
  5. AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction,
  6. bool enabled = true,
  7. bool visible = true,
  8. ValueChanged<TimeOfDay>? onChanged,
  9. TextAlign? contentAlign,
  10. Widget? requiredIndicator,
  11. TextAlign? labelAlign,
  12. double? labelWidth,
  13. String label = 'Time',
  14. Icon? icon,
  15. TextStyle? style,
  16. bool? showMaterialonIOS,
  17. 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),
      );