SeparatedNumberInputFormatter class

A TextInputFormatter that allows the insertion of digits separated each number of digits by separator.

This formatter has an ability to allow only the insertion of digits. So you don't need to add WhitelistingTextInputFormatter.digitsOnly to inputFormatters of your text field.

Inheritance

Constructors

SeparatedNumberInputFormatter(int digits, {String separator = ' '})

Properties

digits int
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
separator String
Default is a space(' ').
final

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 non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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