getNullableBool method
Implementation
bool? getNullableBool(String key, bool? def)
{
try
{
if (!_sharedPreferences.containsKey(key))
return def;
final bool? b = _sharedPreferences.getBool(key);
if (b == null)
return def;
return b;
}
catch (e)
{
logInfo(e.toString());
logInfo('${_sharedPreferences.get(key)}');
return def;
}
}