FlutterParsedTextField constructor

const FlutterParsedTextField({
  1. Key? key,
  2. FlutterParsedTextFieldController? controller,
  3. required List<Matcher> matchers,
  4. dynamic suggestionMatches(
    1. Matcher? matcher,
    2. List matches
    )?,
  5. bool disableSuggestionOverlay = false,
  6. int? suggestionLimit,
  7. SuggestionPosition? suggestionPosition = SuggestionPosition.below,
  8. FocusNode? focusNode,
  9. InputDecoration? decoration = const InputDecoration(),
  10. TextInputType? keyboardType,
  11. TextInputAction? textInputAction,
  12. TextCapitalization textCapitalization = TextCapitalization.none,
  13. TextStyle? style,
  14. StrutStyle? strutStyle,
  15. TextAlign textAlign = TextAlign.start,
  16. TextAlignVertical? textAlignVertical,
  17. TextDirection? textDirection,
  18. bool readOnly = false,
  19. ToolbarOptions? toolbarOptions,
  20. bool? showCursor,
  21. bool autofocus = false,
  22. String obscuringCharacter = '•',
  23. bool obscureText = false,
  24. bool autocorrect = true,
  25. SmartDashesType? smartDashesType,
  26. SmartQuotesType? smartQuotesType,
  27. bool enableSuggestions = true,
  28. int? maxLines = 1,
  29. int? minLines,
  30. bool expands = false,
  31. int? maxLength,
  32. MaxLengthEnforcement? maxLengthEnforcement,
  33. ValueChanged<String>? onChanged,
  34. VoidCallback? onEditingComplete,
  35. ValueChanged<String>? onSubmitted,
  36. AppPrivateCommandCallback? onAppPrivateCommand,
  37. List<TextInputFormatter>? inputFormatters,
  38. bool? enabled,
  39. double cursorWidth = 2.0,
  40. double? cursorHeight,
  41. Radius? cursorRadius,
  42. Color? cursorColor,
  43. BoxHeightStyle selectionHeightStyle = ui.BoxHeightStyle.tight,
  44. BoxWidthStyle selectionWidthStyle = ui.BoxWidthStyle.tight,
  45. Brightness? keyboardAppearance,
  46. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  47. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  48. bool enableInteractiveSelection = true,
  49. TextSelectionControls? selectionControls,
  50. GestureTapCallback? onTap,
  51. MouseCursor? mouseCursor,
  52. InputCounterWidgetBuilder? buildCounter,
  53. ScrollController? scrollController,
  54. ScrollPhysics? scrollPhysics,
  55. Iterable<String>? autofillHints,
  56. String? restorationId,
  57. bool enableIMEPersonalizedLearning = true,
})

Implementation

const FlutterParsedTextField({
  Key? key,
  this.controller,
  required this.matchers,
  this.suggestionMatches,
  this.disableSuggestionOverlay = false,
  this.suggestionLimit,
  this.suggestionPosition = SuggestionPosition.below,
  // flutter text field props
  this.focusNode,
  this.decoration = const InputDecoration(),
  this.keyboardType,
  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.obscuringCharacter = '•',
  this.obscureText = false,
  this.autocorrect = true,
  this.smartDashesType,
  this.smartQuotesType,
  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.cursorWidth = 2.0,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorColor,
  this.selectionHeightStyle = ui.BoxHeightStyle.tight,
  this.selectionWidthStyle = ui.BoxWidthStyle.tight,
  this.keyboardAppearance,
  this.scrollPadding = const EdgeInsets.all(20.0),
  this.dragStartBehavior = DragStartBehavior.start,
  this.enableInteractiveSelection = true,
  this.selectionControls,
  this.onTap,
  this.mouseCursor,
  this.buildCounter,
  this.scrollController,
  this.scrollPhysics,
  this.autofillHints,
  this.restorationId,
  this.enableIMEPersonalizedLearning = true,
}) : super(key: key);