2020-03-28 09:39:31 +01:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
part of 'music_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 _$MusicStore on _MusicStore, Store {
|
|
|
|
final _$albumsFutureAtom = Atom(name: '_MusicStore.albumsFuture');
|
|
|
|
|
|
|
|
@override
|
|
|
|
ObservableFuture<List<Album>> get albumsFuture {
|
|
|
|
_$albumsFutureAtom.context.enforceReadPolicy(_$albumsFutureAtom);
|
|
|
|
_$albumsFutureAtom.reportObserved();
|
|
|
|
return super.albumsFuture;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
set albumsFuture(ObservableFuture<List<Album>> value) {
|
|
|
|
_$albumsFutureAtom.context.conditionallyRunInAction(() {
|
|
|
|
super.albumsFuture = value;
|
|
|
|
_$albumsFutureAtom.reportChanged();
|
|
|
|
}, _$albumsFutureAtom, name: '${_$albumsFutureAtom.name}_set');
|
|
|
|
}
|
|
|
|
|
2020-04-06 22:33:26 +02:00
|
|
|
final _$songsAtom = Atom(name: '_MusicStore.songs');
|
|
|
|
|
|
|
|
@override
|
|
|
|
ObservableList<Song> get songs {
|
|
|
|
_$songsAtom.context.enforceReadPolicy(_$songsAtom);
|
|
|
|
_$songsAtom.reportObserved();
|
|
|
|
return super.songs;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
set songs(ObservableList<Song> value) {
|
|
|
|
_$songsAtom.context.conditionallyRunInAction(() {
|
|
|
|
super.songs = value;
|
|
|
|
_$songsAtom.reportChanged();
|
|
|
|
}, _$songsAtom, name: '${_$songsAtom.name}_set');
|
|
|
|
}
|
|
|
|
|
|
|
|
final _$isFetchingSongsAtom = Atom(name: '_MusicStore.isFetchingSongs');
|
|
|
|
|
|
|
|
@override
|
|
|
|
bool get isFetchingSongs {
|
|
|
|
_$isFetchingSongsAtom.context.enforceReadPolicy(_$isFetchingSongsAtom);
|
|
|
|
_$isFetchingSongsAtom.reportObserved();
|
|
|
|
return super.isFetchingSongs;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
set isFetchingSongs(bool value) {
|
|
|
|
_$isFetchingSongsAtom.context.conditionallyRunInAction(() {
|
|
|
|
super.isFetchingSongs = value;
|
|
|
|
_$isFetchingSongsAtom.reportChanged();
|
|
|
|
}, _$isFetchingSongsAtom, name: '${_$isFetchingSongsAtom.name}_set');
|
|
|
|
}
|
|
|
|
|
2020-03-30 23:19:02 +02:00
|
|
|
final _$isUpdatingDatabaseAtom = Atom(name: '_MusicStore.isUpdatingDatabase');
|
|
|
|
|
|
|
|
@override
|
|
|
|
bool get isUpdatingDatabase {
|
|
|
|
_$isUpdatingDatabaseAtom.context
|
|
|
|
.enforceReadPolicy(_$isUpdatingDatabaseAtom);
|
|
|
|
_$isUpdatingDatabaseAtom.reportObserved();
|
|
|
|
return super.isUpdatingDatabase;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
set isUpdatingDatabase(bool value) {
|
|
|
|
_$isUpdatingDatabaseAtom.context.conditionallyRunInAction(() {
|
|
|
|
super.isUpdatingDatabase = value;
|
|
|
|
_$isUpdatingDatabaseAtom.reportChanged();
|
|
|
|
}, _$isUpdatingDatabaseAtom, name: '${_$isUpdatingDatabaseAtom.name}_set');
|
|
|
|
}
|
|
|
|
|
2020-03-28 09:39:31 +01:00
|
|
|
final _$updateDatabaseAsyncAction = AsyncAction('updateDatabase');
|
|
|
|
|
|
|
|
@override
|
|
|
|
Future<void> updateDatabase() {
|
|
|
|
return _$updateDatabaseAsyncAction.run(() => super.updateDatabase());
|
|
|
|
}
|
|
|
|
|
2020-04-06 22:33:26 +02:00
|
|
|
final _$fetchAlbumsAsyncAction = AsyncAction('fetchAlbums');
|
2020-03-28 09:39:31 +01:00
|
|
|
|
|
|
|
@override
|
|
|
|
Future<void> fetchAlbums() {
|
2020-04-06 22:33:26 +02:00
|
|
|
return _$fetchAlbumsAsyncAction.run(() => super.fetchAlbums());
|
|
|
|
}
|
|
|
|
|
|
|
|
final _$fetchSongsAsyncAction = AsyncAction('fetchSongs');
|
|
|
|
|
|
|
|
@override
|
|
|
|
Future<void> fetchSongs() {
|
|
|
|
return _$fetchSongsAsyncAction.run(() => super.fetchSongs());
|
|
|
|
}
|
|
|
|
|
|
|
|
final _$playSongAsyncAction = AsyncAction('playSong');
|
|
|
|
|
|
|
|
@override
|
|
|
|
Future<void> playSong(int index, List<Song> songList) {
|
|
|
|
return _$playSongAsyncAction.run(() => super.playSong(index, songList));
|
2020-03-28 09:39:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
String toString() {
|
2020-03-30 23:19:02 +02:00
|
|
|
final string =
|
2020-04-06 22:33:26 +02:00
|
|
|
'albumsFuture: ${albumsFuture.toString()},songs: ${songs.toString()},isFetchingSongs: ${isFetchingSongs.toString()},isUpdatingDatabase: ${isUpdatingDatabase.toString()}';
|
2020-03-28 09:39:31 +01:00
|
|
|
return '{$string}';
|
|
|
|
}
|
|
|
|
}
|