RhythmBox/lib/services/artist.dart
2024-08-27 14:35:16 +08:00

14 lines
325 B
Dart

import 'package:spotify/spotify.dart';
extension ArtistSimpleExtension on List<ArtistSimple> {
String asString() {
return map((e) => e.name?.replaceAll(",", " ")).join(", ");
}
}
extension ArtistExtension on List<Artist> {
String asString() {
return map((e) => e.name?.replaceAll(",", " ")).join(", ");
}
}