StreamBeacon<T> class

Inheritance

Constructors

StreamBeacon(Stream<T> _stream, {bool cancelOnError = false})

Properties

cancelOnError bool
final
hashCode int
The hash code for this object.
no setterinherited
isNullable bool
no setterinherited
listeners → Listerners
finalinherited
previousValue AsyncValue<T>?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value AsyncValue<T>
no setterinherited

Methods

dispose() → void
Clears all registered listeners and reset the beacon to its initial state.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
peek() AsyncValue<T>
inherited
reset() → void
Resets the signal by calling the Stream again
override
subscribe(void callback(AsyncValue<T>), {bool startNow = false}) → VoidCallback
Subscribes to changes in the beacon returns a function that can be called to unsubscribe
inherited
toString() String
A string representation of this object.
inherited
unsubscribe() → void

Operators

operator ==(Object other) bool
The equality operator.
inherited