TextInputMask class

TextInputMask extends the TextInputFormatter to make your life better! Just initiate it with the mask as string and it's done.



TextInputMask({dynamic mask, bool reverse: false, int maxLength: -1, String placeholder: '', int maxPlaceHolders: -1})
mask is the String or Array of Strings to be used as mask(s). reverse is a bool. When true it will mask on reverse mode, usually to be used on currency fields. maxLength can be used to limit the maximum length. Leave it null or -1 to not limitate placeholder is a string to be applyed on untyped characters. maxPlaceHolders max times a placeholder is counted. Typed characters consumes the counter. ex placeholder as '0' with max=3 on a text like '3' with mask 9+.99 will be 0.03 not 000000.03 [...]


hashCode int
The hash code for this object. [...]
read-only, inherited
magickMask MagicMask
read / write
mask ↔ dynamic
read / write
maxLength int
read / write
maxPlaceHolders int
read / write
placeholder String
read / write
reverse bool
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


formatEditUpdate(TextEditingValue oldValue, TextEditingValue newValue) TextEditingValue
Called when text is being typed or cut/copy/pasted in the EditableText. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
Returns a string representation of this object.


operator ==(Object other) bool
The equality operator. [...]