setSnapshot method

void setSnapshot(
  1. UiSnapshot? snap
)

Implementation

void setSnapshot(UiSnapshot? snap) {
  if (!enabled || snap == null) return;
  screen.value = snap.screen;
  nodeCount.value = snap.nodes.length;
  visibleCount.value = snap.visibleIndex.length;
  treeDepth.value = _maxDepth(snap.paths);
  lastCaptureAt.value = snap.capturedAt;
}