buildDuration property
The duration to build the frame on the UI thread.
The build starts approximately when PlatformDispatcher.onBeginFrame is
called. The Duration in the PlatformDispatcher.onBeginFrame callback
is exactly the Duration(microseconds: timestampInMicroseconds(FramePhase.buildStart))
.
The build finishes when FlutterView.render is called.
To ensure smooth animations of X fps, this should not exceed 1000/X milliseconds. That's about 16ms for 60fps, and 8ms for 120fps.
Implementation
Duration get buildDuration => _rawDuration(FramePhase.buildFinish) - _rawDuration(FramePhase.buildStart);