translateText method

  1. @override
Future<void> translateText({
  1. required String text,
  2. int backgroundColorRed = 255,
  3. int backgroundColorGreen = 255,
  4. int backgroundColorBlue = 255,
  5. int backgroundColorAlpha = 255,
})
override

Implementation

@override
Future<void> translateText({
  required String text,
  int backgroundColorRed = 255,
  int backgroundColorGreen = 255,
  int backgroundColorBlue = 255,
  int backgroundColorAlpha = 255,
}) async {
  await methodChannel.invokeMethod<void>('translateText', {
    'text': text,
    'backgroundColorRed': backgroundColorRed,
    'backgroundColorGreen': backgroundColorGreen,
    'backgroundColorBlue': backgroundColorBlue,
    'backgroundColorAlpha': backgroundColorAlpha,
  });
}