TSplitPane constructor
const
TSplitPane({
- Key? key,
- required Widget leading,
- required Widget trailing,
- Axis axis = Axis.horizontal,
- TSplitPaneController? controller,
- double initialRatio = 0.5,
- double? initialExtent,
- double minLeadingExtent = 80.0,
- double? maxLeadingExtent,
- double minTrailingExtent = 80.0,
- double? maxTrailingExtent,
- double dividerThickness = 8.0,
- bool showGrip = true,
- bool showCollapseButtons = false,
- bool collapsibleLeading = false,
- bool collapsibleTrailing = false,
- double collapseSnapThreshold = 40.0,
- ValueChanged<
double> ? onResized, - 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');