layersAreSelectable method

bool layersAreSelectable(
  1. ProImageEditorConfigs configs
)

Determines if layers are selectable based on the configuration and device type.

Implementation

bool layersAreSelectable(ProImageEditorConfigs configs) {
  if (configs.layerInteraction.selectable ==
      LayerInteractionSelectable.auto) {
    return isDesktop;
  }
  return configs.layerInteraction.selectable ==
      LayerInteractionSelectable.enabled;
}