layers property

List<Layer> get layers

Returns a list of all the Layer objects in the rendering.

Implementation

List<Layer> get layers {
  return <Layer>[
    for (final RenderView renderView in binding.renderViews)
      ..._walkLayers(renderView.debugLayer!)
  ];
}