SceneView constructor
const
SceneView({
- SceneController? controller,
- ImageResolver? imageResolver,
- SceneStaticLayerCache? staticLayerCache,
- ValueChanged<
SceneController> ? onControllerReady, - PointerInputSettings? pointerSettings,
- double? dragStartSlop,
- String nodeIdGenerator()?,
- Color selectionColor = const Color(0xFF1565C0),
- double selectionStrokeWidth = 1,
- double gridStrokeWidth = 1,
- Key? key,
Creates a view for the provided controller.
If controller is null, the view creates and owns a controller with an
empty scene. Use onControllerReady to access the internal controller once
it is created.
When controller is null, pointerSettings, dragStartSlop, and
nodeIdGenerator are used to configure the internal controller.
These parameters are ignored when an external controller is provided.
If staticLayerCache is null, the view creates and owns an internal cache
and disposes it when the view is disposed. If a cache is provided, the
caller owns it and must dispose it.
Implementation
const SceneView({
this.controller,
this.imageResolver,
this.staticLayerCache,
this.onControllerReady,
this.pointerSettings,
this.dragStartSlop,
this.nodeIdGenerator,
this.selectionColor = const Color(0xFF1565C0),
this.selectionStrokeWidth = 1,
this.gridStrokeWidth = 1,
super.key,
});