# copy method

ArgumentValue copy()

Creates a deep copy of this ArgumentValue.

The copy includes the original value, converted value (if any), conversion state, type, and name.

Returns a new ArgumentValue instance with the same state.

Example:

    final vh = ArgumentValue('8080', 'int');
    vh.setConvertedValue(8080);
    final copy = vh.copy();
    print(copy.convertedValue); // 8080
    print(copy.type); // 'int'

## Implementation

    ArgumentValue copy() {
      final vh = ArgumentValue(_value, qualifiedName: _qualifiedName, packageName: _packageName, name: _name);
      if (_converted) {
        vh.setConvertedValue(_convertedValue);
      }
      return vh;
    }