void debugDumpLayerTree()

Prints a textual representation of the entire layer tree.

Source

void debugDumpLayerTree() {
  debugPrint(RendererBinding.instance?.renderView?.debugLayer?.toStringDeep() ?? 'Layer tree unavailable.');
}