2022-01-15 16:15:55 +01:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
part of 'create_post_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
|
2022-01-15 16:15:55 +01:00
|
|
|
|
|
|
|
mixin _$CreatePostStore on _CreatePostStore, Store {
|
2022-01-16 16:37:25 +01:00
|
|
|
Computed<bool>? _$hasUploadedImageComputed;
|
|
|
|
|
|
|
|
@override
|
|
|
|
bool get hasUploadedImage => (_$hasUploadedImageComputed ??= Computed<bool>(
|
|
|
|
() => super.hasUploadedImage,
|
|
|
|
name: '_CreatePostStore.hasUploadedImage'))
|
|
|
|
.value;
|
|
|
|
|
2022-05-13 15:58:01 +02:00
|
|
|
late final _$showFancyAtom =
|
|
|
|
Atom(name: '_CreatePostStore.showFancy', context: context);
|
2022-01-15 16:15:55 +01:00
|
|
|
|
|
|
|
@override
|
|
|
|
bool get showFancy {
|
|
|
|
_$showFancyAtom.reportRead();
|
|
|
|
return super.showFancy;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
set showFancy(bool value) {
|
|
|
|
_$showFancyAtom.reportWrite(value, super.showFancy, () {
|
|
|
|
super.showFancy = value;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2022-05-13 15:58:01 +02:00
|
|
|
late final _$instanceHostAtom =
|
|
|
|
Atom(name: '_CreatePostStore.instanceHost', context: context);
|
2022-01-15 16:15:55 +01:00
|
|
|
|
|
|
|
@override
|
|
|
|
String get instanceHost {
|
|
|
|
_$instanceHostAtom.reportRead();
|
|
|
|
return super.instanceHost;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
set instanceHost(String value) {
|
|
|
|
_$instanceHostAtom.reportWrite(value, super.instanceHost, () {
|
|
|
|
super.instanceHost = value;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2022-05-13 15:58:01 +02:00
|
|
|
late final _$selectedCommunityAtom =
|
|
|
|
Atom(name: '_CreatePostStore.selectedCommunity', context: context);
|
2022-01-15 16:15:55 +01:00
|
|
|
|
|
|
|
@override
|
|
|
|
CommunityView? get selectedCommunity {
|
|
|
|
_$selectedCommunityAtom.reportRead();
|
|
|
|
return super.selectedCommunity;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
set selectedCommunity(CommunityView? value) {
|
|
|
|
_$selectedCommunityAtom.reportWrite(value, super.selectedCommunity, () {
|
|
|
|
super.selectedCommunity = value;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2022-05-13 15:58:01 +02:00
|
|
|
late final _$urlAtom = Atom(name: '_CreatePostStore.url', context: context);
|
2022-01-15 16:15:55 +01:00
|
|
|
|
|
|
|
@override
|
|
|
|
String get url {
|
|
|
|
_$urlAtom.reportRead();
|
|
|
|
return super.url;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
set url(String value) {
|
|
|
|
_$urlAtom.reportWrite(value, super.url, () {
|
|
|
|
super.url = value;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2022-05-13 15:58:01 +02:00
|
|
|
late final _$titleAtom =
|
|
|
|
Atom(name: '_CreatePostStore.title', context: context);
|
2022-01-15 16:15:55 +01:00
|
|
|
|
|
|
|
@override
|
|
|
|
String get title {
|
|
|
|
_$titleAtom.reportRead();
|
|
|
|
return super.title;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
set title(String value) {
|
|
|
|
_$titleAtom.reportWrite(value, super.title, () {
|
|
|
|
super.title = value;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2022-05-13 15:58:01 +02:00
|
|
|
late final _$bodyAtom = Atom(name: '_CreatePostStore.body', context: context);
|
2022-01-15 16:15:55 +01:00
|
|
|
|
|
|
|
@override
|
|
|
|
String get body {
|
|
|
|
_$bodyAtom.reportRead();
|
|
|
|
return super.body;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
set body(String value) {
|
|
|
|
_$bodyAtom.reportWrite(value, super.body, () {
|
|
|
|
super.body = value;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2022-05-13 15:58:01 +02:00
|
|
|
late final _$nsfwAtom = Atom(name: '_CreatePostStore.nsfw', context: context);
|
2022-01-15 16:15:55 +01:00
|
|
|
|
|
|
|
@override
|
|
|
|
bool get nsfw {
|
|
|
|
_$nsfwAtom.reportRead();
|
|
|
|
return super.nsfw;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
set nsfw(bool value) {
|
|
|
|
_$nsfwAtom.reportWrite(value, super.nsfw, () {
|
|
|
|
super.nsfw = value;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2022-05-13 15:58:01 +02:00
|
|
|
late final _$submitAsyncAction =
|
|
|
|
AsyncAction('_CreatePostStore.submit', context: context);
|
2022-01-15 16:15:55 +01:00
|
|
|
|
|
|
|
@override
|
|
|
|
Future<void> submit(Jwt token) {
|
|
|
|
return _$submitAsyncAction.run(() => super.submit(token));
|
|
|
|
}
|
|
|
|
|
2022-05-13 15:58:01 +02:00
|
|
|
late final _$uploadImageAsyncAction =
|
|
|
|
AsyncAction('_CreatePostStore.uploadImage', context: context);
|
2022-01-16 16:37:25 +01:00
|
|
|
|
|
|
|
@override
|
|
|
|
Future<void> uploadImage(String filePath, Jwt token) {
|
|
|
|
return _$uploadImageAsyncAction
|
|
|
|
.run(() => super.uploadImage(filePath, token));
|
|
|
|
}
|
|
|
|
|
2022-05-13 15:58:01 +02:00
|
|
|
late final _$_CreatePostStoreActionController =
|
|
|
|
ActionController(name: '_CreatePostStore', context: context);
|
2022-01-16 16:37:25 +01:00
|
|
|
|
|
|
|
@override
|
|
|
|
Future<List<CommunityView>?> searchCommunities(
|
|
|
|
String searchTerm, Jwt? token) {
|
|
|
|
final _$actionInfo = _$_CreatePostStoreActionController.startAction(
|
|
|
|
name: '_CreatePostStore.searchCommunities');
|
|
|
|
try {
|
|
|
|
return super.searchCommunities(searchTerm, token);
|
|
|
|
} finally {
|
|
|
|
_$_CreatePostStoreActionController.endAction(_$actionInfo);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
void removeImage() {
|
|
|
|
final _$actionInfo = _$_CreatePostStoreActionController.startAction(
|
|
|
|
name: '_CreatePostStore.removeImage');
|
|
|
|
try {
|
|
|
|
return super.removeImage();
|
|
|
|
} finally {
|
|
|
|
_$_CreatePostStoreActionController.endAction(_$actionInfo);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-15 16:15:55 +01:00
|
|
|
@override
|
|
|
|
String toString() {
|
|
|
|
return '''
|
|
|
|
showFancy: ${showFancy},
|
|
|
|
instanceHost: ${instanceHost},
|
|
|
|
selectedCommunity: ${selectedCommunity},
|
|
|
|
url: ${url},
|
|
|
|
title: ${title},
|
|
|
|
body: ${body},
|
2022-01-16 16:37:25 +01:00
|
|
|
nsfw: ${nsfw},
|
|
|
|
hasUploadedImage: ${hasUploadedImage}
|
2022-01-15 16:15:55 +01:00
|
|
|
''';
|
|
|
|
}
|
|
|
|
}
|