getTransaltor function

Future<Translator> getTransaltor(
  1. String apiKey,
  2. String accessToken
)

Implementation

Future<Translator> getTransaltor(String apiKey, String accessToken) async {
  String key =
      await getApiKey(apiKey: apiKey, name: "deepl", accessToken: accessToken);
  Translator translator = Translator(authKey: key);

  return translator;
}