KiteSplit constructor

const KiteSplit({
  1. required Widget left,
  2. required Widget right,
  3. int leftFlex = 1,
  4. int rightFlex = 1,
  5. double gap = Dimensions.s16,
  6. bool stackOnCompact = true,
  7. Key? key,
})

Implementation

const KiteSplit({
  required this.left,
  required this.right,
  this.leftFlex = 1,
  this.rightFlex = 1,
  this.gap = Dimensions.s16,
  this.stackOnCompact = true,
  super.key,
}) : assert(leftFlex > 0, 'leftFlex must be greater than zero.'),
     assert(rightFlex > 0, 'rightFlex must be greater than zero.'),
     assert(gap >= 0, 'gap cannot be negative.');