copyWith method
Returns a copy of this issue with the provided overrides.
Implementation
Issue copyWith({
String? state,
String? title,
String? description,
int? priority,
List<String>? labels,
List<IssueBlocker>? blockedBy,
DateTime? updatedAt,
}) {
return Issue(
id: id,
identifier: identifier,
title: title ?? this.title,
description: description ?? this.description,
priority: priority ?? this.priority,
state: state ?? this.state,
branchName: branchName,
url: url,
labels: labels ?? this.labels,
blockedBy: blockedBy ?? this.blockedBy,
createdAt: createdAt,
updatedAt: updatedAt ?? this.updatedAt,
);
}