enabledChanged property

void Function(GraphObject, bool)? get enabledChanged

Gets or sets the function to execute when some containing Panel changes the value of Panel#isEnabled. It is typically used to modify the appearance of the object. This function must not change the value of any panel Panel#isEnabled.

If this property value is a function, it is called with two arguments, this GraphObject and the new value. By default this property is null -- no function is called.

Implementation

void Function(
  _i3.GraphObject,
  _i2.bool,
)? get enabledChanged => (
      _i3.GraphObject p0,
      _i2.bool p1,
    ) =>
        _i4.callMethod(
          _i4.getProperty(
            this,
            'enabledChanged',
          ),
          r'call',
          [
            this,
            p0,
            p1,
          ],
        );
set enabledChanged (void value(GraphObject, bool)?)

Implementation

set enabledChanged(
    void Function(
      _i3.GraphObject,
      _i2.bool,
    )? value) {
  _i4.setProperty(
    this,
    'enabledChanged',
    value == null ? _i5.undefined : _i4.allowInterop(value),
  );
}