onError method
Cancels the request with an error message.
Implementation
void onError(String error) {
hasCompleted = true;
_completer.completeError(new Exception(error));
}
Cancels the request with an error message.
void onError(String error) {
hasCompleted = true;
_completer.completeError(new Exception(error));
}