1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// SPDX-License-Identifier: Apache-2.0
import 'dart:core';
class CurrentSong{
CurrentSong({required this.title, required this.artist, required this.duration, required this.isPlaying, required this.time});
final String title;
final String artist;
final String duration;
final bool isPlaying;
final String time;
CurrentSong copyWith({
String ? title,
String ? artist,
String ? duration,
bool ? isPlaying,
String? time,
}){
return CurrentSong(artist: artist ?? this.artist,
title: title ?? this.title,
duration: duration ?? this.duration,
isPlaying: isPlaying ?? this.isPlaying,
time: time ?? this.time,
);
}
}
|