PrimaryKeyPullCollection<Item, Id> class abstract

Interface for pull collections with primary key to query single objects.

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

See:

Inheritance
Available Extensions

Constructors

PrimaryKeyPullCollection()
PrimaryKeyPullCollection.delegate(LengthDelegate getLength, ItemsDelegate<Item> getItems, ItemByIdDelegate<Item, Id> getItemById)
Creates an adapter using delegate functions to implement the interface.
factory
PrimaryKeyPullCollection.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

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