Reactive constructor

Reactive(
  1. Widget builder(), {
  2. Key? key,
  3. Key? reactiveKey,
})

Creates a reactive widget using the given builder function.

The reactiveKey determines which update notifications this widget listens to. If omitted, a default key is used based on ReactivityTypeEnum.reactive.

Implementation

Reactive(
  this.builder, {
  super.key,
  Key? reactiveKey,
}) : reactiveKey = reactiveKey ?? ValueKey(ReactivityTypeEnum.reactive);