putDouble method
Stores a 64-bit floating-point value under the key, replacing any existing value.
key Key to set.
value Value to store.
Example:
// Store double values
_userStorage!.putDouble("user_location_lat", 55.7558);
_userStorage!.putDouble("user_location_lng", 37.6176);
print("Stored double values");
Implementation
@override
void putDouble(String key, double value) {
final _putDoubleFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Void Function(Pointer<Void>, Pointer<Void>, Double),
void Function(Pointer<Void>, Pointer<Void>, double)
>('navigine_sdk_flutter_KeyValueStorage_putDouble__Key_Value'));
final _keyHandle = navigine_sdk_flutter_String_ToFfi(key);
final _valueHandle = navigine_sdk_flutter_double_ToFfi(value);
final _handle = this.handle;
_putDoubleFfi(_handle, _keyHandle, _valueHandle);
navigine_sdk_flutter_String_ReleaseFfiHandle(_keyHandle);
navigine_sdk_flutter_double_ReleaseFfiHandle(_valueHandle);
}