We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ad0478 commit 62ae1b3Copy full SHA for 62ae1b3
dart/lib/src/event_processor/enricher/web_enricher_event_processor.dart
@@ -71,6 +71,7 @@ class WebEnricherEventProcessor implements EnricherEventProcessor {
71
72
int? _getMemorySize() {
73
// https://developer.mozilla.org/en-US/docs/Web/API/Navigator/deviceMemory
74
+ // ignore: invalid_null_aware_operator
75
final size = _window.navigator.deviceMemory?.toDouble();
76
final memoryByteSize = size != null ? size * 1024 * 1024 * 1024 : null;
77
return memoryByteSize?.toInt();
@@ -102,5 +103,6 @@ class WebEnricherEventProcessor implements EnricherEventProcessor {
102
103
}
104
105
extension on web.Navigator {
106
+ // ignore: unused_element
107
external double? get deviceMemory;
108
0 commit comments