getNetworkInterfaces method

Future<List<NetworkInterface>> getNetworkInterfaces()

Retrieves information about local adapters on this system. |callback| : Called when local adapter information is available.

Implementation

Future<List<NetworkInterface>> getNetworkInterfaces() async {
  var $res = await $js.chrome.system.network.getNetworkInterfaces().toDart;
  return $res.toDart
      .cast<$js.NetworkInterface>()
      .map((e) => NetworkInterface.fromJS(e))
      .toList();
}