ReactiveState constructor
const
ReactiveState(
- StateBuilder stateBuilder, {
- Key? key,
- 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,
});