isClosed property

bool get isClosed

Whether close has been called: from then on operations throw StateError.

Implementation

bool get isClosed => _closing != null;