PreventSpacesFormatter class
A TextInputFormatter helper that strips all whitespace characters as the user types.
Returns a formatter list ready for use in a TextField.inputFormatters field.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
-
format(
) → List< TextInputFormatter> - Returns a formatter list that strips all whitespace characters as the user types.