getBool static method
Implementation
static bool? getBool(String key) {
checkInit();
if (key.startsWith('!')) {
bool? val;
if (_justCache)
val = cache[prefix + key.substring(1)];
else
val = sharedPreferences!.getBool('$prefix${key.substring(1)}');
if (val == null) return null;
return !val;
}
if (_justCache)
return cache['$prefix$key'];
else
return sharedPreferences!.getBool('$prefix$key');
}