isIdle property
bool
get
isIdle
Whether real (non-metrics-only) rendering is idle.
Returns true before the first frame and after two seconds without a real frame. Diagnostic refreshes do not end this idle state.
Implementation
bool get isIdle {
final lastFrame = _lastFrameElapsedMicros;
if (lastFrame == null) return true;
return _clock.elapsedMicroseconds - lastFrame > _idleTimeout.inMicroseconds;
}