getCurrentComponentInstance method

ComponentEntity getCurrentComponentInstance(
  1. String key
)

Implementation

ComponentEntity getCurrentComponentInstance(String key) {
  if (componentsTree.containsKey(key)) {
    return componentsTree[key]!.component;
  } else {
    throw Exception('Key not found');
  }
}