mapItems<R> method

  1. @override
Future<Page<R>> mapItems<R>(
  1. FutureOr<List<R>> fn(
    1. List<T> items
    )
)
override

Maps the type of the items to a different type. The same mapper function will be called on subsequent pages.

Implementation

@override
Future<Page<R>> mapItems<R>(
    FutureOr<List<R>> Function(List<T> items) fn) async {
  return _CastPage(await fn(items), isLast, next, close, fn);
}