isOnPage function

Matcher isOnPage(
  1. Object? pageKey
)

Matches a PaginationController whose currentPageKey equals pageKey.

expect(controller, isOnPage(2));

Implementation

Matcher isOnPage(Object? pageKey) => _IsOnPage(pageKey);