CommonTextInputModel class

Constructors

CommonTextInputModel({Key? key, String? hint, TextInputType? textInputType, bool? isRequired = false, bool? withBorderSide = true, bool? underlined = false, bool? isCollapsed = false, bool? readOnly = false, bool? withInputVerification = false, bool? obscureText = false, bool? showCursor = true, bool? enabled = true, bool? autoCorrect = true, bool? autofocus = false, int? minLength = 6, int? maxLength, dynamic fillColor = COMMON_TRANSPARENT_COLOR, dynamic cursorColor = COMMON_PR_COLOR, FocusNode? focusNode, int? maxLines, String? prefixText, String? suffixText, String? counterText = '', String? semanticCounterText, Widget? prefix, Widget? suffix, int? minLines, Radius? cursorRadius, double? cursorHeight, double? cursorWidth = 2.0, double? prefixMinWidth = 0.0, double? prefixMinHeight = 0.0, double? prefixMaxWidth = 0.0, double? prefixMaxHeight = 0.0, double? suffixMinWidth = 0.0, double? suffixMinHeight = 0.0, double? suffixMaxWidth = 0.0, double? suffixMaxHeight = 0.0, double? borderWidth = 1.0, double? radius = 24.0, dynamic hintColor = COMMON_GREY_COLOR, dynamic disabledColor = COMMON_GREY_COLOR, dynamic focusBorderColor = COMMON_GREY_COLOR, dynamic enabledBorderColor = COMMON_GREY_COLOR, dynamic disabledBorderColor = COMMON_GREY_COLOR, dynamic errorBorderColor = COMMON_GREY_COLOR, dynamic errorColor = COMMON_RED_COLOR, dynamic textColor = COMMON_BLACK_COLOR, TextAlign? textAlign = TextAlign.start, String? fontFamily, double? fontSize, int? fontWeight, double? contentPadding = 15.0, double? contentPaddingTop, double? contentPaddingBottom, double? contentPaddingRight, double? contentPaddingLeft, double? contentPaddingVertical, double? contentPaddingHorizontal, TextInputAction? textInputAction, TextStyle? textStyle, TextStyle? hintStyle, TextStyle? prefixStyle, TextStyle? suffixStyle, TextStyle? counterStyle, Pattern? textInputPattern, InputDecoration? inputDecoration, String? text, Widget? prefixWidget, Widget? suffixWidget, Widget? counterWidget, CommonIcon? prefixIcon, CommonIcon? suffixIcon, List<TextInputFormatter>? textInputFormatters, Iterable<String>? autofillHints, AutovalidateMode? autoValidateMode, InputCounterWidgetBuilder? buildCounter, bool? enableInteractiveSelection = true, bool? enableSuggestions = true, bool? expands = false, String? initialValue, Brightness? keyboardAppearance, MaxLengthEnforcement? maxLengthEnforcement, String obscuringCharacter = '•', VoidCallback? onEditingComplete, ValueChanged<String>? onFieldSubmitted, FormFieldSetter<String>? onSaved, GestureTapCallback? onTap, ScrollController? scrollController, EdgeInsets scrollPadding = const EdgeInsets.all(20.0), TextSelectionControls? selectionControls, SmartDashesType? smartDashesType, SmartQuotesType? smartQuotesType, StrutStyle? strutStyle, TextAlignVertical? textAlignVertical, TextCapitalization textCapitalization = TextCapitalization.none, TextDirection? textDirection, FormFieldValidator<String>? validator})
const

Properties

