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
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