RxRoot constructor

const RxRoot({
  1. Key? key,
  2. required Widget child,
  3. List<Reducer>? reducers,
})

Responsible for propagating Atom values as a dependency of a child Widget.
RxRoot should be one of the first Widgets in the Flutter tree.

void main(){
  runApp(RxRoot(child: AppWidget()));
}

Implementation

const RxRoot({
  super.key,
  required super.child,
  this.reducers,
});