SceneView constructor
SceneView(
- SceneDefinition definition, {
- Key? key,
- SceneMotion<
SceneDefinition> ? motion, - ValueListenable<
Duration> ? time, - Set<
String> selected = const {}, - SceneMeasured? onMeasured,
- Map<
String, SceneKindRenderer> renderers = const {},
Draws a scene an app COMPILED — SceneView(BannerScene()), which is
the whole of what mounting one takes.
The definition holds its document (built once, late final), so this
costs nothing per rebuild. It does not make the definition safe to
build in build(): a fresh BannerScene() is fresh nodes, and a
player would go on writing its fx onto the ones that went away. Hold
it in a field.
Implementation
SceneView(
SceneDefinition definition, {
super.key,
SceneMotion? motion,
this.time,
this.selected = const {},
this.onMeasured,
this.renderers = const {},
}) : scene = definition.scene,
motion = motion?.playable;