MarkerShapes class final

Predefined marker shape constants.

This class provides static constant instances of commonly used marker shapes. Similar to Flutter's Colors or Icons classes, this offers a convenient way to access standard shapes without needing to instantiate them.

Marker shapes can be used for both ports on nodes and endpoints on connections.

Example:

Port(
  id: 'my-port',
  name: 'Output',
  shape: MarkerShapes.circle,
)

ConnectionEndPoint(
  shape: MarkerShapes.triangle,
  size: 8.0,
)

Available shapes:

  • none - Invisible marker (functional but not visually rendered)
  • circle - Circular marker (default, universal)
  • rectangle - Rectangle marker (use Size.square for equal dimensions)
  • diamond - Diamond-shaped marker (decisions, branching)
  • triangle - Triangular marker (directional, arrow-like)
  • capsuleHalf - Half-capsule marker (socket/plug metaphor)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Constants

capsuleHalf → const MarkerShape
Half-capsule (semi-circle) shape.
circle → const MarkerShape
Circular marker shape. Universal and works in all contexts.
diamond → const MarkerShape
Diamond-shaped marker (rotated square). Excellent for conditional/decision points.
none → const MarkerShape
Invisible marker shape. The marker is functional but not visually rendered.
rectangle → const MarkerShape
Rectangle marker shape. Uses the provided Size directly.
triangle → const MarkerShape
Triangular marker shape.