PerformanceAnalyzerWidget constructor
const
PerformanceAnalyzerWidget({
- Key? key,
- required Widget child,
- bool disable = false,
- bool activateFPS = true,
- double scaleFPS = 1,
- Alignment alignmentFPS = Alignment.topRight,
- int sampleSizeFPS = 32,
- Duration targetFrameTimeFPS = const Duration(milliseconds: 16, microseconds: 700),
- Duration maxBarValueFPS = const Duration(milliseconds: 24),
- Color backgroundFPS = const Color(0x00ffffff),
- Color textColorFPS = const Color(0xff000000),
- Color textBackgroundColorFPS = const Color(0xffffffff),
- Color chartBarsColor = const Color(0xff4caf50),
- bool activateMemory = true,
- Alignment alignmentMemory = Alignment.topRight,
- double scaleMemory = 1,
- int nObjects = 5,
- Color backgroundMemory = const Color(0x00ffff8d),
- Color textColorMemory = const Color(0xff000000),
- Color textBackgroundColorMemory = const Color(0xffffffff),
- bool activateNetwork = true,
- Alignment alignmentNetwork = Alignment.topLeft,
- double scaleNetwork = 1,
- Color backgroundNetwork = const Color(0x00ffffff),
- Color textColorNetwork = const Color(0xff000000),
- Color textBackgroundNetwork = const Color(0xffffffff),
- 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,
});