onCancel property

Stream<void> get onCancel

A stream that emits when cancellation is requested.

Implementation

Stream<void> get onCancel => _controller.stream;