ConditionalSlot<T> constructor

const ConditionalSlot<T>({
  1. Key? key,
  2. required Signal<T> connect,
  3. required bool when(
    1. T value
    ),
  4. required Widget to(
    1. BuildContext context,
    2. T value
    ),
  5. Widget orElse(
    1. BuildContext context
    )?,
})

Implementation

const ConditionalSlot({
  super.key,
  required this.connect,
  required this.when,
  required this.to,
  this.orElse,
});