PerformanceAnalyzerWidget constructor

const PerformanceAnalyzerWidget({
  1. Key? key,
  2. required Widget child,
  3. bool disable = false,
  4. bool activateFPS = true,
  5. double scaleFPS = 1,
  6. Alignment alignmentFPS = Alignment.topRight,
  7. int sampleSizeFPS = 32,
  8. Duration targetFrameTimeFPS = const Duration(milliseconds: 16, microseconds: 700),
  9. Duration maxBarValueFPS = const Duration(milliseconds: 24),
  10. Color backgroundFPS = const Color(0x00ffffff),
  11. Color textColorFPS = const Color(0xff000000),
  12. Color textBackgroundColorFPS = const Color(0xffffffff),
  13. Color chartBarsColor = const Color(0xff4caf50),
  14. bool activateMemory = true,
  15. Alignment alignmentMemory = Alignment.topRight,
  16. double scaleMemory = 1,
  17. int nObjects = 5,
  18. Color backgroundMemory = const Color(0x00ffff8d),
  19. Color textColorMemory = const Color(0xff000000),
  20. Color textBackgroundColorMemory = const Color(0xffffffff),
  21. bool activateNetwork = true,
  22. Alignment alignmentNetwork = Alignment.topLeft,
  23. double scaleNetwork = 1,
  24. Color backgroundNetwork = const Color(0x00ffffff),
  25. Color textColorNetwork = const Color(0xff000000),
  26. Color textBackgroundNetwork = const Color(0xffffffff),
  27. int timeBox = 60,
})

Implementation

const PerformanceAnalyzerWidget({
  super.key,
  required this.child,
  this.disable = false,
  this.activateFPS = true,
  this.scaleFPS = 1,
  this.alignmentFPS = Alignment.topRight,
  this.sampleSizeFPS = 32,
  this.targetFrameTimeFPS =
      const Duration(milliseconds: 16, microseconds: 700),
  this.maxBarValueFPS = const Duration(milliseconds: 24),
  this.backgroundFPS = const Color(0x00ffffff),
  this.textColorFPS = const Color(0xff000000),
  this.textBackgroundColorFPS = const Color(0xffffffff),
  this.chartBarsColor = const Color(0xff4caf50),
  this.activateMemory = true,
  this.alignmentMemory = Alignment.topRight,
  this.scaleMemory = 1,
  this.nObjects = 5,
  this.backgroundMemory = const Color(0x00ffff8d),
  this.textColorMemory = const Color(0xff000000),
  this.textBackgroundColorMemory = const Color(0xffffffff),
  this.activateNetwork = true,
  this.alignmentNetwork = Alignment.topLeft,
  this.scaleNetwork = 1,
  this.backgroundNetwork = const Color(0x00ffffff),
  this.textColorNetwork = const Color(0xff000000),
  this.textBackgroundNetwork = const Color(0xffffffff),
  this.timeBox = 60,
});