Skip to content

Commit

Permalink
feat(definitions): copy more fields of Form class
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Jan 18, 2022
1 parent c994ee0 commit 3485b30
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/src/definitions/form.dart
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,14 @@ class Form {

/// Creates a deep copy of this [Form].
Form copy() {
// TODO(JKRhb): Copy the other fields as well
final copiedForm = Form(href)..contentType = contentType;
// TODO(JKRhb): Make deep copies of security, scopes, and response.
final copiedForm = Form(href)
..contentType = contentType
..op = op
..subprotocol = subprotocol
..security = security
..scopes = scopes
..response = response;
return copiedForm;
}

Expand Down

0 comments on commit 3485b30

Please sign in to comment.