cancel method

  1. @protected
  2. @nonVirtual
void cancel()

Stops receiving messages.

Removes message sinks from MessageSinkRegister.

Implementation

@protected
@nonVirtual
void cancel() => listenerDelegates.forEach(_cancel);