TxArrayFormField<T> constructor
TxArrayFormField<T> ({
- required ArrayFormFieldBuilder<
T> builder, - required ValueMapper<
int, T> defaultValue, - ButtonStyle? addButtonStyle,
- ButtonStyle? actionsButtonStyle,
- int? limit,
- bool? sortable,
- bool? insertable,
- Key? key,
- FormFieldSetter<
List< ? onSaved,T> > - FormFieldValidator<
List< ? validator,T> > - List<
T> ? initialValue, - bool? enabled,
- AutovalidateMode? autovalidateMode = AutovalidateMode.onUserInteraction,
- String? restorationId,
- InputDecoration? decoration,
- ValueChanged<
List< ? onChanged,T> ?> - bool? required,
- bool? bordered,
- FocusNode? focusNode,
- String? hintText,
- TextAlign? textAlign,
- Widget? label,
- String? labelText,
- TextAlign? labelTextAlign,
- TextOverflow? labelOverflow,
- EdgeInsetsGeometry? padding,
- FieldActionsBuilder<
List< ? actionsBuilder,T> > - TextStyle? labelStyle,
- double? horizontalGap,
- Color? tileColor,
- Axis? layoutDirection,
- TxFormFieldBuilder<
List< ? trailingBuilder,T> > - Widget? leading,
- VisualDensity? visualDensity,
- ShapeBorder? shape,
- Color? iconColor,
- Color? textColor,
- TextStyle? leadingAndTrailingTextStyle,
- GestureTapCallback? onTap,
- double? minLeadingWidth,
- bool? dense,
- bool? colon,
- double? minLabelWidth,
- Color? focusColor,
- double? minVerticalPadding,
Implementation
TxArrayFormField({
required ArrayFormFieldBuilder<T> builder,
required ValueMapper<int, T> defaultValue,
ButtonStyle? addButtonStyle,
ButtonStyle? actionsButtonStyle,
int? limit,
bool? sortable,
bool? insertable,
super.key,
super.onSaved,
FormFieldValidator<List<T>>? validator,
super.initialValue,
super.enabled,
super.autovalidateMode,
super.restorationId,
super.decoration,
super.onChanged,
super.required,
super.bordered,
FocusNode? focusNode,
String? hintText,
TextAlign? textAlign,
super.label,
super.labelText,
super.labelTextAlign,
super.labelOverflow,
super.padding,
super.actionsBuilder,
super.labelStyle,
super.horizontalGap,
super.tileColor,
super.layoutDirection,
super.trailingBuilder,
super.leading,
super.visualDensity,
super.shape,
super.iconColor,
super.textColor,
super.leadingAndTrailingTextStyle,
super.onTap,
super.minLeadingWidth,
super.dense,
super.colon,
super.minLabelWidth,
super.focusColor,
super.minVerticalPadding,
}) : super(
builder: (field) => _buildFormField<T>(
field,
builder,
defaultValue,
addButtonStyle,
actionsButtonStyle,
limit,
sortable,
insertable,
),
validator: (val) => _validator(val, required, limit, validator),
);