Relation class

A typed edge between two memory entities.

Relations are persisted both inline (in entity frontmatter) and as standalone relation notes in relations/ for richer metadata.

Constructors

Relation({required String source, required String target, required String type, double weight = 1.0, String? validFrom, String? validUntil})
const
Relation.fromFrontmatterString(String source, String value)
Decodes a compact frontmatter string.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source → String
final
target → String
final
type → String
final
validFrom → String?
final
validUntil → String?
final
weight → double
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toFrontmatterString() → String
Encodes a relation as a compact frontmatter string: type|target or type|target|weight.
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

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