getContext method

BuildContext? getContext(
  1. String id
)

Returns the BuildContext of the widget if it is mounted.

Implementation

BuildContext? getContext(String id) => _registry.getContext(id);