ResizablePane constructor

const ResizablePane({
  1. Key? key,
  2. required ScrollableWidgetBuilder builder,
  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,
})

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 this.builder,
  this.decoration,
  this.maxSize = 500.0,
  required this.minSize,
  this.isResizable = true,
  required this.resizableSide,
  this.windowBreakpoint,
  required this.startSize,
})  : 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',
      );