NetworkInterface class - dart:io library (original) (raw)

A NetworkInterface represents an active network interface on the current system. It contains a list of InternetAddresses that are bound to the interface.

Properties

addressesList<InternetAddress>

The list of InternetAddresses currently bound to thisNetworkInterface.

no setter

hashCodeint

The hash code for this object.

no setterinherited

indexint

The index of the NetworkInterface.

no setter

nameString

The name of the NetworkInterface.

no setter

runtimeTypeType

A representation of the runtime type of the object.

no setterinherited

Methods

noSuchMethod(Invocation invocation)→ dynamic

Invoked when a nonexistent method or property is accessed.

inherited

toString()→ String

A string representation of this object.

inherited

Operators

operator ==(Object other)→ bool

The equality operator.

inherited

Static Properties

listSupportedbool

Whether the list method is supported.

no setter

Static Methods

list({bool includeLoopback = false, bool includeLinkLocal = false, InternetAddressType type = InternetAddressType.any})→ Future<List<NetworkInterface>>

Query the system for NetworkInterfaces.