File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
dart/lib/src/event_processor/enricher Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,10 @@ EnricherEventProcessor enricherEventProcessor(SentryOptions options) {
12
12
/// Uses Darts [Platform] (https://api.dart.dev/stable/dart-io/Platform-class.html)
13
13
/// class to read information.
14
14
class IoEnricherEventProcessor implements EnricherEventProcessor {
15
- IoEnricherEventProcessor (this ._options) {
16
- dartVersion = _extractDartVersion (Platform .version);
17
- }
15
+ IoEnricherEventProcessor (this ._options);
18
16
19
17
final SentryOptions _options;
20
- late final String dartVersion ;
18
+ late final String _dartVersion = _extractDartVersion ( Platform .version) ;
21
19
22
20
/// Extracts the semantic version and channel from the full version string.
23
21
///
@@ -73,7 +71,7 @@ class IoEnricherEventProcessor implements EnricherEventProcessor {
73
71
// like Flutter: https://flutter.dev/docs/testing/build-modes
74
72
final dartRuntime = SentryRuntime (
75
73
name: 'Dart' ,
76
- version: dartVersion ,
74
+ version: _dartVersion ,
77
75
rawDescription: Platform .version,
78
76
);
79
77
if (runtimes == null ) {
You can’t perform that action at this time.
0 commit comments