2020-04-07 22:06:43 +02:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
part of 'audio_store.dart';
|
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
// StoreGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
2020-08-08 19:02:03 +02:00
|
|
|
// ignore_for_file: non_constant_identifier_names, unnecessary_brace_in_string_interps, unnecessary_lambdas, prefer_expression_function_bodies, lines_longer_than_80_chars, avoid_as, avoid_annotating_with_dynamic
|
2020-04-07 22:06:43 +02:00
|
|
|
|
|
|
|
mixin _$AudioStore on _AudioStore, Store {
|
2020-04-09 17:50:28 +02:00
|
|
|
final _$currentSongAtom = Atom(name: '_AudioStore.currentSong');
|
|
|
|
|
|
|
|
@override
|
|
|
|
ObservableStream<Song> get currentSong {
|
2020-06-28 10:40:53 +02:00
|
|
|
_$currentSongAtom.reportRead();
|
2020-04-09 17:50:28 +02:00
|
|
|
return super.currentSong;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
set currentSong(ObservableStream<Song> value) {
|
2020-06-28 10:40:53 +02:00
|
|
|
_$currentSongAtom.reportWrite(value, super.currentSong, () {
|
2020-04-09 17:50:28 +02:00
|
|
|
super.currentSong = value;
|
2020-06-28 10:40:53 +02:00
|
|
|
});
|
2020-04-09 17:50:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
final _$songAtom = Atom(name: '_AudioStore.song');
|
|
|
|
|
|
|
|
@override
|
|
|
|
Song get song {
|
2020-06-28 10:40:53 +02:00
|
|
|
_$songAtom.reportRead();
|
2020-04-09 17:50:28 +02:00
|
|
|
return super.song;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
set song(Song value) {
|
2020-06-28 10:40:53 +02:00
|
|
|
_$songAtom.reportWrite(value, super.song, () {
|
2020-04-09 17:50:28 +02:00
|
|
|
super.song = value;
|
2020-06-28 10:40:53 +02:00
|
|
|
});
|
2020-04-09 17:50:28 +02:00
|
|
|
}
|
|
|
|
|
2020-04-10 20:12:26 +02:00
|
|
|
final _$playbackStateStreamAtom =
|
|
|
|
Atom(name: '_AudioStore.playbackStateStream');
|
|
|
|
|
|
|
|
@override
|
|
|
|
ObservableStream<PlaybackState> get playbackStateStream {
|
2020-06-28 10:40:53 +02:00
|
|
|
_$playbackStateStreamAtom.reportRead();
|
2020-04-10 20:12:26 +02:00
|
|
|
return super.playbackStateStream;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
set playbackStateStream(ObservableStream<PlaybackState> value) {
|
2020-06-28 10:40:53 +02:00
|
|
|
_$playbackStateStreamAtom.reportWrite(value, super.playbackStateStream, () {
|
2020-04-10 20:12:26 +02:00
|
|
|
super.playbackStateStream = value;
|
2020-06-28 10:40:53 +02:00
|
|
|
});
|
2020-04-10 20:12:26 +02:00
|
|
|
}
|
|
|
|
|
2020-04-11 20:23:02 +02:00
|
|
|
final _$currentPositionStreamAtom =
|
|
|
|
Atom(name: '_AudioStore.currentPositionStream');
|
|
|
|
|
|
|
|
@override
|
|
|
|
ObservableStream<int> get currentPositionStream {
|
2020-06-28 10:40:53 +02:00
|
|
|
_$currentPositionStreamAtom.reportRead();
|
2020-04-11 20:23:02 +02:00
|
|
|
return super.currentPositionStream;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
set currentPositionStream(ObservableStream<int> value) {
|
2020-06-28 10:40:53 +02:00
|
|
|
_$currentPositionStreamAtom.reportWrite(value, super.currentPositionStream,
|
|
|
|
() {
|
2020-04-11 20:23:02 +02:00
|
|
|
super.currentPositionStream = value;
|
2020-06-28 10:40:53 +02:00
|
|
|
});
|
2020-04-11 20:23:02 +02:00
|
|
|
}
|
|
|
|
|
2020-08-01 20:14:13 +02:00
|
|
|
final _$queueStreamAtom = Atom(name: '_AudioStore.queueStream');
|
|
|
|
|
|
|
|
@override
|
|
|
|
ObservableStream<List<Song>> get queueStream {
|
|
|
|
_$queueStreamAtom.reportRead();
|
|
|
|
return super.queueStream;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
set queueStream(ObservableStream<List<Song>> value) {
|
|
|
|
_$queueStreamAtom.reportWrite(value, super.queueStream, () {
|
|
|
|
super.queueStream = value;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
final _$queueIndexStreamAtom = Atom(name: '_AudioStore.queueIndexStream');
|
|
|
|
|
|
|
|
@override
|
|
|
|
ObservableStream<int> get queueIndexStream {
|
|
|
|
_$queueIndexStreamAtom.reportRead();
|
|
|
|
return super.queueIndexStream;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
set queueIndexStream(ObservableStream<int> value) {
|
|
|
|
_$queueIndexStreamAtom.reportWrite(value, super.queueIndexStream, () {
|
|
|
|
super.queueIndexStream = value;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2020-06-28 10:40:53 +02:00
|
|
|
final _$playSongAsyncAction = AsyncAction('_AudioStore.playSong');
|
2020-04-07 22:06:43 +02:00
|
|
|
|
|
|
|
@override
|
|
|
|
Future<void> playSong(int index, List<Song> songList) {
|
|
|
|
return _$playSongAsyncAction.run(() => super.playSong(index, songList));
|
|
|
|
}
|
|
|
|
|
2020-06-28 10:40:53 +02:00
|
|
|
final _$playAsyncAction = AsyncAction('_AudioStore.play');
|
2020-04-10 20:12:26 +02:00
|
|
|
|
|
|
|
@override
|
|
|
|
Future<void> play() {
|
|
|
|
return _$playAsyncAction.run(() => super.play());
|
|
|
|
}
|
|
|
|
|
2020-06-28 10:40:53 +02:00
|
|
|
final _$pauseAsyncAction = AsyncAction('_AudioStore.pause');
|
2020-04-10 20:12:26 +02:00
|
|
|
|
|
|
|
@override
|
|
|
|
Future<void> pause() {
|
|
|
|
return _$pauseAsyncAction.run(() => super.pause());
|
|
|
|
}
|
|
|
|
|
2020-08-01 20:14:13 +02:00
|
|
|
final _$skipToNextAsyncAction = AsyncAction('_AudioStore.skipToNext');
|
|
|
|
|
|
|
|
@override
|
|
|
|
Future<void> skipToNext() {
|
|
|
|
return _$skipToNextAsyncAction.run(() => super.skipToNext());
|
|
|
|
}
|
|
|
|
|
|
|
|
final _$skipToPreviousAsyncAction = AsyncAction('_AudioStore.skipToPrevious');
|
|
|
|
|
|
|
|
@override
|
|
|
|
Future<void> skipToPrevious() {
|
|
|
|
return _$skipToPreviousAsyncAction.run(() => super.skipToPrevious());
|
|
|
|
}
|
|
|
|
|
2020-06-28 10:40:53 +02:00
|
|
|
final _$updateSongAsyncAction = AsyncAction('_AudioStore.updateSong');
|
2020-04-09 17:50:28 +02:00
|
|
|
|
|
|
|
@override
|
|
|
|
Future<void> updateSong(Song streamValue) {
|
|
|
|
return _$updateSongAsyncAction.run(() => super.updateSong(streamValue));
|
|
|
|
}
|
|
|
|
|
2020-05-27 21:54:33 +02:00
|
|
|
final _$_AudioStoreActionController = ActionController(name: '_AudioStore');
|
|
|
|
|
|
|
|
@override
|
|
|
|
void init() {
|
2020-06-28 10:40:53 +02:00
|
|
|
final _$actionInfo =
|
|
|
|
_$_AudioStoreActionController.startAction(name: '_AudioStore.init');
|
2020-05-27 21:54:33 +02:00
|
|
|
try {
|
|
|
|
return super.init();
|
|
|
|
} finally {
|
|
|
|
_$_AudioStoreActionController.endAction(_$actionInfo);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-07 22:06:43 +02:00
|
|
|
@override
|
|
|
|
String toString() {
|
2020-06-28 10:40:53 +02:00
|
|
|
return '''
|
|
|
|
currentSong: ${currentSong},
|
|
|
|
song: ${song},
|
|
|
|
playbackStateStream: ${playbackStateStream},
|
2020-08-01 20:14:13 +02:00
|
|
|
currentPositionStream: ${currentPositionStream},
|
|
|
|
queueStream: ${queueStream},
|
|
|
|
queueIndexStream: ${queueIndexStream}
|
2020-06-28 10:40:53 +02:00
|
|
|
''';
|
2020-04-07 22:06:43 +02:00
|
|
|
}
|
|
|
|
}
|