CountryData class Core

Compact country metadata including display name, ISO code and flag.

This value object is returned by several MapDetails helpers (for example, MapDetails.getCountryData and MapDetails.allCountriesData) and can be used by clients to display country information or retrieve flag images.

See also:

  • MapDetails - Utilities for querying map metadata and country information.

Constructors

CountryData.new({required String name, required String isoCode, Img? flagImage})
Creates a CountryData instance.

Properties

flagImage Img?
The country flag image, if available.
final
hashCode int
The hash code for this object.
no setteroverride
isoCode String
The ISO 3166-1 alpha-3 country code.
final
name String
The 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 ==(covariant CountryData other) bool
The equality operator.
override