clone method

FormData clone()

Implementation

FormData clone() {
  final clone = FormData();
  clone.fields.addAll(fields);
  for (final file in files) {
    clone.files.add(MapEntry(file.key, file.value.clone()));
  }
  return clone;
}