EnumName extension Null safety

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

Properties

name String
The name of the enum value. [...]
read-only