RegexPatternTextField constructor

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

Implementation

const RegexPatternTextField({
  super.key,
  this.groupId = EditableText,
  this.focusNode,
  this.undoController,
  this.decoration = const InputDecoration(),
  this.textInputAction,
  this.textCapitalization = TextCapitalization.none,
  this.style,
  this.strutStyle,
  this.textAlign = TextAlign.start,
  this.textAlignVertical,
  this.textDirection,
  this.readOnly = false,
  this.toolbarOptions,
  this.showCursor,
  this.autofocus = false,
  this.statesController,
  this.obscuringCharacter = '•',
  this.obscureText = false,
  this.autocorrect = true,
  this.enableSuggestions = true,
  this.maxLines = 1,
  this.minLines,
  this.expands = false,
  this.maxLength,
  this.maxLengthEnforcement,
  this.onChanged,
  this.onEditingComplete,
  this.onSubmitted,
  this.onAppPrivateCommand,
  this.inputFormatters,
  this.enabled,
  this.ignorePointers,
  this.cursorWidth = 2.0,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorOpacityAnimates,
  this.cursorColor,
  this.cursorErrorColor,
  this.selectionHeightStyle = BoxHeightStyle.tight,
  this.selectionWidthStyle = BoxWidthStyle.tight,
  this.keyboardAppearance,
  this.scrollPadding = const EdgeInsets.all(20.0),
  this.dragStartBehavior = DragStartBehavior.start,
  this.selectionControls,
  this.onTap,
  this.onTapAlwaysCalled = false,
  this.onTapOutside,
  this.mouseCursor,
  this.buildCounter,
  this.scrollController,
  this.scrollPhysics,
  this.autofillHints = const <String>[],
  this.contentInsertionConfiguration,
  this.clipBehavior = Clip.hardEdge,
  this.restorationId,
  this.scribbleEnabled = true,
  this.enableIMEPersonalizedLearning = true,
  this.contextMenuBuilder = _defaultContextMenuBuilder,
  this.canRequestFocus = true,
  this.spellCheckConfiguration,
  this.magnifierConfiguration,
  this.regexPatternController,
  this.regexPatternStyles,
  this.keyboardType,
  this.defaultRegexPatternStyles = true,
  this.onMatch,
  this.onNonMatch,
  this.smartDashesType,
  this.smartQuotesType,
  this.enableInteractiveSelection,
});