IDKitNumeralTextInputFormatter class

Text number input formatter.

Inheritance

Constructors

IDKitNumeralTextInputFormatter({num? maxValue, num? minValue, int? maxLength, int? maxDecimalDigit, bool decimalPoint = true, NumeralFormatterType formatterType = NumeralFormatterType.none, StreamController<InputFormatterError>? errorStreamController})
IDKitNumeralTextInputFormatter.length({required int? maxLength, StreamController<InputFormatterError>? errorStreamController})
Limit the maximum length of the input value.
IDKitNumeralTextInputFormatter.max({required num? maxValue, int? maxDecimalDigit, bool decimalPoint = true, StreamController<InputFormatterError>? errorStreamController})
Limit the maximum value of the input value.
IDKitNumeralTextInputFormatter.min({required num? minValue, int? maxDecimalDigit, bool decimalPoint = true, StreamController<InputFormatterError>? errorStreamController})
Limit the minimum value of the input value.
IDKitNumeralTextInputFormatter.range({required num? minValue, required num? maxValue, int? maxDecimalDigit, bool decimalPoint = true, StreamController<InputFormatterError>? errorStreamController})
Limit the range of input values.

Properties

decimalPoint bool
Whether the decimal point is available. Default true.
getter/setter pair
errorStreamController StreamController<InputFormatterError>?
Enter the control object of the abnormal event.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
maxDecimalDigit int?
Maximum number of decimal places that can be entered.
getter/setter pair
maxLength int?
The maximum length of the maximum value that can be entered.
getter/setter pair
maxValue num?
The maximum value that can be entered.
getter/setter pair
minValue num?
The minimum value that can be entered.
getter/setter pair
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
verifyLength(String curValue, String oldValue, int length, dynamic call(String, bool)?) → dynamic
Verify length.
inherited
verifyMaximumDecimal(String curValue, String oldValue, int digit, dynamic call(String, bool)?) → dynamic
inherited
verifyMaxValue(String curValue, String oldValue, num maxValue, dynamic call(String, bool)?) → dynamic
Verify maxvalue.
inherited
verifyMinValue(String curValue, String oldValue, num minValue, dynamic call(String, bool)?) → dynamic
Verify minvalue.
inherited
verifyRange(String curValue, String oldValue, num minValue, num maxValue, dynamic call(String, bool)?) → dynamic
Verify range.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited