Suggestion.empty constructor

Suggestion.empty({
  1. String title = '',
  2. bool isAnonymous = false,
  3. List<String> images = const <String>[],
  4. SuggestionStatus status = SuggestionStatus.requests,
  5. List<SuggestionLabel> labels = const <SuggestionLabel>[],
  6. List<Comment> comments = const <Comment>[],
  7. String id = '0',
  8. String authorId = '',
  9. String? description = '',
  10. DateTime? creationTime,
  11. Set<String> notifyUserIds = const <String>{},
  12. Set<String> votedUserIds = const <String>{},
})

Implementation

Suggestion.empty({
  this.title = '',
  this.isAnonymous = false,
  this.images = const <String>[],
  this.status = SuggestionStatus.requests,
  this.labels = const <SuggestionLabel>[],
  this.comments = const <Comment>[],
  this.id = '0',
  this.authorId = '',
  this.description = '',
  DateTime? creationTime,
  this.notifyUserIds = const <String>{},
  this.votedUserIds = const <String>{},
}) : creationTime = creationTime ?? DateTime.now();