Skip to content

[Inline values while debugging] Omit obvious enum values #5444

@loic-sharma

Description

@loic-sharma

Is your feature request related to a problem? Please describe.

This line checks if the ThemeData.brightness is equal to Brightness.light:

https://github.com/flutter/samples/blob/b1f8fa57b57b9eaa6b9bcb62179ab3cd5e0f97b7/material_3_demo/lib/src/buttons.dart#L21

This results in the following inline value:

Image

Describe the solution you'd like

In the source code, it's very clear the value of the Brightness.light enum value. The Brightness.light = Brightness (Brightness.light) inline value is noisy verbosity that isn't helpful. I would consider not adding an inline value for raw enum values like this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in editorRelates to code editing or language featuresis enhancementrelies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become available

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions