diff --git a/lib/src/iris_method_channel.dart b/lib/src/iris_method_channel.dart index 26d7d53..22b47dc 100644 --- a/lib/src/iris_method_channel.dart +++ b/lib/src/iris_method_channel.dart @@ -1,7 +1,6 @@ import 'dart:async'; import 'dart:ffi' as ffi; import 'dart:isolate'; -import 'dart:typed_data'; import 'package:async/async.dart'; import 'package:ffi/ffi.dart'; diff --git a/test/iris_method_channel_test.dart b/test/iris_method_channel_test.dart index fb49283..27c7a7e 100644 --- a/test/iris_method_channel_test.dart +++ b/test/iris_method_channel_test.dart @@ -452,8 +452,8 @@ void main() { test('disposed after receive onDetachedFromEngine_fromPlatform', () async { await irisMethodChannel.initilize([]); + // Simulate the `MethodChannel` call from native side const StandardMethodCodec codec = StandardMethodCodec(); - final ByteData data = codec.encodeMethodCall(const MethodCall( 'onDetachedFromEngine_fromPlatform', ));