updateLayers method

  1. @override
Future<void> updateLayers(
  1. List<Layer> layers
)
override

Implementation

@override
Future<void> updateLayers(List<Layer> layers) async {
  this.layers = layers;
  removeAll(children);
  await addAll(layers.map(LayerMapper.toLayerComponent));
  _confMap(gameRef.size, calculateSize: true);
}