NumberTextFormatter<T extends num?> class
Process format number while typing
- Inheritance
-
- Object
- TextInputFormatter
- TextFormatter<
T> - NumberTextFormatter
Constructors
- NumberTextFormatter({int fraction = 0, String? locale})
- Create number formatter used for TextInput
Properties
- fraction → int
-
Number of fraction allowed
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- locale → String?
-
Current locale
final
- numberFormat ↔ NumberFormat
-
Current number formatter
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
format(
T value) → String -
Format value to text
override
-
formatEditUpdate(
TextEditingValue oldValue, TextEditingValue newValue) → TextEditingValue -
Called when text is being typed or cut/copy/pasted in the EditableText.
override
-
isValid(
String text) → bool -
Check current text is valid to parse or not
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parse(
String text) → T -
Parser text to value
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited