storeManifestInCache static method

void storeManifestInCache(
  1. Map<String, dynamic> data
)

Stores the data of the mission manifest in cache using SharedPreferences

Implementation

static void storeManifestInCache(Map<String, dynamic> data) async {
  // Getting an instance of SharedPreferences
  SharedPreferences prefs = await SharedPreferences.getInstance();

  // Storing the JSON-encoded data in cache
  prefs.setString('manifest', json.encode(data));
}