checkboxGroup<T> static method

TFormField<List<T>> checkboxGroup<T>(
  1. TFieldProp<List<T>> prop,
  2. String? label,
  3. List<TCheckboxGroupItem<T>> items, {
  4. String? tag,
  5. String? helperText,
  6. bool isRequired = false,
  7. bool disabled = false,
  8. bool autoFocus = false,
  9. TInputFieldTheme? theme,
  10. FocusNode? focusNode,
  11. VoidCallback? onTap,
  12. List<String? Function(List<T>?)>? rules,
  13. Color? color,
  14. bool block = true,
  15. bool vertical = false,
})

Implementation

static TFormField<List<T>> checkboxGroup<T>(
  TFieldProp<List<T>> prop,
  String? label,
  List<TCheckboxGroupItem<T>> items, {
  String? tag,
  String? helperText,
  bool isRequired = false,
  bool disabled = false,
  bool autoFocus = false,
  TInputFieldTheme? theme,
  FocusNode? focusNode,
  VoidCallback? onTap,
  List<String? Function(List<T>?)>? rules,
  Color? color,
  bool block = true,
  bool vertical = false,
}) {
  return TFormField<List<T>>(
    prop: prop,
    builder: (onValueChanged) => TCheckboxGroup<T>(
      label: label,
      tag: tag,
      helperText: helperText,
      isRequired: isRequired,
      disabled: disabled,
      autoFocus: autoFocus,
      theme: theme,
      focusNode: focusNode,
      onTap: onTap,
      rules: rules,
      items: items,
      color: color,
      block: block,
      vertical: vertical,
      value: prop.value,
      valueNotifier: prop.valueNotifier,
      onValueChanged: onValueChanged,
    ),
  );
}