syncToBackpack static method
Sync all the keys stored to the Backpack instance.
Implementation
static Future syncToBackpack() async {
Map<String, String> values = await readAll();
for (var data in values.entries) {
dynamic result = await NyStorage.read(data.key);
Backpack.instance.set(data.key, result);
}
}