getBool method

bool? getBool(
  1. String name, {
  2. bool? defaultValue,
})

Get a boolean value with a fallback

Implementation

bool? getBool(String name, {bool? defaultValue}) {
  return get<bool>(name) ?? defaultValue;
}