XResizableWidget constructor

XResizableWidget({
  1. Key? key,
  2. required List<Widget> children,
  3. List<double>? percentages,
  4. String title = "",
  5. @Deprecated('Use [isHorizontalSeparator] instead') bool isColumnChildren = false,
  6. bool isHorizontalSeparator = false,
  7. bool isDisabledSmartHide = false,
  8. double separatorSize = 4,
  9. Color separatorColor = Colors.white12,
  10. OnResizedFunc? onResized,
})

Creates ResizableWidget.

Implementation

XResizableWidget({
  Key? key,
  required this.children,
  this.percentages,
  this.title = "",
  @Deprecated('Use [isHorizontalSeparator] instead') this.isColumnChildren = false,
  this.isHorizontalSeparator = false,
  this.isDisabledSmartHide = false,
  this.separatorSize = 4,
  this.separatorColor = Colors.white12,
  this.onResized,
}) : super(key: key) {
  assert(children.isNotEmpty);
  assert(percentages == null || percentages!.length == children.length);
  assert(percentages == null || percentages!.reduce((value, element) => value + element) == 1);
}