translateText method
Future<void>
translateText({
- required String text,
- int backgroundColorRed = 255,
- int backgroundColorGreen = 255,
- int backgroundColorBlue = 255,
- 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,
});
}