Skip to content

Instantly share code, notes, and snippets.

@M97Chahboun
Created June 8, 2022 12:10

Revisions

  1. M97Chahboun created this gist Jun 8, 2022.
    7 changes: 7 additions & 0 deletions main.dart
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    // Set it in first screen

    const String baseUrl = 'https://jsonplaceholder.typicode.com';
    // create request object
    RocketRequest request = RocketRequest(url: baseUrl);
    // save it, for use it from any screen
    rocket.add(rocketRequestKey, request);