From ab9bd029866180b57b2be9e47f6279f68879f18e Mon Sep 17 00:00:00 2001 From: guy Date: Sat, 9 Sep 2023 23:07:19 +0300 Subject: [PATCH] Fix analysis warning --- lib/flutter_fft.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/flutter_fft.dart b/lib/flutter_fft.dart index a82c884..e145738 100644 --- a/lib/flutter_fft.dart +++ b/lib/flutter_fft.dart @@ -135,7 +135,7 @@ class FlutterFft { _recorderController = new StreamController.broadcast(); } - _channel.setMethodCallHandler((MethodCall call) { + _channel.setMethodCallHandler((MethodCall call) async { // List newARGS = [ // call.arguments[0], // call.arguments[1], @@ -187,7 +187,7 @@ class FlutterFft { default: throw new ArgumentError("Unknown method: ${call.method}"); } - return null as Future; + return null; }); }