isDisconnected property

bool get isDisconnected

Implementation

bool get isDisconnected => this == ConnectionState.disconnected || isClosed;