allInterfacesFactory method

Future<Iterable<NetworkInterface>> allInterfacesFactory(
  1. InternetAddressType type
)

Find all network interfaces with an the InternetAddressType specified.

Implementation

Future<Iterable<NetworkInterface>> allInterfacesFactory(
    InternetAddressType type) {
  return NetworkInterface.list(
    includeLinkLocal: true,
    type: type,
    includeLoopback: true,
  );
}