Skip to content

Commit

Permalink
Fix analyze issues on dart
Browse files Browse the repository at this point in the history
  • Loading branch information
buenaflor committed Nov 16, 2023
1 parent 8a2c289 commit 54e9727
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,16 +139,15 @@ class FlutterEnricherEventProcessor implements EventProcessor {
return <String, String>{
'has_render_view': hasRenderView.toString(),
if (tempDebugBrightnessOverride != null)
'debug_brightness_override': describeEnum(tempDebugBrightnessOverride),
'debug_brightness_override': tempDebugBrightnessOverride.name,

Check warning on line 142 in flutter/lib/src/event_processor/flutter_enricher_event_processor.dart

View check run for this annotation

Codecov / codecov/patch

flutter/lib/src/event_processor/flutter_enricher_event_processor.dart#L142

Added line #L142 was not covered by tests
if (debugPlatformOverride != null)
'debug_default_target_platform_override':
describeEnum(debugPlatformOverride),
'debug_default_target_platform_override': debugPlatformOverride.name,

Check warning on line 144 in flutter/lib/src/event_processor/flutter_enricher_event_processor.dart

View check run for this annotation

Codecov / codecov/patch

flutter/lib/src/event_processor/flutter_enricher_event_processor.dart#L144

Added line #L144 was not covered by tests
if (initialLifecycleState != null && initialLifecycleState.isNotEmpty)
'initial_lifecycle_state': initialLifecycleState,
if (defaultRouteName != null && defaultRouteName.isNotEmpty)
'default_route_name': defaultRouteName,
if (currentLifecycle != null)
'current_lifecycle_state': describeEnum(currentLifecycle),
'current_lifecycle_state': currentLifecycle.name,
// Seems to always return false.
// Also always fails in tests.
// See https://github.com/flutter/flutter/issues/83919
Expand Down

0 comments on commit 54e9727

Please sign in to comment.