Scene<T extends Node> class

A controller for a mounted Node tree.

TODO: Document further.

Properties

hashCode int
The hash code for this object.
no setterinherited
hasSize bool
Whether the scene has been resized at least once.
no setter
node → T
This scene's root. Cannot be modified.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Vector2
Current scene size, updated on every resize via resize.
no setter

Methods

destroy() → void
Unmounts the tree, permanently. Idempotent; every other way of driving this scene asserts once it has been destroyed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reassemble() → void
render(Canvas canvas, {bool debug = false}) → void
Renders this scene to canvas.
resize(double width, double height) → void
toString() String
A string representation of this object.
inherited
update(double dt) → void

Operators

operator ==(Object other) bool
The equality operator.
inherited