PercentageTextInputFormatter class

Inheritance

Constructors

PercentageTextInputFormatter({String? prefix, String? suffix, int integerDigits = 3, int decimalDigits = 0, bool allowNegative = false, String decimalSeparator = '.', int? groupDigits, String groupSeparator = ',', bool overrideDecimalPoint = false, bool insertDecimalPoint = false, bool insertDecimalDigits = true})

Properties

allowNegative bool
Allow input of negative numbers?
finalinherited
decimalDigits int?
Maximum number of decimal digits.
latefinalinherited
decimalSeparator String
Decimal Separator: default is dot.
finalinherited
fixNumber bool
Insert 0 before the decimal point if the number starts with a decimal point Insert 0 after the decimal point if the number ends with a decimal point
finalinherited
groupDigits int?
Grouping of 2 or more digits with groupIntegerSeparator.
finalinherited
groupSeparator String
Grouping separator: default is comma.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
insertDecimalDigits bool
Always add decimal digits.
finalinherited
insertDecimalPoint bool
Automatically insert decimal point.
finalinherited
integerDigits int?
Maximum number of integer digits.
latefinalinherited
maxDecimal String?
The maximum value of the decimal when the integer part reaches the maximum.
latefinalinherited
maxInteger String?
Maximum value of integer.
latefinalinherited
overrideDecimalPoint bool
Allow to change decimal point position?
finalinherited
prefix String?
Insert prefix after format.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
suffix String?
Insert suffix after format.
finalinherited

Methods

formatEditUpdate(TextEditingValue oldValue, TextEditingValue newValue) TextEditingValue
Called when text is being typed or cut/copy/pasted in the EditableText.
inherited
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