PageMixin<T> class abstract

PageMixin can be used as a mixin to make a class implement the Page interface.

Implemented types

Constructors

PageMixin()

Properties

hashCode int
The hash code for this object.
no setterinherited
isLast bool
Whether this is the last page, or there may be more pages. There is no guarantee that the next page will contain items.
no setterinherited
items List<T>
The items of the return page, may be less than the requested limit.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

asIterator() StreamIterator<T>
Transform the page and returns an iterator that can go through it asynchronously.
override
asStream() Stream<T>
Transform the page to a stream of items.
override
close() Future<void>
Closes the page and associated resources.
inherited
map<R>(FutureOr<R> fn(T item)) Future<Page<R>>
Maps the type of the items to a different type. The same mapper function will be called on subsequent pages.
override
mapItems<R>(FutureOr<List<R>> fn(List<T> items)) Future<Page<R>>
Maps the type of the items to a different type. The same mapper function will be called on subsequent pages.
override
next() Future<Page<T>>
Returns the next page.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited