clone method

dynamic clone(
  1. dynamic index
)

Implementation

clone(index) {
  var cloned = ParseStateMaterial({
    "index": (index is num ? index : this.index),
    "name": name,
    "mtllib": mtllib,
    "smooth": smooth,
    "groupStart": 0,
    "groupEnd": -1,
    "groupCount": -1,
    "inherited": false
  });

  return cloned;
}