setRoute method
Changes route kind, port spacing and route options in one undo step. A new kind clears the previous kind's control points and options; any routing change discards retained route waypoints. Every option is validated against the resulting kind's schema before anything changes.
Implementation
EditResult setRoute(
String id, {
ConnectorRoute? route,
double? portSpacing,
Map<String, Object?> options = const {},
}) =>
setRoutes([id], route: route, portSpacing: portSpacing, options: options);