navigate method
Override this method to implement your custom push action.
Access the NavigatorState with
ref.read(navigationProvider).key.currentState
.
Implementation
@override
Future<R?> navigate() {
return ref
.read(navigationProvider)
.pushNamed<R>(_routeName, arguments: _arguments);
}