Region class

Parses the IP2Location ISO 3166-2 Subdivision Code CSV file and returns the region code.

This file is free for download at https://www.ip2location.com/free/iso3166-2.

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

getRegionCode(String countryCode, String regionName) String?
Returns the region code for the supplied countryCode and regionName.
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<Region>
Creates a Region instance by reading and parsing a CSV file.