copy method

  1. @override
GroupMaterial copy(
  1. Material source
)
override

Copy the parameters from the passed material into this material.

Implementation

@override
GroupMaterial copy(Material source) {
  super.copy(source);

  if(source is GroupMaterial){
    children = source.children.sublist(0);
  }

  return this;
}