View3DNode constructor

View3DNode({
  1. String name = '',
  2. double x = 0,
  3. double y = 0,
  4. double? width,
  5. double? height,
  6. SceneColor? fill,
  7. SceneColor? borderColor,
  8. double borderWidth = 1,
  9. double corner = 0,
  10. double? cornerTopLeft,
  11. double? cornerTopRight,
  12. double? cornerBottomRight,
  13. double? cornerBottomLeft,
  14. double opacity = 1,
  15. double? minWidth,
  16. double? maxWidth,
  17. double? minHeight,
  18. double? maxHeight,
  19. bool visible = true,
  20. double yaw = 0,
  21. double pitch = 10,
  22. double distance = 5,
  23. double fov = 45,
  24. double targetX = 0,
  25. double targetY = 0,
  26. double targetZ = 0,
  27. double exposure = 1,
  28. double ambient = 1,
  29. double light = 0,
  30. double lightYaw = -45,
  31. double lightPitch = 50,
  32. SceneColor lightColor = const SceneColor(0xFFFFFFFF),
  33. 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);
}