getLargeInt method
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 to0).
Returns
- The stored 64-bit integer value, or
defaultValueif not found.
Also see:
- setLargeInt: to store a 64-bit integer value.
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'];
}