map<R> abstract method

Future<Page<R>> map<R>(
  1. FutureOr<R> fn(
    1. T item
    )
)

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

The implementation will call the fn in sequence, eagerly.

Implementation

Future<Page<R>> map<R>(FutureOr<R> Function(T item) fn);