askarStoreListProfiles function

Future<AskarResult<StringListHandle>> askarStoreListProfiles(
  1. StoreHandle handle
)

Implementation

Future<AskarResult<StringListHandle>> askarStoreListProfiles(StoreHandle handle) async {
  final callback = newCallbackWithHandle();

  final initialResult = nativeAskarStoreListProfiles(
    handle.toInt(),
    callback.nativeCallable.nativeFunction,
    callback.id,
  );

  final completedResult = await callback.handleResult(initialResult);

  return AskarResult(completedResult.errorCode, completedResult.value);
}