getBool abstract method

bool getBool(
  1. String key,
  2. bool defaultValue
)

Gets a boolean value. Returns defaultValue if the key is missing or the stored type is not bool. @param key Lookup key. @param defaultValue Value to return when not found or type mismatch. @return Stored bool or defaultValue.

Dart code snippet: @snippet storage_manager_example.dart dart_KeyValueStorage_getBool

Implementation

bool getBool(String key, bool defaultValue);