map<InnerMsg> method
This helper function can be used when going from a parent view to a child view.
Takes a function that returns the parent message using the child message.
Implementation
Dispatch<InnerMsg> map<InnerMsg>(Msg Function(InnerMsg inner) mapper) =>
(msg) => this(mapper(msg));