getInstance method

Future<SharedPreferences> getInstance()

Implementation

Future<SharedPreferences> getInstance() async {
  sharedPreferences ??= await SharedPreferences.getInstance();
  return sharedPreferences!;
}