isOpen property

bool get isOpen

Whether the connection is open (accepted and not ended).

Implementation

bool get isOpen => _accepted && !_ended;