askarStoreRemoveProfile function
- StoreHandle handle,
- String profile
Implementation
Future<AskarCallbackResult> askarStoreRemoveProfile(
StoreHandle handle,
String profile,
) async {
Pointer<Utf8> profilePointer = nullptr;
try {
profilePointer = profile.toNativeUtf8();
final callback = newCallbackWithInt8();
final result = nativeAskarStoreRemoveProfile(
handle.toInt(),
profilePointer,
callback.nativeCallable.nativeFunction,
callback.id,
);
return await callback.handleResult(result);
} finally {
freePointer(profilePointer);
}
}