sendScreenView method
Implementation
Future<void> sendScreenView(Route? route, Route? previousRoute) async {
if (_routeFilter?.call(route, previousRoute) ?? false) {
return;
}
String name = "";
if (previousRoute != null) {
await FTRUMManager().stopView();
}
if (route != null) {
name = route.settings.name ?? "";
if (name.length == 0) {
name = route.runtimeType.toString();
}
await FTRUMManager().starView(name);
FTLifeRecycleMonitor.instance._currentPageName = name;
}
}