Issue constructor

Issue({
  1. int id = 0,
  2. String url = '',
  3. String htmlUrl = '',
  4. int number = 0,
  5. String state = '',
  6. String title = '',
  7. User? user,
  8. List<IssueLabel>? labels,
  9. User? assignee,
  10. Milestone? milestone,
  11. int commentsCount = 0,
  12. IssuePullRequest? pullRequest,
  13. DateTime? createdAt,
  14. DateTime? closedAt,
  15. DateTime? updatedAt,
  16. String body = '',
  17. User? closedBy,
})

Implementation

Issue({
  this.id = 0,
  this.url = '',
  this.htmlUrl = '',
  this.number = 0,
  this.state = '',
  this.title = '',
  this.user,
  List<IssueLabel>? labels,
  this.assignee,
  this.milestone,
  this.commentsCount = 0,
  this.pullRequest,
  this.createdAt,
  this.closedAt,
  this.updatedAt,
  this.body = '',
  this.closedBy,
}) {
  if (labels != null) {
    this.labels = labels;
  }
}