hasPaginationError function

Matcher hasPaginationError([
  1. Object? error
])

Matches a PaginationController that currently has an error.

When error is provided, also checks that the error matches.

expect(controller, hasPaginationError());
expect(controller, hasPaginationError('Network error'));

Implementation

Matcher hasPaginationError([Object? error]) => _HasPaginationError(error);