CardSettingsCheckboxPicker<T> constructor

CardSettingsCheckboxPicker<T>({
  1. Key? key,
  2. List<T>? initialItems,
  3. FormFieldSetter<List<T>>? onSaved,
  4. FormFieldValidator<List<T>>? validator,
  5. AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction,
  6. bool enabled = true,
  7. ValueChanged<List<T>>? 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<T> items,
  16. bool? showMaterialonIOS,
  17. EdgeInsetsGeometry? fieldPadding,
})

Implementation

CardSettingsCheckboxPicker({
  Key? key,
  List<T>? initialItems,
  FormFieldSetter<List<T>>? onSaved,
  FormFieldValidator<List<T>>? 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.items,
  this.showMaterialonIOS,
  this.fieldPadding,
}) : super(
        key: key,
        initialValue: initialItems,
        onSaved: onSaved,
        validator: validator,
        autovalidateMode: autovalidateMode,
        builder: (FormFieldState<List<T>> field) =>
            (field as _CardSettingsCheckboxPickerState)._build(field.context),
      );