ForEach<T> constructor

const ForEach<T>(
  1. List<T> items(),
  2. BloomNode builder(
    1. T item
    ), {
  3. String key(
    1. T item
    )?,
})

Creates a reactive list descriptor with items, builder, and optional key extractor.

Implementation

const ForEach(
  super.items,
  super.builder, {
  String Function(T item)? key,
}) : super(keyFn: key);