linkFromKeyProperty property
Gets or sets the name of the data property that returns the key of the node data that the link data is coming 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 key of the link's source node; if the second argument is supplied, the function should modify the link data object so that it has that new key (which may be undefined to refer to no node) as the identifier to the "from" node. The default value is the name 'from', meaning that it expects the data to have a property named 'from' to refer to the link's source node. The name must not be null. If the value is an empty string, #getFromKeyForLinkData will return undefined 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 linkFromKeyProperty => _i4.getProperty(
this,
'linkFromKeyProperty',
);
Implementation
set linkFromKeyProperty(_i2.Object value) {
_i4.setProperty(
this,
'linkFromKeyProperty',
value,
);
}