getBool method
Get a value for the given key
Parameters
- IN key The key
- IN defaultValue The default value to return if the key is not found
Returns
- The value for the given key, or the default value if the key is not found
Throws
- An exception if it fails
Implementation
bool getBool(final String key, {bool defaultValue = false}) {
final OperationResult resultString = objectMethod(
_pointerId,
'SettingsService',
'getValueBool',
args: <String, dynamic>{'first': key, 'second': defaultValue},
);
return resultString['result'];
}