AnnotationDependency class

Represents a dependency relationship between an annotation and a node.

This class encapsulates the details of how an annotation relates to a specific node, including the dependency type and optional metadata.

Example

final dependency = AnnotationDependency(
  nodeId: 'node-1',
  type: AnnotationDependencyType.follow,
  metadata: {'offset': Offset(10, -20)},
);

Constructors

AnnotationDependency({required String nodeId, required AnnotationDependencyType type, Map<String, dynamic> metadata = const {}})
Creates an annotation dependency.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
metadata Map<String, dynamic>
Optional custom metadata for this dependency.
final
nodeId String
The ID of the node this dependency references.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type AnnotationDependencyType
The type of dependency behavior (follow, surround, or linked).
final

Methods

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

Operators

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