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