Collection constructor

const Collection({
  1. Key? key,
  2. List<Component> children = const [],
  3. Axis direction = Axis.vertical,
  4. double gap = 0,
  5. bool scrollable = false,
  6. String? padding,
})

Default constructor for creating a Collection with static children.

Implementation

const Collection({
  super.key,
  this.children = const [],
  this.direction = Axis.vertical,
  this.gap = 0,
  this.scrollable = false,
  this.padding,
})  : builder = null,
      childCount = null;