globalRouterKey property

GlobalObjectKey<State<StatefulWidget>> globalRouterKey
final

This key is passed to the router scope it's used to provide build context inside auto_route guards instead of using navigatorKey.currentContext because it maybe null at times

Implementation

final globalRouterKey = GlobalObjectKey(UniqueKey());