WikiDataEntityNode constructor
WikiDataEntityNode({})
Implementation
WikiDataEntityNode({
required this.entityId,
required this.title,
required this.wikiUrl,
this.description,
}) : super(
type: WikiDataNodeType.entity.toString(),
properties: {
"entityId": entityId,
"title": title,
"wikiUrl": wikiUrl,
"description": description,
},
labelProperty: "title",
uniqueProperty: "entityId",
urlProperty: "wikiUrl",
icon: const NodeIcon(
fontFamily: "MaterialIcons",
codePoint: 0xe559, // School icon
),
);