withoutFrameTick method

ProgramOptions withoutFrameTick()

Creates options that disable automatic frame ticks.

Use this for static UIs that only update in response to user input, which reduces CPU usage since no periodic timer is running.

final program = Program(
  MyStaticModel(),
  options: ProgramOptions().withoutFrameTick(),
);

Implementation

ProgramOptions withoutFrameTick() => copyWith(frameTick: false);