handleAddLayer method

void handleAddLayer(
  1. Layer layer
)

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