tryBool method
Returns a value at key
as bool
or null if missing.
null
is returned if an underlying value is unavailable or cannot be
converted to bool.
Implementation
@override
bool? tryBool(K key) {
try {
return getBool(key);
} on Exception {
return null;
}
}