trackPage static method
Implementation
static void trackPage(String pageName, BuildContext context) {
try {
if (Plotline.shouldCheckForParentWidget) {
_ctx = getTopmostContext(context);
} else {
_ctx = context;
}
plotlineDebugLog("trackPage called with pageName: $pageName and context: $context");
plotlineChannel
.invokeMethod('trackPage', <String, dynamic>{'pageName': pageName});
} catch (e) {
debugPrint("Error in trackPage: $e");
}
}