app_bloc.freezed.dart 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  1. // GENERATED CODE - DO NOT MODIFY BY HAND
  2. // ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides
  3. part of 'app_bloc.dart';
  4. // **************************************************************************
  5. // FreezedGenerator
  6. // **************************************************************************
  7. T _$identity<T>(T value) => value;
  8. final _privateConstructorUsedError = UnsupportedError(
  9. 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more informations: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
  10. /// @nodoc
  11. class _$AppEventTearOff {
  12. const _$AppEventTearOff();
  13. AppsReceived appsReceived(Either<List<App>, WorkspaceError> appsOrFail) {
  14. return AppsReceived(
  15. appsOrFail,
  16. );
  17. }
  18. }
  19. /// @nodoc
  20. const $AppEvent = _$AppEventTearOff();
  21. /// @nodoc
  22. mixin _$AppEvent {
  23. Either<List<App>, WorkspaceError> get appsOrFail =>
  24. throw _privateConstructorUsedError;
  25. @optionalTypeArgs
  26. TResult when<TResult extends Object?>({
  27. required TResult Function(Either<List<App>, WorkspaceError> appsOrFail)
  28. appsReceived,
  29. }) =>
  30. throw _privateConstructorUsedError;
  31. @optionalTypeArgs
  32. TResult maybeWhen<TResult extends Object?>({
  33. TResult Function(Either<List<App>, WorkspaceError> appsOrFail)?
  34. appsReceived,
  35. required TResult orElse(),
  36. }) =>
  37. throw _privateConstructorUsedError;
  38. @optionalTypeArgs
  39. TResult map<TResult extends Object?>({
  40. required TResult Function(AppsReceived value) appsReceived,
  41. }) =>
  42. throw _privateConstructorUsedError;
  43. @optionalTypeArgs
  44. TResult maybeMap<TResult extends Object?>({
  45. TResult Function(AppsReceived value)? appsReceived,
  46. required TResult orElse(),
  47. }) =>
  48. throw _privateConstructorUsedError;
  49. @JsonKey(ignore: true)
  50. $AppEventCopyWith<AppEvent> get copyWith =>
  51. throw _privateConstructorUsedError;
  52. }
  53. /// @nodoc
  54. abstract class $AppEventCopyWith<$Res> {
  55. factory $AppEventCopyWith(AppEvent value, $Res Function(AppEvent) then) =
  56. _$AppEventCopyWithImpl<$Res>;
  57. $Res call({Either<List<App>, WorkspaceError> appsOrFail});
  58. }
  59. /// @nodoc
  60. class _$AppEventCopyWithImpl<$Res> implements $AppEventCopyWith<$Res> {
  61. _$AppEventCopyWithImpl(this._value, this._then);
  62. final AppEvent _value;
  63. // ignore: unused_field
  64. final $Res Function(AppEvent) _then;
  65. @override
  66. $Res call({
  67. Object? appsOrFail = freezed,
  68. }) {
  69. return _then(_value.copyWith(
  70. appsOrFail: appsOrFail == freezed
  71. ? _value.appsOrFail
  72. : appsOrFail // ignore: cast_nullable_to_non_nullable
  73. as Either<List<App>, WorkspaceError>,
  74. ));
  75. }
  76. }
  77. /// @nodoc
  78. abstract class $AppsReceivedCopyWith<$Res> implements $AppEventCopyWith<$Res> {
  79. factory $AppsReceivedCopyWith(
  80. AppsReceived value, $Res Function(AppsReceived) then) =
  81. _$AppsReceivedCopyWithImpl<$Res>;
  82. @override
  83. $Res call({Either<List<App>, WorkspaceError> appsOrFail});
  84. }
  85. /// @nodoc
  86. class _$AppsReceivedCopyWithImpl<$Res> extends _$AppEventCopyWithImpl<$Res>
  87. implements $AppsReceivedCopyWith<$Res> {
  88. _$AppsReceivedCopyWithImpl(
  89. AppsReceived _value, $Res Function(AppsReceived) _then)
  90. : super(_value, (v) => _then(v as AppsReceived));
  91. @override
  92. AppsReceived get _value => super._value as AppsReceived;
  93. @override
  94. $Res call({
  95. Object? appsOrFail = freezed,
  96. }) {
  97. return _then(AppsReceived(
  98. appsOrFail == freezed
  99. ? _value.appsOrFail
  100. : appsOrFail // ignore: cast_nullable_to_non_nullable
  101. as Either<List<App>, WorkspaceError>,
  102. ));
  103. }
  104. }
  105. /// @nodoc
  106. class _$AppsReceived implements AppsReceived {
  107. const _$AppsReceived(this.appsOrFail);
  108. @override
  109. final Either<List<App>, WorkspaceError> appsOrFail;
  110. @override
  111. String toString() {
  112. return 'AppEvent.appsReceived(appsOrFail: $appsOrFail)';
  113. }
  114. @override
  115. bool operator ==(dynamic other) {
  116. return identical(this, other) ||
  117. (other is AppsReceived &&
  118. (identical(other.appsOrFail, appsOrFail) ||
  119. const DeepCollectionEquality()
  120. .equals(other.appsOrFail, appsOrFail)));
  121. }
  122. @override
  123. int get hashCode =>
  124. runtimeType.hashCode ^ const DeepCollectionEquality().hash(appsOrFail);
  125. @JsonKey(ignore: true)
  126. @override
  127. $AppsReceivedCopyWith<AppsReceived> get copyWith =>
  128. _$AppsReceivedCopyWithImpl<AppsReceived>(this, _$identity);
  129. @override
  130. @optionalTypeArgs
  131. TResult when<TResult extends Object?>({
  132. required TResult Function(Either<List<App>, WorkspaceError> appsOrFail)
  133. appsReceived,
  134. }) {
  135. return appsReceived(appsOrFail);
  136. }
  137. @override
  138. @optionalTypeArgs
  139. TResult maybeWhen<TResult extends Object?>({
  140. TResult Function(Either<List<App>, WorkspaceError> appsOrFail)?
  141. appsReceived,
  142. required TResult orElse(),
  143. }) {
  144. if (appsReceived != null) {
  145. return appsReceived(appsOrFail);
  146. }
  147. return orElse();
  148. }
  149. @override
  150. @optionalTypeArgs
  151. TResult map<TResult extends Object?>({
  152. required TResult Function(AppsReceived value) appsReceived,
  153. }) {
  154. return appsReceived(this);
  155. }
  156. @override
  157. @optionalTypeArgs
  158. TResult maybeMap<TResult extends Object?>({
  159. TResult Function(AppsReceived value)? appsReceived,
  160. required TResult orElse(),
  161. }) {
  162. if (appsReceived != null) {
  163. return appsReceived(this);
  164. }
  165. return orElse();
  166. }
  167. }
  168. abstract class AppsReceived implements AppEvent {
  169. const factory AppsReceived(Either<List<App>, WorkspaceError> appsOrFail) =
  170. _$AppsReceived;
  171. @override
  172. Either<List<App>, WorkspaceError> get appsOrFail =>
  173. throw _privateConstructorUsedError;
  174. @override
  175. @JsonKey(ignore: true)
  176. $AppsReceivedCopyWith<AppsReceived> get copyWith =>
  177. throw _privateConstructorUsedError;
  178. }
  179. /// @nodoc
  180. class _$AppStateTearOff {
  181. const _$AppStateTearOff();
  182. _AppState call(
  183. {required Option<List<App>> apps,
  184. required Either<Unit, WorkspaceError> successOrFailure}) {
  185. return _AppState(
  186. apps: apps,
  187. successOrFailure: successOrFailure,
  188. );
  189. }
  190. }
  191. /// @nodoc
  192. const $AppState = _$AppStateTearOff();
  193. /// @nodoc
  194. mixin _$AppState {
  195. Option<List<App>> get apps => throw _privateConstructorUsedError;
  196. Either<Unit, WorkspaceError> get successOrFailure =>
  197. throw _privateConstructorUsedError;
  198. @JsonKey(ignore: true)
  199. $AppStateCopyWith<AppState> get copyWith =>
  200. throw _privateConstructorUsedError;
  201. }
  202. /// @nodoc
  203. abstract class $AppStateCopyWith<$Res> {
  204. factory $AppStateCopyWith(AppState value, $Res Function(AppState) then) =
  205. _$AppStateCopyWithImpl<$Res>;
  206. $Res call(
  207. {Option<List<App>> apps, Either<Unit, WorkspaceError> successOrFailure});
  208. }
  209. /// @nodoc
  210. class _$AppStateCopyWithImpl<$Res> implements $AppStateCopyWith<$Res> {
  211. _$AppStateCopyWithImpl(this._value, this._then);
  212. final AppState _value;
  213. // ignore: unused_field
  214. final $Res Function(AppState) _then;
  215. @override
  216. $Res call({
  217. Object? apps = freezed,
  218. Object? successOrFailure = freezed,
  219. }) {
  220. return _then(_value.copyWith(
  221. apps: apps == freezed
  222. ? _value.apps
  223. : apps // ignore: cast_nullable_to_non_nullable
  224. as Option<List<App>>,
  225. successOrFailure: successOrFailure == freezed
  226. ? _value.successOrFailure
  227. : successOrFailure // ignore: cast_nullable_to_non_nullable
  228. as Either<Unit, WorkspaceError>,
  229. ));
  230. }
  231. }
  232. /// @nodoc
  233. abstract class _$AppStateCopyWith<$Res> implements $AppStateCopyWith<$Res> {
  234. factory _$AppStateCopyWith(_AppState value, $Res Function(_AppState) then) =
  235. __$AppStateCopyWithImpl<$Res>;
  236. @override
  237. $Res call(
  238. {Option<List<App>> apps, Either<Unit, WorkspaceError> successOrFailure});
  239. }
  240. /// @nodoc
  241. class __$AppStateCopyWithImpl<$Res> extends _$AppStateCopyWithImpl<$Res>
  242. implements _$AppStateCopyWith<$Res> {
  243. __$AppStateCopyWithImpl(_AppState _value, $Res Function(_AppState) _then)
  244. : super(_value, (v) => _then(v as _AppState));
  245. @override
  246. _AppState get _value => super._value as _AppState;
  247. @override
  248. $Res call({
  249. Object? apps = freezed,
  250. Object? successOrFailure = freezed,
  251. }) {
  252. return _then(_AppState(
  253. apps: apps == freezed
  254. ? _value.apps
  255. : apps // ignore: cast_nullable_to_non_nullable
  256. as Option<List<App>>,
  257. successOrFailure: successOrFailure == freezed
  258. ? _value.successOrFailure
  259. : successOrFailure // ignore: cast_nullable_to_non_nullable
  260. as Either<Unit, WorkspaceError>,
  261. ));
  262. }
  263. }
  264. /// @nodoc
  265. class _$_AppState implements _AppState {
  266. const _$_AppState({required this.apps, required this.successOrFailure});
  267. @override
  268. final Option<List<App>> apps;
  269. @override
  270. final Either<Unit, WorkspaceError> successOrFailure;
  271. @override
  272. String toString() {
  273. return 'AppState(apps: $apps, successOrFailure: $successOrFailure)';
  274. }
  275. @override
  276. bool operator ==(dynamic other) {
  277. return identical(this, other) ||
  278. (other is _AppState &&
  279. (identical(other.apps, apps) ||
  280. const DeepCollectionEquality().equals(other.apps, apps)) &&
  281. (identical(other.successOrFailure, successOrFailure) ||
  282. const DeepCollectionEquality()
  283. .equals(other.successOrFailure, successOrFailure)));
  284. }
  285. @override
  286. int get hashCode =>
  287. runtimeType.hashCode ^
  288. const DeepCollectionEquality().hash(apps) ^
  289. const DeepCollectionEquality().hash(successOrFailure);
  290. @JsonKey(ignore: true)
  291. @override
  292. _$AppStateCopyWith<_AppState> get copyWith =>
  293. __$AppStateCopyWithImpl<_AppState>(this, _$identity);
  294. }
  295. abstract class _AppState implements AppState {
  296. const factory _AppState(
  297. {required Option<List<App>> apps,
  298. required Either<Unit, WorkspaceError> successOrFailure}) = _$_AppState;
  299. @override
  300. Option<List<App>> get apps => throw _privateConstructorUsedError;
  301. @override
  302. Either<Unit, WorkspaceError> get successOrFailure =>
  303. throw _privateConstructorUsedError;
  304. @override
  305. @JsonKey(ignore: true)
  306. _$AppStateCopyWith<_AppState> get copyWith =>
  307. throw _privateConstructorUsedError;
  308. }