MiniSubscription<T> class

Represents a mini subscription for a stream.

Constructors

MiniSubscription(OnData<T> data, Function? onError, Callback? onDone, bool cancelOnError, FastList<T> listener)
Constructs a MiniSubscription with required data handler, optional onError handler, optional onDone callback, cancelOnError flag, and listener to attach.
const

Properties

cancelOnError bool
Flag indicating whether to cancel the subscription on error.
final
data OnData<T>
Callback function to handle incoming data events.
final
hashCode int
The hash code for this object.
no setterinherited
listener FastList<T>
The listener to which this subscription is attached.
final
onDone Callback?
Callback function to be executed when the stream is done.
final
onError Function?
Error handler function.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancel() Future<void>
Cancels the subscription.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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