viewportScreenBounds property

ScreenRect get viewportScreenBounds

Gets the viewport extent as a ScreenRect in screen coordinates.

This represents the screen area that displays the graph. Typically this is the full size of the canvas/widget.

Returns a ScreenRect representing the screen bounds of the viewport.

Implementation

ScreenRect get viewportScreenBounds {
  final size = _screenSize.value;
  return ScreenRect.fromLTWH(0, 0, size.width, size.height);
}