summaryrefslogtreecommitdiffstats
path: root/lib/class.dart
diff options
context:
space:
mode:
Diffstat (limited to 'lib/class.dart')
-rw-r--r--lib/class.dart30
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/class.dart b/lib/class.dart
new file mode 100644
index 0000000..5aa74cf
--- /dev/null
+++ b/lib/class.dart
@@ -0,0 +1,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,
+ );
+ }
+
+}
+