getPeers method

Future<List<NearbyDevice>> getPeers()

A single retrieval of the current list of devices in a P2P network.

Returns the list of NearbyDevice that have been stored so far. If you want to use a constantly updated list of devices, use getPeersStream.

Implementation

Future<List<NearbyDevice>> getPeers() {
  return NearbyServicePlatform.instance.getPeers();
}