GraphEdge class

Constructors

GraphEdge({String? from, String? kind, String? to})
Returns a new GraphEdge instance.

Properties

from ↔ String?
From is the id of the node the edge starts at: the child page for a parent edge, the page holding the wikilink for a link edge, the kb-source for a provenance edge. Always one of Nodes.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
kind ↔ String?
parent | link | provenance
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
to ↔ String?
To is the id of the node the edge points at: the parent page, the linked page, the kb-connector. Always one of Nodes — a wikilink matching no page points at a synthetic "unresolved:
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → GraphEdge?
Returns a new GraphEdge instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<GraphEdge>
mapFromJson(dynamic json) → Map<String, GraphEdge>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<GraphEdge>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.