controlPoints property
The list of control points for editable path connections.
Control points define intermediate waypoints through which the connection path should pass. This is used by editable connection styles to allow users to customize the connection path by adding, moving, or removing control points.
An empty list indicates the connection uses the default algorithmic path.
Implementation
@JsonKey(includeFromJson: false, includeToJson: false)
ObservableList<Offset> get controlPoints => _controlPoints;
Sets the list of control points for this connection.
Updating control points will invalidate the cached path and trigger a repaint of the connection with the new path through the waypoints.
Implementation
set controlPoints(List<Offset> value) {
runInAction(() {
_controlPoints.clear();
_controlPoints.addAll(value);
});
}