hoverPanelWidth property

double? get hoverPanelWidth

The current width of the LSP hover panel. Changes if the user resizes the hover panel.

if this getter returns null, which means the user hasn't changed the width. In that case, width falls back to default value and which is calculated using the below method:

width = _isMobile ? screenWidth * 0.63 : screenWidth * 0.3;

/// Use the setter with the same name to set custom width.

Implementation

double? get hoverPanelWidth => hoverWidthNotifier.value.$1;
set hoverPanelWidth (double width)

Set custom width to the LSP hover overlay panel.

Implementation

set hoverPanelWidth(double width) {
  hoverWidthNotifier.value = (width, hoverWidthNotifier.value.$2);
}