copyWith method
SongInfo
copyWith(
{ - int? id,
- String? title,
- String? album,
- int? albumId,
- String? artist,
- int? artistId,
- String? fileUri,
- int? duration,
- int? bookmark,
- String? absolutePath,
- bool? isMusic,
- bool? isPodcast,
- bool? isRingtone,
- bool? isAlarm,
- bool? isNotification,
- int? fileSize,
- int? year,
})
Implementation
SongInfo copyWith({
int? id,
String? title,
String? album,
int? albumId,
String? artist,
int? artistId,
String? fileUri,
int? duration,
int? bookmark,
String? absolutePath,
bool? isMusic,
bool? isPodcast,
bool? isRingtone,
bool? isAlarm,
bool? isNotification,
int? fileSize,
int? year,
}) {
return SongInfo(
id: id ?? this.id,
title: title ?? this.title,
album: album ?? this.album,
albumId: albumId ?? this.albumId,
artist: artist ?? this.artist,
artistId: artistId ?? this.artistId,
fileUri: fileUri ?? this.fileUri,
duration: duration ?? this.duration,
bookmark: bookmark ?? this.bookmark,
absolutePath: absolutePath ?? this.absolutePath,
isMusic: isMusic ?? this.isMusic,
isPodcast: isPodcast ?? this.isPodcast,
isRingtone: isRingtone ?? this.isRingtone,
isAlarm: isAlarm ?? this.isAlarm,
isNotification: isNotification ?? this.isNotification,
fileSize: fileSize ?? this.fileSize,
year: year ?? this.year,
);
}