CircleMarkerShape class

Circular marker shape.

The circle uses the shortest side of the provided Size as diameter. When the size is asymmetric, the circle is edge-aligned based on orientation:

  • Left ports: circle's left edge at the widget's left edge (node boundary)
  • Right ports: circle's right edge at the widget's right edge (node boundary)
  • Top ports: circle's top edge at the widget's top edge (node boundary)
  • Bottom ports: circle's bottom edge at the widget's bottom edge (node boundary)

For symmetric sizes (e.g., Size(10, 10)), the circle is centered since it fills the entire widget bounds.

Inheritance

Constructors

CircleMarkerShape()
const

Properties

hashCode int
The hash code for this object.
no setteroverride
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 setteroverride

Methods

getEffectiveSize(Size baseSize, ShapeDirection orientation) Size
Returns the effective rendered size of this shape for a given base size and orientation.
inherited
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.
override
toJson() Map<String, dynamic>
Converts this shape to a JSON-serializable map
inherited
toString() String
A string representation of this object.
inherited

Operators

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