getBoolean method

bool getBoolean(
  1. String key
)

Access a bool value.

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

Implementation

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

  return get(key);
}