clear method Null safety

Future<bool> clear()

Completes with true once the user preferences for the app has been cleared.

Implementation

Future<bool> clear() {
  _preferenceCache.clear();
  return _store.clear();
}