The following code doesn't compile: _"The getter 'values' isn't defined for the type 'Type'."_ `T stuff<T extends Enum>(String s) { return T.values.firstWhere((e) => e.toString() == s); }` Probably not supported, so this is a request for someday ;-)