getBoolValueFromKey static method

Future<bool> getBoolValueFromKey(
  1. String key
)

Implementation

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