startAt method
Starts the range at value, included, and at children whose key is at least key among those equal
to value. A null value is a real bound (null priority or value). With no orderBy*,
value is a priority. Throws a StateError when a start bound is already set, and an
ArgumentError when key or the type of value is not allowed by the order (see the class
documentation).
Implementation
Query startAt(Object? value, {String? key}) {
validateKey('startAt', 'key', key, optional: true);
final QueryParams params = spec.params.startAt(
_boundNode('startAt', value),
key == null ? null : ChildKey(key),
);
_validateLimit(params);
_validateQueryEndpoints(params);
if (spec.params.hasStart) {
throw StateError(
'startAt: Starting point was already set (by another call to startAt, '
'startAfter or equalTo).',
);
}
return _with(params);
}