FXNumberInputFormatter class

当输入数字时,用于限制输入的位数; TextField( inputFormatters: //限制整数长度100,小数长度2 FXNumberInputFormatter(integerLength: 100, decimalLength: 2) , );

Inheritance

Constructors

FXNumberInputFormatter({int integerLength = 100, int decimalLength = 2})

Properties

allowInputDecimal bool
getter/setter pair
decimalLength int
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
integerLength int
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

Operators

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