Returns a String name given an Enum Type
String? fromEnum(Object? e) { try { return e.toString().split('.').last; } catch (e) { return null; } }