translate method

Future<Translation> translate (
  1. {String from: 'auto',
  2. String to: 'en'}
)

Implementation

Future<Translation> translate(
        {String from = 'auto', String to = 'en'}) async =>
    await GoogleTranslator().translate(this, from: from, to: to);