Suggestion.empty constructor
Suggestion.empty({
- String title = '',
- bool isAnonymous = false,
- List<
String> images = const <String>[], - SuggestionStatus status = SuggestionStatus.requests,
- List<
SuggestionLabel> labels = const <SuggestionLabel>[], - List<
Comment> comments = const <Comment>[], - String id = '0',
- String authorId = '',
- String? description = '',
- DateTime? creationTime,
- Set<
String> notifyUserIds = const <String>{}, - 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();