lookup static method

Future<List<InternetAddress>> lookup(
  1. String host
)

Stub method for DNS lookup on web platforms.

Always throws an UnsupportedError because DNS lookups are not available in Flutter Web.

Implementation

static Future<List<InternetAddress>> lookup(String host) async {
  throw UnsupportedError('DNS lookup is not supported on web platforms');
}