NumberThousandDecimalFormatter class
- Inheritance
-
- Object
- TextInputFormatter
- FilteringTextInputFormatter
- NumberThousandDecimalFormatter
Constructors
- NumberThousandDecimalFormatter({int? digitLimit, int? precision})
Properties
- allow → bool
-
Whether the pattern is an allow list or not.
finalinherited
- digitLimit → int
-
final
- filterPattern → Pattern
-
A Pattern to match or replace in incoming TextEditingValues.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- precision → int
-
final
- replacementString → String
-
String used to replace banned patterns.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
formatButWithDecimal(
Decimal parsed, String format) → String -
formatEditUpdate(
TextEditingValue oldValue, TextEditingValue newValue) → TextEditingValue -
Called when text is being typed or cut/copy/pasted in the EditableText.
override
-
normalize(
TextEditingValue x, TextEditingValue oldValue, TextEditingValue cleanNewValue, TextEditingValue newNormalizedValue) → TextEditingValue -
normalizeDecimal(
String value, TextEditingValue newValue, TextEditingValue oldValue, int precision) → String -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
truncate(
Decimal value, int precision) → Decimal
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited