send method

void send(
  1. Msg msg
)

Sends a message to the program.

The message will be processed through Model.update and the view will be re-rendered.

This can be called from outside the program to inject messages.

Implementation

void send(Msg msg) {
  if (!_running) return;
  _processMessage(msg);
}