translateAndPrint method

void translateAndPrint(
  1. String text, {
  2. String from = 'auto',
  3. String to = 'en',
})

Translates and prints directly

Implementation

void translateAndPrint(String text,
    {String from = 'auto', String to = 'en'}) {
  translate(text, from: from, to: to).then(print);
}