interfaces property

Future<List<NetworkInterface>> interfaces

Get all the interfaces found in this Host

Implementation

Future<List<NetworkInterface>> get interfaces{
  InternetAddressType type = InternetAddressType.any;
  if( _ipVersion == IPVersion.v4 )
    type = InternetAddressType.IPv4;
  else if( _ipVersion == IPVersion.v6 )
    type = InternetAddressType.IPv6;

  return NetworkInterface.list(includeLoopback: false, includeLinkLocal: true,
      type: type);
}