TSplitPane constructor

const TSplitPane({
  1. Key? key,
  2. required Widget leading,
  3. required Widget trailing,
  4. Axis axis = Axis.horizontal,
  5. TSplitPaneController? controller,
  6. double initialRatio = 0.5,
  7. double? initialExtent,
  8. double minLeadingExtent = 80.0,
  9. double? maxLeadingExtent,
  10. double minTrailingExtent = 80.0,
  11. double? maxTrailingExtent,
  12. double dividerThickness = 8.0,
  13. bool showGrip = true,
  14. bool showCollapseButtons = false,
  15. bool collapsibleLeading = false,
  16. bool collapsibleTrailing = false,
  17. double collapseSnapThreshold = 40.0,
  18. ValueChanged<double>? onResized,
  19. VoidCallback? onReset,
})

Implementation

const TSplitPane({
  super.key,
  required this.leading,
  required this.trailing,
  this.axis = Axis.horizontal,
  this.controller,
  this.initialRatio = 0.5,
  this.initialExtent,
  this.minLeadingExtent = 80.0,
  this.maxLeadingExtent,
  this.minTrailingExtent = 80.0,
  this.maxTrailingExtent,
  this.dividerThickness = 8.0,
  this.showGrip = true,
  this.showCollapseButtons = false,
  this.collapsibleLeading = false,
  this.collapsibleTrailing = false,
  this.collapseSnapThreshold = 40.0,
  this.onResized,
  this.onReset,
}) : assert(initialRatio >= 0.0 && initialRatio <= 1.0, 'initialRatio must be between 0.0 and 1.0');