addTitleRecord method

void addTitleRecord(
  1. TextRecord record
)

Implementation

void addTitleRecord(TextRecord record) {
  _titleRecords.add(record);
  if (_titleLanguages.contains(record.language)) {
    throw ArgumentError(
        "Language of titles can not be repeated, got ${record.language}");
  }
  _titleLanguages.add(record.language);
}