listAllPeers method

void listAllPeers(
  1. dynamic cb(
    1. List
    )
)

Implementation

void listAllPeers(Function(List<dynamic>) cb) {
  _api.listAllPeers().then((peers) => cb(peers)).catchError((error) => _abort(PeerErrorType.ServerError, error));
}