endAt abstract method

Query endAt(
  1. dynamic value, {
  2. String? key,
})

Creates a Query with the specified ending point. The generated Query includes children which match the specified ending point. If no arguments are provided, the ending point will be the end of the data.

The ending point is inclusive, so children with exactly the specified priority will be included. Though if the optional name is specified, then children that have exactly the specified priority must also have a name less than or equal to the specified name.

endAt() can be combined with startAt() or limitToFirst() or limitToLast() to create further restrictive queries.

Implementation

Query endAt(dynamic value, {String? key});