SceneLayer constructor
SceneLayer({})
Creates a new SceneLayer with the given renderer, sizing, and placement parameters.
Implementation
SceneLayer({
required this.renderer,
this.sizing = LayerSizing.fixed,
this.x = 0,
this.y = 0,
this.width,
this.height,
this.zIndex = 0,
this.draggable = false,
this.resizable = false,
this.hitTestable = true,
this.mouseOpaque = false,
this.onResize,
this.onFocus,
}) {
if (sizing == LayerSizing.fixed && width != null && height != null) {
renderer.resize(width!, height!);
}
}