EventSubscription<T extends GeneratedMessage> class Null safety

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

Constructors

EventSubscription.of(FirebaseSubscription firebaseSubscription, FirebaseClient database)
factory

Properties

closed bool
Shows if this subscription is still active or already closed.
read-only, inherited
eventMessages Stream<T>
A stream of typed event messages.
read-only
events Stream<Event>
A stream of events along with their metadata, such as EventContexts.
read-only
hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
subscription Subscription
A future for the subscription message.
final, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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