ReactiveState constructor

const ReactiveState(
  1. StateBuilder stateBuilder, {
  2. Key? key,
  3. Widget defaultCase()?,
})

Creates a ReactiveState widget bound to a single reactive state.

stateBuilder defines the unique key and widget-building logic. defaultCase is optional and shown if the state was never updated.

Implementation

const ReactiveState(
  this.stateBuilder, {
  super.key,
  this.defaultCase,
});