page 1.1.0 copy "page: ^1.1.0" to clipboard
page: ^1.1.0 copied to clipboard

outdated

Data structure to help paginating (e.g. cursor- or next-token-driven) API calls.

example/page_example.dart

import 'package:page/page.dart';

main() async {
  final Page page = await null; // There goes a call to the database.

  final iterator = page.asIterator();
  // iterator will request the next page when needed

  while (await iterator.moveNext()) {
    print(iterator.current); // prints current item
  }
}
1
likes
0
pub points
46%
popularity

Publisher

verified publisheragilord.com

Data structure to help paginating (e.g. cursor- or next-token-driven) API calls.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on page