RenderableLine constructor

RenderableLine({
  1. dynamic id = 0,
  2. RenderableVertex? v1,
  3. RenderableVertex? v2,
  4. List<Color>? vertexColors,
  5. dynamic material,
  6. dynamic z = 0,
  7. dynamic renderOrder = 0,
})

Implementation

RenderableLine({
  id = 0,
  RenderableVertex? v1,
  RenderableVertex? v2,
  List<Color>? vertexColors,
  material,
  z = 0,
  renderOrder = 0,
}) {
  this.v1 = v1 ?? RenderableVertex();
  this.v2 = v2 ?? RenderableVertex();
  this.vertexColors = vertexColors ?? [Color(), Color()];
  this.id = id;
  this.material = material;
  this.z = z;
  this.renderOrder = renderOrder;
}