retry method

Future<void> retry()

Implementation

Future<void> retry() async {
  // look up callbacks (or provide defaults)
  final _cbs = adapter.ref.read(_offlineCallbackProvider);
  final fns = _cbs[label.requestId] ?? (null, null);

  await adapter.sendRequest<T>(
    uri,
    method: method,
    headers: headers,
    label: label,
    body: body,
    onSuccess: fns.$1 as _OnSuccessGeneric<T>?,
    onError: fns.$2 as _OnErrorGeneric<T>?,
  );
}