PosInputFormatter class
- Implemented types
Constructors
- PosInputFormatter({DecimalPosSeparator decimalSeparator = DecimalPosSeparator.dot, ThousandsPosSeparator? thousandsSeparator, int mantissaLength = 2})
-
decimalSeparator specifies what symbol will be used to separate
integer part between decimal part, e.g. ThousandsPosSeparator.comma
will format ten point thirteen as 10.13
thousandsSeparator specifies what symbol will be used to separate
each block of 3 digits, e.g. ThousandsPosSeparator.comma will format
million as 1,000,000
mantissaLength specifies how many digits will be added after a period sign
const
Properties
- decimalSeparator → DecimalPosSeparator
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- mantissaLength → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thousandsSeparator → ThousandsPosSeparator?
-
final
Methods
-
formatEditUpdate(
TextEditingValue oldValue, TextEditingValue newValue) → TextEditingValue -
Called when text is being typed or cut/copy/pasted in the EditableText.
override
-
insertThousandSeparator(
String text, String separator) → String -
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