Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ended isolate + unit tests for it #735

Closed
wants to merge 18 commits into from
Closed
5 changes: 2 additions & 3 deletions audio_service/example/lib/example_multiple_handlers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ class MainScreen extends StatelessWidget {
/// A stream reporting the combined state of the current queue and the current
/// media item within that queue.
Stream<QueueState> get _queueStateStream =>
Rx.combineLatest2<List<MediaItem>?, MediaItem?, QueueState>(
Rx.combineLatest2<List<MediaItem>, MediaItem?, QueueState>(
_audioHandler.queue,
_audioHandler.mediaItem,
(queue, mediaItem) => QueueState(queue, mediaItem));
Expand All @@ -235,7 +235,7 @@ class MainScreen extends StatelessWidget {
}

class QueueState {
final List<MediaItem>? queue;
final List<MediaItem> queue;
final MediaItem? mediaItem;

QueueState(this.queue, this.mediaItem);
Expand Down Expand Up @@ -286,7 +286,6 @@ class MainSwitchHandler extends SwitchAudioHandler {
/// An [AudioHandler] for playing a list of podcast episodes.
class AudioPlayerHandler extends BaseAudioHandler
with QueueHandler, SeekHandler {
// ignore: close_sinks
final BehaviorSubject<List<MediaItem>> _recentSubject =
BehaviorSubject.seeded(<MediaItem>[]);
final _mediaLibrary = MediaLibrary();
Expand Down
Loading