TheCountryNumber class
A small library for flutter written in pure dart (doesn't use libphonenumber) which parses a phone number or iso2 code of a country to give you some vitals about the country, this library is a singleton so you can use the library right-away.
final theNumber = TheCountryNumber().parse();
just use the TheCountryNumber()
from anywhere to access its methods
Constructors
- TheCountryNumber()
-
get access to the already created instance of TheCountryNumber
factory
Properties
-
countries
→ List<
TheCountry> -
This is all the available countries this library supports, list can be found in the
data.dart
at the root of lib, if you need to do changes or add additional data please fork this repo and ask me to mergeno setter - 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
-
parseNumber(
{String? internationalNumber, String? dialCode, String? iso2Code, String? iso3Code, String? currency, String? name, String? englishName}) → TheNumber - Returns a TheNumber,
-
toString(
) → String -
A string representation of this object.
inherited
-
toString2(
) → String
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited