getCurrentState static method

NavigatorState? getCurrentState()

获取当前的state

用于在全局范围内控制导航器的状态

Implementation

static NavigatorState? getCurrentState() => navigatorKey.currentState;