remove method
Removes the value associated with key
and notifies all active listeners
that key
was removed. When a key is removed, the listeners associated
with it will emit their defaultValue
value.
Returns true if key
was successfully removed, otherwise returns false.
Implementation
Future<bool> remove(String key) {
return _updateAndNotify(key, _preferences.remove(key));
}