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.

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