ResizablePane constructor
const
ResizablePane({
- Key? key,
- required ScrollableWidgetBuilder builder,
- BoxDecoration? decoration,
- double maxSize = 500.0,
- required double minSize,
- bool isResizable = true,
- required ResizableSide resizableSide,
- double? windowBreakpoint,
- required double startSize,
Creates a ResizablePane with an internal MacosScrollbar.
Consider using ResizablePane.noScrollBar constructor when the internal MacosScrollbar is not needed or when working with widgets which do not expose their scroll controllers. 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({
super.key,
required ScrollableWidgetBuilder this.builder,
this.decoration,
this.maxSize = 500.0,
required this.minSize,
this.isResizable = true,
required this.resizableSide,
this.windowBreakpoint,
required this.startSize,
}) : child = null,
useScrollBar = true,
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',
);