getDouble method

double getDouble(
  1. String key, {
  2. double defaultValue = 0.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

double getDouble(final String key, {double defaultValue = 0.0}) {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'SettingsService',
    'getValueDouble',
    args: <String, dynamic>{'first': key, 'second': defaultValue},
  );

  return resultString['result'];
}