getBool method

Future<bool?> getBool(
  1. String key
)

Implementation

Future<bool?> getBool(String key) async {
  final storage = await SharedPreferences.getInstance();
  return storage.getBool(key);
}