Cube3D constructor
Cube3D(
- double size,
- Vector3 position, {
- Color? color,
- String? text,
- TextStyle? textStyle,
- Vector3? textOffset,
- Map<
CubeFace, String> ? faceLabels, - Map<
int, String> ? vertexLabels, - TextStyle? labelStyle,
- bool textRotation = true,
- bool textBackground = false,
- Color textBackgroundColor = const Color(0x8A000000),
- TextAlign textAlignment = TextAlign.center,
Creates a cube with optional text labels.
Implementation
Cube3D(
this.size,
this.position, {
this.color,
this.text,
this.textStyle,
this.textOffset,
this.faceLabels,
this.vertexLabels,
this.labelStyle,
this.textRotation = true,
this.textBackground = false,
this.textBackgroundColor = const Color(0x8A000000),
this.textAlignment = TextAlign.center,
}) : super(_createCubeFacesStatic(size, position, color));