isClosed property

bool isClosed

Whether the underlying connection is closed.

Note that this will be true before close is called if the remote endpoint closes the connection.

Implementation

bool get isClosed => _done.isCompleted;