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; }); }