get abstract method

Future<CacheableResource<SourceModel>> get(
  1. int id, {
  2. DateTime? ifModifiedSince,
  3. String? eTag,
})

Fetches the source for the given id.

The ifModifiedSince is used for change detection. Send the ifModifiedSince returned by the most recent CacheableResource, or NULL to always refresh the data.

Returns a SourceModel as a CacheableResource.

Throws NotModifiedException if no change was detected.

Implementation

Future<CacheableResource<SourceModel>> get(int id, {DateTime? ifModifiedSince, String? eTag});