copyWith method
Copy with method for updating specific fields
Implementation
MediaInfo copyWith({
String? title,
String? artist,
String? album,
String? status,
String? playerName,
int? position,
int? length,
String? artUrl,
}) {
return MediaInfo(
title: title ?? this.title,
artist: artist ?? this.artist,
album: album ?? this.album,
status: status ?? this.status,
playerName: playerName ?? this.playerName,
position: position ?? this.position,
length: length ?? this.length,
artUrl: artUrl ?? this.artUrl,
);
}