30 lines
661 B
Dart
30 lines
661 B
Dart
import 'package:yumi/shared/data_sources/models/sc_music_mode.dart';
|
|
|
|
class SCMusicFolderMode {
|
|
const SCMusicFolderMode({
|
|
required this.id,
|
|
required this.name,
|
|
required this.path,
|
|
required this.songs,
|
|
this.addedCount = 0,
|
|
});
|
|
|
|
final String id;
|
|
final String name;
|
|
final String path;
|
|
final List<SCMusicMode> songs;
|
|
final int addedCount;
|
|
|
|
int get musicCount => songs.length;
|
|
|
|
SCMusicFolderMode copyWith({List<SCMusicMode>? songs, int? addedCount}) {
|
|
return SCMusicFolderMode(
|
|
id: id,
|
|
name: name,
|
|
path: path,
|
|
songs: songs ?? this.songs,
|
|
addedCount: addedCount ?? this.addedCount,
|
|
);
|
|
}
|
|
}
|