tryBool method

  1. @override
bool? tryBool(
  1. K key
)
override

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;
  }
}