translate method

Future<String?> translate(
  1. String text,
  2. String from,
  3. String to
)

Implementation

Future<String?> translate(String text, String from, String to) async {
  final result = await methodChannel
      .invokeMethod<String>('translate', {"text": text,"from": from,"to": to});
  return result;
}