suggestCancelable method
- {required String searchText,
- SuggestParameters? parameters}
Cancelable version of suggest. See that method for more information.
Implementation
CancelableOperation<List<SuggestResult>> suggestCancelable(
{required String searchText, SuggestParameters? parameters}) {
final coreSearchText = _CString(searchText);
final taskHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_LocatorTask_suggestCombined(
_handle,
coreSearchText.bytes,
parameters?._handle ?? ffi.nullptr,
errorHandler);
});
return taskHandle
.toCancelableOperation((element) => element.getValueAsList()!);
}