Issue constructor
Issue({ - int id = 0,
- String url = '',
- String htmlUrl = '',
- int number = 0,
- String state = '',
- String title = '',
- User? user,
- List<IssueLabel>? labels,
- User? assignee,
- List<User>? assignees,
- Milestone? milestone,
- IssuePullRequest? pullRequest,
- DateTime? createdAt,
- DateTime? closedAt,
- DateTime? updatedAt,
- String body = '',
- User? closedBy,
- String? activeLockReason,
- String? authorAssociation,
- String? bodyHtml,
- String? bodyText,
- bool? draft,
- String? eventsUrl,
- String? labelsUrl,
- bool? locked,
- String? nodeId,
- GitHubApp? performedViaGithubApp,
- ReactionRollup? reactions,
- Repository? repository,
- String? repositoryUrl,
- String? stateReason,
- String? timelineUrl,
})
Implementation
Issue({
this.id = 0,
this.url = '',
this.htmlUrl = '',
this.number = 0,
this.state = '',
this.title = '',
this.user,
List<IssueLabel>? labels,
this.assignee,
this.assignees,
this.milestone,
this.commentsCount = 0,
this.pullRequest,
this.createdAt,
this.closedAt,
this.updatedAt,
this.body = '',
this.closedBy,
// Properties from the Timeline API
this.activeLockReason,
this.authorAssociation,
this.bodyHtml,
this.bodyText,
this.commentsUrl,
this.draft,
this.eventsUrl,
this.labelsUrl,
this.locked,
this.nodeId,
this.performedViaGithubApp,
this.reactions,
this.repository,
this.repositoryUrl,
this.stateReason,
this.timelineUrl,
}) {
if (labels != null) {
this.labels = labels;
}
}