after method
- K? key,
- C? cursor,
- int count
override
Fetches the Page after the provided key
or cursor
.
Implementation
@override
Future<Page<T, C>> after(K? key, C? cursor, int count) async {
if (reversed) {
return (await fetch(before: cursor, last: count)).reversed();
} else {
return fetch(after: cursor, first: count);
}
}