currentContext property

BuildContext? get currentContext

Retrieves the BuildContext / Element registered with this key.

Implementation

BuildContext? get currentContext => _registry[this];