stop method
Stops playback and closes the stream; keeps sources and settings.
Implementation
@override
Future<RadioPlayerState> stop() {
calls.add('stop');
if (_state.sources.isNotEmpty) {
_state = _state.copyWith(
status: PlaybackStatus.paused,
nowPlaying: null,
error: null,
);
}
return _reply(_state);
}