getKnowledgePanel static method

KnowledgePanel? getKnowledgePanel(
  1. Product product,
  2. String panelId
)

Returns the KP that matches the panelId.

Implementation

static KnowledgePanel? getKnowledgePanel(
  Product product,
  String panelId,
) => product.knowledgePanels?.panelIdToPanelMap[panelId];