scene property

Scene<Node> get scene

This node's owning scene. Only valid while isMounted.

Implementation

Scene get scene {
  assert(_scene != null, 'This node is not mounted yet.');
  return _scene!;
}