setShuffleModeEnabled method Null safety

Future<void> setShuffleModeEnabled(
  1. bool enabled
)

Sets whether shuffle mode is enabled.

Implementation

Future<void> setShuffleModeEnabled(bool enabled) async {
  if (_disposed) return;
  _shuffleModeEnabledSubject.add(enabled);
  await (await _platform).setShuffleMode(SetShuffleModeRequest(
      shuffleMode:
          enabled ? ShuffleModeMessage.all : ShuffleModeMessage.none));
}