GroupedNumberInputFormatter class
Live text input formatter that manages comma grouping and decimal rules.
- Inheritance
-
- Object
- TextInputFormatter
- GroupedNumberInputFormatter
Constructors
- GroupedNumberInputFormatter({required NumberGroupingSystem groupingSystem, required bool allowDecimals, int? decimalPlaces, required bool allowNegative, num? maxValue})
- Creates a GroupedNumberInputFormatter instance.
Properties
- allowDecimals → bool
-
Whether decimal fractions are permitted.
final
- allowNegative → bool
-
Whether negative numbers are permitted.
final
- decimalPlaces → int?
-
Maximum number of decimal places allowed.
final
- groupingSystem → NumberGroupingSystem
-
Number grouping system used for digit formatting.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxValue → num?
-
Maximum numeric value constraint.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
formatEditUpdate(
TextEditingValue oldValue, TextEditingValue newValue) → TextEditingValue -
Called when text is being typed or cut/copy/pasted in the EditableText.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited