getBool abstract method
Returns the bool value linked to the key, otherwise defaultValue.
If key does not exist in the JSON object, or if there is a specific default value that
you want to return when the value associated with key is null, set it to the
argument defaultValue.
Implementation
bool getBool({
required String key,
bool defaultValue = false,
});