KnowledgePanelTextElement class
Description element of the Knowledge panel.
- Inheritance
-
- Object
- JsonObject
- KnowledgePanelTextElement
- Annotations
-
- @JsonSerializable()
Constructors
- KnowledgePanelTextElement({required String html, KnowledgePanelTextElementType? type, String? sourceLanguage, String? sourceLocale, String? sourceText, String? sourceUrl})
-
const
-
KnowledgePanelTextElement.fromJson(Map<
String, dynamic> json) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- html → String
-
HTML description of one Knowledge Panel Unit.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceLanguage → String?
-
Human readable source language (eg: "English")
final
- sourceLocale → String?
-
Source locale name (eg: "en")
final
- sourceText → String?
-
Name of the source (eg: "Wikipedia")
final
- sourceUrl → String?
-
Link to the source (eg: "https://en.wikipedia.org/wiki/Sodium acetate")
final
- type → KnowledgePanelTextElementType?
-
Type of the text description, Client may choose to display the description
depending upon the type.
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