Countries class

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

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

Static Methods

all() List<Country>
gets all the countries as a List of Country
areaBiggerThan(double area) List<Country>
gets countries that are bigger than certain area by KM
areaSmallerThan(double area) CountryList
gets countries that are smaller than certain area by KM
byAlpha3Code(String code) Country
gets country by Alpha3 code for more see : https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3
byArea(double area) Country
gets country by exact area TODO : test this better
byCallingCode(String code) Country
gets country by Alpha3 code for more see : https://en.wikipedia.org/wiki/ISO_3166-1_numeric
byCapital(String capital) Country
gets country by capital name
byCode(String code) Country
gets country by Alpha2 code for more see : https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
byFlag(String flag) Country
gets country by flag emoji icon
byName(String name) Country
gets country by Name Example
byNumericCode(String code) Country
gets country by Alpha3 code for more see : https://en.wikipedia.org/wiki/ISO_3166-1_numeric
byRegion(String region) List<Country>
gets countries by region
byTimeZone(TimeZone timeZone) CountryList
gets countries of certain timezone
independent() List<Country>
gets all independent countries TODO: move this in as a check in Country model
unMembers() List<Country>