Use enum index over platform channels.
This commit is contained in:
parent
1d7134ff31
commit
7a95e995f1
|
@ -258,7 +258,7 @@ class SetLoopModeRequest {
|
|||
SetLoopModeRequest({@required this.loopMode});
|
||||
|
||||
Map<dynamic, dynamic> toMap() => {
|
||||
'loopMode': describeEnum(loopMode),
|
||||
'loopMode': loopMode.index,
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -275,7 +275,7 @@ class SetShuffleModeRequest {
|
|||
SetShuffleModeRequest({@required this.shuffleMode});
|
||||
|
||||
Map<dynamic, dynamic> toMap() => {
|
||||
'shuffleMode': describeEnum(shuffleMode),
|
||||
'shuffleMode': shuffleMode.index,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue