DatabaseObserver<T> class

Database observer for setting up event handlers and subscriptions with type safety

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

fields(List<String> fields) → DatabaseObserver<T>
Set field projection for the subscription
filter(DatabaseFilter filter) → DatabaseObserver<T>
Set filter conditions with type safety
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
on(String event, dynamic handler) → DatabaseObserver<T>
Set up event handlers for database changes
onDelete(DatabaseDeleteHandler handler) → DatabaseObserver<T>
Set up delete event handler with type safety
onInsert(DatabaseInsertHandler<T> handler) → DatabaseObserver<T>
Set up insert event handler with type safety
onUpdate(DatabaseUpdateHandler<T> handler) → DatabaseObserver<T>
Set up update event handler with type safety
subscribe() → Future<DatabaseSubscription>
Subscribe to database events with type safety
toString() → String
A string representation of this object.
inherited

Operators

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