onJavaScriptMessage method
Implementation
void onJavaScriptMessage(String name, dynamic body) {
assert(!_closed);
final handler = _javaScriptMessageHandlers[name];
assert(handler != null, "handler $name is not registed.");
handler?.call(name, body);
}