onDetach

override fun onDetach()

Runs onRemovedFromDecoration and releases the layers obtainImageLayer made. The component is handed the decoration without this step once the modifier pass ends.