isEnglish method

  1. @override
Future<bool> isEnglish(
  1. String text,
  2. double threshold
)
override

Implementation

@override
Future<bool> isEnglish(String text, double threshold) async {
  final result = await methodChannel.invokeMethod<bool>('isEnglish', {
        "text": text,
        "threshold": threshold,
      }) ??
      false;
  return result;
}