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
-
- Object
- PullCollection<
Item> - PrimaryKeyPullCollection
- 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< query = const {}, Map<String> >String, List< headers = const {}, TransferBean<String> >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< query = const {}}) → Future<String> >List< Item> > -
inherited
-
getLength(
{Map< String, dynamic> params = const {}, Map<String, List< query = const {}}) → Future<String> >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