Collection.custom constructor

const Collection.custom({
  1. Key? key,
  2. required IndexedWidgetBuilder? builder,
  3. required int? childCount,
})

Implementation

const Collection.custom(
    {super.key, required this.builder, required this.childCount})
    : children = const [],
      customBuilder = true,
      assert(childCount != null,
          'childCount must be provided for custom builders as MultiSlivers are being used to build the list');