yeniel / native_shared_preferences

BSD 3-Clause "New" or "Revised" License
7 stars 23 forks source link

[Feature] removeAll method #14

Closed mkbsugita closed 1 year ago

mkbsugita commented 1 year ago

Add

  Future<void> removeAll(String key) async {
    var tmpRes = false;
    final keys = getKeys();
    for (final key in keys) {
      await remove(key);
    }
  }
yeniel commented 1 year ago

Hi! There is already the clear method that does the same. Thanks!! 🙂