Skip to content

Instantly share code, notes, and snippets.

@dev4jam
Created March 21, 2022 06:50
Show Gist options
  • Save dev4jam/d1003800be7eb7f55773dfb89fc81bb8 to your computer and use it in GitHub Desktop.
Save dev4jam/d1003800be7eb7f55773dfb89fc81bb8 to your computer and use it in GitHub Desktop.
Isolate function call
final req = _PreparedNetworkRequest<Model>(
request,
parser,
_dio!,
{..._headers, ...(request.headers ?? {})},
onSendProgress,
onReceiveProgress,
);
final result = await compute(
executeRequest<Model>,
req,
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment