CardSettingsCheckboxPicker constructor

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