getGlobalKey method

GlobalKey<State<StatefulWidget>>? getGlobalKey(
  1. String id
)

Returns the GlobalKey to assign to the widget in the tree.

The key allows the executor to obtain the BuildContext and RenderBox of the widget when executing events on it.

Implementation

GlobalKey? getGlobalKey(String id) => _registry.getGlobalKey(id);