onStart method

  1. @override
void onStart(
  1. void send(
    1. Msg msg
    )
)
override

Called once after program initialization.

Use send to inject messages (for example, replay scripts).

Implementation

@override
void onStart(void Function(Msg msg) send) {
  _send = send;
  for (final s in _stack) {
    s.attachSend(send);
    s.interceptor?.onStart(send);
  }
  for (final b in _base) {
    b.onStart(send);
  }
}