removeLayer method
Removes the given layer from the list of layers.
Removing a layer does not remove the Parts in the layer. Instead, those Parts are placed into the default layer. To remove all Parts in a layer you can call Diagram#removeParts with Layer#parts as the argument.
You cannot remove the default layer, the one named with the empty string. @param {Layer} layer @see #addLayer @see #addLayerBefore @see #addLayerAfter @see #findLayer
Implementation
void removeLayer(_i3.Layer layer) {
_i4.callMethod(
this,
'removeLayer',
[layer],
);
}