startAfter method
Starts the range just after value (and after key among children equal to value). A null
value is a real bound. Throws as startAt does.
Implementation
Query startAfter(Object? value, {String? key}) {
validateKey('startAfter', 'key', key, optional: true);
final QueryParams params = spec.params.startAfter(
_boundNode('startAfter', value),
key == null ? null : ChildKey(key),
);
_validateLimit(params);
_validateQueryEndpoints(params);
if (spec.params.hasStart) {
throw StateError(
'startAfter: Starting point was already set (by another call to startAt, '
'startAfter, or equalTo).',
);
}
return _with(params);
}