SceneModel.from constructor
const
SceneModel.from(
- SceneModelSource source, {
- Key? key,
- String? variant,
- List<
SceneAnimationSpec> animations = const [], - WidgetBuilder? placeholder,
- Widget error(
- BuildContext context,
- Object error
- void onLoaded(
- Node modelRoot
- String? name,
- Vector3? position,
- Quaternion? rotation,
- Vector3? scale,
- Matrix4? transform,
- bool visible = true,
- List<
Component> components = const [], - SceneNodeController? controller,
- List<
Widget> children = const [],
Loads the model from an explicit SceneModelSource.
Implementation
const SceneModel.from(
this.source, {
super.key,
this.variant,
this.animations = const [],
this.placeholder,
this.error,
this.onLoaded,
super.name,
super.position,
super.rotation,
super.scale,
super.transform,
super.visible,
super.components,
super.controller,
super.children,
});