isClosed property

bool get isClosed

Whether the stream has been closed.

Implementation

bool get isClosed => _state.value == StreamState.closed;