Go<T>.withKey constructor

Go<T>.withKey(
  1. GlobalKey<NavigatorState>? navigatorKey
)

Constructor for Go when using GlobalKey<NavigatorState>.

navigatorKey is the GlobalKey<NavigatorState> used for navigation.

Implementation

Go.withKey(this.navigatorKey) : context = null;