Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-21 12:46:34 +08:00
parent 5f3f158932
commit 604d78ad6a
161 changed files with 4873 additions and 4770 deletions

View File

@@ -1,28 +1,11 @@
enum PlayRepeat {
pause,
listOrder,
singleCycle,
listCycle,
autoPlayRelated,
}
pause('播完暂停'),
listOrder('顺序播放'),
singleCycle('单个循环'),
listCycle('列表循环'),
autoPlayRelated('自动连播'),
;
extension PlayRepeatExtension on PlayRepeat {
static const List<String> _descList = <String>[
'播完暂停',
'顺序播放',
'单个循环',
'列表循环',
'自动连播',
];
String get description => _descList[index];
static const List<double> _valueList = [
1,
2,
3,
4,
5,
];
double get value => _valueList[index];
double get defaultValue => _valueList[1];
final String desc;
const PlayRepeat(this.desc);
}