selectionChanged property
void Function(Part)?
get
selectionChanged
Gets or sets the function to execute when this part is selected or deselected. It is typically used to modify the appearance of the part. This function must not select or deselect any parts.
If this property value is a function, it is called with one argument, this Part that was selected or that became unselected. When it is called, the value of Diagram#skipsUndoManager is temporarily set to true. By default this property is null.
This function is called with Diagram#skipsUndoManager temporarily set to true, so that any changes to GraphObjects are not recorded in the UndoManager. You do not need to start and commit any transaction in this function.
Implementation
void Function(_i3.Part)? get selectionChanged =>
(_i3.Part p0) => _i4.callMethod(
_i4.getProperty(
this,
'selectionChanged',
),
r'call',
[
this,
p0,
],
);
set
selectionChanged
(void value(Part)?)
Implementation
set selectionChanged(void Function(_i3.Part)? value) {
_i4.setProperty(
this,
'selectionChanged',
value == null ? _i5.undefined : _i4.allowInterop(value),
);
}