Files
PiliPlus/lib/plugin/pl_player/models/play_repeat.dart
bggRGjQaUbCoE caa58e9d7d mod: lint
mod: tweaks

opt: publish page

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
2025-05-04 14:56:56 +08:00

29 lines
508 B
Dart

enum PlayRepeat {
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];
}