IndianCurrencyInputFormatter class

Inheritance

Constructors

IndianCurrencyInputFormatter({int maxDecimals = 2, int? maxIntegerDigits, bool allowNegative = false, bool allowTrailingDecimal = true, String symbol = '₹', bool showSymbol = false, SymbolPosition symbolPosition = SymbolPosition.prefix, GroupingStyle groupingStyle = GroupingStyle.indian, String separator = ',', bool strictMode = false, RoundingMode roundingMode = RoundingMode.truncate, num? minValue, num? maxValue})
const

Properties

allowNegative bool
final
allowTrailingDecimal bool
final
groupingStyle GroupingStyle
final
hashCode int
The hash code for this object.
no setterinherited
maxDecimals int
final
maxIntegerDigits int?
final
maxValue num?
final
minValue num?
Optional minimum/maximum allowed value. If user tries to go outside this range, the old value is kept.
final
roundingMode RoundingMode
How to behave when user tries to enter more than maxDecimals.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
separator String
final
showSymbol bool
final
strictMode bool
When true, invalid patterns are rejected and the old value is kept.
final
symbol String
final
symbolPosition SymbolPosition
final

Methods

formatEditUpdate(TextEditingValue oldValue, TextEditingValue newValue) TextEditingValue
Called when text is being typed or cut/copy/pasted in the EditableText.
override
formatFromNum(num? value, {bool allowNegativeZero = false}) String
Utility you can use from widgets: formats a numeric value programmatically.
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