View3DNode constructor
View3DNode({
- String name = '',
- double x = 0,
- double y = 0,
- double? width,
- double? height,
- SceneColor? fill,
- SceneColor? borderColor,
- double borderWidth = 1,
- double corner = 0,
- double? cornerTopLeft,
- double? cornerTopRight,
- double? cornerBottomRight,
- double? cornerBottomLeft,
- double opacity = 1,
- double? minWidth,
- double? maxWidth,
- double? minHeight,
- double? maxHeight,
- bool visible = true,
- double yaw = 0,
- double pitch = 10,
- double distance = 5,
- double fov = 45,
- double targetX = 0,
- double targetY = 0,
- double targetZ = 0,
- double exposure = 1,
- double ambient = 1,
- double light = 0,
- double lightYaw = -45,
- double lightPitch = 50,
- SceneColor lightColor = const SceneColor(0xFFFFFFFF),
- List<
SceneNode> children = const [],
Implementation
View3DNode({
super.name,
super.x,
super.y,
super.width,
super.height,
super.fill,
super.borderColor,
super.borderWidth,
super.corner,
super.cornerTopLeft,
super.cornerTopRight,
super.cornerBottomRight,
super.cornerBottomLeft,
super.opacity,
super.minWidth,
super.maxWidth,
super.minHeight,
super.maxHeight,
super.visible,
double yaw = 0,
double pitch = 10,
double distance = 5,
double fov = 45,
double targetX = 0,
double targetY = 0,
double targetZ = 0,
double exposure = 1,
double ambient = 1,
double light = 0,
double lightYaw = -45,
double lightPitch = 50,
SceneColor lightColor = const SceneColor(0xFFFFFFFF),
List<SceneNode> children = const [],
}) : super(
view3dKind,
values: {
'yaw': yaw,
'pitch': pitch,
'distance': distance,
'fov': fov,
'targetX': targetX,
'targetY': targetY,
'targetZ': targetZ,
'exposure': exposure,
'ambient': ambient,
'light': light,
'lightYaw': lightYaw,
'lightPitch': lightPitch,
'lightColor': lightColor,
},
) {
this.children.addAll(children);
}