TheNumber class
A class having all the vitals about a Country's number, this is generally obtained by using TheCountryNumber().parse()
- Implementers
Constructors
- TheNumber({bool hasNumber = false, bool isValidLength = false, String dialCode = "", String number = "", String internationalNumber = "", TheCountry country = const TheCountry(_TheCountry())})
-
A class having all the vitals about a Country's number, this is generally obtained by using
TheCountryNumber().parse()
Properties
- country → TheCountry
-
The vitals of the Country the number belongs to
final
- dialCode → String
-
The dial-code of the Country inlcluding
+
at the start for example+91
of india or+1
of USA,final - hashCode → int
-
The hash code for this object.
no setteroverride
- hasNumber → bool
-
Whether this TheNumber contains the number component
final
- internationalNumber → String
-
The phone number component with dial-code
final
- isValidLength → bool
-
Whether this TheNumber's number component is of correct length
final
- number → String
-
The phone number component without any dial-code
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addNumber(
String number) → TheNumber? - Returns new TheNumber by populating this with new number provided
-
isNotANumber(
) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeNumber(
) → TheNumber? - Returns new TheNumber by removing the number component
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override