CardSettingsSwitch constructor
CardSettingsSwitch({
- Key? key,
- AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction,
- FormFieldSetter<
bool> ? onSaved, - FormFieldValidator<
bool> ? validator, - bool initialValue = false,
- bool enabled = true,
- String trueLabel = "Yes",
- String falseLabel = "No",
- bool visible = true,
- String label = 'Label',
- double? labelWidth,
- Widget? requiredIndicator,
- TextAlign? labelAlign,
- Icon? icon,
- TextAlign? contentAlign,
- ValueChanged<
bool> ? onChanged, - bool? showMaterialonIOS,
- EdgeInsetsGeometry? fieldPadding,
Implementation
CardSettingsSwitch({
Key? key,
// bool autovalidate: false,
AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction,
FormFieldSetter<bool>? onSaved,
FormFieldValidator<bool>? validator,
bool initialValue = false,
this.enabled = true,
this.trueLabel = "Yes",
this.falseLabel = "No",
this.visible = true,
this.label = 'Label',
this.labelWidth,
this.requiredIndicator,
this.labelAlign,
this.icon,
this.contentAlign,
this.onChanged,
this.showMaterialonIOS,
this.fieldPadding,
}) : super(
key: key,
initialValue: initialValue,
onSaved: onSaved,
validator: validator,
// autovalidate: autovalidate,
autovalidateMode: autovalidateMode,
builder: (FormFieldState<bool> field) =>
(field as _CardSettingsSwitchState)._build(field.context));