putBool method
Stores a boolean value under the key, replacing any existing value. @param key Key to set. @param value Value to store.
Dart code snippet: @snippet storage_manager_example.dart dart_KeyValueStorage_putBool
Implementation
@override
void putBool(String key, bool value) {
final _putBoolFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Void Function(Pointer<Void>, Pointer<Void>, Uint8),
void Function(Pointer<Void>, Pointer<Void>, int)
>('navigine_sdk_flutter_KeyValueStorage_putBool__Key_Value'));
final _keyHandle = navigine_sdk_flutter_String_ToFfi(key);
final _valueHandle = navigine_sdk_flutter_bool_ToFfi(value);
final _handle = this.handle;
_putBoolFfi(_handle, _keyHandle, _valueHandle);
navigine_sdk_flutter_String_ReleaseFfiHandle(_keyHandle);
navigine_sdk_flutter_bool_ReleaseFfiHandle(_valueHandle);
}