sampleOnFrame property

bool sampleOnFrame
final

When true, also samples automatically whenever Flutter draws a frame (throttled by sampleInterval), catching non-scroll visual changes such as playing video, auto-advancing carousels, or animated backgrounds with zero idle timers and automatic app-lifecycle pause when backgrounded.

Defaults to false (scroll-notification-driven sampling only).

Implementation

final bool sampleOnFrame;