Cube3D constructor

Cube3D(
  1. double size,
  2. Vector3 position, {
  3. Color? color,
  4. String? text,
  5. TextStyle? textStyle,
  6. Vector3? textOffset,
  7. Map<CubeFace, String>? faceLabels,
  8. Map<int, String>? vertexLabels,
  9. TextStyle? labelStyle,
  10. bool textRotation = true,
  11. bool textBackground = false,
  12. Color textBackgroundColor = const Color(0x8A000000),
  13. 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));