putDouble method

  1. @override
void putDouble(
  1. String key,
  2. double value
)
override

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>, NativeString, Double),
        void Function(Pointer<Void>, NativeString, double)
      >('navigine_sdk_flutter_KeyValueStorage_putDouble__Key_Value'));
    _putDoubleFfi(this.ptr, toNativeString(key), value);
    exception.checkCallResult();
}