get_ip_address 0.0.4 copy "get_ip_address: ^0.0.4" to clipboard
get_ip_address: ^0.0.4 copied to clipboard

outdated

A package to get the ip address of the current device. This is currently supported on Android and iOS.

example/example.dart

import 'package:get_ip_address/get_ip_address.dart';

void main() async {
  try {
    /// Initialize Ip Address
    var ipAddress = IpAddress(type: RequestType.json);
    /// Get the IpAddress based on requestType.
    dynamic data = await ipAddress.getIpAddress();
    print(data.toString());
  } on IpAddressException catch (exception) {
    /// Handle the exception.
    print(exception.message);
  }
}
45
likes
0
pub points
97%
popularity

Publisher

unverified uploader

A package to get the ip address of the current device. This is currently supported on Android and iOS.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

data_connection_checker, http

More

Packages that depend on get_ip_address