DataFormTextField<T> constructor

const DataFormTextField<T>({
  1. Key? key,
  2. required String id,
  3. bool conditional(
    1. Map<String, dynamic> data
    )?,
  4. TextEditingController? controller,
  5. String? initialValue,
  6. FocusNode? focusNode,
  7. InputDecoration? decoration = const InputDecoration(),
  8. TextInputType keyboardType = TextInputType.text,
  9. TextCapitalization textCapitalization = TextCapitalization.none,
  10. TextInputAction? textInputAction,
  11. TextStyle? style,
  12. StrutStyle? strutStyle,
  13. TextDirection? textDirection,
  14. TextAlign textAlign = TextAlign.start,
  15. TextAlignVertical? textAlignVertical,
  16. bool autofocus = false,
  17. bool readOnly = false,
  18. bool? showCursor,
  19. String obscuringCharacter = '•',
  20. bool obscureText = false,
  21. bool autocorrect = true,
  22. SmartDashesType smartDashesType = SmartDashesType.enabled,
  23. SmartQuotesType smartQuotesType = SmartQuotesType.enabled,
  24. bool enableSuggestions = true,
  25. MaxLengthEnforcement? maxLengthEnforcement,
  26. int? maxLines = 1,
  27. int? minLines,
  28. bool expands = false,
  29. int? maxLength,
  30. ValueChanged<String>? onChanged,
  31. GestureTapCallback? onTap,
  32. TapRegionCallback? onTapOutside,
  33. VoidCallback? onEditingComplete,
  34. ValueChanged<String>? onFieldSubmitted,
  35. FormFieldSetter<String>? onSaved,
  36. FormFieldValidator<String>? validator,
  37. List<TextInputFormatter>? inputFormatters,
  38. bool? enabled,
  39. double cursorWidth = 2.0,
  40. double? cursorHeight,
  41. Radius? cursorRadius,
  42. Color? cursorColor,
  43. Brightness? keyboardAppearance,
  44. EdgeInsets scrollPadding = const EdgeInsets.all(20),
  45. bool enableInteractiveSelection = true,
  46. TextSelectionControls? selectionControls,
  47. InputCounterWidgetBuilder? buildCounter,
  48. ScrollPhysics? scrollPhysics,
  49. Iterable<String>? autofillHints,
  50. AutovalidateMode? autovalidateMode,
  51. ScrollController? scrollController,
  52. bool enableIMEPersonalizedLearning = true,
  53. MouseCursor? mouseCursor,
  54. SpellCheckConfiguration? spellCheckConfiguration,
  55. TextMagnifierConfiguration? magnifierConfiguration,
  56. UndoHistoryController? undoController,
  57. AppPrivateCommandCallback? onAppPrivateCommand,
  58. bool? cursorOpacityAnimates,
  59. BoxHeightStyle selectionHeightStyle = ui.BoxHeightStyle.tight,
  60. BoxWidthStyle selectionWidthStyle = ui.BoxWidthStyle.tight,
  61. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  62. ContentInsertionConfiguration? contentInsertionConfiguration,
  63. Clip clipBehavior = Clip.hardEdge,
  64. bool scribbleEnabled = true,
  65. bool canRequestFocus = true,
  66. ValueChanged<String>? onSubmitted,
  67. String? restorationId,
  68. EditableTextContextMenuBuilder? contextMenuBuilder,
  69. T formatter(
    1. String?
    )?,
  70. dynamic onError(
    1. String error
    )?,
  71. Map<bool, String> validate(
    1. String?
    )?,
})

Creates a DataFormTextField widget.

Implementation

const DataFormTextField({
  super.key,
  required this.id,
  this.conditional,
  this.controller,
  this.initialValue,
  this.focusNode,
  this.decoration = const InputDecoration(),
  this.keyboardType = TextInputType.text,
  this.textCapitalization = TextCapitalization.none,
  this.textInputAction,
  this.style,
  this.strutStyle,
  this.textDirection,
  this.textAlign = TextAlign.start,
  this.textAlignVertical,
  this.autofocus = false,
  this.readOnly = false,
  this.showCursor,
  this.obscuringCharacter = '•',
  this.obscureText = false,
  this.autocorrect = true,
  this.smartDashesType = SmartDashesType.enabled,
  this.smartQuotesType = SmartQuotesType.enabled,
  this.enableSuggestions = true,
  this.maxLengthEnforcement,
  this.maxLines = 1,
  this.minLines,
  this.expands = false,
  this.maxLength,
  this.onChanged,
  this.onTap,
  this.onTapOutside,
  this.onEditingComplete,
  this.onFieldSubmitted,
  this.onSaved,
  this.validator,
  this.inputFormatters,
  this.enabled,
  this.cursorWidth = 2.0,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorColor,
  this.keyboardAppearance,
  this.scrollPadding = const EdgeInsets.all(20),
  this.enableInteractiveSelection = true,
  this.selectionControls,
  this.buildCounter,
  this.scrollPhysics,
  this.autofillHints,
  this.autovalidateMode,
  this.scrollController,
  this.enableIMEPersonalizedLearning = true,
  this.mouseCursor,
  this.spellCheckConfiguration,
  this.magnifierConfiguration,
  this.undoController,
  this.onAppPrivateCommand,
  this.cursorOpacityAnimates,
  this.selectionHeightStyle = ui.BoxHeightStyle.tight,
  this.selectionWidthStyle = ui.BoxWidthStyle.tight,
  this.dragStartBehavior = DragStartBehavior.start,
  this.contentInsertionConfiguration,
  this.clipBehavior = Clip.hardEdge,
  this.scribbleEnabled = true,
  this.canRequestFocus = true,
  this.onSubmitted,
  this.restorationId,
  this.contextMenuBuilder,
  this.formatter,
  this.onError,
  this.validate,
});