cancelFetch method
void
cancelFetch()
Implementation
void cancelFetch() {
if (cancellationCompleter != null && !cancellationCompleter!.isCompleted) {
// Set the cancellation flag.
markAsCancelled();
dispatchCancelled();
}
}