onUpdate method
Override to react during the update phase each frame.
Called after all registered listenOnUpdate listeners.
Implementation
@override
@mustCallSuper
void onUpdate(double dt) => on2<CTransform<T>, CRectCollider<T>>((t, c) {
t.position = worldPosition;
c.size = size.copy();
_IsWidgetClickable_updateState(
hovered: backend.collision.pointRectangle(
backend.mouse.position,
.rect(t.position.x, t.position.y, size.x, size.y),
),
usePendingSingleClickMethod: usePendingSingleClickMethod,
dt: dt,
);
// update color of children label control
findChildControl<FLabel<T>>()?.color = resolveStyle().fg;
});