SplitPane constructor
SplitPane({})
Builds a split oriented along axis
.
Implementation
SplitPane({
super.key,
required this.axis,
required this.children,
required this.initialFractions,
this.minSizes,
this.splitters,
}) : assert(children.length >= 2),
assert(initialFractions.length >= 2),
assert(children.length == initialFractions.length) {
_verifyFractionsSumTo1(initialFractions);
if (minSizes != null) {
assert(minSizes!.length == children.length);
}
if (splitters != null) {
assert(splitters!.length == children.length - 1);
}
}