logClickEvent static method
Implementation
static Future<void> logClickEvent(String key, BuildContext context) async {
final route = ModalRoute.of(context)?.settings.name ?? currentRoute;
if (debug) {
debugPrint('🖱️ Click detectado em: $key');
debugPrint('📍 Tela: $route');
}
await logEvent(
name: 'click on: $key',
parameters: {
'key': key,
'screen': route,
},
);
}