isConnected property

bool isConnected

A bool to know whether the Peer's connection is alive

Implementation

bool get isConnected => _peer != null && !_peer!.isClosed;