getProperty method
Implementation
Object? getProperty(String propertyName) {
if (propertyName == "vertexParameters") {
return color;
} else if (propertyName == "opacity") {
return opacity;
} else if (propertyName == "color") {
return color;
} else if (propertyName == "emissive") {
return emissive;
} else if (propertyName == "flatShading") {
return flatShading;
} else if (propertyName == "wireframe") {
return wireframe;
} else if (propertyName == "vertexColors") {
return vertexColors;
} else if (propertyName == "transparent") {
return transparent;
} else if (propertyName == "depthTest") {
return depthTest;
} else if (propertyName == "depthWrite") {
return depthWrite;
} else if (propertyName == "visible") {
return visible;
} else if (propertyName == "blending") {
return blending;
} else if (propertyName == "side") {
return side;
} else if (propertyName == "roughness") {
return roughness;
} else if (propertyName == "metalness") {
return metalness;
} else {
throw ("Material.getProperty type: $type propertyName: $propertyName is not support ");
}
}