CircleShape class

A circular node shape.

This shape renders nodes as circles or ellipses, commonly used for:

  • Terminal nodes in flowcharts (start/end)
  • Event nodes in BPMN diagrams
  • State nodes in state machines

Ports are positioned at the cardinal points (top, right, bottom, left) on the circle's perimeter.

Example:

CircleShape(
  fillColor: Colors.green,
  strokeColor: Colors.darkGreen,
  strokeWidth: 2.0,
)
Inheritance

Constructors

CircleShape({Color? fillColor, Color? strokeColor, double? strokeWidth})
Creates a circle shape.
const

Properties

fillColor Color?
The fill color for the shape background.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
strokeColor Color?
The stroke (border) color for the shape outline.
finalinherited
strokeWidth double?
The stroke (border) width for the shape outline.
finalinherited

Methods

buildPath(Size size) Path
Builds the path that defines this shape's outline.
override
containsPoint(Offset point, Size size) bool
Checks if a point is inside this shape.
override
getBounds(Size size) Rect
Gets the bounding rectangle for this shape.
override
getPortAnchors(Size size) List<PortAnchor>
Gets the port anchor points for this shape.
override
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