send<T extends Message> method

  1. @protected
  2. @nonVirtual
void send<T extends Message>(
  1. T message,
  2. {bool oneOff = false}

Sends message to all Listeners of type Message.

When oneOff is true, message will only be received by any Listener currently listening for type Message. If there aren't any it will only be received by the first Listener that calls listen() in onInitialMessage().


void send<T extends Message>(T message, {bool oneOff = false}) {
  MessageSinkRegister().sendToSinksOfType<T>(message, oneOff: oneOff);