Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: The method 'setMockMessageHandler' isn't defined for the class… #16

Closed
wants to merge 1 commit into from

Conversation

moshTech
Copy link

… 'BinaryMessenger'.

Bug threw by the Flutter Debug Console after upgrading to flutter stable channel 2.5.0
../../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/isolate_bloc-1.0.4/lib/src/common/isolate/platform_channel/isolated_platform_channel_middleware.dart:29:25: Error: The method 'setMockMessageHandler' isn't defined for the class 'BinaryMessenger'.

  • 'BinaryMessenger' is from 'package:flutter/src/services/binary_messenger.dart' ('../../../Developer/flutter/packages/flutter/lib/src/services/binary_messenger.dart').

Try correcting the name to the name of an existing method, or defining a method named 'setMockMessageHandler'.
platformMessenger.setMockMessageHandler(channel, (message) {
^^^^^^^^^^^^^^^^^^^^^
2

FAILURE: Build failed with an exception.

… 'BinaryMessenger'.

Bug threw by the Flutter Debug Console after upgrading to flutter stable channel 2.5.0
../../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/isolate_bloc-1.0.4/lib/src/common/isolate/platform_channel/isolated_platform_channel_middleware.dart:29:25: Error: The method 'setMockMessageHandler' isn't defined for the class 'BinaryMessenger'.
 - 'BinaryMessenger' is from 'package:flutter/src/services/binary_messenger.dart' ('../../../Developer/flutter/packages/flutter/lib/src/services/binary_messenger.dart').

Try correcting the name to the name of an existing method, or defining a method named 'setMockMessageHandler'.
      platformMessenger.setMockMessageHandler(channel, (message) {
                        ^^^^^^^^^^^^^^^^^^^^^
2

FAILURE: Build failed with an exception.
@Maksimka101
Copy link
Owner

Thank you for this pr!)

Do you need it to be on pub dev?
Maybe you will wait for isolate_bloc v2?

@moshTech
Copy link
Author

Nope, you can just include it with the update in v2.

@Maksimka101
Copy link
Owner

I will include it with update in v2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants