PhoneNumberMaskParser class

Main package class.
☎️ Dart package of simple parsing of phone numbers and various masking options.

Constructors

PhoneNumberMaskParser({String? targetMask, String defaultMask = "+### ### #### ####", bool isPlus = true, bool isEndless = false})
targetMask The mask that will be used to bypass phone number parsing to overlay all phone numbers.
defaultMask The mask that will be used in case the phone number is not recognized.
isPlus The flag responsible for the plus sign at the very beginning.
isEndless The flag that does not truncate the last part of the phone number if it exceeds the length of the mask.
const

Properties

defaultMask String
The mask that will be used in case the phone number is not recognized.
final
hashCode int
The hash code for this object.
no setterinherited
isEndless bool
The flag that does not truncate the last part of the phone number if it exceeds the length of the mask.
final
isPlus bool
The flag responsible for the plus sign at the very beginning.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
targetMask String?
The mask that will be used to bypass phone number parsing to overlay all phone numbers.
final

Methods

apply({required String phoneNumber}) PhoneNumberMaskParserResult
The main method for applying the mask
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