Collection.custom constructor
const
Collection.custom({
- Key? key,
- required IndexedWidgetBuilder? builder,
- 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');