RectangleMarkerShape class
Rectangle marker shape that uses the provided Size directly.
The shape is edge-aligned with the port connection point:
- Left ports: rectangle's left edge at the center point
- Right ports: rectangle's right edge at the center point
- Top ports: rectangle's top edge at the center point
- Bottom ports: rectangle's bottom edge at the center point
For square markers, simply use a port with equal width and height (e.g., Size(10, 10)).
- Inheritance
-
- Object
- MarkerShape
- RectangleMarkerShape
Constructors
- RectangleMarkerShape()
-
Creates a rectangle marker shape.
const
Properties
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