isClosed property

  1. @override
bool get isClosed

Whether close has been called.

Reading this does not create the queue: asking whether a publisher is closed used to materialise a StreamController with a live subscription nobody would ever close, and pinned the zone that receives handler errors to whoever asked first.

Implementation

@override
bool get isClosed => _closed;