rasterDuration property Null safety

Duration rasterDuration

The duration to rasterize the frame on the raster thread.

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 rasterDuration => _rawDuration(FramePhase.rasterFinish) - _rawDuration(FramePhase.rasterStart);