toString method

  1. @override
String toString()
override

Returns the custom string representation of the enum value.

Implementation

@override
String toString() {
  // Returns the name of the enum value as a string.
  return name.toLowerCase();
}