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.
Constructors
- MarkerShape()
-
const
-
MarkerShape.fromJson(Map<
String, dynamic> json) -
Creates a MarkerShape from JSON
factory
Properties
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