RuntimeInsightOverlayController constructor
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,
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;