handleMessage method
Parses and handles an incoming message from the WebView, tracking the corresponding event.
Implementation
void handleMessage(String msg) {
if (msg.isNotEmpty) {
Message message = Message.fromJson(msg);
message.trackEvent(tracker, ignoreTrackerNamespace);
}
}