clone method

  1. @override
MeshDistanceMaterial clone()
override

Return a new material with the same parameters as this material.

Implementation

@override
MeshDistanceMaterial clone() {
  return MeshDistanceMaterial(<MaterialProperty, dynamic>{}).copy(this);
}