FakeIssue constructor

FakeIssue({
  1. required int number,
  2. required String nodeId,
  3. required String title,
  4. required String body,
  5. required String author,
  6. required DateTime createdAt,
  7. required DateTime updatedAt,
  8. String state = 'open',
  9. Set<String>? labels,
  10. List<FakeComment>? comments,
  11. DateTime? closedAt,
})

Implementation

FakeIssue({
  required this.number,
  required this.nodeId,
  required this.title,
  required this.body,
  required this.author,
  required this.createdAt,
  required this.updatedAt,
  this.state = 'open',
  Set<String>? labels,
  List<FakeComment>? comments,
  this.closedAt,
})  : labels = labels ?? {},
      comments = comments ?? [];