FlexSplitColumn constructor

FlexSplitColumn({
  1. Key? key,
  2. required double totalHeight,
  3. required List<PreferredSizeWidget> headers,
  4. required List<Widget> children,
  5. required List<double> initialFractions,
  6. required List<double> minSizes,
})

Implementation

FlexSplitColumn({
  super.key,
  required this.totalHeight,
  required this.headers,
  required List<Widget> children,
  required List<double> initialFractions,
  required List<double> minSizes,
})  : assert(children.length >= 2),
      assert(initialFractions.length >= 2),
      assert(children.length == initialFractions.length),
      assert(minSizes.length == children.length),
      _children = buildChildrenWithFirstHeader(children, headers),
      _initialFractions = modifyInitialFractionsToIncludeFirstHeader(
        initialFractions,
        headers,
        totalHeight,
      ),
      _minSizes = modifyMinSizesToIncludeFirstHeader(minSizes, headers);