cancelWikiInfo static method
void
cancelWikiInfo(
- EventHandler operationHandler
Cancel a previously started Wikipedia request.
The provided operationHandler must be an instance returned by
requestWikiInfo (an ExternalInfoHandler).
Parameters
operationHandler: The event handler returned by requestWikiInfo.
Implementation
static void cancelWikiInfo(EventHandler operationHandler) {
if (operationHandler is! ExternalInfoHandler) {
ApiErrorServiceImpl.apiErrorAsInt = -1;
return;
}
operationHandler.cancelWikiInfo();
}