73 lines
2.1 KiB
Dart
73 lines
2.1 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'audio_store.dart';
|
|
|
|
// **************************************************************************
|
|
// StoreGenerator
|
|
// **************************************************************************
|
|
|
|
// ignore_for_file: non_constant_identifier_names, unnecessary_lambdas, prefer_expression_function_bodies, lines_longer_than_80_chars, avoid_as, avoid_annotating_with_dynamic
|
|
|
|
mixin _$AudioStore on _AudioStore, Store {
|
|
final _$currentSongAtom = Atom(name: '_AudioStore.currentSong');
|
|
|
|
@override
|
|
ObservableStream<Song> get currentSong {
|
|
_$currentSongAtom.context.enforceReadPolicy(_$currentSongAtom);
|
|
_$currentSongAtom.reportObserved();
|
|
return super.currentSong;
|
|
}
|
|
|
|
@override
|
|
set currentSong(ObservableStream<Song> value) {
|
|
_$currentSongAtom.context.conditionallyRunInAction(() {
|
|
super.currentSong = value;
|
|
_$currentSongAtom.reportChanged();
|
|
}, _$currentSongAtom, name: '${_$currentSongAtom.name}_set');
|
|
}
|
|
|
|
final _$songAtom = Atom(name: '_AudioStore.song');
|
|
|
|
@override
|
|
Song get song {
|
|
_$songAtom.context.enforceReadPolicy(_$songAtom);
|
|
_$songAtom.reportObserved();
|
|
return super.song;
|
|
}
|
|
|
|
@override
|
|
set song(Song value) {
|
|
_$songAtom.context.conditionallyRunInAction(() {
|
|
super.song = value;
|
|
_$songAtom.reportChanged();
|
|
}, _$songAtom, name: '${_$songAtom.name}_set');
|
|
}
|
|
|
|
final _$initAsyncAction = AsyncAction('init');
|
|
|
|
@override
|
|
Future<void> init() {
|
|
return _$initAsyncAction.run(() => super.init());
|
|
}
|
|
|
|
final _$playSongAsyncAction = AsyncAction('playSong');
|
|
|
|
@override
|
|
Future<void> playSong(int index, List<Song> songList) {
|
|
return _$playSongAsyncAction.run(() => super.playSong(index, songList));
|
|
}
|
|
|
|
final _$updateSongAsyncAction = AsyncAction('updateSong');
|
|
|
|
@override
|
|
Future<void> updateSong(Song streamValue) {
|
|
return _$updateSongAsyncAction.run(() => super.updateSong(streamValue));
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
final string =
|
|
'currentSong: ${currentSong.toString()},song: ${song.toString()}';
|
|
return '{$string}';
|
|
}
|
|
}
|