getBoolean method

bool? getBoolean(
  1. String key
)

Access a bool value.

Returns null if there is no such key or if it is not a bool.

Implementation

bool? getBoolean(String key) {
  if (get(key) is! bool) {
    return null;
  }

  return get(key);
}