CountryDialCode class
CountryDialCode class.
Constructors
- CountryDialCode({required String code, required String dialCode, required String flagURI, required String name})
-
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 from
json
Map.factory
Properties
- code → String
-
Country ISO 3166-1 Alpha-2 code.
final
- dialCode → String
-
Country dial code.
final
- flagURI → String
-
Country flag URI.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Country name.
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