writeMaterialValues method
Gives values what materialKey is made from, one by one, so a
renderer can tell each frame whether the look changed without making a
key.
Implementation
void writeMaterialValues(ShapeValues values) => values
..addObject(material)
..addInt(color.toARGB32())
..add(metallic)
..add(roughness)
..addInt(emission.toARGB32())
..add(emissionStrength)
..add(opacity)
..addBool(unlit)
..addObject(texture)
..add(tiling.x)
..add(tiling.y)
..addBool(doubleSided);