get method

dynamic get(
  1. TutorialID tutorialID
)

Retrieves the value associated with a TutorialID from any of the internal maps.

Returns null if the TutorialID is not found in any map.

Implementation

dynamic get(TutorialID tutorialID) {
  if (_keyMap.containsKey(tutorialID)) {
    return _keyMap[tutorialID] as GlobalKey;
  }
  if (_conditionMap.containsKey(tutorialID)) {
    return _conditionMap[tutorialID] as Future<bool> Function(Duration);
  }
  if (_contextMap.containsKey(tutorialID)) {
    return _contextMap[tutorialID] as BuildContext;
  }
  return null;
}