Translation.forEmptySource constructor

Translation.forEmptySource(
  1. String sourceLanguage,
  2. List<String> targets
)

Implementation

factory Translation.forEmptySource(
  String sourceLanguage,
  List<String> targets,
) {
  return Translation(
    sourceLanguage: sourceLanguage,
    source: '',
    translations: targets.map((x) => MapEntry(x, '')).toMap(),
  );
}