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 songs; final int addedCount; int get musicCount => songs.length; SCMusicFolderMode copyWith({List? songs, int? addedCount}) { return SCMusicFolderMode( id: id, name: name, path: path, songs: songs ?? this.songs, addedCount: addedCount ?? this.addedCount, ); } }