requestVisualUpdate method

void requestVisualUpdate()

Requests a visual update from the rendering system.

Invokes the onNeedVisualUpdate callback if provided, signaling that the layout has changed and the UI needs to be redrawn.

Implementation

void requestVisualUpdate() {
  onNeedVisualUpdate?.call();
}