execFuture method
Implementation
void execFuture(String? id, int code, dynamic onOK, String? errorText) {
var callbacks = _pendingFutures[id];
if (callbacks != null) {
_pendingFutures.remove(id);
if (code >= 200 && code < 400) {
callbacks.completer?.complete(onOK);
} else {
callbacks.completer?.completeError(
Exception(
(errorText ?? '') + ' (' + code.toString() + ')',
),
);
}
}
}