delete static method

Future delete(
  1. String key, {
  2. bool andFromBackpack = false,
})

Deletes associated value for the given key.

Implementation

static Future delete(String key, {bool andFromBackpack = false}) async {
  if (andFromBackpack == true) {
    Backpack.instance.delete(key);
  }
  return await StorageManager.storage.delete(key: key);
}