getBool method

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

Retrieve a bool value

Implementation

Future<bool?> getBool(String key) async {
  final value = await getString(key);
  if (value == null) return null;
  return value.toLowerCase() == 'true';
}