copyWith method
Returns a copy with the given values replaced.
Implementation
MusicSelection copyWith({
Duration? start,
Duration? duration,
String? localPath,
double? volume,
}) => MusicSelection(
track: track,
start: start ?? this.start,
duration: duration ?? this.duration,
localPath: localPath ?? this.localPath,
volume: volume ?? this.volume,
);