Entry constructor

Entry({
  1. List<String> translatorComment = const [],
  2. List<String> extractedComment = const [],
  3. List<String> flags = const [],
  4. String msgid = "",
  5. String? msgidPlural,
  6. String? msgctxt,
  7. String msgstr = "",
  8. List<String> msgstrList = const [],
  9. List<Reference> references = const [],
  10. required ExtractSettings settings,
})

Implementation

Entry({
  List<String> translatorComment = const [],
  List<String> extractedComment = const [],
  List<String> flags = const [],
  this.msgid = "",
  this.msgidPlural,
  this.msgctxt,
  this.msgstr = "",
  List<String> msgstrList = const [],
  List<Reference> references = const [],
  required this.settings,
}) {
  this.translatorComment.addAll(translatorComment);
  this.extractedComment.addAll(extractedComment);
  this.flags.addAll(flags);
  this.msgstrList.addAll(msgstrList);
  this.references.addAll(references);
}