You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

997 lines
30 KiB

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