checkboxGroup<T> static method
TFormField<List<T> >
checkboxGroup<T>(
- TFieldProp<
List< prop,T> > - String? label,
- List<
TCheckboxGroupItem< items, {T> > - String? tag,
- String? helperText,
- bool isRequired = false,
- bool disabled = false,
- bool autoFocus = false,
- TInputFieldTheme? theme,
- FocusNode? focusNode,
- VoidCallback? onTap,
- List<
String? Function(List< ? rules,T> ?)> - Color? color,
- bool block = true,
- 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,
),
);
}