MaskedTextField class
Constructors
MaskedTextField ({Key ? key , String ? initialValue , String ? mask , Map <String , RegExp > ? maskFilter , TextAlign textAlign = TextAlign.start , bool autocorrect = true , Iterable <String > ? autofillHints = const [] , bool autofocus = false , InputCounterWidgetBuilder ? buildCounter , TextEditingController ? controller , Color ? cursorColor , double ? cursorHeight , Radius ? cursorRadius , double cursorWidth = 2.0 , InputDecoration ? decoration , bool ? enabled , bool enableIMEPersonalizedLearning = true , bool ? enableInteractiveSelection , bool enableSuggestions = true , bool expands = false , FocusNode ? focusNode , List <TextInputFormatter > ? inputFormatters , Brightness ? keyboardAppearance , TextInputType ? keyboardType , int ? maxLength , MaxLengthEnforcement ? maxLengthEnforcement , int ? maxLines , int ? minLines , MouseCursor ? mouseCursor , bool obscureText = false , String obscuringCharacter = "*" , ValueChanged <String > ? onChanged , VoidCallback ? onEditingComplete , GestureTapCallback ? onTap , bool readOnly = false , String ? restorationId , ScrollController ? scrollController , EdgeInsets scrollPadding = const EdgeInsets.all(20) , ScrollPhysics ? scrollPhysics , TextSelectionControls ? selectionControls , bool ? showCursor , SmartDashesType ? smartDashesType , SmartQuotesType ? smartQuotesType , StrutStyle ? strutStyle , TextStyle ? style , TextAlignVertical ? textAlignVertical , TextCapitalization textCapitalization = TextCapitalization.none , TextDirection ? textDirection , TextInputAction ? textInputAction , ToolbarOptions ? toolbarOptions , AutovalidateMode ? autovalidateMode , ValueChanged <String > ? onFieldSubmitted , FormFieldSetter <String > ? onSaved , FormFieldValidator <String > ? validator })
Properties
autovalidateMode
→ AutovalidateMode
Used to enable/disable this form field auto validation and update its
error text.
final inherited
builder
→ FormFieldBuilder <String >
Function that returns the widget representing this form field. It is
passed the form field state as input, containing the current value and
validation state of this field.
final inherited
controller
→ TextEditingController ?
Controls the text being edited.
final inherited
enabled
→ bool
Whether the form is able to receive user input.
final inherited
hashCode
→ int
The hash code for this object.
no setter inherited
initialValue
→ String ?
An optional value to initialize the form field to, or null otherwise.
final inherited
key
→ Key ?
Controls how one widget replaces another widget in the tree.
final inherited
onChanged
→ ValueChanged <String > ?
Called when the user initiates a change to the TextField's
value: when they have inserted or deleted text or reset the form.
final inherited
onSaved
→ FormFieldSetter <String > ?
An optional method to call with the final value when the form is saved via
FormState.save .
final inherited
restorationId
→ String ?
Restoration ID to save and restore the state of the form field.
final inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
validator
→ FormFieldValidator <String > ?
An optional method that validates an input. Returns an error string to
display if the input is invalid, or null otherwise.
final inherited