logNavigationEvent<T> method
Implementation
Future<T?> logNavigationEvent<T>(String? route,
{Object? arguments, String? type}) async {
_flutterLoggerController.add(
MicroAppNavigatorEvent(route: route, arguments: arguments, type: type));
if (MicroAppPreferences.config.nativeNavigationLogEnabled) {
return _nativeLoggerService.emit(
Constants.methodNavigationLog,
jsonEncode(
{_route: route, _arguments: arguments.toString(), _type: type}));
}
return null;
}