clone method

dynamic clone(
  1. dynamic index
)

Implementation

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

  return cloned;
}