RhythmBox/lib/services/sourced_track/models/search.dart

13 lines
251 B
Dart
Raw Normal View History

enum SearchMode {
youtube._("YouTube"),
youtubeMusic._("YouTube Music");
final String label;
const SearchMode._(this.label);
factory SearchMode.fromString(String key) {
return SearchMode.values.firstWhere((e) => e.name == key);
}
}