getFetcher method

TextsFetcher getFetcher(
  1. String sourceKey
)

Implementation

TextsFetcher getFetcher(String sourceKey) {
  var configuration = textsConfig.get(sourceKey);

  switch (sourceKey) {
    case sourceApplanga:
      return ApplangaFetcher.fromConfiguration(configuration);
    default:
      throw 'Source $sourceKey is unknown!';
  }
}