KiteGrid constructor

const KiteGrid({
  1. required List<Widget> children,
  2. int compactColumns = 1,
  3. int mediumColumns = 2,
  4. int expandedColumns = 3,
  5. double gap = Dimensions.s16,
  6. Key? key,
})

Implementation

const KiteGrid({
  required this.children,
  this.compactColumns = 1,
  this.mediumColumns = 2,
  this.expandedColumns = 3,
  this.gap = Dimensions.s16,
  super.key,
})  : assert(compactColumns > 0, 'compactColumns must be greater than zero.'),
      assert(mediumColumns > 0, 'mediumColumns must be greater than zero.'),
      assert(
        expandedColumns > 0,
        'expandedColumns must be greater than zero.',
      ),
      assert(gap >= 0, 'gap cannot be negative.');