UsNumberTextInputFormatter class

Inheritance

Constructors

UsNumberTextInputFormatter({num? max, bool decimal = true, int? placesLength, int? onlyNumValue})

Properties

decimal bool
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
max num?
getter/setter pair
onlyNumValue int?
固定小数位,范围 null || 1-9placesLength=1时可用,
getter/setter pair
placesLength int?
小数位(decimal=true时生效)
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

Static Methods

strToFloat(String str, [double defaultValue = defaultDouble]) double

Constants

defaultDouble → const double