registerKey method

void registerKey(
  1. TutorialID widgetID,
  2. GlobalKey<State<StatefulWidget>>? key
)

Registers a GlobalKey for a specific TutorialID.

Implementation

void registerKey(TutorialID widgetID, GlobalKey? key) {
  if (key != null) {
    _keyMap[widgetID] = key;
  }
}