ReactiveNullableList<T> constructor

ReactiveNullableList<T>({
  1. Key? key,
  2. List<T>? values,
  3. Widget ifNull = const Nothing(),
  4. Widget ifEmpty = const Nothing(),
  5. required Widget builder(
    1. List<T>
    ),
  6. Key? reactiveKey,
})

Creates a ReactiveNullableList that rebuilds reactively and displays different widgets depending on the state of values.

Implementation

ReactiveNullableList({
  super.key,
  this.values,
  this.ifNull = const Nothing(),
  this.ifEmpty = const Nothing(),
  required this.builder,
  Key? reactiveKey,
}) : reactiveKey = reactiveKey ?? ValueKey(ReactivityTypeEnum.reactive);