makeUniqueLinkKeyFunction property
Gets or sets a function that returns a unique id number or string for a link data object. This function is called by #makeLinkDataKeyUnique when a link data object is added to the model, either as part of a new #linkDataArray or by a call to #addLinkData, to make sure the value of #getKeyForLinkData is unique within the model. However it will not be called when #linkKeyProperty is the default value, an empty string.
The value may be null in order to cause #makeLinkDataKeyUnique behave in the standard manner. (The default value is null.) You may want to supply a function here in order to make sure all of the automatically generated keys are in a particular format. Setting this property after setting #linkDataArray has no real effect until there is a call to #addLinkData.
If a link data object is already in the model and you want to change its key value, call #setKeyForLinkData with a new and unique key.
Implementation
_i2.dynamic Function(
_i3.GraphLinksModel,
_i2.Object,
)? get makeUniqueLinkKeyFunction => (
_i3.GraphLinksModel p0,
_i2.Object p1,
) =>
_i4.callMethod(
_i4.getProperty(
this,
'makeUniqueLinkKeyFunction',
),
r'call',
[
this,
p0,
p1,
],
);
Implementation
set makeUniqueLinkKeyFunction(
_i2.dynamic Function(
_i3.GraphLinksModel,
_i2.Object,
)? value) {
_i4.setProperty(
this,
'makeUniqueLinkKeyFunction',
value == null ? _i5.undefined : _i4.allowInterop(value),
);
}