clear method

Future<bool> clear()

Implementation

Future<bool> clear() async {
  // Get SharedPreferences ref
  SharedPreferences ref = await SharedPreferences.getInstance();
  return ref.clear();
}