search method
Perform a web search.
optsJson — serialized SearchCallOptions.
Returns the JSON-serialized SearchResult, or throws AimuxException.
Implementation
String search(String optsJson) {
_checkOpen();
checkJson(optsJson, 'opts_json');
return withUtf8(optsJson, (optsPtr) {
return takeString(
(out) => _ffi.search(_handle, optsPtr, out), 'search');
});
}