minFps property

double get minFps

Minimum FPS in the sample window (slowest frame).

Implementation

double get minFps {
  if (_frameTimes.isEmpty) return 0.0;
  final maxTime = _frameTimes.reduce(
    (a, b) => a.inMicroseconds > b.inMicroseconds ? a : b,
  );
  if (maxTime.inMicroseconds == 0) return 0.0;
  return 1000000.0 / maxTime.inMicroseconds;
}