getIntrinsicHeight method
Returns the intrinsic height of this element.
Implementation
@override
int getIntrinsicHeight(int width) {
final split = widget as SplitPane;
final h1 = childElement1?.getIntrinsicHeight(width) ?? 0;
final h2 = childElement2?.getIntrinsicHeight(width) ?? 0;
if (split.direction == LayoutDirection.vertical) {
return h1 + h2 + 1;
} else {
return max(h1, h2);
}
}