diff --git a/flutter_charset_detector_android/lib/flutter_charset_detector_android.dart b/flutter_charset_detector_android/lib/flutter_charset_detector_android.dart index 2e6f375..fba112f 100644 --- a/flutter_charset_detector_android/lib/flutter_charset_detector_android.dart +++ b/flutter_charset_detector_android/lib/flutter_charset_detector_android.dart @@ -20,6 +20,7 @@ class CharsetDetectorAndroid extends CharsetDetectorPlatform { } /// Detect and return the charset of [bytes]. + @override Future detect(Uint8List bytes) async { return (await _channel.invokeMethod('detect', {'data': bytes}))!; } diff --git a/flutter_charset_detector_darwin/lib/flutter_charset_detector_darwin.dart b/flutter_charset_detector_darwin/lib/flutter_charset_detector_darwin.dart index 393295e..59c0a7b 100644 --- a/flutter_charset_detector_darwin/lib/flutter_charset_detector_darwin.dart +++ b/flutter_charset_detector_darwin/lib/flutter_charset_detector_darwin.dart @@ -20,6 +20,7 @@ class CharsetDetectorDarwin extends CharsetDetectorPlatform { } /// Detect and return the charset of [bytes]. + @override Future detect(Uint8List bytes) async { return (await _channel.invokeMethod('detect', {'data': bytes}))!; }