ReactiveState extension

Extension on Flutter's State to simplify Reactive usage.

on

Methods

react<T>(T initial, [bool strict = true]) Reactive<T>

Available on State<StatefulWidget>, provided by the ReactiveState extension

Creates a Reactive variable and binds it automatically to this state.
reactN<T>([T? initial, bool strict = true]) ReactiveN<T>

Available on State<StatefulWidget>, provided by the ReactiveState extension

updateState([VoidCallback? callback]) → void

Available on State<StatefulWidget>, provided by the ReactiveState extension

Calls setState safely only if the state is mounted.