KnowledgePanelElement class

KnowledgePanelElement is a single unit of KnowledgePanel that can be rendered on the client.

An Element could be one of {@code KnowledgePanelElementType].

Inheritance
Annotations
  • @JsonSerializable()

Constructors

KnowledgePanelElement({required KnowledgePanelElementType elementType, KnowledgePanelTextElement? textElement, KnowledgePanelImageElement? imageElement, KnowledgePanelPanelIdElement? panelElement, KnowledgePanelPanelGroupElement? panelGroupElement, KnowledgePanelTableElement? tableElement, KnowledgePanelWorldMapElement? mapElement, KnowledgePanelActionElement? actionElement})
const
KnowledgePanelElement.fromJson(Map<String, dynamic> json)
factory

Properties

actionElement KnowledgePanelActionElement?
"Contribute action" element.
final
elementType KnowledgePanelElementType
Type of the text description.
final
hashCode int
The hash code for this object.
no setterinherited
imageElement KnowledgePanelImageElement?
Image element of the Knowledge panel.
final
mapElement KnowledgePanelWorldMapElement?
Map element embedded inside this KnowledgePanel.
final
panelElement KnowledgePanelPanelIdElement?
Id of a KnowledgePanel embedded inside this KnowledgePanel.
final
panelGroupElement KnowledgePanelPanelGroupElement?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tableElement KnowledgePanelTableElement?
Id of a KnowledgePanel embedded inside this KnowledgePanel.
final
textElement KnowledgePanelTextElement?
Text description of the Knowledge panel.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toData() Map<String, String>
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited
toValueString() String
Returns all values as a String separated by a hyphen value1 - value2 - value3
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited