CardSettingsSwitch constructor

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