lookup method

Future<List<InternetAddress>> lookup(String host, { InternetAddressType type: InternetAddressType.ANY })

Lookup a host, returning a Future of a list of InternetAddresss. If type is InternetAddressType.ANY, it will lookup both IP version 4 (IPv4) and IP version 6 (IPv6) addresses. If type is either InternetAddressType.IP_V4 or InternetAddressType.IP_V6 it will only lookup addresses of the specified type. The order of the list can, and most likely will, change over time.

Source

external static Future<List<InternetAddress>> lookup(String host,
    {InternetAddressType type: InternetAddressType.ANY});

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-io/InternetAddress/lookup.html