mucke/lib/presentation/state/music_data_store.g.dart

160 lines
4 KiB
Dart
Raw Normal View History

2020-03-28 09:39:31 +01:00
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'music_data_store.dart';
2020-03-28 09:39:31 +01:00
// **************************************************************************
// 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
2020-04-07 22:06:43 +02:00
mixin _$MusicDataStore on _MusicDataStore, Store {
2020-08-01 20:14:13 +02:00
final _$albumsAtom = Atom(name: '_MusicDataStore.albums');
2020-03-28 09:39:31 +01:00
@override
2020-08-01 20:14:13 +02:00
ObservableList<Album> get albums {
_$albumsAtom.reportRead();
return super.albums;
2020-03-28 09:39:31 +01:00
}
@override
2020-08-01 20:14:13 +02:00
set albums(ObservableList<Album> value) {
_$albumsAtom.reportWrite(value, super.albums, () {
super.albums = value;
});
}
final _$isFetchingAlbumsAtom = Atom(name: '_MusicDataStore.isFetchingAlbums');
@override
bool get isFetchingAlbums {
_$isFetchingAlbumsAtom.reportRead();
return super.isFetchingAlbums;
}
@override
set isFetchingAlbums(bool value) {
_$isFetchingAlbumsAtom.reportWrite(value, super.isFetchingAlbums, () {
super.isFetchingAlbums = value;
2020-06-28 10:40:53 +02:00
});
2020-03-28 09:39:31 +01:00
}
2020-04-07 22:06:43 +02:00
final _$songsAtom = Atom(name: '_MusicDataStore.songs');
2020-04-06 22:33:26 +02:00
@override
ObservableList<Song> get songs {
2020-06-28 10:40:53 +02:00
_$songsAtom.reportRead();
2020-04-06 22:33:26 +02:00
return super.songs;
}
@override
set songs(ObservableList<Song> value) {
2020-06-28 10:40:53 +02:00
_$songsAtom.reportWrite(value, super.songs, () {
2020-04-06 22:33:26 +02:00
super.songs = value;
2020-06-28 10:40:53 +02:00
});
2020-04-06 22:33:26 +02:00
}
2020-04-07 22:06:43 +02:00
final _$isFetchingSongsAtom = Atom(name: '_MusicDataStore.isFetchingSongs');
2020-04-06 22:33:26 +02:00
@override
bool get isFetchingSongs {
2020-06-28 10:40:53 +02:00
_$isFetchingSongsAtom.reportRead();
2020-04-06 22:33:26 +02:00
return super.isFetchingSongs;
}
@override
set isFetchingSongs(bool value) {
2020-06-28 10:40:53 +02:00
_$isFetchingSongsAtom.reportWrite(value, super.isFetchingSongs, () {
2020-04-06 22:33:26 +02:00
super.isFetchingSongs = value;
2020-06-28 10:40:53 +02:00
});
2020-04-06 22:33:26 +02:00
}
2020-04-07 22:06:43 +02:00
final _$isUpdatingDatabaseAtom =
Atom(name: '_MusicDataStore.isUpdatingDatabase');
2020-03-30 23:19:02 +02:00
@override
bool get isUpdatingDatabase {
2020-06-28 10:40:53 +02:00
_$isUpdatingDatabaseAtom.reportRead();
2020-03-30 23:19:02 +02:00
return super.isUpdatingDatabase;
}
@override
set isUpdatingDatabase(bool value) {
2020-06-28 10:40:53 +02:00
_$isUpdatingDatabaseAtom.reportWrite(value, super.isUpdatingDatabase, () {
2020-03-30 23:19:02 +02:00
super.isUpdatingDatabase = value;
2020-06-28 10:40:53 +02:00
});
2020-03-30 23:19:02 +02:00
}
final _$albumSongsAtom = Atom(name: '_MusicDataStore.albumSongs');
@override
ObservableList<Song> get albumSongs {
2020-06-28 10:40:53 +02:00
_$albumSongsAtom.reportRead();
return super.albumSongs;
}
@override
set albumSongs(ObservableList<Song> value) {
2020-06-28 10:40:53 +02:00
_$albumSongsAtom.reportWrite(value, super.albumSongs, () {
super.albumSongs = value;
2020-06-28 10:40:53 +02:00
});
}
2020-06-28 10:40:53 +02:00
final _$updateDatabaseAsyncAction =
AsyncAction('_MusicDataStore.updateDatabase');
2020-03-28 09:39:31 +01:00
@override
Future<void> updateDatabase() {
return _$updateDatabaseAsyncAction.run(() => super.updateDatabase());
}
2020-06-28 10:40:53 +02:00
final _$fetchAlbumsAsyncAction = AsyncAction('_MusicDataStore.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());
}
2020-06-28 10:40:53 +02:00
final _$fetchSongsAsyncAction = AsyncAction('_MusicDataStore.fetchSongs');
2020-04-06 22:33:26 +02:00
@override
Future<void> fetchSongs() {
return _$fetchSongsAsyncAction.run(() => super.fetchSongs());
}
2020-06-28 10:40:53 +02:00
final _$fetchSongsFromAlbumAsyncAction =
AsyncAction('_MusicDataStore.fetchSongsFromAlbum');
@override
Future<void> fetchSongsFromAlbum(Album album) {
return _$fetchSongsFromAlbumAsyncAction
.run(() => super.fetchSongsFromAlbum(album));
}
2020-05-27 21:54:33 +02:00
final _$_MusicDataStoreActionController =
ActionController(name: '_MusicDataStore');
@override
void init() {
2020-06-28 10:40:53 +02:00
final _$actionInfo = _$_MusicDataStoreActionController.startAction(
name: '_MusicDataStore.init');
2020-05-27 21:54:33 +02:00
try {
return super.init();
} finally {
_$_MusicDataStoreActionController.endAction(_$actionInfo);
}
}
2020-03-28 09:39:31 +01:00
@override
String toString() {
2020-06-28 10:40:53 +02:00
return '''
2020-08-01 20:14:13 +02:00
albums: ${albums},
isFetchingAlbums: ${isFetchingAlbums},
2020-06-28 10:40:53 +02:00
songs: ${songs},
isFetchingSongs: ${isFetchingSongs},
isUpdatingDatabase: ${isUpdatingDatabase},
albumSongs: ${albumSongs}
''';
2020-03-28 09:39:31 +01:00
}
}