LiveTextFormField constructor

const LiveTextFormField({
  1. Key? key,
  2. required MutableCell<String> content,
  3. MutableCell<TextSelection>? selection,
  4. Object groupId = EditableText,
  5. String? initialValue,
  6. FocusNode? focusNode,
  7. String? forceErrorText,
  8. InputDecoration? decoration = const InputDecoration(),
  9. TextInputType? keyboardType,
  10. TextCapitalization textCapitalization = TextCapitalization.none,
  11. TextInputAction? textInputAction,
  12. TextStyle? style,
  13. StrutStyle? strutStyle,
  14. TextDirection? textDirection,
  15. TextAlign textAlign = TextAlign.start,
  16. TextAlignVertical? textAlignVertical,
  17. bool autofocus = false,
  18. bool readOnly = false,
  19. bool? showCursor,
  20. String obscuringCharacter = '•',
  21. bool obscureText = false,
  22. bool autocorrect = true,
  23. SmartDashesType? smartDashesType,
  24. SmartQuotesType? smartQuotesType,
  25. bool enableSuggestions = true,
  26. MaxLengthEnforcement? maxLengthEnforcement,
  27. int? maxLines = 1,
  28. int? minLines,
  29. bool expands = false,
  30. int? maxLength,
  31. void onChanged(
    1. String
    )?,
  32. void onTap()?,
  33. bool onTapAlwaysCalled = false,
  34. void onTapOutside(
    1. PointerDownEvent
    )?,
  35. void onTapUpOutside(
    1. PointerUpEvent
    )?,
  36. void onEditingComplete()?,
  37. void onFieldSubmitted(
    1. String
    )?,
  38. void onSaved(
    1. String?
    )?,
  39. String? validator(
    1. String?
    )?,
  40. Widget errorBuilder(
    1. BuildContext,
    2. String
    )?,
  41. List<TextInputFormatter>? inputFormatters,
  42. ValueCell<bool?>? enabled,
  43. bool? ignorePointers,
  44. double cursorWidth = 2.0,
  45. double? cursorHeight,
  46. Radius? cursorRadius,
  47. Color? cursorColor,
  48. Color? cursorErrorColor,
  49. Brightness? keyboardAppearance,
  50. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  51. bool? enableInteractiveSelection,
  52. bool? selectAllOnFocus,
  53. TextSelectionControls? selectionControls,
  54. Widget? buildCounter(
    1. BuildContext, {
    2. required int currentLength,
    3. required bool isFocused,
    4. required int? maxLength,
    })?,
  55. ScrollPhysics? scrollPhysics,
  56. Iterable<String>? autofillHints,
  57. AutovalidateMode? autovalidateMode,
  58. ScrollController? scrollController,
  59. String? restorationId,
  60. bool enableIMEPersonalizedLearning = true,
  61. MouseCursor? mouseCursor,
  62. SpellCheckConfiguration? spellCheckConfiguration,
  63. TextMagnifierConfiguration? magnifierConfiguration,
  64. UndoHistoryController? undoController,
  65. void onAppPrivateCommand(
    1. String,
    2. Map<String, dynamic>
    )?,
  66. bool? cursorOpacityAnimates,
  67. BoxHeightStyle? selectionHeightStyle,
  68. BoxWidthStyle? selectionWidthStyle,
  69. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  70. ContentInsertionConfiguration? contentInsertionConfiguration,
  71. WidgetStatesController? statesController,
  72. Clip clipBehavior = Clip.hardEdge,
  73. bool scribbleEnabled = true,
  74. bool stylusHandwritingEnabled = EditableText.defaultStylusHandwritingEnabled,
  75. bool canRequestFocus = true,
  76. List<Locale>? hintLocales,
})

Implementation

const LiveTextFormField({
  super.key,
  required this.content,
  this.selection,
  this.groupId = EditableText,
  this.initialValue,
  this.focusNode,
  this.forceErrorText,
  this.decoration = const InputDecoration(),
  this.keyboardType,
  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,
  this.smartQuotesType,
  this.enableSuggestions = true,
  this.maxLengthEnforcement,
  this.maxLines = 1,
  this.minLines,
  this.expands = false,
  this.maxLength,
  this.onChanged,
  this.onTap,
  this.onTapAlwaysCalled = false,
  this.onTapOutside,
  this.onTapUpOutside,
  this.onEditingComplete,
  this.onFieldSubmitted,
  this.onSaved,
  this.validator,
  this.errorBuilder,
  this.inputFormatters,
  this.enabled,
  this.ignorePointers,
  this.cursorWidth = 2.0,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorColor,
  this.cursorErrorColor,
  this.keyboardAppearance,
  this.scrollPadding = const EdgeInsets.all(20.0),
  this.enableInteractiveSelection,
  this.selectAllOnFocus,
  this.selectionControls,
  this.buildCounter,
  this.scrollPhysics,
  this.autofillHints,
  this.autovalidateMode,
  this.scrollController,
  this.restorationId,
  this.enableIMEPersonalizedLearning = true,
  this.mouseCursor,
  this.spellCheckConfiguration,
  this.magnifierConfiguration,
  this.undoController,
  this.onAppPrivateCommand,
  this.cursorOpacityAnimates,
  this.selectionHeightStyle,
  this.selectionWidthStyle,
  this.dragStartBehavior = DragStartBehavior.start,
  this.contentInsertionConfiguration,
  this.statesController,
  this.clipBehavior = Clip.hardEdge,
  this.scribbleEnabled = true,
  this.stylusHandwritingEnabled =
      EditableText.defaultStylusHandwritingEnabled,
  this.canRequestFocus = true,
  this.hintLocales,
});