ofEffect<Msg> static method
Gets a reference to the dispatch function. The function that uses it can add between none and any number of messages.
Implementation
static Cmd<Msg> ofEffect<Msg>(Effect<Msg> effect) => Cmd([effect]);