home_auth_bloc.freezed.dart 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643
  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 'home_auth_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 _$HomeAuthEventTearOff {
  12. const _$HomeAuthEventTearOff();
  13. _Started started() {
  14. return const _Started();
  15. }
  16. _Stop stop() {
  17. return const _Stop();
  18. }
  19. _Unauthorized unauthorized(String msg) {
  20. return _Unauthorized(
  21. msg,
  22. );
  23. }
  24. }
  25. /// @nodoc
  26. const $HomeAuthEvent = _$HomeAuthEventTearOff();
  27. /// @nodoc
  28. mixin _$HomeAuthEvent {
  29. @optionalTypeArgs
  30. TResult when<TResult extends Object?>({
  31. required TResult Function() started,
  32. required TResult Function() stop,
  33. required TResult Function(String msg) unauthorized,
  34. }) =>
  35. throw _privateConstructorUsedError;
  36. @optionalTypeArgs
  37. TResult maybeWhen<TResult extends Object?>({
  38. TResult Function()? started,
  39. TResult Function()? stop,
  40. TResult Function(String msg)? unauthorized,
  41. required TResult orElse(),
  42. }) =>
  43. throw _privateConstructorUsedError;
  44. @optionalTypeArgs
  45. TResult map<TResult extends Object?>({
  46. required TResult Function(_Started value) started,
  47. required TResult Function(_Stop value) stop,
  48. required TResult Function(_Unauthorized value) unauthorized,
  49. }) =>
  50. throw _privateConstructorUsedError;
  51. @optionalTypeArgs
  52. TResult maybeMap<TResult extends Object?>({
  53. TResult Function(_Started value)? started,
  54. TResult Function(_Stop value)? stop,
  55. TResult Function(_Unauthorized value)? unauthorized,
  56. required TResult orElse(),
  57. }) =>
  58. throw _privateConstructorUsedError;
  59. }
  60. /// @nodoc
  61. abstract class $HomeAuthEventCopyWith<$Res> {
  62. factory $HomeAuthEventCopyWith(
  63. HomeAuthEvent value, $Res Function(HomeAuthEvent) then) =
  64. _$HomeAuthEventCopyWithImpl<$Res>;
  65. }
  66. /// @nodoc
  67. class _$HomeAuthEventCopyWithImpl<$Res>
  68. implements $HomeAuthEventCopyWith<$Res> {
  69. _$HomeAuthEventCopyWithImpl(this._value, this._then);
  70. final HomeAuthEvent _value;
  71. // ignore: unused_field
  72. final $Res Function(HomeAuthEvent) _then;
  73. }
  74. /// @nodoc
  75. abstract class _$StartedCopyWith<$Res> {
  76. factory _$StartedCopyWith(_Started value, $Res Function(_Started) then) =
  77. __$StartedCopyWithImpl<$Res>;
  78. }
  79. /// @nodoc
  80. class __$StartedCopyWithImpl<$Res> extends _$HomeAuthEventCopyWithImpl<$Res>
  81. implements _$StartedCopyWith<$Res> {
  82. __$StartedCopyWithImpl(_Started _value, $Res Function(_Started) _then)
  83. : super(_value, (v) => _then(v as _Started));
  84. @override
  85. _Started get _value => super._value as _Started;
  86. }
  87. /// @nodoc
  88. class _$_Started implements _Started {
  89. const _$_Started();
  90. @override
  91. String toString() {
  92. return 'HomeAuthEvent.started()';
  93. }
  94. @override
  95. bool operator ==(dynamic other) {
  96. return identical(this, other) || (other is _Started);
  97. }
  98. @override
  99. int get hashCode => runtimeType.hashCode;
  100. @override
  101. @optionalTypeArgs
  102. TResult when<TResult extends Object?>({
  103. required TResult Function() started,
  104. required TResult Function() stop,
  105. required TResult Function(String msg) unauthorized,
  106. }) {
  107. return started();
  108. }
  109. @override
  110. @optionalTypeArgs
  111. TResult maybeWhen<TResult extends Object?>({
  112. TResult Function()? started,
  113. TResult Function()? stop,
  114. TResult Function(String msg)? unauthorized,
  115. required TResult orElse(),
  116. }) {
  117. if (started != null) {
  118. return started();
  119. }
  120. return orElse();
  121. }
  122. @override
  123. @optionalTypeArgs
  124. TResult map<TResult extends Object?>({
  125. required TResult Function(_Started value) started,
  126. required TResult Function(_Stop value) stop,
  127. required TResult Function(_Unauthorized value) unauthorized,
  128. }) {
  129. return started(this);
  130. }
  131. @override
  132. @optionalTypeArgs
  133. TResult maybeMap<TResult extends Object?>({
  134. TResult Function(_Started value)? started,
  135. TResult Function(_Stop value)? stop,
  136. TResult Function(_Unauthorized value)? unauthorized,
  137. required TResult orElse(),
  138. }) {
  139. if (started != null) {
  140. return started(this);
  141. }
  142. return orElse();
  143. }
  144. }
  145. abstract class _Started implements HomeAuthEvent {
  146. const factory _Started() = _$_Started;
  147. }
  148. /// @nodoc
  149. abstract class _$StopCopyWith<$Res> {
  150. factory _$StopCopyWith(_Stop value, $Res Function(_Stop) then) =
  151. __$StopCopyWithImpl<$Res>;
  152. }
  153. /// @nodoc
  154. class __$StopCopyWithImpl<$Res> extends _$HomeAuthEventCopyWithImpl<$Res>
  155. implements _$StopCopyWith<$Res> {
  156. __$StopCopyWithImpl(_Stop _value, $Res Function(_Stop) _then)
  157. : super(_value, (v) => _then(v as _Stop));
  158. @override
  159. _Stop get _value => super._value as _Stop;
  160. }
  161. /// @nodoc
  162. class _$_Stop implements _Stop {
  163. const _$_Stop();
  164. @override
  165. String toString() {
  166. return 'HomeAuthEvent.stop()';
  167. }
  168. @override
  169. bool operator ==(dynamic other) {
  170. return identical(this, other) || (other is _Stop);
  171. }
  172. @override
  173. int get hashCode => runtimeType.hashCode;
  174. @override
  175. @optionalTypeArgs
  176. TResult when<TResult extends Object?>({
  177. required TResult Function() started,
  178. required TResult Function() stop,
  179. required TResult Function(String msg) unauthorized,
  180. }) {
  181. return stop();
  182. }
  183. @override
  184. @optionalTypeArgs
  185. TResult maybeWhen<TResult extends Object?>({
  186. TResult Function()? started,
  187. TResult Function()? stop,
  188. TResult Function(String msg)? unauthorized,
  189. required TResult orElse(),
  190. }) {
  191. if (stop != null) {
  192. return stop();
  193. }
  194. return orElse();
  195. }
  196. @override
  197. @optionalTypeArgs
  198. TResult map<TResult extends Object?>({
  199. required TResult Function(_Started value) started,
  200. required TResult Function(_Stop value) stop,
  201. required TResult Function(_Unauthorized value) unauthorized,
  202. }) {
  203. return stop(this);
  204. }
  205. @override
  206. @optionalTypeArgs
  207. TResult maybeMap<TResult extends Object?>({
  208. TResult Function(_Started value)? started,
  209. TResult Function(_Stop value)? stop,
  210. TResult Function(_Unauthorized value)? unauthorized,
  211. required TResult orElse(),
  212. }) {
  213. if (stop != null) {
  214. return stop(this);
  215. }
  216. return orElse();
  217. }
  218. }
  219. abstract class _Stop implements HomeAuthEvent {
  220. const factory _Stop() = _$_Stop;
  221. }
  222. /// @nodoc
  223. abstract class _$UnauthorizedCopyWith<$Res> {
  224. factory _$UnauthorizedCopyWith(
  225. _Unauthorized value, $Res Function(_Unauthorized) then) =
  226. __$UnauthorizedCopyWithImpl<$Res>;
  227. $Res call({String msg});
  228. }
  229. /// @nodoc
  230. class __$UnauthorizedCopyWithImpl<$Res>
  231. extends _$HomeAuthEventCopyWithImpl<$Res>
  232. implements _$UnauthorizedCopyWith<$Res> {
  233. __$UnauthorizedCopyWithImpl(
  234. _Unauthorized _value, $Res Function(_Unauthorized) _then)
  235. : super(_value, (v) => _then(v as _Unauthorized));
  236. @override
  237. _Unauthorized get _value => super._value as _Unauthorized;
  238. @override
  239. $Res call({
  240. Object? msg = freezed,
  241. }) {
  242. return _then(_Unauthorized(
  243. msg == freezed
  244. ? _value.msg
  245. : msg // ignore: cast_nullable_to_non_nullable
  246. as String,
  247. ));
  248. }
  249. }
  250. /// @nodoc
  251. class _$_Unauthorized implements _Unauthorized {
  252. const _$_Unauthorized(this.msg);
  253. @override
  254. final String msg;
  255. @override
  256. String toString() {
  257. return 'HomeAuthEvent.unauthorized(msg: $msg)';
  258. }
  259. @override
  260. bool operator ==(dynamic other) {
  261. return identical(this, other) ||
  262. (other is _Unauthorized &&
  263. (identical(other.msg, msg) ||
  264. const DeepCollectionEquality().equals(other.msg, msg)));
  265. }
  266. @override
  267. int get hashCode =>
  268. runtimeType.hashCode ^ const DeepCollectionEquality().hash(msg);
  269. @JsonKey(ignore: true)
  270. @override
  271. _$UnauthorizedCopyWith<_Unauthorized> get copyWith =>
  272. __$UnauthorizedCopyWithImpl<_Unauthorized>(this, _$identity);
  273. @override
  274. @optionalTypeArgs
  275. TResult when<TResult extends Object?>({
  276. required TResult Function() started,
  277. required TResult Function() stop,
  278. required TResult Function(String msg) unauthorized,
  279. }) {
  280. return unauthorized(msg);
  281. }
  282. @override
  283. @optionalTypeArgs
  284. TResult maybeWhen<TResult extends Object?>({
  285. TResult Function()? started,
  286. TResult Function()? stop,
  287. TResult Function(String msg)? unauthorized,
  288. required TResult orElse(),
  289. }) {
  290. if (unauthorized != null) {
  291. return unauthorized(msg);
  292. }
  293. return orElse();
  294. }
  295. @override
  296. @optionalTypeArgs
  297. TResult map<TResult extends Object?>({
  298. required TResult Function(_Started value) started,
  299. required TResult Function(_Stop value) stop,
  300. required TResult Function(_Unauthorized value) unauthorized,
  301. }) {
  302. return unauthorized(this);
  303. }
  304. @override
  305. @optionalTypeArgs
  306. TResult maybeMap<TResult extends Object?>({
  307. TResult Function(_Started value)? started,
  308. TResult Function(_Stop value)? stop,
  309. TResult Function(_Unauthorized value)? unauthorized,
  310. required TResult orElse(),
  311. }) {
  312. if (unauthorized != null) {
  313. return unauthorized(this);
  314. }
  315. return orElse();
  316. }
  317. }
  318. abstract class _Unauthorized implements HomeAuthEvent {
  319. const factory _Unauthorized(String msg) = _$_Unauthorized;
  320. String get msg => throw _privateConstructorUsedError;
  321. @JsonKey(ignore: true)
  322. _$UnauthorizedCopyWith<_Unauthorized> get copyWith =>
  323. throw _privateConstructorUsedError;
  324. }
  325. /// @nodoc
  326. class _$HomeAuthStateTearOff {
  327. const _$HomeAuthStateTearOff();
  328. Loading loading() {
  329. return const Loading();
  330. }
  331. Unauthorized unauthorized(String msg) {
  332. return Unauthorized(
  333. msg,
  334. );
  335. }
  336. }
  337. /// @nodoc
  338. const $HomeAuthState = _$HomeAuthStateTearOff();
  339. /// @nodoc
  340. mixin _$HomeAuthState {
  341. @optionalTypeArgs
  342. TResult when<TResult extends Object?>({
  343. required TResult Function() loading,
  344. required TResult Function(String msg) unauthorized,
  345. }) =>
  346. throw _privateConstructorUsedError;
  347. @optionalTypeArgs
  348. TResult maybeWhen<TResult extends Object?>({
  349. TResult Function()? loading,
  350. TResult Function(String msg)? unauthorized,
  351. required TResult orElse(),
  352. }) =>
  353. throw _privateConstructorUsedError;
  354. @optionalTypeArgs
  355. TResult map<TResult extends Object?>({
  356. required TResult Function(Loading value) loading,
  357. required TResult Function(Unauthorized value) unauthorized,
  358. }) =>
  359. throw _privateConstructorUsedError;
  360. @optionalTypeArgs
  361. TResult maybeMap<TResult extends Object?>({
  362. TResult Function(Loading value)? loading,
  363. TResult Function(Unauthorized value)? unauthorized,
  364. required TResult orElse(),
  365. }) =>
  366. throw _privateConstructorUsedError;
  367. }
  368. /// @nodoc
  369. abstract class $HomeAuthStateCopyWith<$Res> {
  370. factory $HomeAuthStateCopyWith(
  371. HomeAuthState value, $Res Function(HomeAuthState) then) =
  372. _$HomeAuthStateCopyWithImpl<$Res>;
  373. }
  374. /// @nodoc
  375. class _$HomeAuthStateCopyWithImpl<$Res>
  376. implements $HomeAuthStateCopyWith<$Res> {
  377. _$HomeAuthStateCopyWithImpl(this._value, this._then);
  378. final HomeAuthState _value;
  379. // ignore: unused_field
  380. final $Res Function(HomeAuthState) _then;
  381. }
  382. /// @nodoc
  383. abstract class $LoadingCopyWith<$Res> {
  384. factory $LoadingCopyWith(Loading value, $Res Function(Loading) then) =
  385. _$LoadingCopyWithImpl<$Res>;
  386. }
  387. /// @nodoc
  388. class _$LoadingCopyWithImpl<$Res> extends _$HomeAuthStateCopyWithImpl<$Res>
  389. implements $LoadingCopyWith<$Res> {
  390. _$LoadingCopyWithImpl(Loading _value, $Res Function(Loading) _then)
  391. : super(_value, (v) => _then(v as Loading));
  392. @override
  393. Loading get _value => super._value as Loading;
  394. }
  395. /// @nodoc
  396. class _$Loading implements Loading {
  397. const _$Loading();
  398. @override
  399. String toString() {
  400. return 'HomeAuthState.loading()';
  401. }
  402. @override
  403. bool operator ==(dynamic other) {
  404. return identical(this, other) || (other is Loading);
  405. }
  406. @override
  407. int get hashCode => runtimeType.hashCode;
  408. @override
  409. @optionalTypeArgs
  410. TResult when<TResult extends Object?>({
  411. required TResult Function() loading,
  412. required TResult Function(String msg) unauthorized,
  413. }) {
  414. return loading();
  415. }
  416. @override
  417. @optionalTypeArgs
  418. TResult maybeWhen<TResult extends Object?>({
  419. TResult Function()? loading,
  420. TResult Function(String msg)? unauthorized,
  421. required TResult orElse(),
  422. }) {
  423. if (loading != null) {
  424. return loading();
  425. }
  426. return orElse();
  427. }
  428. @override
  429. @optionalTypeArgs
  430. TResult map<TResult extends Object?>({
  431. required TResult Function(Loading value) loading,
  432. required TResult Function(Unauthorized value) unauthorized,
  433. }) {
  434. return loading(this);
  435. }
  436. @override
  437. @optionalTypeArgs
  438. TResult maybeMap<TResult extends Object?>({
  439. TResult Function(Loading value)? loading,
  440. TResult Function(Unauthorized value)? unauthorized,
  441. required TResult orElse(),
  442. }) {
  443. if (loading != null) {
  444. return loading(this);
  445. }
  446. return orElse();
  447. }
  448. }
  449. abstract class Loading implements HomeAuthState {
  450. const factory Loading() = _$Loading;
  451. }
  452. /// @nodoc
  453. abstract class $UnauthorizedCopyWith<$Res> {
  454. factory $UnauthorizedCopyWith(
  455. Unauthorized value, $Res Function(Unauthorized) then) =
  456. _$UnauthorizedCopyWithImpl<$Res>;
  457. $Res call({String msg});
  458. }
  459. /// @nodoc
  460. class _$UnauthorizedCopyWithImpl<$Res> extends _$HomeAuthStateCopyWithImpl<$Res>
  461. implements $UnauthorizedCopyWith<$Res> {
  462. _$UnauthorizedCopyWithImpl(
  463. Unauthorized _value, $Res Function(Unauthorized) _then)
  464. : super(_value, (v) => _then(v as Unauthorized));
  465. @override
  466. Unauthorized get _value => super._value as Unauthorized;
  467. @override
  468. $Res call({
  469. Object? msg = freezed,
  470. }) {
  471. return _then(Unauthorized(
  472. msg == freezed
  473. ? _value.msg
  474. : msg // ignore: cast_nullable_to_non_nullable
  475. as String,
  476. ));
  477. }
  478. }
  479. /// @nodoc
  480. class _$Unauthorized implements Unauthorized {
  481. const _$Unauthorized(this.msg);
  482. @override
  483. final String msg;
  484. @override
  485. String toString() {
  486. return 'HomeAuthState.unauthorized(msg: $msg)';
  487. }
  488. @override
  489. bool operator ==(dynamic other) {
  490. return identical(this, other) ||
  491. (other is Unauthorized &&
  492. (identical(other.msg, msg) ||
  493. const DeepCollectionEquality().equals(other.msg, msg)));
  494. }
  495. @override
  496. int get hashCode =>
  497. runtimeType.hashCode ^ const DeepCollectionEquality().hash(msg);
  498. @JsonKey(ignore: true)
  499. @override
  500. $UnauthorizedCopyWith<Unauthorized> get copyWith =>
  501. _$UnauthorizedCopyWithImpl<Unauthorized>(this, _$identity);
  502. @override
  503. @optionalTypeArgs
  504. TResult when<TResult extends Object?>({
  505. required TResult Function() loading,
  506. required TResult Function(String msg) unauthorized,
  507. }) {
  508. return unauthorized(msg);
  509. }
  510. @override
  511. @optionalTypeArgs
  512. TResult maybeWhen<TResult extends Object?>({
  513. TResult Function()? loading,
  514. TResult Function(String msg)? unauthorized,
  515. required TResult orElse(),
  516. }) {
  517. if (unauthorized != null) {
  518. return unauthorized(msg);
  519. }
  520. return orElse();
  521. }
  522. @override
  523. @optionalTypeArgs
  524. TResult map<TResult extends Object?>({
  525. required TResult Function(Loading value) loading,
  526. required TResult Function(Unauthorized value) unauthorized,
  527. }) {
  528. return unauthorized(this);
  529. }
  530. @override
  531. @optionalTypeArgs
  532. TResult maybeMap<TResult extends Object?>({
  533. TResult Function(Loading value)? loading,
  534. TResult Function(Unauthorized value)? unauthorized,
  535. required TResult orElse(),
  536. }) {
  537. if (unauthorized != null) {
  538. return unauthorized(this);
  539. }
  540. return orElse();
  541. }
  542. }
  543. abstract class Unauthorized implements HomeAuthState {
  544. const factory Unauthorized(String msg) = _$Unauthorized;
  545. String get msg => throw _privateConstructorUsedError;
  546. @JsonKey(ignore: true)
  547. $UnauthorizedCopyWith<Unauthorized> get copyWith =>
  548. throw _privateConstructorUsedError;
  549. }