Countries class

This class is a collection of all the countries.

It contains a list of all the countries and provides methods to find a country by its name, code or dial code.

Constructors

Countries()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

findBy(Filter filter) List<Country>
Find matching countries the given filter, returns list of countries
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
operator [](Filter filter) List<Country>
Returns a list of countries that match the given filter

Static Properties

list List<Country>
Returns a list of all the countries
no setter

Static Methods

findByCode(String code) Country
Returns a Country by its name code
findByDialCode(String code) List<Country>
Returns a List of countries by its dial code
findByName(String name) Country
Returns a Country by its name