lemmur-app-android/lib/pages/full_post/full_post_store.g.dart

160 lines
4.5 KiB
Dart
Raw Normal View History

2021-09-11 01:04:15 +02:00
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'full_post_store.dart';
// **************************************************************************
// StoreGenerator
// **************************************************************************
// 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
mixin _$FullPostStore on _FullPostStore, Store {
2021-10-01 23:03:42 +02:00
Computed<List<CommentTree>?>? _$commentTreeComputed;
@override
List<CommentTree>? get commentTree => (_$commentTreeComputed ??=
Computed<List<CommentTree>?>(() => super.commentTree,
name: '_FullPostStore.commentTree'))
.value;
Computed<List<CommentTree>?>? _$sortedCommentTreeComputed;
@override
List<CommentTree>? get sortedCommentTree => (_$sortedCommentTreeComputed ??=
Computed<List<CommentTree>?>(() => super.sortedCommentTree,
name: '_FullPostStore.sortedCommentTree'))
.value;
2021-09-11 01:04:15 +02:00
Computed<PostView?>? _$postViewComputed;
@override
PostView? get postView =>
(_$postViewComputed ??= Computed<PostView?>(() => super.postView,
name: '_FullPostStore.postView'))
.value;
Computed<Iterable<CommentView>?>? _$commentsComputed;
2021-09-11 01:04:15 +02:00
@override
Iterable<CommentView>? get comments => (_$commentsComputed ??=
Computed<Iterable<CommentView>?>(() => super.comments,
2021-09-11 01:04:15 +02:00
name: '_FullPostStore.comments'))
.value;
2021-09-11 01:04:15 +02:00
2022-04-30 14:56:02 +02:00
late final _$fullPostViewAtom =
Atom(name: '_FullPostStore.fullPostView', context: context);
2021-09-11 01:04:15 +02:00
@override
FullPostView? get fullPostView {
_$fullPostViewAtom.reportRead();
return super.fullPostView;
}
@override
set fullPostView(FullPostView? value) {
_$fullPostViewAtom.reportWrite(value, super.fullPostView, () {
super.fullPostView = value;
});
}
2022-04-30 14:56:02 +02:00
late final _$newCommentsAtom =
Atom(name: '_FullPostStore.newComments', context: context);
2021-09-11 01:04:15 +02:00
@override
2021-10-01 23:03:42 +02:00
ObservableList<CommentView> get newComments {
2021-09-11 01:04:15 +02:00
_$newCommentsAtom.reportRead();
return super.newComments;
}
@override
2021-10-01 23:03:42 +02:00
set newComments(ObservableList<CommentView> value) {
2021-09-11 01:04:15 +02:00
_$newCommentsAtom.reportWrite(value, super.newComments, () {
super.newComments = value;
});
}
2022-04-30 14:56:02 +02:00
late final _$sortingAtom =
Atom(name: '_FullPostStore.sorting', context: context);
2021-10-01 23:03:42 +02:00
@override
CommentSortType get sorting {
_$sortingAtom.reportRead();
return super.sorting;
}
@override
set sorting(CommentSortType value) {
_$sortingAtom.reportWrite(value, super.sorting, () {
super.sorting = value;
});
}
2022-04-30 14:56:02 +02:00
late final _$postStoreAtom =
Atom(name: '_FullPostStore.postStore', context: context);
2021-09-11 01:04:15 +02:00
@override
PostStore? get postStore {
_$postStoreAtom.reportRead();
return super.postStore;
}
@override
set postStore(PostStore? value) {
_$postStoreAtom.reportWrite(value, super.postStore, () {
super.postStore = value;
});
}
2022-04-30 14:56:02 +02:00
late final _$refreshAsyncAction =
AsyncAction('_FullPostStore.refresh', context: context);
2021-09-11 01:04:15 +02:00
@override
Future<void> refresh([Jwt? token]) {
return _$refreshAsyncAction.run(() => super.refresh(token));
2021-09-11 01:04:15 +02:00
}
2022-04-30 14:56:02 +02:00
late final _$blockCommunityAsyncAction =
AsyncAction('_FullPostStore.blockCommunity', context: context);
@override
Future<void> blockCommunity(Jwt token) {
return _$blockCommunityAsyncAction.run(() => super.blockCommunity(token));
}
2022-04-30 14:56:02 +02:00
late final _$_FullPostStoreActionController =
ActionController(name: '_FullPostStore', context: context);
2021-10-01 23:03:42 +02:00
@override
void updateSorting(CommentSortType sort) {
final _$actionInfo = _$_FullPostStoreActionController.startAction(
name: '_FullPostStore.updateSorting');
try {
return super.updateSorting(sort);
} finally {
_$_FullPostStoreActionController.endAction(_$actionInfo);
}
}
@override
void addComment(CommentView commentView) {
final _$actionInfo = _$_FullPostStoreActionController.startAction(
name: '_FullPostStore.addComment');
try {
return super.addComment(commentView);
} finally {
_$_FullPostStoreActionController.endAction(_$actionInfo);
}
}
2021-09-11 01:04:15 +02:00
@override
String toString() {
return '''
fullPostView: ${fullPostView},
newComments: ${newComments},
2021-10-01 23:03:42 +02:00
sorting: ${sorting},
2021-09-11 01:04:15 +02:00
postStore: ${postStore},
2021-10-01 23:03:42 +02:00
commentTree: ${commentTree},
sortedCommentTree: ${sortedCommentTree},
2021-09-11 01:04:15 +02:00
postView: ${postView},
comments: ${comments}
''';
}
}