20 lines
347 B
Dart
20 lines
347 B
Dart
import 'song.dart';
|
|
|
|
class QueueItem {
|
|
QueueItem(
|
|
this.song, {
|
|
this.originalIndex,
|
|
this.type = QueueItemType.standard,
|
|
});
|
|
|
|
final Song song;
|
|
final int originalIndex;
|
|
final QueueItemType type;
|
|
|
|
@override
|
|
String toString() {
|
|
return '${song.title}';
|
|
}
|
|
}
|
|
|
|
enum QueueItemType { standard, predecessor, successor, added }
|