deleteAll static method

Future<void> deleteAll(
  1. Iterable<String> keys
)

Implementation

static Future<void> deleteAll(Iterable<String> keys) async {
  final prefs = await SharedPreferences.getInstance();
  for (final key in keys) {
    await prefs.remove('$_prefix$key');
  }
}