dart / 2 / dart-core / enumname.html

EnumName extension

Access to the name of an enum value.

This method is declared as an extension method instead of an instance method in order to allow enum values to have the name name.

on
Annotations
  • @Since("2.15")

Properties

name → String
read-only
The name of the enum value.

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-core/EnumName.html