WrapperTextField.underline constructor

WrapperTextField.underline({
  1. Key? key,
  2. TextEditingController? controller,
  3. FocusNode? focusNode,
  4. UndoHistoryController? undoController,
  5. TextInputType? keyboardType,
  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. bool? showCursor,
  15. bool autofocus = false,
  16. String obscuringCharacter = '•',
  17. bool obscureText = false,
  18. bool autocorrect = true,
  19. SmartDashesType? smartDashesType,
  20. SmartQuotesType? smartQuotesType,
  21. bool enableSuggestions = true,
  22. int? maxLines = 1,
  23. int? minLines,
  24. bool expands = false,
  25. int? maxLength,
  26. MaxLengthEnforcement? maxLengthEnforcement,
  27. ValueChanged<String>? onChanged,
  28. VoidCallback? onEditingComplete,
  29. ValueChanged<String>? onSubmitted,
  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 = ui.BoxHeightStyle.tight,
  41. BoxWidthStyle selectionWidthStyle = ui.BoxWidthStyle.tight,
  42. Brightness? keyboardAppearance,
  43. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  44. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  45. bool? enableInteractiveSelection,
  46. TextSelectionControls? selectionControls,
  47. GestureTapCallback? onTap,
  48. bool onTapAlwaysCalled = false,
  49. TapRegionCallback? onTapOutside,
  50. MouseCursor? mouseCursor,
  51. InputCounterWidgetBuilder? buildCounter,
  52. ScrollController? scrollController,
  53. ScrollPhysics? scrollPhysics,
  54. Iterable<String> autofillHints = const <String>[],
  55. ContentInsertionConfiguration? contentInsertionConfiguration,
  56. Clip clipBehavior = Clip.hardEdge,
  57. String? restorationId,
  58. bool scribbleEnabled = false,
  59. bool enableIMEPersonalizedLearning = true,
  60. EditableTextContextMenuBuilder? contextMenuBuilder = _defaultContextMenuBuilder,
  61. bool canRequestFocus = true,
  62. SpellCheckConfiguration? spellCheckConfiguration,
  63. TextMagnifierConfiguration? magnifierConfiguration,
  64. InputBorderType inputBorderType = InputBorderType.underline,
  65. InputDecoration? decorationUnderline,
  66. BorderSide? borderSide,
  67. BorderRadius? borderRadius,
  68. Widget? prefixWidget,
  69. Widget? suffixWidget,
  70. BoxConstraints? prefixWidgetConstraints,
  71. BoxConstraints? suffixWidgetConstraints,
})

Implementation

WrapperTextField.underline({
  super.key,
  this.controller,
  this.focusNode,
  this.undoController,
  this.keyboardType,
  this.textInputAction,
  this.textCapitalization = TextCapitalization.none,
  this.style,
  this.strutStyle,
  this.textAlign = TextAlign.start,
  this.textAlignVertical,
  this.textDirection,
  this.readOnly = false,
  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.ignorePointers,
  this.cursorWidth = 2.0,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorOpacityAnimates,
  this.cursorColor,
  this.cursorErrorColor,
  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,
  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 = false,
  this.enableIMEPersonalizedLearning = true,
  this.contextMenuBuilder = _defaultContextMenuBuilder,
  this.canRequestFocus = true,
  this.spellCheckConfiguration,
  this.magnifierConfiguration,
  this.inputBorderType = InputBorderType.underline,
  InputDecoration? decorationUnderline,
  BorderSide? borderSide,
  BorderRadius? borderRadius,
  Widget? prefixWidget,
  Widget? suffixWidget,
  BoxConstraints? prefixWidgetConstraints,
  BoxConstraints? suffixWidgetConstraints,
}) : decoration = defaultDecoration(
        inputBorderType,
        decorationUnderline,
        borderSide: borderSide,
        borderRadius: borderRadius,
        prefixWidget: prefixWidget,
        suffixWidget: suffixWidget,
        prefixWidgetConstraints: prefixWidgetConstraints,
        suffixWidgetConstraints: suffixWidgetConstraints,
      );