getInt 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
int getInt(final String key, {int defaultValue = 0}) {
final OperationResult resultString = objectMethod(
_pointerId,
'SettingsService',
'getValueInt',
args: <String, dynamic>{'first': key, 'second': defaultValue},
);
return resultString['result'];
}