RhythmBox/lib/services/artist.dart

14 lines
325 B
Dart
Raw Normal View History

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