fetchFromRemote method

  1. @protected
Future<T?> fetchFromRemote(
  1. String id, {
  2. QueryParams? queryParams,
  3. Map<String, dynamic>? extra,
  4. Map<String, String>? headers,
})

Fetches an item from the remote API.

This is a placeholder that should be overridden by concrete repository. QueryParams Additional query parameters for filtering (may be used for complex lookups).

Implementation

@protected
Future<T?> fetchFromRemote(
  String id, {
  QueryParams? queryParams,
  Map<String, dynamic>? extra,
  Map<String, String>? headers,
}) async {
  log.warning('fetchFromRemote() not implemented for $T');
  return null;
}