IntegerTextInputFormatter class
- Inheritance
-
- Object
- TextInputFormatter
- IntegerTextInputFormatter
Constructors
- IntegerTextInputFormatter({int maxLength = 20, bool allowNegative = false, String exceedMaxLengthMessage = "Exceed max length", String invalidNegativeMessage = "Invalid negative number"})
-
const
Properties
- allowNegative → bool
-
final
- exceedMaxLengthMessage → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- invalidNegativeMessage → String
-
final
- maxLength → int
-
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
-
matches(
String value) → 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