linkFromPortIdProperty property
Gets or sets the name of the data property that returns the optional parameter naming a "port" element on the node that the link data is connected from. The value may also be a function taking two arguments, where the first argument will be a link data object. If the second argument is not supplied, the function should return the string identifier of the link's source port; if the second argument is supplied, the function should modify the link data object so that it has that string as the identifier to the "from" port. The default value is the empty string indicating that one cannot distinguish different logical connection points for any links. The name must not be null nor the value of #linkFromKeyProperty or #linkToKeyProperty. If the value is an empty string, #getFromPortIdForLinkData will return an empty string for all link data objects.
If you want to set this property you must do so before using the model, and especially before you assign Diagram#model. Note that functions cannot be serialized into JSON-formatted text, so if you are using #toJson and Model.fromJson, and if you want this property to be a function, you will need to assign this property to your desired function immediately after creating the model, including when it is created by Model.fromJson.
Implementation
_i2.Object get linkFromPortIdProperty => _i4.getProperty(
this,
'linkFromPortIdProperty',
);
Implementation
set linkFromPortIdProperty(_i2.Object value) {
_i4.setProperty(
this,
'linkFromPortIdProperty',
value,
);
}