remove method

Future<void> remove()

Removes the value from persistent storage.

Uses the internal SharedPreferences instance to delete the value. After calling this method, get() will return null until a new value is set.

Example:

final username = PrfString('username');
await username.remove();

Implementation

Future<void> remove() async {
  final prefs = await Prf.getInstance();
  return await removeValue(prefs);
}