From 0aa322a36efc2925884e54cf0c80ff9c53c56698 Mon Sep 17 00:00:00 2001 From: GIancarlo Buenaflor Date: Wed, 17 Jul 2024 14:22:15 +0200 Subject: [PATCH] ignore analyze issues --- .../event_processor/enricher/web_enricher_event_processor.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dart/lib/src/event_processor/enricher/web_enricher_event_processor.dart b/dart/lib/src/event_processor/enricher/web_enricher_event_processor.dart index d6d588ac0a..27bb6b99db 100644 --- a/dart/lib/src/event_processor/enricher/web_enricher_event_processor.dart +++ b/dart/lib/src/event_processor/enricher/web_enricher_event_processor.dart @@ -71,6 +71,7 @@ class WebEnricherEventProcessor implements EnricherEventProcessor { int? _getMemorySize() { // https://developer.mozilla.org/en-US/docs/Web/API/Navigator/deviceMemory + // ignore: invalid_null_aware_operator final size = _window.navigator.deviceMemory?.toDouble(); final memoryByteSize = size != null ? size * 1024 * 1024 * 1024 : null; return memoryByteSize?.toInt(); @@ -102,5 +103,6 @@ class WebEnricherEventProcessor implements EnricherEventProcessor { } extension on web.Navigator { + // ignore: unused_element external double? get deviceMemory; }