addOtherSenseTranslations method

void addOtherSenseTranslations(
  1. Iterable<ViewItem> iterable
)

Add other translations from other ViewItem objects.

Implementation

void addOtherSenseTranslations(Iterable<ViewItem> iterable) {
  for (final sense in senses)
    for (final item in iterable) {
      final other =
          item.senses.firstWhere((e) => e.definition == sense.definition);
      sense.translations.addAll(other.translations);
    }
}