CardSettingsColorPicker constructor

CardSettingsColorPicker({
  1. Key? key,
  2. FormFieldSetter<Color>? onSaved,
  3. FormFieldValidator<Color>? validator,
  4. Color initialValue = Colors.green,
  5. AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction,
  6. bool enabled = true,
  7. ValueChanged<Color>? onChanged,
  8. bool visible = true,
  9. TextAlign? contentAlign,
  10. Icon? icon,
  11. TextAlign? labelAlign,
  12. double? labelWidth,
  13. CardSettingsColorPickerType pickerType = CardSettingsColorPickerType.colors,
  14. Widget? requiredIndicator,
  15. String label = "Label",
  16. bool? showMaterialonIOS,
  17. EdgeInsetsGeometry? fieldPadding,
})

Implementation

CardSettingsColorPicker({
  Key? key,
  // bool autovalidate: false,
  FormFieldSetter<Color>? onSaved,
  FormFieldValidator<Color>? validator,
  Color initialValue = Colors.green,
  AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction,
  this.enabled = true,
  this.onChanged,
  this.visible = true,
  this.contentAlign,
  this.icon,
  this.labelAlign,
  this.labelWidth,
  this.pickerType = CardSettingsColorPickerType.colors,
  this.requiredIndicator,
  this.label = "Label",
  this.showMaterialonIOS,
  this.fieldPadding,
}) : super(
          key: key,
          initialValue: initialValue,
          onSaved: onSaved,
          validator: validator,
          autovalidateMode: autovalidateMode,
          builder: (FormFieldState<Color> field) =>
              (field as _CardSettingsColorPickerState)._build(field.context));