hasSomethingToDisplay static method

bool hasSomethingToDisplay(
  1. Product product,
  2. String panelId
)

Returns true if there are elements to display for that panel.

Implementation

static bool hasSomethingToDisplay(
  Product product,
  String panelId,
) {
  final KnowledgePanel panel = KnowledgePanelsBuilder.getKnowledgePanel(
    product,
    panelId,
  )!;
  return panel.hasSomethingToDisplay(product);
}