WikiDataEntityNode constructor

WikiDataEntityNode({
  1. required String entityId,
  2. required String title,
  3. required String wikiUrl,
  4. String? description,
})

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
        ),
      );