trigger method Null safety

void trigger(
  1. Message message
)

Trigger the reception of a message.

Implementation

void trigger(Message message) {
  if (!_controller.isClosed) {
    _controller.add(message);
  }
}