copyWith method

Issue copyWith({
  1. String? state,
  2. String? title,
  3. String? description,
  4. int? priority,
  5. List<String>? labels,
  6. List<IssueBlocker>? blockedBy,
  7. DateTime? updatedAt,
})

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,
  );
}