PullCollection<Item> class abstract

Interface for pull collections.

Pull collections are collections where items are queried from the source.

For primary key / single object query support use PrimaryKeyPullCollection.

Implementers
Available Extensions

Constructors

PullCollection()
PullCollection.delegate(LengthDelegate getLength, ItemsDelegate<Item> getItems)
Creates an adapter using delegate functions to implement the interface.
factory
PullCollection.rest(RestClient client, String endpoint, {Map<String, dynamic> urlParams = const {}, Map<String, List<String>> query = const {}, Map<String, List<String>> headers = const {}, TransferBean<Item>? bean})
factory

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

getItems(int offset, int limit, {Map<String, dynamic> params = const {}, Map<String, List<String>> query = const {}}) Future<List<Item>>
getLength({Map<String, dynamic> params = const {}, Map<String, List<String>> query = const {}}) Future<int>
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