getItems method
Loads all items that match the given request details, or the default
RequestDetails.read object if not given.
Implementation
Future<List<T>> getItems({RequestDetails? details}) async {
await ready;
final result = await sourceList.getItems(
ReadListOperation(
operationId: generateOperationId(),
details: details ?? RequestDetails.read(),
createdAt: getTime(),
),
);
switch (result) {
case ReadListSuccess<T>():
return result.itemsOrRaise();
case ReadListFailure<T>():
return <T>[];
}
}