BoxGeometry constructor

BoxGeometry({
  1. double width = 1.0,
  2. double height = 1.0,
  3. double depth = 1.0,
  4. Color color = Colors.blue,
})

Implementation

BoxGeometry({
  double width = 1.0,
  double height = 1.0,
  double depth = 1.0,
  Color color = Colors.blue,
}) : super(
        vertices: _generateVertices(width, height, depth),
        indices: _generateIndices(),
        color: color,
      );