InheritedGoRouter constructor Null safety

const InheritedGoRouter(
  1. {required Widget child,
  2. required GoRouter goRouter,
  3. Key? key}
)

Default constructor for the inherited go router.

Implementation

const InheritedGoRouter({
  required super.child,
  required this.goRouter,
  super.key,
}) : super(notifier: goRouter);