convert method

  1. @override
Future<String?> convert(
  1. String str,
  2. ConversionType conversionType
)
override

Implementation

@override
Future<String?> convert(String str, ConversionType conversionType) async {
  final res = await methodChannel.invokeMethod<String>('convert', {
    "text": str,
    "ConversionType": conversionType.name.toUpperCase(),
  });
  return res;
}