getBool method

  1. @protected
Future<bool?> getBool(
  1. String key
)
inherited

Gets true if the key has the value "true", otherwise false.

Implementation

@protected
Future<bool?> getBool(String key) async {
  final String? result = await get(key);
  if (result == null) {
    return null;
  }
  return bool.tryParse(result);
}