Query class
Represents a query over the data at a particular location.
- Implementers
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onChildAdded
→ Stream<
Event> -
Fires when children are added.
no setter
-
onChildChanged
→ Stream<
Event> -
Fires when children are changed.
no setter
-
onChildMoved
→ Stream<
Event> -
Fires when children are moved.
no setter
-
onChildRemoved
→ Stream<
Event> -
Fires when children are removed.
previousChildKey
is null.no setter -
onValue
→ Stream<
Event> -
Fires when the data at this location is updated.
previousChildKey
is null.no setter - path → String
-
Slash-delimited path representing the database location of this query.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
buildArguments(
) → Map< String, dynamic> -
endAt(
dynamic value, {String key}) → Query - Create a query constrained to only return child nodes with a value less than or equal to the given value, using the given orderBy directive or priority as default, and optionally only child nodes with a key less than or equal to the given key.
-
equalTo(
dynamic value, {String key}) → Query -
Create a query constrained to only return child nodes with the given
value
(andkey
, if provided). -
keepSynced(
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.
-
limitToFirst(
int limit) → Query - Create a query with limit and anchor it to the start of the window.
-
limitToLast(
int limit) → Query - Create a query with limit and anchor it to the end of the window.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
once(
) → Future< DataSnapshot> - Listens for a single value event and then stops listening.
-
orderByChild(
String key) → Query - Generate a view of the data sorted by values of a particular child key.
-
orderByKey(
) → Query - Generate a view of the data sorted by key.
-
orderByPriority(
) → Query - Generate a view of the data sorted by priority.
-
orderByValue(
) → Query - Generate a view of the data sorted by value.
-
reference(
) → DatabaseReference - Obtains a DatabaseReference corresponding to this query's location.
-
startAt(
dynamic value, {String key}) → Query - Create a query constrained to only return child nodes with a value greater than or equal to the given value, using the given orderBy directive or priority as default, and optionally only child nodes with a key greater than or equal to the given key.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited