getCurrentViewName static method

String getCurrentViewName()

GLOBAL STATE ACCESS - Returns current view name for event enrichment

Implementation

static String getCurrentViewName() {
  final currentRoute = instance._currentProvider?.currentRoute;
  if (currentRoute != null && currentRoute.isNotEmpty) {
    return currentRoute;
  }
  return 'unknown';
}