Compositor constructor
Implementation
Compositor([List<Layer> layers = const []])
: _root = Layer(StyledString(''))..addLayers(layers) {
// Upstream: `third_party/lipgloss/layer.go` (`NewCompositor`) flattens on
// construction so `Bounds`, `Hit`, and `GetLayer` work immediately.
_flatten();
}