fromEnum function

String? fromEnum(
  1. Object? e
)

Returns a String name given an Enum Type

Implementation

String? fromEnum(Object? e) {
  try {
    return e.toString().split('.').last;
  } catch (e) {
    return null;
  }
}