repaint static method

Cmd repaint({
  1. bool force = true,
})

A command that forces a repaint of the view.

This bypasses the skip-if-unchanged optimization and forces a full re-render of the current view.

Useful when:

  • External factors have changed the terminal state
  • The view needs to be refreshed
  • Recovering from display corruption
return (model, Cmd.repaint());

Implementation

static Cmd repaint({bool force = true}) {
  return Cmd(() async => RepaintRequestMsg(force: force));
}