navigate method Null safety

  1. @override
void navigate()
override

Implementation

@override
void navigate() {
  NavigateAction._navigatorKey?.currentState?.replace(
    oldRoute: oldRoute!,
    newRoute: newRoute!,
  );
}