I currently have two enums
enum UserVisibleSettings { track, mark, } enum UserVisibleTwo { thing, otherthing, }
And the goal is that I want to make an extension that will allow me to convert an enum into a List<String>
List<String>
I'm able to make an extension on UserVisibleSettings or UserVisibleTwo but how can I make an extension on all enums?
UserVisibleSettings
UserVisibleTwo
Not possible in current version of Dart since enums does not have a shared interface in Dart which are specific for enums.
1.4m articles
1.4m replys
5 comments
56.9k users