autoDecode method

  1. @override
Future<DecodingResult> autoDecode(
  1. Uint8List bytes
)
override

Automatically detect the charset of bytes and decode to a string.

Implementation

@override
Future<DecodingResult> autoDecode(Uint8List bytes) async {
  final result = await _channel
      .invokeMethod<Map<dynamic, dynamic>>('autoDecode', {'data': bytes});
  return DecodingResult.fromJson(result!.cast());
}