isEnabled property

bool get isEnabled

Gets or sets whether this tool can be started by a mouse event.

Set this to false to prevent #canStart from returning true. Setting this property to false should prevent this tool from being used in a mode-less fashion by the ToolManager with a mouse down/move/up event. However, even when this property is false, this tool can still be used in a modal fashion: it can still be started by explicitly setting the Diagram#currentTool property to this tool.

The default value is true.

Implementation

_i2.bool get isEnabled => _i4.getProperty(
      this,
      'isEnabled',
    );
set isEnabled (bool value)

Implementation

set isEnabled(_i2.bool value) {
  _i4.setProperty(
    this,
    'isEnabled',
    value,
  );
}