KiteGridItem constructor

const KiteGridItem({
  1. required Widget child,
  2. int span = 1,
  3. int? compactSpan,
  4. int? mediumSpan,
  5. int? expandedSpan,
  6. Key? key,
})

Implementation

const KiteGridItem({
  required this.child,
  this.span = 1,
  this.compactSpan,
  this.mediumSpan,
  this.expandedSpan,
  super.key,
}) : assert(span > 0, 'span must be greater than zero.'),
     assert(
       compactSpan == null || compactSpan > 0,
       'compactSpan must be greater than zero when provided.',
     ),
     assert(
       mediumSpan == null || mediumSpan > 0,
       'mediumSpan must be greater than zero when provided.',
     ),
     assert(
       expandedSpan == null || expandedSpan > 0,
       'expandedSpan must be greater than zero when provided.',
     ),
     full = false;