Country class

Country information.

Constructors

Country({required String code, required String name})
Define a Country class with code and name.
const
Country.fromCode(String code)
Factory that initializes the Country class by its ISO 3166-1 code.
factory

Properties

code String
Country ISO 3166-1 code
final
hashCode int
The hash code for this object.
no setterinherited
name String
Country english 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