# Remove describeEnum

> The `describeEnum` method has been removed from the Flutter framework. Since Dart 2.14, enums have a `name` getter that does the same thing.




:::important
These breaking change docs are accurate, as of the release
under which they are published. Over time, the
workarounds described here might become inaccurate.
We don't, in general, keep these breaking change docs up
to date as of each release.

The [breaking change index file](/release/breaking-changes)
lists the docs created for each release.
:::


## Summary

The `describeEnum` method has been removed from the framework because it's redundant with the `name`
getter on `Enum` which was introduced in `Dart 2.14`.

## Context

Historically, Flutter used `describeEnum` to return a `String` description of an enum value.
This became redundant when the `name` getter of `Enum` was introduced in `Dart 2.14`.

## Migration guide

If your code previously used the `describeEnum` method to get the value name of an enum member,
migrate your code to use the `name` getter on the instance itself.

```dart diff
  enum Theme { light, dark }

- final theme = describeEnum(Theme.light);

+ Theme.light.name;
```

:::important
This migration isn't supported by `dart fix`.
:::

## Timeline

Landed in version: TBD<br>
In stable release: TBD

## References

API documentation:

* [`enums`][]


Relevant PRs:

* [PR 94496][]
* [PR 190076][]

[`enums`]: https://dart.dev/language/enums
[PR 94496]: https://github.com/flutter/flutter/pull/94496
[PR 190076]: https://github.com/flutter/flutter/pull/190076



