handleRemoveLayer method

void handleRemoveLayer(
  1. Layer layer
)

Handles the removal of a layer.

This method calls the onRemoveLayer callback with the provided layer and then calls handleUpdateUI.

Implementation

void handleRemoveLayer(Layer layer) {
  onRemoveLayer?.call(layer);
  handleUpdateUI();
}