abort abstract method

void abort([
  1. Object? error
])

Cancel this request. If the request has already finished, this will do nothing.

If automatic retrying is enabled, this will also cancel a retry attempt if one is in flight and prevent any further retry attempts.

Implementation

void abort([Object? error]);