getLargeInt method

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

Retrieve a 64-bit integer value for key.

If the key does not exist the defaultValue is returned.

Parameters

  • key: The key to look up.
  • defaultValue: Value returned when the key is missing (defaults to 0).

Returns

  • The stored 64-bit integer value, or defaultValue if not found.

Also see:

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'];
}