clone method

  1. @override
Bone clone([
  1. bool? recursive
])
override

recursive -- if true, descendants of the object are also cloned. Default is true.

Returns a clone of this object and optionally all descendants.

Implementation

@override
Bone clone([bool? recursive]) {
  return Bone()..copy(this, recursive);
}