SurfaceNode constructor
SurfaceNode({
- 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,
- String asset = '',
- String mesh = '',
- double positionX = 0,
- double positionY = 0,
- double positionZ = 0,
- double rotationX = 0,
- double rotationY = 0,
- double rotationZ = 0,
- double size = 1,
- String animation = '',
- double animationTime = 0,
- bool loop = true,
- String animation2 = '',
- double animationTime2 = 0,
- double blend = 0,
- SceneColor tint = const SceneColor(0xFFFFFFFF),
- List<
SceneNode> children = const [],
Implementation
SurfaceNode({
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,
String asset = '',
String mesh = '',
double positionX = 0,
double positionY = 0,
double positionZ = 0,
double rotationX = 0,
double rotationY = 0,
double rotationZ = 0,
double size = 1,
String animation = '',
double animationTime = 0,
bool loop = true,
String animation2 = '',
double animationTime2 = 0,
double blend = 0,
SceneColor tint = const SceneColor(0xFFFFFFFF),
List<SceneNode> children = const [],
}) : super(
surfaceKind,
values: {
'asset': asset,
'mesh': mesh,
'positionX': positionX,
'positionY': positionY,
'positionZ': positionZ,
'rotationX': rotationX,
'rotationY': rotationY,
'rotationZ': rotationZ,
'size': size,
'animation': animation,
'animationTime': animationTime,
'loop': loop,
'animation2': animation2,
'animationTime2': animationTime2,
'blend': blend,
'tint': tint,
},
) {
this.children.addAll(children);
}