remove static method

Future<void> remove(
  1. String key
)

Removes the preference with the given key.

Implementation

static Future<void> remove(String key) => sharedPrefs.remove(key);