cancel method

void cancel([
  1. Exception? err
])

Cancel this uia request for example if the app can not handle this stage.

Implementation

void cancel([Exception? err]) {
  error = err ?? Exception('Request has been canceled');
  state = UiaRequestState.fail;
}