lemmur-app-android/lib/pages/settings/blocks/blocks_store.g.dart

101 lines
3.1 KiB
Dart
Raw Normal View History

2021-09-14 23:45:26 +02:00
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'blocks_store.dart';
// **************************************************************************
// StoreGenerator
// **************************************************************************
2022-07-15 21:21:02 +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, no_leading_underscores_for_local_identifiers
2021-09-14 23:45:26 +02:00
mixin _$BlocksStore on _BlocksStore, Store {
2021-10-02 23:15:15 +02:00
Computed<Iterable<UserBlockStore>?>? _$blockedUsersComputed;
2021-09-14 23:45:26 +02:00
@override
2021-10-02 23:15:15 +02:00
Iterable<UserBlockStore>? get blockedUsers => (_$blockedUsersComputed ??=
Computed<Iterable<UserBlockStore>?>(() => super.blockedUsers,
name: '_BlocksStore.blockedUsers'))
.value;
Computed<Iterable<CommunityBlockStore>?>? _$blockedCommunitiesComputed;
2021-09-14 23:45:26 +02:00
2021-10-02 23:15:15 +02:00
@override
Iterable<CommunityBlockStore>? get blockedCommunities =>
(_$blockedCommunitiesComputed ??=
Computed<Iterable<CommunityBlockStore>?>(
() => super.blockedCommunities,
name: '_BlocksStore.blockedCommunities'))
.value;
Computed<bool>? _$isUsableComputed;
2021-09-14 23:45:26 +02:00
@override
2021-10-02 23:15:15 +02:00
bool get isUsable => (_$isUsableComputed ??=
Computed<bool>(() => super.isUsable, name: '_BlocksStore.isUsable'))
.value;
2021-09-14 23:45:26 +02:00
2022-04-30 14:56:02 +02:00
late final _$_blockedUsersAtom =
Atom(name: '_BlocksStore._blockedUsers', context: context);
2021-09-14 23:45:26 +02:00
@override
2021-11-05 16:00:03 +01:00
ObservableList<UserBlockStore>? get _blockedUsers {
2021-10-02 23:15:15 +02:00
_$_blockedUsersAtom.reportRead();
return super._blockedUsers;
}
@override
2021-11-05 16:00:03 +01:00
set _blockedUsers(ObservableList<UserBlockStore>? value) {
2021-10-02 23:15:15 +02:00
_$_blockedUsersAtom.reportWrite(value, super._blockedUsers, () {
super._blockedUsers = value;
});
2021-09-14 23:45:26 +02:00
}
2022-04-30 14:56:02 +02:00
late final _$_blockedCommunitiesAtom =
Atom(name: '_BlocksStore._blockedCommunities', context: context);
2021-09-14 23:45:26 +02:00
@override
2021-11-05 16:00:03 +01:00
ObservableList<CommunityBlockStore>? get _blockedCommunities {
2021-10-02 23:15:15 +02:00
_$_blockedCommunitiesAtom.reportRead();
return super._blockedCommunities;
2021-09-14 23:45:26 +02:00
}
@override
2021-11-05 16:00:03 +01:00
set _blockedCommunities(ObservableList<CommunityBlockStore>? value) {
2021-10-02 23:15:15 +02:00
_$_blockedCommunitiesAtom.reportWrite(value, super._blockedCommunities, () {
super._blockedCommunities = value;
});
}
2022-04-30 14:56:02 +02:00
late final _$blockUserAsyncAction =
AsyncAction('_BlocksStore.blockUser', context: context);
2021-11-05 16:00:03 +01:00
@override
Future<void> blockUser(Jwt token, int id) {
return _$blockUserAsyncAction.run(() => super.blockUser(token, id));
}
2022-04-30 14:56:02 +02:00
late final _$blockCommunityAsyncAction =
AsyncAction('_BlocksStore.blockCommunity', context: context);
2021-11-05 16:00:03 +01:00
@override
Future<void> blockCommunity(Jwt token, int id) {
return _$blockCommunityAsyncAction
.run(() => super.blockCommunity(token, id));
}
2022-04-30 14:56:02 +02:00
late final _$refreshAsyncAction =
AsyncAction('_BlocksStore.refresh', context: context);
2021-10-02 23:15:15 +02:00
@override
Future<void> refresh() {
return _$refreshAsyncAction.run(() => super.refresh());
2021-09-14 23:45:26 +02:00
}
@override
String toString() {
return '''
2021-10-02 23:15:15 +02:00
blockedUsers: ${blockedUsers},
blockedCommunities: ${blockedCommunities},
isUsable: ${isUsable}
2021-09-14 23:45:26 +02:00
''';
}
}