It said name is not valid.
And the reason was underscore in the name of JavascriptCannel.
As matter of fact, there is not any reference that JavacriptInterface does not allow underscore for javascript function name.
Proposal
I think it can be fixed with this change in javascript_channel.dart.
Use case
When I try to use JavascriptChannel like this. JavascriptChannel throws error.
It said name is not valid. And the reason was underscore in the name of JavascriptCannel. As matter of fact, there is not any reference that JavacriptInterface does not allow underscore for javascript function name.
Proposal
I think it can be fixed with this change in javascript_channel.dart.
Before
https://github.com/fluttercommunity/flutter_webview_plugin/blob/4862bd987cf8ce6695d8d280ab407d57e5ae30f0/lib/src/javascript_channel.dart#L3-L5
After