TreeFacts constructor

TreeFacts({
  1. List<String> texts = const [],
  2. Set<String> anchors = const {},
  3. bool hasProgressIndicator = false,
  4. SkinTargetPlatform? platform,
})

Creates a snapshot, defensively copying texts and anchors — the tree keeps moving after the walk, and mutable input buffers (the emitted walker's accumulators, test seams) must never leak into an immutable snapshot.

Implementation

TreeFacts({
  List<String> texts = const [],
  Set<String> anchors = const {},
  this.hasProgressIndicator = false,
  this.platform,
}) : _texts = List.unmodifiable(texts),
     _anchors = Set.unmodifiable(anchors);