cancel method

Future cancel(
  1. Object? reason
)

Implementation

Future cancel(Object? reason) =>
    promiseToFuture(JS("", "#.cancel(#)", this, reason));