getBool method
Returns the stored bool, or defaultValue if not found.
Implementation
bool? getBool(String key, {bool? defaultValue}) {
try {
return _store.getBool(key) ?? defaultValue;
} catch (e, st) {
throw StorageException(
message: 'Failed to get bool',
key: key,
cause: e,
stackTrace: st,
);
}
}