$publish top-level property
void Function<TMessage>(TMessage message)
$publish
final
Emits a message to all registered handlers.
A message differs from an event in that it doesn't have handlers, observers, pipelines and it always triggers the handlers, no matter if the previous message is the same. Also, new listeners do NOT receive previous messages.
Implementation
final $publish = Mediator.messages.publish;