mod: format code
This commit is contained in:
@ -6,13 +6,13 @@ enum PlayRepeat {
|
||||
}
|
||||
|
||||
extension PlayRepeatExtension on PlayRepeat {
|
||||
static final List<String> _descList = [
|
||||
static final List<String> _descList = <String>[
|
||||
'播完暂停',
|
||||
'顺序播放',
|
||||
'单个循环',
|
||||
'列表循环',
|
||||
];
|
||||
get description => _descList[index];
|
||||
String get description => _descList[index];
|
||||
|
||||
static final List<double> _valueList = [
|
||||
1,
|
||||
@ -20,6 +20,6 @@ extension PlayRepeatExtension on PlayRepeat {
|
||||
3,
|
||||
4,
|
||||
];
|
||||
get value => _valueList[index];
|
||||
get defaultValue => _valueList[1];
|
||||
double get value => _valueList[index];
|
||||
double get defaultValue => _valueList[1];
|
||||
}
|
||||
|
||||
@ -22,7 +22,7 @@ extension PlaySpeedExtension on PlaySpeed {
|
||||
'1.75',
|
||||
'2.0',
|
||||
];
|
||||
get description => _descList[index];
|
||||
String get description => _descList[index];
|
||||
|
||||
static final List<double> _valueList = [
|
||||
0.25,
|
||||
@ -34,6 +34,6 @@ extension PlaySpeedExtension on PlaySpeed {
|
||||
1.75,
|
||||
2.0,
|
||||
];
|
||||
get value => _valueList[index];
|
||||
get defaultValue => _valueList[3];
|
||||
double get value => _valueList[index];
|
||||
double get defaultValue => _valueList[3];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user