lights property

List<Light> get lights

Collects all lights in the scene tree.

Implementation

List<Light> get lights {
  final result = <Light>[];
  root.traverse((node) {
    if (node is Light) result.add(node);
  });
  return result;
}