frameTick property

bool frameTick
final

Whether to automatically send FrameTickMsg at the configured fps.

When true (default), the runtime sends FrameTickMsg messages at regular intervals based on the fps setting. This drives animations and continuous updates without requiring each application to set up its own tick loop.

When false, no automatic ticks are sent. This is useful for static UIs that only update in response to user input, reducing CPU usage.

Example

// Dynamic UI with animations (default)
final program = Program(MyAnimatedModel());

// Static UI that only updates on input
final program = Program(
  MyStaticModel(),
  options: ProgramOptions(frameTick: false),
);

Implementation

final bool frameTick;