cancel method Null safety

Future cancel (
  1. Object? reason
)

Implementation

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