When constructor

const When({
  1. Key? key,
  2. required Signal<bool> condition,
  3. required Widget then,
  4. Widget? otherwise,
})

Implementation

const When({
  super.key,
  required this.condition,
  required this.then,
  this.otherwise,
});