navigate method Null safety

  1. @override
void navigate()
override

Implementation

@override
void navigate() {
  NavigateAction._navigatorKey?.currentState
      ?.pushNamedAndRemoveUntil(newRouteName, (_) => false, arguments: arguments);
}