mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
43 lines
620 B
Dart
43 lines
620 B
Dart
enum PlaySpeed {
|
|
// pointTwoFive,
|
|
pointFive,
|
|
pointSevenFive,
|
|
|
|
one,
|
|
onePointTwoFive,
|
|
onePointFive,
|
|
onePointSevenFive,
|
|
|
|
two,
|
|
three,
|
|
}
|
|
|
|
extension PlaySpeedExtension on PlaySpeed {
|
|
static final List<String> _descList = [
|
|
// '0.25',
|
|
'0.5',
|
|
'0.75',
|
|
'正常',
|
|
'1.25',
|
|
'1.5',
|
|
'1.75',
|
|
'2.0',
|
|
'3.0'
|
|
];
|
|
String get description => _descList[index];
|
|
|
|
static final List<double> _valueList = [
|
|
// 0.25,
|
|
0.5,
|
|
0.75,
|
|
1.0,
|
|
1.25,
|
|
1.5,
|
|
1.75,
|
|
2.0,
|
|
3.0,
|
|
];
|
|
double get value => _valueList[index];
|
|
double get defaultValue => _valueList[3];
|
|
}
|