enumToString function

String enumToString(
  1. Object e
)

Removes the enum type and returns the value as a String.

Implementation

String enumToString(Object e) => e.toString().split('.').last;