cancel method

void cancel()

To prevent memory leak, cancel the subscription once there is no need for this EventRule

Implementation

void cancel() {
  _subscription.cancel();
}