clear method

Future<bool> clear()

Implementation

Future<bool> clear() async {
  _sharedPreferences.getKeys().forEach((key) async {
    await _sharedPreferences.remove(key);
  });

  return Future.value(true);
}