handleRemoveLayer method
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();
}