FetchStrategy typedef
FetchStrategy =
Future<FetchInstructions?> Function(Uri uri, FetchFailure? failure)
Decides whether and when to retry a failed fetch.
Called at least once per fetch (first call receives a null FetchFailure,
which indicates the first attempt). Returning instructions means
"retry after FetchInstructions/waitFor"; returning null means "give up
and surface the error".
Implementation
typedef FetchStrategy =
Future<FetchInstructions?> Function(Uri uri, FetchFailure? failure);