setCurrentScreen static method

void setCurrentScreen(
  1. String name
)

Informs Digia that the user has navigated to a new screen.

This call is forwarded internally to the registered CEP plugin, which calls its own screen-tracking API (e.g. CleverTap.recordScreenView). Replace any existing CEP screen-tracking calls with this single call.

For automatic screen tracking, add DigiaNavigatorObserver to MaterialApp.navigatorObservers instead.

Digia.setCurrentScreen('checkout');

Implementation

static void setCurrentScreen(String name) {
  DigiaInstance.instance.setCurrentScreen(name);
}