getSend<Message> function
Returns an object that can be called like a function (a functor) which sends
messages to all Listeners of type Message
, without the need of
instatiating a class with Sender mixin.
Example usage:
final send = getSend<SomeType>();
send(SomeType());
Implementation
SenderFunctor<Message> getSend<Message>() {
return SenderFunctor<Message>();
}