RuntimeInsightOverlayController constructor

RuntimeInsightOverlayController({
  1. bool visible = true,
  2. bool minimized = false,
  3. bool paused = false,
  4. double opacity = 0.95,
  5. double? width,
  6. double? height,
  7. int? maxPoints,
  8. double? minimizedSize,
  9. EdgeInsets? margin,
  10. Color? backgroundColor,
  11. bool? showCloseButton,
  12. bool? showPauseButton,
  13. bool? showOpacitySlider,
  14. bool? showMinimizeButton,
  15. bool? allowDrag,
  16. RuntimeInsightOverlayStrings? strings,
  17. VoidCallback? onClose,
  18. AppResourceMonitoringConfig? monitoringConfig,
})

Creates a controller with the given initial values.

All configuration properties default to null, meaning the overlay widget's own constructor values are used.

Implementation

RuntimeInsightOverlayController({
  bool visible = true,
  bool minimized = false,
  bool paused = false,
  double opacity = 0.95,
  double? width,
  double? height,
  int? maxPoints,
  double? minimizedSize,
  EdgeInsets? margin,
  Color? backgroundColor,
  bool? showCloseButton,
  bool? showPauseButton,
  bool? showOpacitySlider,
  bool? showMinimizeButton,
  bool? allowDrag,
  RuntimeInsightOverlayStrings? strings,
  VoidCallback? onClose,
  AppResourceMonitoringConfig? monitoringConfig,
})  : _visible = visible,
      _minimized = minimized,
      _paused = paused,
      _opacity = opacity.clamp(0.0, 1.0),
      _width = width,
      _height = height,
      _maxPoints = maxPoints,
      _minimizedSize = minimizedSize,
      _margin = margin,
      _backgroundColor = backgroundColor,
      _showCloseButton = showCloseButton,
      _showPauseButton = showPauseButton,
      _showOpacitySlider = showOpacitySlider,
      _showMinimizeButton = showMinimizeButton,
      _allowDrag = allowDrag,
      _strings = strings,
      _onClose = onClose,
      _monitoringConfig = monitoringConfig;