writeShapeValues method

  1. @override
void writeShapeValues(
  1. ShapeValues values
)
override

Gives values what shapeKey is made from, one by one, so a renderer can tell each frame whether the mesh changed without making a key. A shape of the engine's gives plain numbers; the default gives shapeKey itself.

Implementation

@override
void writeShapeValues(ShapeValues values) => values
  ..add(radius)
  ..add(height)
  ..addInt(segments)
  ..addInt(rings)
  ..addBool(smooth);