CustomPerformanceOverlay constructor

const CustomPerformanceOverlay({
  1. Key? key,
  2. bool enabled = true,
  3. Alignment alignment = Alignment.topRight,
  4. double scale = 1,
  5. int sampleSize = 32,
  6. Duration targetFrameTime = const Duration(milliseconds: 16),
  7. Duration barRangeMax = const Duration(milliseconds: 24),
  8. Color backgroundColor = Colors.white,
  9. Color textColor = Colors.black,
  10. Color textBackgroundColor = const Color(0x77ffffff),
  11. Color uiColor = Colors.teal,
  12. Color rasterColor = Colors.blue,
  13. Color highLatencyColor = Colors.cyan,
  14. required Widget child,
})

Creates a CustomPerformanceOverlay widget wrapped around the given child widget.

Implementation

const CustomPerformanceOverlay({
  Key? key,
  this.enabled = true,
  this.alignment = Alignment.topRight,
  this.scale = 1,
  this.sampleSize = 32,
  this.targetFrameTime = const Duration(milliseconds: 16),
  this.barRangeMax = const Duration(milliseconds: 24),
  this.backgroundColor = Colors.white,
  this.textColor = Colors.black,
  this.textBackgroundColor = const Color(0x77ffffff),
  this.uiColor = Colors.teal,
  this.rasterColor = Colors.blue,
  this.highLatencyColor = Colors.cyan,
  required this.child,
}) : super(key: key);