ResizablePane.noScrollBar constructor

const ResizablePane.noScrollBar({
  1. Key? key,
  2. required Widget child,
  3. BoxDecoration? decoration,
  4. double maxSize = 500.0,
  5. required double minSize,
  6. bool isResizable = true,
  7. required ResizableSide resizableSide,
  8. double? windowBreakpoint,
  9. required double startSize,
})

Creates a ResizablePane without an internal MacosScrollbar.

Useful when working with widgets which do not expose their scroll controllers or when not using the platform scroll bar is preferred.

Consider using the default constructor if showing a MacosScrollbar when scrolling the content of this widget is the expected behavior. A widget that can be resized horizontally or vertically.

The builder, minSize and resizableSide can not be null. The maxSize and the windowBreakpoint default to 500.00. isResizable defaults to true.

The startSize is the initial width or height depending on the orientation of the pane..

Implementation

const ResizablePane.noScrollBar({
  super.key,
  required Widget this.child,
  this.decoration,
  this.maxSize = 500.0,
  required this.minSize,
  this.isResizable = true,
  required this.resizableSide,
  this.windowBreakpoint,
  required this.startSize,
})  : builder = null,
      useScrollBar = false,
      assert(
        maxSize >= minSize,
        'minSize should not be more than maxSize.',
      ),
      assert(
        (startSize >= minSize) && (startSize <= maxSize),
        'startSize must not be less than minSize or more than maxWidth',
      );