1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
pub struct StreamController<T> {
pub data: T,
// done → Future
// A future which is completed when the stream controller is done sending events. [...]
// read-only, override
// hashCode → int
// The hash code for this object. [...]
// read-only, inherited
// hasListener → bool
// Whether there is a subscriber on the Stream.
// read-only
// isClosed → bool
// Whether the stream controller is closed for adding more events. [...]
// read-only
// isPaused → bool
// Whether the subscription would need to buffer events. [...]
// read-only
// onCancel ↔ (FutureOr<void> Function?()?)
// The callback which is called when the stream is canceled. [...]
// read / write
// onListen ↔ (void Function?()?)
// The callback which is called when the stream is listened to. [...]
// read / write
// onPause ↔ (void Function?()?)
// The callback which is called when the stream is paused. [...]
// read / write
// onResume ↔ (void Function?()?)
// The callback which is called when the stream is resumed. [...]
// read / write
// runtimeType → Type
// A representation of the runtime type of the object.
// read-only, inherited
// sink → StreamSink<T>
// Returns a view of this object that only exposes the StreamSink interface.
// read-only
// stream → Stream<T>
// The stream that this controller is controlling.
// read-only
}