autoCorrect bool?
show cursor
final
autofillHints Iterable<String>?
auto fill hints
final
autofocus bool?
auto focus
final
autoValidateMode AutovalidateMode?
auto validate mode
final
borderWidth double?
border width
final
buildCounter InputCounterWidgetBuilder?
build counter
final
contentPadding double?
contentPadding from all sides
final
contentPaddingBottom double?
final
contentPaddingHorizontal double?
final
contentPaddingLeft double?
final
contentPaddingRight double?
final
contentPaddingTop double?
final
contentPaddingVertical double?
final
counterStyle TextStyle?
counter style
final
counterText String?
counter text
final
counterWidget Widget?
final
cursorColor → dynamic
final
cursorHeight double?
cursor width and height
final
cursorRadius Radius?
cursor radius
final
cursorWidth double?
final
disabledBorderColor → dynamic
final
disabledColor → dynamic
final
enabled bool?
enabled
final
enabledBorderColor → dynamic
final
enableInteractiveSelection bool?
enable interactive selection
final
enableSuggestions bool?
enable suggestions
final
errorBorderColor → dynamic
final
errorColor → dynamic
final
expands bool?
expands
final
fillColor → dynamic
final
focusBorderColor → dynamic
final
focusNode FocusNode?
focus node
final
fontFamily String?
font family
final
fontSize double?
fontSize
final
fontWeight int?
font weight
final
hashCode int
The hash code for this object.
no setterinherited
hint String?
hint
final
hintColor → dynamic
final
hintStyle TextStyle?
hint style
final
initialValue String?
initial value
final
inputDecoration InputDecoration?
input decoration
final
isCollapsed bool?
is collapsed
final
isRequired bool?
is required
final
key Key?
border width
final
keyboardAppearance Brightness?
keyboard appearance
final
maxLength int?
Lengths
final
maxLengthEnforcement MaxLengthEnforcement?
max length enforcement
final
maxLines int?
final
minLength int?
final
minLines int?
final
obscureText bool?
obscure text
final
obscuringCharacter String
obscuring Character
final
onEditingComplete VoidCallback?
on editing complete
final
onFieldSubmitted ValueChanged<String>?
on field submitted
final
onSaved FormFieldSetter<String>?
on saved
final
onTap GestureTapCallback?
on tap
final
prefix Widget?
final
prefixIcon CommonIcon?
If you pass prefixWidget then prefixIcon is ignored. prefix and suffix icons
final
prefixMaxHeight double?
final
prefixMaxWidth double?
final
prefixMinHeight double?
final
prefixMinWidth double?
prefix & suffix min & max width & height
final
prefixStyle TextStyle?
prefix style
final
prefixText String?
prefix and suffix texts
final
prefixWidget Widget?
Widgets
final
radius double?
radius
final
readOnly bool?
read only
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollController ScrollController?
scroll controller
final
scrollPadding EdgeInsets
scroll padding
final
selectionControls TextSelectionControls?
selection controls
final
semanticCounterText String?
semantic counter text
final
showCursor bool?
show cursor
final
smartDashesType SmartDashesType?
smart dashes type
final
smartQuotesType SmartQuotesType?
smart quotes type
final
strutStyle StrutStyle?
strut style
final
suffix Widget?
final
suffixIcon CommonIcon?
final
suffixMaxHeight double?
final
suffixMaxWidth double?
final
suffixMinHeight double?
final
suffixMinWidth double?
final
suffixStyle TextStyle?
suffix style
final
suffixText String?
final
suffixWidget Widget?
final
text String?
text
final
textAlign TextAlign?
text align
final
textAlignVertical TextAlignVertical?
text align vertical
final
textCapitalization TextCapitalization
text align vertical
final
textColor → dynamic
Colors
final
textDirection TextDirection?
text direction
final
textInputAction TextInputAction?
text input action
final
textInputFormatters List<TextInputFormatter>?
text input formatters
final
textInputPattern Pattern?
ex: RegExp(r'^\d*') text input pattern
final
textInputType TextInputType?
final
textStyle TextStyle?
text style
final
underlined bool?
underlined
final
validator FormFieldValidator<String>?
form field validator
final
withBorderSide bool?
with border side
final
withInputVerification bool?
final

Methods

copyWith({double? borderWidth, Key? key, double? fontSize, double? radius, double? contentPadding, double? contentPaddingTop, double? contentPaddingBottom, double? contentPaddingRight, double? contentPaddingLeft, double? contentPaddingVertical, double? contentPaddingHorizontal, double? prefixMinWidth, double? prefixMinHeight, double? prefixMaxWidth, double? prefixMaxHeight, double? suffixMinWidth, double? suffixMinHeight, double? suffixMaxWidth, double? suffixMaxHeight, double? cursorHeight, double? cursorWidth, dynamic textColor, dynamic disabledColor, dynamic errorColor, dynamic focusBorderColor, dynamic enabledBorderColor, dynamic disabledBorderColor, dynamic errorBorderColor, dynamic hintColor, dynamic fillColor, dynamic cursorColor, int? maxLength, int? minLength, int? minLines, int? maxLines, Widget? prefixWidget, Widget? suffixWidget, Widget? prefix, Widget? suffix, Widget? counterWidget, CommonIcon? prefixIcon, CommonIcon? suffixIcon, FocusNode? focusNode, int? fontWeight, String? hint, String? fontFamily, String? text, String? prefixText, String? suffixText, String? counterText, String? semanticCounterText, bool? isRequired, bool? withBorderSide, bool? underlined, bool? isCollapsed, bool? readOnly, bool? obscureText, bool? enabled, bool? showCursor, bool? autoCorrect, bool? withInputVerification, TextInputType? textInputType, TextAlign? textAlign, TextInputAction? textInputAction, TextStyle? textStyle, TextStyle? hintStyle, TextStyle? prefixStyle, TextStyle? suffixStyle, TextStyle? counterStyle, Pattern? textInputPattern, List<TextInputFormatter>? textInputFormatters, InputDecoration? inputDecoration, Radius? cursorRadius, Iterable<String>? autofillHints, bool? autofocus, AutovalidateMode? autoValidateMode, InputCounterWidgetBuilder? buildCounter, bool? enableInteractiveSelection, bool? enableSuggestions, bool? expands, String? initialValue, String? obscuringCharacter, Brightness? keyboardAppearance, VoidCallback? onEditingComplete, ValueChanged<String>? onFieldSubmitted, FormFieldSetter<String>? onSaved, GestureTapCallback? onTap, ScrollController? scrollController, EdgeInsets? scrollPadding, TextSelectionControls? selectionControls, SmartDashesType? smartDashesType, SmartQuotesType? smartQuotesType, StrutStyle? strutStyle, TextAlignVertical? textAlignVertical, TextCapitalization? textCapitalization, TextDirection? textDirection, FormFieldValidator<String>? validator, MaxLengthEnforcement? maxLengthEnforcement}) CommonTextInputModel
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited