handleAddLayer method
Handles the addition of a layer.
This method calls the onAddLayer callback with the provided layer
and then calls handleUpdateUI.
Implementation
void handleAddLayer(Layer layer) {
onAddLayer?.call(layer);
handleUpdateUI();
}