WikiDataEntityNode class

Inheritance
  • Object
  • Node
  • WikiDataEntityNode

Constructors

WikiDataEntityNode({required String entityId, required String title, required String wikiUrl, String? description})

Properties

description String?
final
entityId String
final
hashCode int
Hash code of this Node, which is equal to hash code of the Node id.
no setterinherited
icon → NodeIcon
Node icon
finalinherited
id String
Identifier of this Node. It's a combination of Node type and its unique property, concatenated by a dash.
no setterinherited
label String
Getter for label property
no setterinherited
labelProperty String
A property key within properties to be used as the label of the node. Mainly used for visual identification purposes.
finalinherited
properties Map<String, dynamic>
Node properties. Keys must be string and values must be JSON serializable.
finalinherited
relatives Future<Iterable<Tuple2<Relation, Node>>>
Relatives of this node that can be generated if/when needed. Subclasses must implement this getter, while making sure each generated Relation either starts or ends at this Node.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
final
type String
Node type
finalinherited
uniqueProperty String
A property key within properties that is unique for a given Node type.
finalinherited
uniqueValue String
Getter for unique value property
no setterinherited
url String?
Getter for url
no setterinherited
urlProperty String?
A property key within properties that contains a launchable URL (web address).
finalinherited
wikiUrl String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → dynamic
Create JSON serializable representation of this Node.
inherited
toString() String
Generates a string of the JSON output of this node
inherited

Operators

operator ==(Object other) bool
Equality checks for Node id only
inherited

Static Methods

tryFromWikidata(String entityId, {Client? client}) Future<WikiDataEntityNode?>