getLargeInt method

int getLargeInt(
  1. String key, {
  2. int defaultValue = 0,
})

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

  return resultString['result'];
}