CardSettingsCheckboxPicker constructor
CardSettingsCheckboxPicker({
- Key? key,
- List<
String> ? initialValues, - FormFieldSetter<
List< ? onSaved,String> > - FormFieldValidator<
List< ? validator,String> > - AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction,
- bool enabled = true,
- ValueChanged<
List< ? onChanged,String> > - String label = 'Select',
- bool visible = true,
- TextAlign? contentAlign,
- Icon? icon,
- TextAlign? labelAlign,
- double? labelWidth,
- Widget? requiredIndicator,
- required List<
String> options, - List<
String> ? values, - bool? showMaterialonIOS,
- EdgeInsetsGeometry? fieldPadding,
Implementation
CardSettingsCheckboxPicker({
Key? key,
List<String>? initialValues,
FormFieldSetter<List<String>>? onSaved,
FormFieldValidator<List<String>>? validator,
AutovalidateMode autovalidateMode: AutovalidateMode.onUserInteraction,
this.enabled = true,
this.onChanged,
this.label = 'Select',
this.visible = true,
this.contentAlign,
this.icon,
this.labelAlign,
this.labelWidth,
this.requiredIndicator,
required this.options,
this.values,
this.showMaterialonIOS,
this.fieldPadding,
}) : assert(values == null || options.length == values.length,
"If you provide 'values', they need the same number as 'options'"),
super(
key: key,
initialValue: initialValues,
onSaved: onSaved,
validator: validator,
autovalidateMode: autovalidateMode,
builder: (FormFieldState<List<String>> field) =>
(field as _CardSettingsCheckboxPickerState)._build(field.context),
);