Country class

Reads the IP2Location Country Information CSV file and returns the country information.

This file is free for download at https://www.ip2location.com/free/country-information.

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

getAllCountryInfo() List<Map<String, String>>
Gets the country information for all countries.
getCountryInfo(String countryCode) Map<String, String>?
Gets the country information for the supplied country code.
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

fromFile(String csvFile) Future<Country>
Creates a Country instance by reading and parsing a CSV file.