peers method

List<Peer> peers()

Returns the peers of the Gun instance.

Implementation

List<Peer> peers() {
  final object = _gun.back('root.opt.peers');
  final peers = values(object);
  return peers.map((e) => e as Peer).toList();
}