askarSessionRemoveKey function
- SessionHandle handle,
- String name
Implementation
Future<AskarCallbackResult> askarSessionRemoveKey(
SessionHandle handle,
String name,
) async {
Pointer<Utf8> namePointer = nullptr;
try {
namePointer = name.toNativeUtf8();
final callback = newCallbackWithoutHandle();
final result = nativeAskarSessionRemoveKey(
handle.toInt(),
namePointer,
callback.nativeCallable.nativeFunction,
callback.id,
);
return await callback.handleResult(result);
} finally {
freePointer(namePointer);
}
}