ReactiveShow constructor

ReactiveShow({
  1. Key? key,
  2. Widget elseShow = const Nothing(),
  3. bool showIf()?,
  4. required Widget builder(),
  5. Key? reactiveKey,
})

Creates a conditional reactive widget.

builder is shown when showIf evaluates to true. Otherwise, elseShow is rendered. If reactiveKey is not provided, it defaults to a generic reactive key.

Implementation

ReactiveShow({
  super.key,
  this.elseShow = const Nothing(),
  this.showIf,
  required this.builder,
  Key? reactiveKey,
}) : reactiveKey = reactiveKey ?? ValueKey(ReactivityTypeEnum.reactive);