IpCountryLookup class
Looks up public-IP, country, and ISP information for the current connection.
IpCountryLookup is a singleton. Each method call performs a new lookup; results are not cached.
Constructors
- IpCountryLookup()
-
Returns the shared lookup instance.
factory
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
-
getIpLocationData(
) → Future< IpCountryData> - Looks up the caller's public IP, country, and ISP.
-
getUserIpAddress(
) → Future< String> - Returns the caller's validated public IPv4 or IPv6 address.
-
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