home_bloc.freezed.dart 27 KB

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