copyLayerList method

List<Layer> copyLayerList(
  1. List<Layer> layers
)

Copy a list of layers to create a new instances of the same type.

Implementation

List<Layer> copyLayerList(List<Layer> layers) {
  return layers.map((e) => copyLayer(e)).toList();
}