FieldStyleTextField constructor

FieldStyleTextField({
  1. VoidCallback? onEditingComplete,
  2. ValueChanged<String>? onSubmitted,
  3. ScrollController? scrollController,
  4. ScrollPhysics? scrollPhysics,
  5. Iterable<String>? autofillHints,
  6. dynamic handleValidationError(
    1. FormValidationResult handleError
    )?,
  7. bool? passwordVisible,
  8. Widget? prefixIcon,
  9. Color? backgroundColor,
  10. BorderRadius? borderRadius,
  11. InputBorder? border,
  12. InputBorder? focusedBorder,
  13. InputBorder? enabledBorder,
  14. EdgeInsetsGeometry? contentPadding,
  15. bool? passwordViewable,
  16. bool? validateOnFocusChange,
  17. bool customValidationRule(
    1. dynamic value
    )?,
  18. Widget? header,
  19. Widget? footer,
  20. bool? clearable,
  21. Widget? clearIcon,
  22. String? mask,
  23. String? maskMatch,
  24. bool? maskedReturnValue,
  25. DecoratorTextField? decorator,
  26. String? labelText,
  27. TextStyle? labelStyle,
  28. TextEditingController? controller,
  29. bool obscureText = false,
  30. int? maxLines,
  31. int? minLines,
  32. TextInputType keyboardType = TextInputType.text,
  33. bool autoFocus = false,
  34. TextAlign? textAlign,
  35. bool enableSuggestions = true,
  36. FocusNode? focusNode,
  37. String? hintText,
  38. TextStyle? hintStyle,
  39. String? dummyData,
  40. dynamic onChanged(
    1. String value
    )?,
  41. TextInputAction? textInputAction,
  42. TextStyle? style,
  43. StrutStyle? strutStyle,
  44. TextAlignVertical? textAlignVertical,
  45. TextDirection? textDirection,
  46. String obscuringCharacter = '•',
  47. bool autocorrect = true,
  48. SmartDashesType? smartDashesType,
  49. SmartQuotesType? smartQuotesType,
  50. bool expands = false,
  51. bool readOnly = false,
  52. bool? showCursor = true,
  53. int? maxLength,
  54. MouseCursor? mouseCursor,
  55. String? validationErrorMessage,
  56. TextCapitalization textCapitalization = TextCapitalization.none,
  57. MaxLengthEnforcement? maxLengthEnforcement = MaxLengthEnforcement.enforced,
  58. AppPrivateCommandCallback? onAppPrivateCommand,
  59. List<TextInputFormatter>? inputFormatters = const [],
  60. bool? enabled = true,
  61. double cursorWidth = 2.0,
  62. double? cursorHeight,
  63. Radius? cursorRadius = const Radius.circular(2.0),
  64. Color? cursorColor = Colors.black87,
  65. Brightness? keyboardAppearance,
  66. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  67. TextSelectionControls? selectionControls = null,
  68. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  69. GestureTapCallback? onTap,
  70. TapRegionCallback? onTapOutside,
  71. InputDecoration? decoration,
  72. Clip clipBehavior = Clip.hardEdge,
  73. Color? fillColor,
  74. bool? filled = false,
  75. bool? isDense = false,
  76. Widget? suffixIcon,
  77. bool enableInteractiveSelection = true,
})

Implementation

FieldStyleTextField({
  this.onEditingComplete,
  this.onSubmitted,
  this.scrollController,
  this.scrollPhysics,
  this.autofillHints,
  this.handleValidationError,
  this.passwordVisible,
  this.prefixIcon,
  this.backgroundColor,
  this.borderRadius,
  this.border,
  this.focusedBorder,
  this.enabledBorder,
  this.contentPadding,
  this.passwordViewable,
  this.validateOnFocusChange,
  this.customValidationRule,
  this.header,
  this.footer,
  this.clearable,
  this.clearIcon,
  this.mask,
  this.maskMatch,
  this.maskedReturnValue,
  this.decorator,
  this.labelText,
  this.labelStyle,
  this.controller,
  this.obscureText = false,
  this.maxLines,
  this.minLines,
  this.keyboardType = TextInputType.text,
  this.autoFocus = false,
  this.textAlign,
  this.enableSuggestions = true,
  this.focusNode,
  this.hintText,
  this.hintStyle,
  this.dummyData,
  this.onChanged,
  this.textInputAction,
  this.style,
  this.strutStyle,
  this.textAlignVertical,
  this.textDirection,
  this.obscuringCharacter = '•',
  this.autocorrect = true,
  this.smartDashesType,
  this.smartQuotesType,
  this.expands = false,
  this.readOnly = false,
  this.showCursor = true,
  this.maxLength,
  this.mouseCursor,
  this.validationErrorMessage,
  this.textCapitalization = TextCapitalization.none,
  this.maxLengthEnforcement = MaxLengthEnforcement.enforced,
  this.onAppPrivateCommand,
  this.inputFormatters = const [],
  this.enabled = true,
  this.cursorWidth = 2.0,
  this.cursorHeight,
  this.cursorRadius = const Radius.circular(2.0),
  this.cursorColor = Colors.black87,
  this.keyboardAppearance,
  this.scrollPadding = const EdgeInsets.all(20.0),
  this.selectionControls = null,
  this.dragStartBehavior = DragStartBehavior.start,
  this.onTap,
  this.onTapOutside,
  InputDecoration? decoration,
  this.clipBehavior = Clip.hardEdge,
  this.fillColor,
  this.filled = false,
  this.isDense = false,
  this.suffixIcon,
  this.enableInteractiveSelection = true,
}) : decoration = decoration;