From dc3ef2c0feddd24f9fd171f519d8c840c0ed9742 Mon Sep 17 00:00:00 2001 From: Aaron Madlon-Kay Date: Sun, 31 Mar 2024 22:07:21 +0900 Subject: [PATCH] Fix lints --- .../lib/flutter_charset_detector_android.dart | 1 + .../lib/flutter_charset_detector_darwin.dart | 1 + 2 files changed, 2 insertions(+) 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}))!; }