layer property
      
      Layer?
      get
      layer
      
    
    
This read-only property returns the Layer that this Part is in. The value is the Layer that is named with the value of #layerName. If you want to change what Layer this Part is in, change the value of #layerName to refer to a different Layer.
This will be null if it has not yet been added to a Diagram, or if it has already been removed from a Diagram.
Implementation
_i3.Layer? get layer => _i4.getProperty(
      this,
      'layer',
    );
      
      set
      layer
      (Layer? value) 
      
    
    
    
Implementation
set layer(_i3.Layer? value) {
  _i4.setProperty(
    this,
    'layer',
    value ?? _i5.undefined,
  );
}