asCancelable method

Cancelable asCancelable()

Cancels the subscription and returns a Cancelable object.

Implementation

Cancelable asCancelable() {
  return Cancelable._(cancel);
}