register static method
Implementation
static Future<void> register(JsBridgeListener listener) async {
_listener = listener;
if (_hasInitializeInvoked) {
// Return a future object even when the actual value is not ready.
return;
}
_channel.setMethodCallHandler(_handleNativeMethodCall);
_hasInitializeInvoked = true;
}