Copy a list of layers to create a new instances of the same type.
List<Layer> copyLayerList(List<Layer> layers) { return layers.map((e) => copyLayer(e)).toList(); }