getBool method

bool getBool(
  1. String key
)

Returns the value for key as a bool.

Accepts 'true' / '1' / 'yes' (case-insensitive) as true; everything else is false.

Implementation

bool getBool(String key) {
  final raw = get(key).toLowerCase();
  return raw == 'true' || raw == '1' || raw == 'yes';
}