copyWith method

Input$CreatePullRequestInput copyWith({
  1. String? baseRefName,
  2. String? body()?,
  3. String? clientMutationId()?,
  4. bool? draft()?,
  5. String? headRefName,
  6. bool? maintainerCanModify()?,
  7. String? repositoryId,
  8. String? title,
})

Implementation

Input$CreatePullRequestInput copyWith(
        {String? baseRefName,
        String? Function()? body,
        String? Function()? clientMutationId,
        bool? Function()? draft,
        String? headRefName,
        bool? Function()? maintainerCanModify,
        String? repositoryId,
        String? title}) =>
    Input$CreatePullRequestInput(
        baseRefName: baseRefName == null ? this.baseRefName : baseRefName,
        body: body == null ? this.body : body(),
        clientMutationId: clientMutationId == null
            ? this.clientMutationId
            : clientMutationId(),
        draft: draft == null ? this.draft : draft(),
        headRefName: headRefName == null ? this.headRefName : headRefName,
        maintainerCanModify: maintainerCanModify == null
            ? this.maintainerCanModify
            : maintainerCanModify(),
        repositoryId: repositoryId == null ? this.repositoryId : repositoryId,
        title: title == null ? this.title : title);