EventSubscription<T extends GeneratedMessage> class
A subscription for events.
To consume unpacked typed event messages, use eventMessages. To use events with metadata, use events.
To stop receiving updates from the server, invoke unsubscribe. This will cancel the subscription both on the client and on the server, stopping the changes from being reflected to Firebase.
Please note that only broadcast streams are supported. It is a responsibility of end-users to convert any streams to broadcast streams prior to using this class.
- Inheritance
-
- Object
- Subscription<
Event> - EventSubscription
Constructors
- EventSubscription.of(FirebaseSubscription firebaseSubscription, FirebaseClient database)
-
factory
Properties
- closed → bool
-
Shows if this subscription is still active or already closed.
no setterinherited
-
eventMessages
→ Stream<
T> -
A stream of typed event messages.
no setter
-
events
→ Stream<
Event> -
A stream of events along with their metadata, such as
EventContext
s.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subscription → Subscription
-
A future for the subscription message.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
unsubscribe(
) → void -
Closes this subscription.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited