syncToBackpack method

dynamic syncToBackpack(
  1. String key,
  2. dynamic data
)

Sync a model to the backpack instance.

Implementation

syncToBackpack(String key, dynamic data) async {
  Backpack.instance.save(key, data);
}