LayerSnapshot constructor

LayerSnapshot({
  1. List<NodeSnapshot>? nodes,
  2. bool isBackground = false,
})

Implementation

LayerSnapshot({List<NodeSnapshot>? nodes, this.isBackground = false})
  : nodes = List<NodeSnapshot>.unmodifiable(
      nodes == null ? const <NodeSnapshot>[] : List<NodeSnapshot>.from(nodes),
    );