IpLocation class

IP address location. Can be empty for anonymous proxies.

Available extensions

Constructors

IpLocation.new(num? accuracyRadius, num? latitude, num? longitude, String? postalCode, String? timezone, City? city, Country? country, Continent? continent, List<Subdivision>? subdivisions)
Default constructor
IpLocation.fromJson(Map<String, dynamic> json)
Creates class instance from JSON Object that can be returned by Android or iOS agent, or can be a serialization result

Properties

accuracyRadius num?
IP address location detection radius. Smaller values (<50mi) are business/residential, medium values (50 < x < 500) are cellular towers (usually), larger values (>= 500) are cloud IPs or proxies, VPNs. Can be missing, in case of Tor/proxies.
final
city City?
City, when available
final
continent Continent?
Continent, when available. Will be missing for Tor/anonymous proxies.
final
country Country?
Country, when available. Will be missing for Tor/anonymous proxies.
final
hashCode int
The hash code for this object.
no setterinherited
latitude num?
Latitude Can be missing, in case of Tor/proxies.
final
longitude num?
Longitude Can be missing, in case of Tor/proxies.
final
postalCode String?
Postal code, when available
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subdivisions List<Subdivision>?
Administrative subdivisions array (for example states|provinces -> counties|parishes). Can be empty or missing. When not empty, can contain only top-level administrative units within a country, e.g. a state.
final
timezone String?
Timezone of the IP address location
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map
Serialize instance to JSON Object
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited