GrockInputFormatter class

Usage:

final maskFormatter = GrockInputFormatter(
  mask: '+# (###) ###-##-##',
  filter: { "#": RegExp(r'[0-9]') },
  type: GrockMaskAutoCompletionType.lazy
);
Implemented types

Constructors

GrockInputFormatter({String? mask, Map<String, RegExp>? filter, String? initialText, GrockMaskAutoCompletionType type = GrockMaskAutoCompletionType.lazy})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type GrockMaskAutoCompletionType
final

Methods

clear() → void
formatEditUpdate(TextEditingValue oldValue, TextEditingValue newValue) TextEditingValue
Called when text is being typed or cut/copy/pasted in the EditableText.
override
getMask() String?
getMaskedText() String
getUnmaskedText() String
isFill() bool
maskText(String text) String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
unmaskText(String text) String
updateMask({String? mask, Map<String, RegExp>? filter}) TextEditingValue

Operators

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