detect method

Future<String> detect(
  1. Uint8List bytes
)
override

Detect and return the charset of bytes.

Implementation

Future<String> detect(Uint8List bytes) async {
  return (await _channel.invokeMethod<String>('detect', {'data': bytes}))!;
}