CountryDialCode class

Country dial code.

Constructors

CountryDialCode({required String name, required String code, required String dialCode, required String flagURI})
Define a CountryDialCode class.
const
CountryDialCode.fromCountryCode(String countryCode)
Returns a CountryDialCode class by ISO 3166 Alpha-2 countryCode.
factory
CountryDialCode.fromDialCode(String dialCode)
Returns a CountryDialCode class by dialCode.
factory
CountryDialCode.fromJson(Map<String, dynamic> json)
Returns a CountryDialCode class from json Map.
factory

Properties

code String
The ISO 3166-1 Alpha-2 code.
final
dialCode String
The dial code of the country.
final
flagURI String
The URI flag saved in assets folder.
final
hashCode int
The hash code for this object.
no setterinherited
name String
The name of country.
final
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
toString() String
A string representation of this object.
inherited

Operators

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