BrPhoneStrip class
BrPhone as a digit-only value.
Brazilian phone numbers corresponding to the pattern '(##) #### - ####' will have the hyphen "-", the left "(" and right ")" parenthesis removed from them. However, if a number is already fully numeric (containing or not the Brazilian code prefix '+55'), it will remain as is. Finally, if the number is malformed, the value 'null' will be returned as an indication of a formatting error. For example:
- if the number is '(21) 1234-5678', then the return value will be '2112345678'
- if the number is '876543210', then the return value will also be '876543210'
- if the number contains the Brazilian code prefix (+55) like '+55876543210', then the return value will also be '+55876543210'
- if the number is malformed '83191+060', then the return value will be the null value
Constructors
- BrPhoneStrip.new(String _brPhone)
-
It strips the hyfen '-' and parenthesis from the BrPhone value.
const
Properties
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