currentRoute property

PendingRoute? currentRoute

Implementation

PendingRoute? get currentRoute {
  if (_children[state.focusedChild] != null) {
    return _children[state.focusedChild]!.currentRoute;
  } else if (state.viewStack.isNotEmpty) {
    return state.viewStack.last;
  } else {
    return null;
  }
}