navigate method

  1. @override
Future<R?> navigate()
override

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).push<R>(_widget);
}