KnowledgePanelsBuilder class
"Knowledge Panel" builder
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getChildren(
BuildContext context, {required KnowledgePanelElement panelElement, required Product product, required bool onboardingMode, required bool simplified}) → List< Widget> -
getElementWidget(
{required KnowledgePanelElement knowledgePanelElement, required Product product, required bool isInitiallyExpanded, required bool isClickable, required bool isTextSelectable, required int position, required bool simplified}) → Widget? - Returns a padded widget that displays the KP element, or rarely null.
-
getKnowledgePanel(
Product product, String panelId) → KnowledgePanel? -
Returns the KP that matches the
panelId. -
getRootKnowledgePanel(
Product product, {required bool simplified}) → KnowledgePanel? - Returns the root KP.
-
getRootPanelElement(
Product product, String panelId) → KnowledgePanelElement? -
Returns the unique "root" panel element that matches
panelId, ornull. -
getRootPanelElements(
Product product, {required bool simplified, String? panelId}) → List< KnowledgePanelElement> - Returns all the panel elements from "root".
-
hasSomethingToDisplay(
Product product, String panelId) → bool - Returns true if there are elements to display for that panel.
-
needsSimplifiedPanelsRefresh(
Product product) → bool -
supportsSimplifiedPanels(
Product product) → bool