cloneValue abstract method

dynamic cloneValue(
  1. dynamic source
)

Clones a single value, returning a deep copy if possible.

If the value is a collection or a complex object, its contents are recursively cloned. For primitive types, the value is returned as-is.

Implementation

dynamic cloneValue(dynamic source);