MarkerShape class abstract

Abstract base class for marker shapes.

Marker shapes are used to render visual markers at connection points, including both ports on nodes and endpoints on connections.

Following the GridStyle pattern, this class provides a common interface for rendering different shapes. Each shape type is implemented as a concrete subclass that defines its own painting logic.

See MarkerShapes for predefined shape constants.

Custom shapes can be created by extending this class and implementing the paint method.

Implementers

Constructors

MarkerShape()
const
MarkerShape.fromJson(Map<String, dynamic> json)
Creates a MarkerShape from JSON
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
typeName String
Returns the type name of this shape for JSON serialization
no setter

Methods

getEffectiveSize(Size baseSize, ShapeDirection orientation) Size
Returns the effective rendered size of this shape for a given base size and orientation.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(Canvas canvas, Offset center, Size size, Paint fillPaint, Paint? borderPaint, {ShapeDirection? orientation, bool isPointingOutward = false}) → void
Paints the marker shape on the given canvas.
toJson() Map<String, dynamic>
Converts this shape to a JSON-serializable map
toString() String
A string representation of this object.
inherited

Operators

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