MaskedTextController class

Inheritance

Constructors

MaskedTextController({String text, String mask, Map<String, RegExp> translator})

Properties

afterChange Function
read / write
beforeChange Function
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
hasListeners bool
Whether any listeners are currently registered. [...]
@protected, read-only, inherited
mask String
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
selection TextSelection
The currently selected text. [...]
read / write, inherited
text String
The current string the user is editing.
read / write, inherited-getter, override-setter
translator Map<String, RegExp>
read / write
value TextEditingValue
The current value stored in this notifier. [...]
read / write, inherited

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes. [...]
inherited
buildTextSpan({required BuildContext context, TextStyle style, required bool withComposing}) TextSpan
Builds TextSpan from current editing value. [...]
inherited
clear() → void
Set the value to empty. [...]
inherited
clearComposing() → void
Set the composing region to an empty range. [...]
inherited
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener and removeListener will throw after the object is disposed). [...]
@mustCallSuper, inherited
isSelectionWithinTextBounds(TextSelection selection) bool
Check that the selection is inside of the bounds of text.
inherited
moveCursorToEnd() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
notifyListeners() → void
Call all the registered listeners. [...]
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes. [...]
inherited
toString() String
A string representation of this object. [...]
inherited
updateMask(String mask, {bool moveCursorToEnd = true}) → void
updateText(String text) → void

Operators

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

Static Methods

getDefaultTranslator() Map<String, RegExp>