ReactiveStatus<T> constructor
ReactiveStatus<T> (})
Creates a ReactiveStatus widget that reacts to changes in the global status of type T.
cases must be provided to map each status to a widget builder.
If reactiveKey is not provided, it defaults to the runtime type of T.
Implementation
ReactiveStatus(
this.cases, {
super.key,
this.defaultCase,
Key? reactiveKey,
}) : reactiveKey = reactiveKey ?? ValueKey(T);