ApiRequest typedef

ApiRequest = Future<Object?> Function(Uri uri)

Makes a GET request to uri and returns its response body.

The body may be a decoded JSON value or plain text. Implementations may throw; ApiRepo treats a thrown value as a provider failure and moves to the next fallback.

Implementation

typedef ApiRequest = Future<Object?> Function(Uri uri);