subtreeContext property
BuildContext?
get
subtreeContext
The build context for the subtree containing the primary content of this route.
Implementation
BuildContext? get subtreeContext => _subtreeKey.currentContext;