QueryPlatform class abstract

Represents a query over the data at a particular location.

Inheritance
  • Object
  • PlatformInterface
  • QueryPlatform
Implementers

Constructors

QueryPlatform({required DatabasePlatform database})
Create a QueryPlatform instance

Properties

database DatabasePlatform
The Database instance associated with this query
final
hashCode int
The hash code for this object.
no setterinherited
path String
Returns the path to this reference.
no setter
ref DatabaseReferencePlatform
Obtains a DatabaseReference corresponding to this query's location.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

get(QueryModifiers modifiers) Future<DataSnapshotPlatform>
Gets the most up-to-date result for this query.
keepSynced(QueryModifiers modifiers, bool value) Future<void>
By calling keepSynced(true) on a location, the data for that location will automatically be downloaded and kept in sync, even when no listeners are attached for that location. Additionally, while a location is kept synced, it will not be evicted from the persistent disk cache.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
observe(QueryModifiers modifiers, DatabaseEventType eventType) Stream<DatabaseEventPlatform>
Assigns the proper event type to a stream for DatabaseEventPlatform
onChildAdded(QueryModifiers modifiers) Stream<DatabaseEventPlatform>
Fires when children are added.
onChildChanged(QueryModifiers modifiers) Stream<DatabaseEventPlatform>
Fires when children are changed.
onChildMoved(QueryModifiers modifiers) Stream<DatabaseEventPlatform>
Fires when children are moved.
onChildRemoved(QueryModifiers modifiers) Stream<DatabaseEventPlatform>
Fires when children are removed. previousChildKey is null.
onValue(QueryModifiers modifiers) Stream<DatabaseEventPlatform>
Fires when the data at this location is updated. previousChildKey is null.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

verify(QueryPlatform instance) → void
Throws an AssertionError if instance does not extend QueryPlatform.
override