TxArrayFormField<T> constructor

TxArrayFormField<T>({
  1. required ArrayFormFieldBuilder<T> builder,
  2. required ValueMapper<int, T> defaultValue,
  3. ButtonStyle? addButtonStyle,
  4. ButtonStyle? actionsButtonStyle,
  5. int? limit,
  6. bool? sortable,
  7. bool? insertable,
  8. Key? key,
  9. FormFieldSetter<List<T>>? onSaved,
  10. FormFieldValidator<List<T>>? validator,
  11. List<T>? initialValue,
  12. bool? enabled,
  13. AutovalidateMode? autovalidateMode = AutovalidateMode.onUserInteraction,
  14. String? restorationId,
  15. InputDecoration? decoration,
  16. ValueChanged<List<T>?>? onChanged,
  17. bool? required,
  18. bool? bordered,
  19. FocusNode? focusNode,
  20. String? hintText,
  21. TextAlign? textAlign,
  22. Widget? label,
  23. String? labelText,
  24. TextAlign? labelTextAlign,
  25. TextOverflow? labelOverflow,
  26. EdgeInsetsGeometry? padding,
  27. FieldActionsBuilder<List<T>>? actionsBuilder,
  28. TextStyle? labelStyle,
  29. double? horizontalGap,
  30. Color? tileColor,
  31. Axis? layoutDirection,
  32. TxFormFieldBuilder<List<T>>? trailingBuilder,
  33. Widget? leading,
  34. VisualDensity? visualDensity,
  35. ShapeBorder? shape,
  36. Color? iconColor,
  37. Color? textColor,
  38. TextStyle? leadingAndTrailingTextStyle,
  39. GestureTapCallback? onTap,
  40. double? minLeadingWidth,
  41. bool? dense,
  42. bool? colon,
  43. double? minLabelWidth,
  44. Color? focusColor,
  45. 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),
      );