Use enum index over platform channels.

This commit is contained in:
Ryan Heise 2020-09-27 01:51:45 +10:00
parent 1d7134ff31
commit 7a95e995f1
1 changed files with 2 additions and 2 deletions

View File

@ -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,
};
}