onLayerTreeDidChange property
Implementation
Stream<List<Layer>> get onLayerTreeDidChange => _client.onEvent
.where((event) => event.name == 'LayerTree.layerTreeDidChange')
.map((event) => (event.parameters['layers'] as List)
.map((e) => Layer.fromJson(e as Map<String, dynamic>))
.toList());