SceneTickCallback typedef Widgets

SceneTickCallback = void Function(Duration elapsed, double deltaSeconds)

Called once per frame with the total elapsed time and the deltaSeconds since the previous tick. Drive per-frame app logic here, or advance the scene with a supplied timestep via Scene.update (after which Scene.render skips its implicit wall-clock tick for that frame).

Implementation

typedef SceneTickCallback =
    void Function(Duration elapsed, double deltaSeconds);