RxRoot constructor

const RxRoot({
  1. Key? key,
  2. required Widget child,
})

Responsible for propagating RxNotifier 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});