RhythmBox/lib/services/artist.dart

14 lines
325 B
Dart
Raw Normal View History

2024-08-26 17:49:05 +00:00
import 'package:spotify/spotify.dart';
2024-08-27 06:35:16 +00:00
extension ArtistSimpleExtension on List<ArtistSimple> {
String asString() {
2024-08-27 06:48:31 +00:00
return map((e) => e.name?.replaceAll(',', ' ')).join(', ');
2024-08-27 06:35:16 +00:00
}
}
extension ArtistExtension on List<Artist> {
2024-08-26 17:49:05 +00:00
String asString() {
2024-08-27 06:48:31 +00:00
return map((e) => e.name?.replaceAll(',', ' ')).join(', ');
2024-08-26 17:49:05 +00:00
}
}