clear static method

  1. @Deprecated('Use instance.clear() instead')
Future<void> clear({
  1. Set<String>? allowList,
})

Clears all SharedPreferences values. Optionally pass an allowList to retain specific keys.

Implementation

@Deprecated('Use instance.clear() instead')
static Future<void> clear({Set<String>? allowList}) async {
  throw UnsupportedError(
      'This method is deprecated. Use Prf.instance.clear() instead.');
}