useModelSync<T> method
Use the current model at the call instant and dispatch function. Can be used to return values and dispatch new messages depending on the model. If messages were dispatched right before calling this function, there is a good chance that the model will be outdated.
Implementation
T useModelSync<T>(T Function(Model model, Dispatch<Msg> dispatch) handler) =>
handler(_processor.model, _processor.post);