Issue constructor
Issue({
- int id = 0,
- String url = '',
- String htmlUrl = '',
- int number = 0,
- String state = '',
- String title = '',
- User? user,
- List<
IssueLabel> ? labels, - User? assignee,
- Milestone? milestone,
- int commentsCount = 0,
- IssuePullRequest? pullRequest,
- DateTime? createdAt,
- DateTime? closedAt,
- DateTime? updatedAt,
- String body = '',
- 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;
}
}