diff options
Diffstat (limited to 'lib/music_methods/modeClass.dart')
-rw-r--r-- | lib/music_methods/modeClass.dart | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/music_methods/modeClass.dart b/lib/music_methods/modeClass.dart new file mode 100644 index 0000000..1cb6122 --- /dev/null +++ b/lib/music_methods/modeClass.dart @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: Apache-2.0 +class Mode{ + Mode({required this.isRepeat, required this.isSingle, required this.prev}); + + final bool isSingle; + final bool isRepeat; + final bool prev; + + + Mode copyWith({bool? isSingle , bool? isRepeat, bool? prev}){ + return Mode(isRepeat: isRepeat ?? this.isRepeat, isSingle: isSingle ?? this.isSingle, prev: prev ?? this.prev); + } + + +}
\ No newline at end of file |