remove method

  1. @override
Future<bool> remove(
  1. String key
)

Removes an entry from persistent storage.

Returns false if the platform implementation can definitively determine that removing the preference failed. A return value of true indicates either that the value was removed successfully, or that the underlying platform API does not report success or failure.

Implementation

@override
Future<bool> remove(String key) async {
  return _data.remove(key) != null;
}