Pages<T> class
Handles retrieval of a page through an offset
- Inheritance
-
- Object
- SinglePages<
T, Page< T> > - Pages
- Mixed in types
-
- OffsetStrategy<
Page< T> >
- OffsetStrategy<
Constructors
-
Pages(SpotifyApiBase api, String path, ParserFunction<
T> pageParser, [String? pageKey, ParserFunction<Object> ? pageContainerMapper]) -
Pages.fromPaging(SpotifyApiBase api, Paging<
T> paging, ParserFunction<T> pageParser, [String? pageKey, ParserFunction<Object> ? pageContainerMapper])
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
all(
[int limit = defaultLimit]) → Future< Iterable< T> > -
inherited
-
first(
[int limit = defaultLimit]) → Future< Page< T> > -
inherited
-
getPage(
int limit, [int offset = 0]) → Future< Page< T> > -
Abstract method that is used to do the api call and json serializing
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
stream(
[dynamic limit = defaultLimit]) → Stream< Page< T> > -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited