subtreeContext property Null safety

BuildContext? subtreeContext

The build context for the subtree containing the primary content of this route.

Implementation

BuildContext? get subtreeContext => _subtreeKey.currentContext;