app_bloc.freezed.dart 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934
  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, invalid_annotation_target
  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. Initial initial() {
  14. return const Initial();
  15. }
  16. CreateView createView(String name, String desc, ViewType viewType) {
  17. return CreateView(
  18. name,
  19. desc,
  20. viewType,
  21. );
  22. }
  23. Delete delete() {
  24. return const Delete();
  25. }
  26. Rename rename(String newName) {
  27. return Rename(
  28. newName,
  29. );
  30. }
  31. ReceiveViews didReceiveViews(List<View> views) {
  32. return ReceiveViews(
  33. views,
  34. );
  35. }
  36. }
  37. /// @nodoc
  38. const $AppEvent = _$AppEventTearOff();
  39. /// @nodoc
  40. mixin _$AppEvent {
  41. @optionalTypeArgs
  42. TResult when<TResult extends Object?>({
  43. required TResult Function() initial,
  44. required TResult Function(String name, String desc, ViewType viewType)
  45. createView,
  46. required TResult Function() delete,
  47. required TResult Function(String newName) rename,
  48. required TResult Function(List<View> views) didReceiveViews,
  49. }) =>
  50. throw _privateConstructorUsedError;
  51. @optionalTypeArgs
  52. TResult maybeWhen<TResult extends Object?>({
  53. TResult Function()? initial,
  54. TResult Function(String name, String desc, ViewType viewType)? createView,
  55. TResult Function()? delete,
  56. TResult Function(String newName)? rename,
  57. TResult Function(List<View> views)? didReceiveViews,
  58. required TResult orElse(),
  59. }) =>
  60. throw _privateConstructorUsedError;
  61. @optionalTypeArgs
  62. TResult map<TResult extends Object?>({
  63. required TResult Function(Initial value) initial,
  64. required TResult Function(CreateView value) createView,
  65. required TResult Function(Delete value) delete,
  66. required TResult Function(Rename value) rename,
  67. required TResult Function(ReceiveViews value) didReceiveViews,
  68. }) =>
  69. throw _privateConstructorUsedError;
  70. @optionalTypeArgs
  71. TResult maybeMap<TResult extends Object?>({
  72. TResult Function(Initial value)? initial,
  73. TResult Function(CreateView value)? createView,
  74. TResult Function(Delete value)? delete,
  75. TResult Function(Rename value)? rename,
  76. TResult Function(ReceiveViews value)? didReceiveViews,
  77. required TResult orElse(),
  78. }) =>
  79. throw _privateConstructorUsedError;
  80. }
  81. /// @nodoc
  82. abstract class $AppEventCopyWith<$Res> {
  83. factory $AppEventCopyWith(AppEvent value, $Res Function(AppEvent) then) =
  84. _$AppEventCopyWithImpl<$Res>;
  85. }
  86. /// @nodoc
  87. class _$AppEventCopyWithImpl<$Res> implements $AppEventCopyWith<$Res> {
  88. _$AppEventCopyWithImpl(this._value, this._then);
  89. final AppEvent _value;
  90. // ignore: unused_field
  91. final $Res Function(AppEvent) _then;
  92. }
  93. /// @nodoc
  94. abstract class $InitialCopyWith<$Res> {
  95. factory $InitialCopyWith(Initial value, $Res Function(Initial) then) =
  96. _$InitialCopyWithImpl<$Res>;
  97. }
  98. /// @nodoc
  99. class _$InitialCopyWithImpl<$Res> extends _$AppEventCopyWithImpl<$Res>
  100. implements $InitialCopyWith<$Res> {
  101. _$InitialCopyWithImpl(Initial _value, $Res Function(Initial) _then)
  102. : super(_value, (v) => _then(v as Initial));
  103. @override
  104. Initial get _value => super._value as Initial;
  105. }
  106. /// @nodoc
  107. class _$Initial implements Initial {
  108. const _$Initial();
  109. @override
  110. String toString() {
  111. return 'AppEvent.initial()';
  112. }
  113. @override
  114. bool operator ==(dynamic other) {
  115. return identical(this, other) || (other is Initial);
  116. }
  117. @override
  118. int get hashCode => runtimeType.hashCode;
  119. @override
  120. @optionalTypeArgs
  121. TResult when<TResult extends Object?>({
  122. required TResult Function() initial,
  123. required TResult Function(String name, String desc, ViewType viewType)
  124. createView,
  125. required TResult Function() delete,
  126. required TResult Function(String newName) rename,
  127. required TResult Function(List<View> views) didReceiveViews,
  128. }) {
  129. return initial();
  130. }
  131. @override
  132. @optionalTypeArgs
  133. TResult maybeWhen<TResult extends Object?>({
  134. TResult Function()? initial,
  135. TResult Function(String name, String desc, ViewType viewType)? createView,
  136. TResult Function()? delete,
  137. TResult Function(String newName)? rename,
  138. TResult Function(List<View> views)? didReceiveViews,
  139. required TResult orElse(),
  140. }) {
  141. if (initial != null) {
  142. return initial();
  143. }
  144. return orElse();
  145. }
  146. @override
  147. @optionalTypeArgs
  148. TResult map<TResult extends Object?>({
  149. required TResult Function(Initial value) initial,
  150. required TResult Function(CreateView value) createView,
  151. required TResult Function(Delete value) delete,
  152. required TResult Function(Rename value) rename,
  153. required TResult Function(ReceiveViews value) didReceiveViews,
  154. }) {
  155. return initial(this);
  156. }
  157. @override
  158. @optionalTypeArgs
  159. TResult maybeMap<TResult extends Object?>({
  160. TResult Function(Initial value)? initial,
  161. TResult Function(CreateView value)? createView,
  162. TResult Function(Delete value)? delete,
  163. TResult Function(Rename value)? rename,
  164. TResult Function(ReceiveViews value)? didReceiveViews,
  165. required TResult orElse(),
  166. }) {
  167. if (initial != null) {
  168. return initial(this);
  169. }
  170. return orElse();
  171. }
  172. }
  173. abstract class Initial implements AppEvent {
  174. const factory Initial() = _$Initial;
  175. }
  176. /// @nodoc
  177. abstract class $CreateViewCopyWith<$Res> {
  178. factory $CreateViewCopyWith(
  179. CreateView value, $Res Function(CreateView) then) =
  180. _$CreateViewCopyWithImpl<$Res>;
  181. $Res call({String name, String desc, ViewType viewType});
  182. }
  183. /// @nodoc
  184. class _$CreateViewCopyWithImpl<$Res> extends _$AppEventCopyWithImpl<$Res>
  185. implements $CreateViewCopyWith<$Res> {
  186. _$CreateViewCopyWithImpl(CreateView _value, $Res Function(CreateView) _then)
  187. : super(_value, (v) => _then(v as CreateView));
  188. @override
  189. CreateView get _value => super._value as CreateView;
  190. @override
  191. $Res call({
  192. Object? name = freezed,
  193. Object? desc = freezed,
  194. Object? viewType = freezed,
  195. }) {
  196. return _then(CreateView(
  197. name == freezed
  198. ? _value.name
  199. : name // ignore: cast_nullable_to_non_nullable
  200. as String,
  201. desc == freezed
  202. ? _value.desc
  203. : desc // ignore: cast_nullable_to_non_nullable
  204. as String,
  205. viewType == freezed
  206. ? _value.viewType
  207. : viewType // ignore: cast_nullable_to_non_nullable
  208. as ViewType,
  209. ));
  210. }
  211. }
  212. /// @nodoc
  213. class _$CreateView implements CreateView {
  214. const _$CreateView(this.name, this.desc, this.viewType);
  215. @override
  216. final String name;
  217. @override
  218. final String desc;
  219. @override
  220. final ViewType viewType;
  221. @override
  222. String toString() {
  223. return 'AppEvent.createView(name: $name, desc: $desc, viewType: $viewType)';
  224. }
  225. @override
  226. bool operator ==(dynamic other) {
  227. return identical(this, other) ||
  228. (other is CreateView &&
  229. (identical(other.name, name) ||
  230. const DeepCollectionEquality().equals(other.name, name)) &&
  231. (identical(other.desc, desc) ||
  232. const DeepCollectionEquality().equals(other.desc, desc)) &&
  233. (identical(other.viewType, viewType) ||
  234. const DeepCollectionEquality()
  235. .equals(other.viewType, viewType)));
  236. }
  237. @override
  238. int get hashCode =>
  239. runtimeType.hashCode ^
  240. const DeepCollectionEquality().hash(name) ^
  241. const DeepCollectionEquality().hash(desc) ^
  242. const DeepCollectionEquality().hash(viewType);
  243. @JsonKey(ignore: true)
  244. @override
  245. $CreateViewCopyWith<CreateView> get copyWith =>
  246. _$CreateViewCopyWithImpl<CreateView>(this, _$identity);
  247. @override
  248. @optionalTypeArgs
  249. TResult when<TResult extends Object?>({
  250. required TResult Function() initial,
  251. required TResult Function(String name, String desc, ViewType viewType)
  252. createView,
  253. required TResult Function() delete,
  254. required TResult Function(String newName) rename,
  255. required TResult Function(List<View> views) didReceiveViews,
  256. }) {
  257. return createView(name, desc, viewType);
  258. }
  259. @override
  260. @optionalTypeArgs
  261. TResult maybeWhen<TResult extends Object?>({
  262. TResult Function()? initial,
  263. TResult Function(String name, String desc, ViewType viewType)? createView,
  264. TResult Function()? delete,
  265. TResult Function(String newName)? rename,
  266. TResult Function(List<View> views)? didReceiveViews,
  267. required TResult orElse(),
  268. }) {
  269. if (createView != null) {
  270. return createView(name, desc, viewType);
  271. }
  272. return orElse();
  273. }
  274. @override
  275. @optionalTypeArgs
  276. TResult map<TResult extends Object?>({
  277. required TResult Function(Initial value) initial,
  278. required TResult Function(CreateView value) createView,
  279. required TResult Function(Delete value) delete,
  280. required TResult Function(Rename value) rename,
  281. required TResult Function(ReceiveViews value) didReceiveViews,
  282. }) {
  283. return createView(this);
  284. }
  285. @override
  286. @optionalTypeArgs
  287. TResult maybeMap<TResult extends Object?>({
  288. TResult Function(Initial value)? initial,
  289. TResult Function(CreateView value)? createView,
  290. TResult Function(Delete value)? delete,
  291. TResult Function(Rename value)? rename,
  292. TResult Function(ReceiveViews value)? didReceiveViews,
  293. required TResult orElse(),
  294. }) {
  295. if (createView != null) {
  296. return createView(this);
  297. }
  298. return orElse();
  299. }
  300. }
  301. abstract class CreateView implements AppEvent {
  302. const factory CreateView(String name, String desc, ViewType viewType) =
  303. _$CreateView;
  304. String get name => throw _privateConstructorUsedError;
  305. String get desc => throw _privateConstructorUsedError;
  306. ViewType get viewType => throw _privateConstructorUsedError;
  307. @JsonKey(ignore: true)
  308. $CreateViewCopyWith<CreateView> get copyWith =>
  309. throw _privateConstructorUsedError;
  310. }
  311. /// @nodoc
  312. abstract class $DeleteCopyWith<$Res> {
  313. factory $DeleteCopyWith(Delete value, $Res Function(Delete) then) =
  314. _$DeleteCopyWithImpl<$Res>;
  315. }
  316. /// @nodoc
  317. class _$DeleteCopyWithImpl<$Res> extends _$AppEventCopyWithImpl<$Res>
  318. implements $DeleteCopyWith<$Res> {
  319. _$DeleteCopyWithImpl(Delete _value, $Res Function(Delete) _then)
  320. : super(_value, (v) => _then(v as Delete));
  321. @override
  322. Delete get _value => super._value as Delete;
  323. }
  324. /// @nodoc
  325. class _$Delete implements Delete {
  326. const _$Delete();
  327. @override
  328. String toString() {
  329. return 'AppEvent.delete()';
  330. }
  331. @override
  332. bool operator ==(dynamic other) {
  333. return identical(this, other) || (other is Delete);
  334. }
  335. @override
  336. int get hashCode => runtimeType.hashCode;
  337. @override
  338. @optionalTypeArgs
  339. TResult when<TResult extends Object?>({
  340. required TResult Function() initial,
  341. required TResult Function(String name, String desc, ViewType viewType)
  342. createView,
  343. required TResult Function() delete,
  344. required TResult Function(String newName) rename,
  345. required TResult Function(List<View> views) didReceiveViews,
  346. }) {
  347. return delete();
  348. }
  349. @override
  350. @optionalTypeArgs
  351. TResult maybeWhen<TResult extends Object?>({
  352. TResult Function()? initial,
  353. TResult Function(String name, String desc, ViewType viewType)? createView,
  354. TResult Function()? delete,
  355. TResult Function(String newName)? rename,
  356. TResult Function(List<View> views)? didReceiveViews,
  357. required TResult orElse(),
  358. }) {
  359. if (delete != null) {
  360. return delete();
  361. }
  362. return orElse();
  363. }
  364. @override
  365. @optionalTypeArgs
  366. TResult map<TResult extends Object?>({
  367. required TResult Function(Initial value) initial,
  368. required TResult Function(CreateView value) createView,
  369. required TResult Function(Delete value) delete,
  370. required TResult Function(Rename value) rename,
  371. required TResult Function(ReceiveViews value) didReceiveViews,
  372. }) {
  373. return delete(this);
  374. }
  375. @override
  376. @optionalTypeArgs
  377. TResult maybeMap<TResult extends Object?>({
  378. TResult Function(Initial value)? initial,
  379. TResult Function(CreateView value)? createView,
  380. TResult Function(Delete value)? delete,
  381. TResult Function(Rename value)? rename,
  382. TResult Function(ReceiveViews value)? didReceiveViews,
  383. required TResult orElse(),
  384. }) {
  385. if (delete != null) {
  386. return delete(this);
  387. }
  388. return orElse();
  389. }
  390. }
  391. abstract class Delete implements AppEvent {
  392. const factory Delete() = _$Delete;
  393. }
  394. /// @nodoc
  395. abstract class $RenameCopyWith<$Res> {
  396. factory $RenameCopyWith(Rename value, $Res Function(Rename) then) =
  397. _$RenameCopyWithImpl<$Res>;
  398. $Res call({String newName});
  399. }
  400. /// @nodoc
  401. class _$RenameCopyWithImpl<$Res> extends _$AppEventCopyWithImpl<$Res>
  402. implements $RenameCopyWith<$Res> {
  403. _$RenameCopyWithImpl(Rename _value, $Res Function(Rename) _then)
  404. : super(_value, (v) => _then(v as Rename));
  405. @override
  406. Rename get _value => super._value as Rename;
  407. @override
  408. $Res call({
  409. Object? newName = freezed,
  410. }) {
  411. return _then(Rename(
  412. newName == freezed
  413. ? _value.newName
  414. : newName // ignore: cast_nullable_to_non_nullable
  415. as String,
  416. ));
  417. }
  418. }
  419. /// @nodoc
  420. class _$Rename implements Rename {
  421. const _$Rename(this.newName);
  422. @override
  423. final String newName;
  424. @override
  425. String toString() {
  426. return 'AppEvent.rename(newName: $newName)';
  427. }
  428. @override
  429. bool operator ==(dynamic other) {
  430. return identical(this, other) ||
  431. (other is Rename &&
  432. (identical(other.newName, newName) ||
  433. const DeepCollectionEquality().equals(other.newName, newName)));
  434. }
  435. @override
  436. int get hashCode =>
  437. runtimeType.hashCode ^ const DeepCollectionEquality().hash(newName);
  438. @JsonKey(ignore: true)
  439. @override
  440. $RenameCopyWith<Rename> get copyWith =>
  441. _$RenameCopyWithImpl<Rename>(this, _$identity);
  442. @override
  443. @optionalTypeArgs
  444. TResult when<TResult extends Object?>({
  445. required TResult Function() initial,
  446. required TResult Function(String name, String desc, ViewType viewType)
  447. createView,
  448. required TResult Function() delete,
  449. required TResult Function(String newName) rename,
  450. required TResult Function(List<View> views) didReceiveViews,
  451. }) {
  452. return rename(newName);
  453. }
  454. @override
  455. @optionalTypeArgs
  456. TResult maybeWhen<TResult extends Object?>({
  457. TResult Function()? initial,
  458. TResult Function(String name, String desc, ViewType viewType)? createView,
  459. TResult Function()? delete,
  460. TResult Function(String newName)? rename,
  461. TResult Function(List<View> views)? didReceiveViews,
  462. required TResult orElse(),
  463. }) {
  464. if (rename != null) {
  465. return rename(newName);
  466. }
  467. return orElse();
  468. }
  469. @override
  470. @optionalTypeArgs
  471. TResult map<TResult extends Object?>({
  472. required TResult Function(Initial value) initial,
  473. required TResult Function(CreateView value) createView,
  474. required TResult Function(Delete value) delete,
  475. required TResult Function(Rename value) rename,
  476. required TResult Function(ReceiveViews value) didReceiveViews,
  477. }) {
  478. return rename(this);
  479. }
  480. @override
  481. @optionalTypeArgs
  482. TResult maybeMap<TResult extends Object?>({
  483. TResult Function(Initial value)? initial,
  484. TResult Function(CreateView value)? createView,
  485. TResult Function(Delete value)? delete,
  486. TResult Function(Rename value)? rename,
  487. TResult Function(ReceiveViews value)? didReceiveViews,
  488. required TResult orElse(),
  489. }) {
  490. if (rename != null) {
  491. return rename(this);
  492. }
  493. return orElse();
  494. }
  495. }
  496. abstract class Rename implements AppEvent {
  497. const factory Rename(String newName) = _$Rename;
  498. String get newName => throw _privateConstructorUsedError;
  499. @JsonKey(ignore: true)
  500. $RenameCopyWith<Rename> get copyWith => throw _privateConstructorUsedError;
  501. }
  502. /// @nodoc
  503. abstract class $ReceiveViewsCopyWith<$Res> {
  504. factory $ReceiveViewsCopyWith(
  505. ReceiveViews value, $Res Function(ReceiveViews) then) =
  506. _$ReceiveViewsCopyWithImpl<$Res>;
  507. $Res call({List<View> views});
  508. }
  509. /// @nodoc
  510. class _$ReceiveViewsCopyWithImpl<$Res> extends _$AppEventCopyWithImpl<$Res>
  511. implements $ReceiveViewsCopyWith<$Res> {
  512. _$ReceiveViewsCopyWithImpl(
  513. ReceiveViews _value, $Res Function(ReceiveViews) _then)
  514. : super(_value, (v) => _then(v as ReceiveViews));
  515. @override
  516. ReceiveViews get _value => super._value as ReceiveViews;
  517. @override
  518. $Res call({
  519. Object? views = freezed,
  520. }) {
  521. return _then(ReceiveViews(
  522. views == freezed
  523. ? _value.views
  524. : views // ignore: cast_nullable_to_non_nullable
  525. as List<View>,
  526. ));
  527. }
  528. }
  529. /// @nodoc
  530. class _$ReceiveViews implements ReceiveViews {
  531. const _$ReceiveViews(this.views);
  532. @override
  533. final List<View> views;
  534. @override
  535. String toString() {
  536. return 'AppEvent.didReceiveViews(views: $views)';
  537. }
  538. @override
  539. bool operator ==(dynamic other) {
  540. return identical(this, other) ||
  541. (other is ReceiveViews &&
  542. (identical(other.views, views) ||
  543. const DeepCollectionEquality().equals(other.views, views)));
  544. }
  545. @override
  546. int get hashCode =>
  547. runtimeType.hashCode ^ const DeepCollectionEquality().hash(views);
  548. @JsonKey(ignore: true)
  549. @override
  550. $ReceiveViewsCopyWith<ReceiveViews> get copyWith =>
  551. _$ReceiveViewsCopyWithImpl<ReceiveViews>(this, _$identity);
  552. @override
  553. @optionalTypeArgs
  554. TResult when<TResult extends Object?>({
  555. required TResult Function() initial,
  556. required TResult Function(String name, String desc, ViewType viewType)
  557. createView,
  558. required TResult Function() delete,
  559. required TResult Function(String newName) rename,
  560. required TResult Function(List<View> views) didReceiveViews,
  561. }) {
  562. return didReceiveViews(views);
  563. }
  564. @override
  565. @optionalTypeArgs
  566. TResult maybeWhen<TResult extends Object?>({
  567. TResult Function()? initial,
  568. TResult Function(String name, String desc, ViewType viewType)? createView,
  569. TResult Function()? delete,
  570. TResult Function(String newName)? rename,
  571. TResult Function(List<View> views)? didReceiveViews,
  572. required TResult orElse(),
  573. }) {
  574. if (didReceiveViews != null) {
  575. return didReceiveViews(views);
  576. }
  577. return orElse();
  578. }
  579. @override
  580. @optionalTypeArgs
  581. TResult map<TResult extends Object?>({
  582. required TResult Function(Initial value) initial,
  583. required TResult Function(CreateView value) createView,
  584. required TResult Function(Delete value) delete,
  585. required TResult Function(Rename value) rename,
  586. required TResult Function(ReceiveViews value) didReceiveViews,
  587. }) {
  588. return didReceiveViews(this);
  589. }
  590. @override
  591. @optionalTypeArgs
  592. TResult maybeMap<TResult extends Object?>({
  593. TResult Function(Initial value)? initial,
  594. TResult Function(CreateView value)? createView,
  595. TResult Function(Delete value)? delete,
  596. TResult Function(Rename value)? rename,
  597. TResult Function(ReceiveViews value)? didReceiveViews,
  598. required TResult orElse(),
  599. }) {
  600. if (didReceiveViews != null) {
  601. return didReceiveViews(this);
  602. }
  603. return orElse();
  604. }
  605. }
  606. abstract class ReceiveViews implements AppEvent {
  607. const factory ReceiveViews(List<View> views) = _$ReceiveViews;
  608. List<View> get views => throw _privateConstructorUsedError;
  609. @JsonKey(ignore: true)
  610. $ReceiveViewsCopyWith<ReceiveViews> get copyWith =>
  611. throw _privateConstructorUsedError;
  612. }
  613. /// @nodoc
  614. class _$AppStateTearOff {
  615. const _$AppStateTearOff();
  616. _AppState call(
  617. {required App app,
  618. required bool isLoading,
  619. required List<View>? views,
  620. View? selectedView,
  621. required Either<Unit, WorkspaceError> successOrFailure}) {
  622. return _AppState(
  623. app: app,
  624. isLoading: isLoading,
  625. views: views,
  626. selectedView: selectedView,
  627. successOrFailure: successOrFailure,
  628. );
  629. }
  630. }
  631. /// @nodoc
  632. const $AppState = _$AppStateTearOff();
  633. /// @nodoc
  634. mixin _$AppState {
  635. App get app => throw _privateConstructorUsedError;
  636. bool get isLoading => throw _privateConstructorUsedError;
  637. List<View>? get views => throw _privateConstructorUsedError;
  638. View? get selectedView => throw _privateConstructorUsedError;
  639. Either<Unit, WorkspaceError> get successOrFailure =>
  640. throw _privateConstructorUsedError;
  641. @JsonKey(ignore: true)
  642. $AppStateCopyWith<AppState> get copyWith =>
  643. throw _privateConstructorUsedError;
  644. }
  645. /// @nodoc
  646. abstract class $AppStateCopyWith<$Res> {
  647. factory $AppStateCopyWith(AppState value, $Res Function(AppState) then) =
  648. _$AppStateCopyWithImpl<$Res>;
  649. $Res call(
  650. {App app,
  651. bool isLoading,
  652. List<View>? views,
  653. View? selectedView,
  654. Either<Unit, WorkspaceError> successOrFailure});
  655. }
  656. /// @nodoc
  657. class _$AppStateCopyWithImpl<$Res> implements $AppStateCopyWith<$Res> {
  658. _$AppStateCopyWithImpl(this._value, this._then);
  659. final AppState _value;
  660. // ignore: unused_field
  661. final $Res Function(AppState) _then;
  662. @override
  663. $Res call({
  664. Object? app = freezed,
  665. Object? isLoading = freezed,
  666. Object? views = freezed,
  667. Object? selectedView = freezed,
  668. Object? successOrFailure = freezed,
  669. }) {
  670. return _then(_value.copyWith(
  671. app: app == freezed
  672. ? _value.app
  673. : app // ignore: cast_nullable_to_non_nullable
  674. as App,
  675. isLoading: isLoading == freezed
  676. ? _value.isLoading
  677. : isLoading // ignore: cast_nullable_to_non_nullable
  678. as bool,
  679. views: views == freezed
  680. ? _value.views
  681. : views // ignore: cast_nullable_to_non_nullable
  682. as List<View>?,
  683. selectedView: selectedView == freezed
  684. ? _value.selectedView
  685. : selectedView // ignore: cast_nullable_to_non_nullable
  686. as View?,
  687. successOrFailure: successOrFailure == freezed
  688. ? _value.successOrFailure
  689. : successOrFailure // ignore: cast_nullable_to_non_nullable
  690. as Either<Unit, WorkspaceError>,
  691. ));
  692. }
  693. }
  694. /// @nodoc
  695. abstract class _$AppStateCopyWith<$Res> implements $AppStateCopyWith<$Res> {
  696. factory _$AppStateCopyWith(_AppState value, $Res Function(_AppState) then) =
  697. __$AppStateCopyWithImpl<$Res>;
  698. @override
  699. $Res call(
  700. {App app,
  701. bool isLoading,
  702. List<View>? views,
  703. View? selectedView,
  704. Either<Unit, WorkspaceError> successOrFailure});
  705. }
  706. /// @nodoc
  707. class __$AppStateCopyWithImpl<$Res> extends _$AppStateCopyWithImpl<$Res>
  708. implements _$AppStateCopyWith<$Res> {
  709. __$AppStateCopyWithImpl(_AppState _value, $Res Function(_AppState) _then)
  710. : super(_value, (v) => _then(v as _AppState));
  711. @override
  712. _AppState get _value => super._value as _AppState;
  713. @override
  714. $Res call({
  715. Object? app = freezed,
  716. Object? isLoading = freezed,
  717. Object? views = freezed,
  718. Object? selectedView = freezed,
  719. Object? successOrFailure = freezed,
  720. }) {
  721. return _then(_AppState(
  722. app: app == freezed
  723. ? _value.app
  724. : app // ignore: cast_nullable_to_non_nullable
  725. as App,
  726. isLoading: isLoading == freezed
  727. ? _value.isLoading
  728. : isLoading // ignore: cast_nullable_to_non_nullable
  729. as bool,
  730. views: views == freezed
  731. ? _value.views
  732. : views // ignore: cast_nullable_to_non_nullable
  733. as List<View>?,
  734. selectedView: selectedView == freezed
  735. ? _value.selectedView
  736. : selectedView // ignore: cast_nullable_to_non_nullable
  737. as View?,
  738. successOrFailure: successOrFailure == freezed
  739. ? _value.successOrFailure
  740. : successOrFailure // ignore: cast_nullable_to_non_nullable
  741. as Either<Unit, WorkspaceError>,
  742. ));
  743. }
  744. }
  745. /// @nodoc
  746. class _$_AppState implements _AppState {
  747. const _$_AppState(
  748. {required this.app,
  749. required this.isLoading,
  750. required this.views,
  751. this.selectedView,
  752. required this.successOrFailure});
  753. @override
  754. final App app;
  755. @override
  756. final bool isLoading;
  757. @override
  758. final List<View>? views;
  759. @override
  760. final View? selectedView;
  761. @override
  762. final Either<Unit, WorkspaceError> successOrFailure;
  763. @override
  764. String toString() {
  765. return 'AppState(app: $app, isLoading: $isLoading, views: $views, selectedView: $selectedView, successOrFailure: $successOrFailure)';
  766. }
  767. @override
  768. bool operator ==(dynamic other) {
  769. return identical(this, other) ||
  770. (other is _AppState &&
  771. (identical(other.app, app) ||
  772. const DeepCollectionEquality().equals(other.app, app)) &&
  773. (identical(other.isLoading, isLoading) ||
  774. const DeepCollectionEquality()
  775. .equals(other.isLoading, isLoading)) &&
  776. (identical(other.views, views) ||
  777. const DeepCollectionEquality().equals(other.views, views)) &&
  778. (identical(other.selectedView, selectedView) ||
  779. const DeepCollectionEquality()
  780. .equals(other.selectedView, selectedView)) &&
  781. (identical(other.successOrFailure, successOrFailure) ||
  782. const DeepCollectionEquality()
  783. .equals(other.successOrFailure, successOrFailure)));
  784. }
  785. @override
  786. int get hashCode =>
  787. runtimeType.hashCode ^
  788. const DeepCollectionEquality().hash(app) ^
  789. const DeepCollectionEquality().hash(isLoading) ^
  790. const DeepCollectionEquality().hash(views) ^
  791. const DeepCollectionEquality().hash(selectedView) ^
  792. const DeepCollectionEquality().hash(successOrFailure);
  793. @JsonKey(ignore: true)
  794. @override
  795. _$AppStateCopyWith<_AppState> get copyWith =>
  796. __$AppStateCopyWithImpl<_AppState>(this, _$identity);
  797. }
  798. abstract class _AppState implements AppState {
  799. const factory _AppState(
  800. {required App app,
  801. required bool isLoading,
  802. required List<View>? views,
  803. View? selectedView,
  804. required Either<Unit, WorkspaceError> successOrFailure}) = _$_AppState;
  805. @override
  806. App get app => throw _privateConstructorUsedError;
  807. @override
  808. bool get isLoading => throw _privateConstructorUsedError;
  809. @override
  810. List<View>? get views => throw _privateConstructorUsedError;
  811. @override
  812. View? get selectedView => throw _privateConstructorUsedError;
  813. @override
  814. Either<Unit, WorkspaceError> get successOrFailure =>
  815. throw _privateConstructorUsedError;
  816. @override
  817. @JsonKey(ignore: true)
  818. _$AppStateCopyWith<_AppState> get copyWith =>
  819. throw _privateConstructorUsedError;
  820. }