CancellationToken constructor

CancellationToken({
  1. bool? isCancellationRequested,
  2. Event? onCancellationRequested,
})

Implementation

factory CancellationToken({
  _i2.bool? isCancellationRequested,
  _i3.Event<_i2.dynamic>? onCancellationRequested,
}) =>
    CancellationToken._(
      isCancellationRequested: isCancellationRequested,
      onCancellationRequested: onCancellationRequested ?? _i6.undefined,
    );