canDelete method

bool canDelete()

This predicate returns true if #deletable is true, if the layer's Layer#allowDelete is true, and if the diagram's Diagram#allowDelete is true.

This does not check Diagram#isReadOnly or Model#isReadOnly, but commands and tools should check those properties. @expose @return {boolean} true if the user may delete this part.

Implementation

_i2.bool canDelete() => _i4.callMethod(
      this,
      'canDelete',
      [],
    );