# copy method

ConstructorArgumentValues copy()

Creates a deep copy of this ConstructorArgumentValues, preserving all ArgumentValues and their states.

The copy includes all indexed and generic arguments with their conversion states preserved.

Returns a new ConstructorArgumentValues instance with the same arguments.

Example:

    final original = ConstructorArgumentValues();
    original.add(0, '8080', 'dart.core.int');

    final copy = original.copy();
    copy.add('additional', 'dart.core.String');
    // original is unchanged

## Implementation

    ConstructorArgumentValues copy() {
      final copy = ConstructorArgumentValues();
      copy._values.addAll(_values.map((key, value) => MapEntry(key, value.copy())));
      return copy;
    }