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