Line data Source code
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 :
4 : part of 'auth_failure.dart';
5 :
6 : // **************************************************************************
7 : // FreezedGenerator
8 : // **************************************************************************
9 :
10 0 : T _$identity<T>(T value) => value;
11 :
12 0 : final _privateConstructorUsedError = UnsupportedError(
13 : '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');
14 :
15 : /// @nodoc
16 : class _$AuthFailureTearOff {
17 1 : const _$AuthFailureTearOff();
18 :
19 0 : CancelledByUser cancelledByUser() {
20 : return const CancelledByUser();
21 : }
22 :
23 0 : ServerError serverError() {
24 : return const ServerError();
25 : }
26 :
27 0 : EmailAlreadyInUse emailAlreadyInUse() {
28 : return const EmailAlreadyInUse();
29 : }
30 :
31 0 : InvalidEmailAndPasswordCombination invalidEmailAndPasswordCombination() {
32 : return const InvalidEmailAndPasswordCombination();
33 : }
34 :
35 0 : WrongIosVersion wrongIosVersion() {
36 : return const WrongIosVersion();
37 : }
38 :
39 0 : InvalidEmail invalidEmail() {
40 : return const InvalidEmail();
41 : }
42 :
43 0 : WeakPassword weakPassword() {
44 : return const WeakPassword();
45 : }
46 :
47 0 : OperationNotAllowed operationNotAllowed() {
48 : return const OperationNotAllowed();
49 : }
50 :
51 0 : InvalidCredentials invalidCredentials() {
52 : return const InvalidCredentials();
53 : }
54 : }
55 :
56 : /// @nodoc
57 : const $AuthFailure = _$AuthFailureTearOff();
58 :
59 : /// @nodoc
60 : mixin _$AuthFailure {
61 0 : @optionalTypeArgs
62 : TResult when<TResult extends Object?>({
63 : required TResult Function() cancelledByUser,
64 : required TResult Function() serverError,
65 : required TResult Function() emailAlreadyInUse,
66 : required TResult Function() invalidEmailAndPasswordCombination,
67 : required TResult Function() wrongIosVersion,
68 : required TResult Function() invalidEmail,
69 : required TResult Function() weakPassword,
70 : required TResult Function() operationNotAllowed,
71 : required TResult Function() invalidCredentials,
72 : }) =>
73 0 : throw _privateConstructorUsedError;
74 0 : @optionalTypeArgs
75 : TResult maybeWhen<TResult extends Object?>({
76 : TResult Function()? cancelledByUser,
77 : TResult Function()? serverError,
78 : TResult Function()? emailAlreadyInUse,
79 : TResult Function()? invalidEmailAndPasswordCombination,
80 : TResult Function()? wrongIosVersion,
81 : TResult Function()? invalidEmail,
82 : TResult Function()? weakPassword,
83 : TResult Function()? operationNotAllowed,
84 : TResult Function()? invalidCredentials,
85 : required TResult orElse(),
86 : }) =>
87 0 : throw _privateConstructorUsedError;
88 0 : @optionalTypeArgs
89 : TResult map<TResult extends Object?>({
90 : required TResult Function(CancelledByUser value) cancelledByUser,
91 : required TResult Function(ServerError value) serverError,
92 : required TResult Function(EmailAlreadyInUse value) emailAlreadyInUse,
93 : required TResult Function(InvalidEmailAndPasswordCombination value)
94 : invalidEmailAndPasswordCombination,
95 : required TResult Function(WrongIosVersion value) wrongIosVersion,
96 : required TResult Function(InvalidEmail value) invalidEmail,
97 : required TResult Function(WeakPassword value) weakPassword,
98 : required TResult Function(OperationNotAllowed value) operationNotAllowed,
99 : required TResult Function(InvalidCredentials value) invalidCredentials,
100 : }) =>
101 0 : throw _privateConstructorUsedError;
102 0 : @optionalTypeArgs
103 : TResult maybeMap<TResult extends Object?>({
104 : TResult Function(CancelledByUser value)? cancelledByUser,
105 : TResult Function(ServerError value)? serverError,
106 : TResult Function(EmailAlreadyInUse value)? emailAlreadyInUse,
107 : TResult Function(InvalidEmailAndPasswordCombination value)?
108 : invalidEmailAndPasswordCombination,
109 : TResult Function(WrongIosVersion value)? wrongIosVersion,
110 : TResult Function(InvalidEmail value)? invalidEmail,
111 : TResult Function(WeakPassword value)? weakPassword,
112 : TResult Function(OperationNotAllowed value)? operationNotAllowed,
113 : TResult Function(InvalidCredentials value)? invalidCredentials,
114 : required TResult orElse(),
115 : }) =>
116 0 : throw _privateConstructorUsedError;
117 : }
118 :
119 : /// @nodoc
120 : abstract class $AuthFailureCopyWith<$Res> {
121 : factory $AuthFailureCopyWith(
122 : AuthFailure value, $Res Function(AuthFailure) then) =
123 : _$AuthFailureCopyWithImpl<$Res>;
124 : }
125 :
126 : /// @nodoc
127 : class _$AuthFailureCopyWithImpl<$Res> implements $AuthFailureCopyWith<$Res> {
128 0 : _$AuthFailureCopyWithImpl(this._value, this._then);
129 :
130 : final AuthFailure _value;
131 : // ignore: unused_field
132 : final $Res Function(AuthFailure) _then;
133 : }
134 :
135 : /// @nodoc
136 : abstract class $CancelledByUserCopyWith<$Res> {
137 : factory $CancelledByUserCopyWith(
138 : CancelledByUser value, $Res Function(CancelledByUser) then) =
139 : _$CancelledByUserCopyWithImpl<$Res>;
140 : }
141 :
142 : /// @nodoc
143 : class _$CancelledByUserCopyWithImpl<$Res>
144 : extends _$AuthFailureCopyWithImpl<$Res>
145 : implements $CancelledByUserCopyWith<$Res> {
146 0 : _$CancelledByUserCopyWithImpl(
147 : CancelledByUser _value, $Res Function(CancelledByUser) _then)
148 0 : : super(_value, (v) => _then(v as CancelledByUser));
149 :
150 0 : @override
151 0 : CancelledByUser get _value => super._value as CancelledByUser;
152 : }
153 :
154 : /// @nodoc
155 : class _$CancelledByUser implements CancelledByUser {
156 2 : const _$CancelledByUser();
157 :
158 0 : @override
159 : String toString() {
160 : return 'AuthFailure.cancelledByUser()';
161 : }
162 :
163 0 : @override
164 : bool operator ==(dynamic other) {
165 0 : return identical(this, other) || (other is CancelledByUser);
166 : }
167 :
168 0 : @override
169 0 : int get hashCode => runtimeType.hashCode;
170 :
171 0 : @override
172 : @optionalTypeArgs
173 : TResult when<TResult extends Object?>({
174 : required TResult Function() cancelledByUser,
175 : required TResult Function() serverError,
176 : required TResult Function() emailAlreadyInUse,
177 : required TResult Function() invalidEmailAndPasswordCombination,
178 : required TResult Function() wrongIosVersion,
179 : required TResult Function() invalidEmail,
180 : required TResult Function() weakPassword,
181 : required TResult Function() operationNotAllowed,
182 : required TResult Function() invalidCredentials,
183 : }) {
184 0 : return cancelledByUser();
185 : }
186 :
187 0 : @override
188 : @optionalTypeArgs
189 : TResult maybeWhen<TResult extends Object?>({
190 : TResult Function()? cancelledByUser,
191 : TResult Function()? serverError,
192 : TResult Function()? emailAlreadyInUse,
193 : TResult Function()? invalidEmailAndPasswordCombination,
194 : TResult Function()? wrongIosVersion,
195 : TResult Function()? invalidEmail,
196 : TResult Function()? weakPassword,
197 : TResult Function()? operationNotAllowed,
198 : TResult Function()? invalidCredentials,
199 : required TResult orElse(),
200 : }) {
201 : if (cancelledByUser != null) {
202 0 : return cancelledByUser();
203 : }
204 0 : return orElse();
205 : }
206 :
207 0 : @override
208 : @optionalTypeArgs
209 : TResult map<TResult extends Object?>({
210 : required TResult Function(CancelledByUser value) cancelledByUser,
211 : required TResult Function(ServerError value) serverError,
212 : required TResult Function(EmailAlreadyInUse value) emailAlreadyInUse,
213 : required TResult Function(InvalidEmailAndPasswordCombination value)
214 : invalidEmailAndPasswordCombination,
215 : required TResult Function(WrongIosVersion value) wrongIosVersion,
216 : required TResult Function(InvalidEmail value) invalidEmail,
217 : required TResult Function(WeakPassword value) weakPassword,
218 : required TResult Function(OperationNotAllowed value) operationNotAllowed,
219 : required TResult Function(InvalidCredentials value) invalidCredentials,
220 : }) {
221 0 : return cancelledByUser(this);
222 : }
223 :
224 0 : @override
225 : @optionalTypeArgs
226 : TResult maybeMap<TResult extends Object?>({
227 : TResult Function(CancelledByUser value)? cancelledByUser,
228 : TResult Function(ServerError value)? serverError,
229 : TResult Function(EmailAlreadyInUse value)? emailAlreadyInUse,
230 : TResult Function(InvalidEmailAndPasswordCombination value)?
231 : invalidEmailAndPasswordCombination,
232 : TResult Function(WrongIosVersion value)? wrongIosVersion,
233 : TResult Function(InvalidEmail value)? invalidEmail,
234 : TResult Function(WeakPassword value)? weakPassword,
235 : TResult Function(OperationNotAllowed value)? operationNotAllowed,
236 : TResult Function(InvalidCredentials value)? invalidCredentials,
237 : required TResult orElse(),
238 : }) {
239 : if (cancelledByUser != null) {
240 0 : return cancelledByUser(this);
241 : }
242 0 : return orElse();
243 : }
244 : }
245 :
246 : abstract class CancelledByUser implements AuthFailure {
247 : const factory CancelledByUser() = _$CancelledByUser;
248 : }
249 :
250 : /// @nodoc
251 : abstract class $ServerErrorCopyWith<$Res> {
252 : factory $ServerErrorCopyWith(
253 : ServerError value, $Res Function(ServerError) then) =
254 : _$ServerErrorCopyWithImpl<$Res>;
255 : }
256 :
257 : /// @nodoc
258 : class _$ServerErrorCopyWithImpl<$Res> extends _$AuthFailureCopyWithImpl<$Res>
259 : implements $ServerErrorCopyWith<$Res> {
260 0 : _$ServerErrorCopyWithImpl(
261 : ServerError _value, $Res Function(ServerError) _then)
262 0 : : super(_value, (v) => _then(v as ServerError));
263 :
264 0 : @override
265 0 : ServerError get _value => super._value as ServerError;
266 : }
267 :
268 : /// @nodoc
269 : class _$ServerError implements ServerError {
270 2 : const _$ServerError();
271 :
272 0 : @override
273 : String toString() {
274 : return 'AuthFailure.serverError()';
275 : }
276 :
277 0 : @override
278 : bool operator ==(dynamic other) {
279 0 : return identical(this, other) || (other is ServerError);
280 : }
281 :
282 0 : @override
283 0 : int get hashCode => runtimeType.hashCode;
284 :
285 0 : @override
286 : @optionalTypeArgs
287 : TResult when<TResult extends Object?>({
288 : required TResult Function() cancelledByUser,
289 : required TResult Function() serverError,
290 : required TResult Function() emailAlreadyInUse,
291 : required TResult Function() invalidEmailAndPasswordCombination,
292 : required TResult Function() wrongIosVersion,
293 : required TResult Function() invalidEmail,
294 : required TResult Function() weakPassword,
295 : required TResult Function() operationNotAllowed,
296 : required TResult Function() invalidCredentials,
297 : }) {
298 0 : return serverError();
299 : }
300 :
301 0 : @override
302 : @optionalTypeArgs
303 : TResult maybeWhen<TResult extends Object?>({
304 : TResult Function()? cancelledByUser,
305 : TResult Function()? serverError,
306 : TResult Function()? emailAlreadyInUse,
307 : TResult Function()? invalidEmailAndPasswordCombination,
308 : TResult Function()? wrongIosVersion,
309 : TResult Function()? invalidEmail,
310 : TResult Function()? weakPassword,
311 : TResult Function()? operationNotAllowed,
312 : TResult Function()? invalidCredentials,
313 : required TResult orElse(),
314 : }) {
315 : if (serverError != null) {
316 0 : return serverError();
317 : }
318 0 : return orElse();
319 : }
320 :
321 0 : @override
322 : @optionalTypeArgs
323 : TResult map<TResult extends Object?>({
324 : required TResult Function(CancelledByUser value) cancelledByUser,
325 : required TResult Function(ServerError value) serverError,
326 : required TResult Function(EmailAlreadyInUse value) emailAlreadyInUse,
327 : required TResult Function(InvalidEmailAndPasswordCombination value)
328 : invalidEmailAndPasswordCombination,
329 : required TResult Function(WrongIosVersion value) wrongIosVersion,
330 : required TResult Function(InvalidEmail value) invalidEmail,
331 : required TResult Function(WeakPassword value) weakPassword,
332 : required TResult Function(OperationNotAllowed value) operationNotAllowed,
333 : required TResult Function(InvalidCredentials value) invalidCredentials,
334 : }) {
335 0 : return serverError(this);
336 : }
337 :
338 0 : @override
339 : @optionalTypeArgs
340 : TResult maybeMap<TResult extends Object?>({
341 : TResult Function(CancelledByUser value)? cancelledByUser,
342 : TResult Function(ServerError value)? serverError,
343 : TResult Function(EmailAlreadyInUse value)? emailAlreadyInUse,
344 : TResult Function(InvalidEmailAndPasswordCombination value)?
345 : invalidEmailAndPasswordCombination,
346 : TResult Function(WrongIosVersion value)? wrongIosVersion,
347 : TResult Function(InvalidEmail value)? invalidEmail,
348 : TResult Function(WeakPassword value)? weakPassword,
349 : TResult Function(OperationNotAllowed value)? operationNotAllowed,
350 : TResult Function(InvalidCredentials value)? invalidCredentials,
351 : required TResult orElse(),
352 : }) {
353 : if (serverError != null) {
354 0 : return serverError(this);
355 : }
356 0 : return orElse();
357 : }
358 : }
359 :
360 : abstract class ServerError implements AuthFailure {
361 : const factory ServerError() = _$ServerError;
362 : }
363 :
364 : /// @nodoc
365 : abstract class $EmailAlreadyInUseCopyWith<$Res> {
366 : factory $EmailAlreadyInUseCopyWith(
367 : EmailAlreadyInUse value, $Res Function(EmailAlreadyInUse) then) =
368 : _$EmailAlreadyInUseCopyWithImpl<$Res>;
369 : }
370 :
371 : /// @nodoc
372 : class _$EmailAlreadyInUseCopyWithImpl<$Res>
373 : extends _$AuthFailureCopyWithImpl<$Res>
374 : implements $EmailAlreadyInUseCopyWith<$Res> {
375 0 : _$EmailAlreadyInUseCopyWithImpl(
376 : EmailAlreadyInUse _value, $Res Function(EmailAlreadyInUse) _then)
377 0 : : super(_value, (v) => _then(v as EmailAlreadyInUse));
378 :
379 0 : @override
380 0 : EmailAlreadyInUse get _value => super._value as EmailAlreadyInUse;
381 : }
382 :
383 : /// @nodoc
384 : class _$EmailAlreadyInUse implements EmailAlreadyInUse {
385 3 : const _$EmailAlreadyInUse();
386 :
387 0 : @override
388 : String toString() {
389 : return 'AuthFailure.emailAlreadyInUse()';
390 : }
391 :
392 1 : @override
393 : bool operator ==(dynamic other) {
394 0 : return identical(this, other) || (other is EmailAlreadyInUse);
395 : }
396 :
397 0 : @override
398 0 : int get hashCode => runtimeType.hashCode;
399 :
400 0 : @override
401 : @optionalTypeArgs
402 : TResult when<TResult extends Object?>({
403 : required TResult Function() cancelledByUser,
404 : required TResult Function() serverError,
405 : required TResult Function() emailAlreadyInUse,
406 : required TResult Function() invalidEmailAndPasswordCombination,
407 : required TResult Function() wrongIosVersion,
408 : required TResult Function() invalidEmail,
409 : required TResult Function() weakPassword,
410 : required TResult Function() operationNotAllowed,
411 : required TResult Function() invalidCredentials,
412 : }) {
413 0 : return emailAlreadyInUse();
414 : }
415 :
416 0 : @override
417 : @optionalTypeArgs
418 : TResult maybeWhen<TResult extends Object?>({
419 : TResult Function()? cancelledByUser,
420 : TResult Function()? serverError,
421 : TResult Function()? emailAlreadyInUse,
422 : TResult Function()? invalidEmailAndPasswordCombination,
423 : TResult Function()? wrongIosVersion,
424 : TResult Function()? invalidEmail,
425 : TResult Function()? weakPassword,
426 : TResult Function()? operationNotAllowed,
427 : TResult Function()? invalidCredentials,
428 : required TResult orElse(),
429 : }) {
430 : if (emailAlreadyInUse != null) {
431 0 : return emailAlreadyInUse();
432 : }
433 0 : return orElse();
434 : }
435 :
436 0 : @override
437 : @optionalTypeArgs
438 : TResult map<TResult extends Object?>({
439 : required TResult Function(CancelledByUser value) cancelledByUser,
440 : required TResult Function(ServerError value) serverError,
441 : required TResult Function(EmailAlreadyInUse value) emailAlreadyInUse,
442 : required TResult Function(InvalidEmailAndPasswordCombination value)
443 : invalidEmailAndPasswordCombination,
444 : required TResult Function(WrongIosVersion value) wrongIosVersion,
445 : required TResult Function(InvalidEmail value) invalidEmail,
446 : required TResult Function(WeakPassword value) weakPassword,
447 : required TResult Function(OperationNotAllowed value) operationNotAllowed,
448 : required TResult Function(InvalidCredentials value) invalidCredentials,
449 : }) {
450 0 : return emailAlreadyInUse(this);
451 : }
452 :
453 0 : @override
454 : @optionalTypeArgs
455 : TResult maybeMap<TResult extends Object?>({
456 : TResult Function(CancelledByUser value)? cancelledByUser,
457 : TResult Function(ServerError value)? serverError,
458 : TResult Function(EmailAlreadyInUse value)? emailAlreadyInUse,
459 : TResult Function(InvalidEmailAndPasswordCombination value)?
460 : invalidEmailAndPasswordCombination,
461 : TResult Function(WrongIosVersion value)? wrongIosVersion,
462 : TResult Function(InvalidEmail value)? invalidEmail,
463 : TResult Function(WeakPassword value)? weakPassword,
464 : TResult Function(OperationNotAllowed value)? operationNotAllowed,
465 : TResult Function(InvalidCredentials value)? invalidCredentials,
466 : required TResult orElse(),
467 : }) {
468 : if (emailAlreadyInUse != null) {
469 0 : return emailAlreadyInUse(this);
470 : }
471 0 : return orElse();
472 : }
473 : }
474 :
475 : abstract class EmailAlreadyInUse implements AuthFailure {
476 : const factory EmailAlreadyInUse() = _$EmailAlreadyInUse;
477 : }
478 :
479 : /// @nodoc
480 : abstract class $InvalidEmailAndPasswordCombinationCopyWith<$Res> {
481 : factory $InvalidEmailAndPasswordCombinationCopyWith(
482 : InvalidEmailAndPasswordCombination value,
483 : $Res Function(InvalidEmailAndPasswordCombination) then) =
484 : _$InvalidEmailAndPasswordCombinationCopyWithImpl<$Res>;
485 : }
486 :
487 : /// @nodoc
488 : class _$InvalidEmailAndPasswordCombinationCopyWithImpl<$Res>
489 : extends _$AuthFailureCopyWithImpl<$Res>
490 : implements $InvalidEmailAndPasswordCombinationCopyWith<$Res> {
491 0 : _$InvalidEmailAndPasswordCombinationCopyWithImpl(
492 : InvalidEmailAndPasswordCombination _value,
493 : $Res Function(InvalidEmailAndPasswordCombination) _then)
494 0 : : super(_value, (v) => _then(v as InvalidEmailAndPasswordCombination));
495 :
496 0 : @override
497 : InvalidEmailAndPasswordCombination get _value =>
498 0 : super._value as InvalidEmailAndPasswordCombination;
499 : }
500 :
501 : /// @nodoc
502 : class _$InvalidEmailAndPasswordCombination
503 : implements InvalidEmailAndPasswordCombination {
504 2 : const _$InvalidEmailAndPasswordCombination();
505 :
506 0 : @override
507 : String toString() {
508 : return 'AuthFailure.invalidEmailAndPasswordCombination()';
509 : }
510 :
511 0 : @override
512 : bool operator ==(dynamic other) {
513 : return identical(this, other) ||
514 0 : (other is InvalidEmailAndPasswordCombination);
515 : }
516 :
517 0 : @override
518 0 : int get hashCode => runtimeType.hashCode;
519 :
520 0 : @override
521 : @optionalTypeArgs
522 : TResult when<TResult extends Object?>({
523 : required TResult Function() cancelledByUser,
524 : required TResult Function() serverError,
525 : required TResult Function() emailAlreadyInUse,
526 : required TResult Function() invalidEmailAndPasswordCombination,
527 : required TResult Function() wrongIosVersion,
528 : required TResult Function() invalidEmail,
529 : required TResult Function() weakPassword,
530 : required TResult Function() operationNotAllowed,
531 : required TResult Function() invalidCredentials,
532 : }) {
533 0 : return invalidEmailAndPasswordCombination();
534 : }
535 :
536 0 : @override
537 : @optionalTypeArgs
538 : TResult maybeWhen<TResult extends Object?>({
539 : TResult Function()? cancelledByUser,
540 : TResult Function()? serverError,
541 : TResult Function()? emailAlreadyInUse,
542 : TResult Function()? invalidEmailAndPasswordCombination,
543 : TResult Function()? wrongIosVersion,
544 : TResult Function()? invalidEmail,
545 : TResult Function()? weakPassword,
546 : TResult Function()? operationNotAllowed,
547 : TResult Function()? invalidCredentials,
548 : required TResult orElse(),
549 : }) {
550 : if (invalidEmailAndPasswordCombination != null) {
551 0 : return invalidEmailAndPasswordCombination();
552 : }
553 0 : return orElse();
554 : }
555 :
556 0 : @override
557 : @optionalTypeArgs
558 : TResult map<TResult extends Object?>({
559 : required TResult Function(CancelledByUser value) cancelledByUser,
560 : required TResult Function(ServerError value) serverError,
561 : required TResult Function(EmailAlreadyInUse value) emailAlreadyInUse,
562 : required TResult Function(InvalidEmailAndPasswordCombination value)
563 : invalidEmailAndPasswordCombination,
564 : required TResult Function(WrongIosVersion value) wrongIosVersion,
565 : required TResult Function(InvalidEmail value) invalidEmail,
566 : required TResult Function(WeakPassword value) weakPassword,
567 : required TResult Function(OperationNotAllowed value) operationNotAllowed,
568 : required TResult Function(InvalidCredentials value) invalidCredentials,
569 : }) {
570 0 : return invalidEmailAndPasswordCombination(this);
571 : }
572 :
573 0 : @override
574 : @optionalTypeArgs
575 : TResult maybeMap<TResult extends Object?>({
576 : TResult Function(CancelledByUser value)? cancelledByUser,
577 : TResult Function(ServerError value)? serverError,
578 : TResult Function(EmailAlreadyInUse value)? emailAlreadyInUse,
579 : TResult Function(InvalidEmailAndPasswordCombination value)?
580 : invalidEmailAndPasswordCombination,
581 : TResult Function(WrongIosVersion value)? wrongIosVersion,
582 : TResult Function(InvalidEmail value)? invalidEmail,
583 : TResult Function(WeakPassword value)? weakPassword,
584 : TResult Function(OperationNotAllowed value)? operationNotAllowed,
585 : TResult Function(InvalidCredentials value)? invalidCredentials,
586 : required TResult orElse(),
587 : }) {
588 : if (invalidEmailAndPasswordCombination != null) {
589 0 : return invalidEmailAndPasswordCombination(this);
590 : }
591 0 : return orElse();
592 : }
593 : }
594 :
595 : abstract class InvalidEmailAndPasswordCombination implements AuthFailure {
596 : const factory InvalidEmailAndPasswordCombination() =
597 : _$InvalidEmailAndPasswordCombination;
598 : }
599 :
600 : /// @nodoc
601 : abstract class $WrongIosVersionCopyWith<$Res> {
602 : factory $WrongIosVersionCopyWith(
603 : WrongIosVersion value, $Res Function(WrongIosVersion) then) =
604 : _$WrongIosVersionCopyWithImpl<$Res>;
605 : }
606 :
607 : /// @nodoc
608 : class _$WrongIosVersionCopyWithImpl<$Res>
609 : extends _$AuthFailureCopyWithImpl<$Res>
610 : implements $WrongIosVersionCopyWith<$Res> {
611 0 : _$WrongIosVersionCopyWithImpl(
612 : WrongIosVersion _value, $Res Function(WrongIosVersion) _then)
613 0 : : super(_value, (v) => _then(v as WrongIosVersion));
614 :
615 0 : @override
616 0 : WrongIosVersion get _value => super._value as WrongIosVersion;
617 : }
618 :
619 : /// @nodoc
620 : class _$WrongIosVersion implements WrongIosVersion {
621 2 : const _$WrongIosVersion();
622 :
623 0 : @override
624 : String toString() {
625 : return 'AuthFailure.wrongIosVersion()';
626 : }
627 :
628 0 : @override
629 : bool operator ==(dynamic other) {
630 0 : return identical(this, other) || (other is WrongIosVersion);
631 : }
632 :
633 0 : @override
634 0 : int get hashCode => runtimeType.hashCode;
635 :
636 0 : @override
637 : @optionalTypeArgs
638 : TResult when<TResult extends Object?>({
639 : required TResult Function() cancelledByUser,
640 : required TResult Function() serverError,
641 : required TResult Function() emailAlreadyInUse,
642 : required TResult Function() invalidEmailAndPasswordCombination,
643 : required TResult Function() wrongIosVersion,
644 : required TResult Function() invalidEmail,
645 : required TResult Function() weakPassword,
646 : required TResult Function() operationNotAllowed,
647 : required TResult Function() invalidCredentials,
648 : }) {
649 0 : return wrongIosVersion();
650 : }
651 :
652 0 : @override
653 : @optionalTypeArgs
654 : TResult maybeWhen<TResult extends Object?>({
655 : TResult Function()? cancelledByUser,
656 : TResult Function()? serverError,
657 : TResult Function()? emailAlreadyInUse,
658 : TResult Function()? invalidEmailAndPasswordCombination,
659 : TResult Function()? wrongIosVersion,
660 : TResult Function()? invalidEmail,
661 : TResult Function()? weakPassword,
662 : TResult Function()? operationNotAllowed,
663 : TResult Function()? invalidCredentials,
664 : required TResult orElse(),
665 : }) {
666 : if (wrongIosVersion != null) {
667 0 : return wrongIosVersion();
668 : }
669 0 : return orElse();
670 : }
671 :
672 0 : @override
673 : @optionalTypeArgs
674 : TResult map<TResult extends Object?>({
675 : required TResult Function(CancelledByUser value) cancelledByUser,
676 : required TResult Function(ServerError value) serverError,
677 : required TResult Function(EmailAlreadyInUse value) emailAlreadyInUse,
678 : required TResult Function(InvalidEmailAndPasswordCombination value)
679 : invalidEmailAndPasswordCombination,
680 : required TResult Function(WrongIosVersion value) wrongIosVersion,
681 : required TResult Function(InvalidEmail value) invalidEmail,
682 : required TResult Function(WeakPassword value) weakPassword,
683 : required TResult Function(OperationNotAllowed value) operationNotAllowed,
684 : required TResult Function(InvalidCredentials value) invalidCredentials,
685 : }) {
686 0 : return wrongIosVersion(this);
687 : }
688 :
689 0 : @override
690 : @optionalTypeArgs
691 : TResult maybeMap<TResult extends Object?>({
692 : TResult Function(CancelledByUser value)? cancelledByUser,
693 : TResult Function(ServerError value)? serverError,
694 : TResult Function(EmailAlreadyInUse value)? emailAlreadyInUse,
695 : TResult Function(InvalidEmailAndPasswordCombination value)?
696 : invalidEmailAndPasswordCombination,
697 : TResult Function(WrongIosVersion value)? wrongIosVersion,
698 : TResult Function(InvalidEmail value)? invalidEmail,
699 : TResult Function(WeakPassword value)? weakPassword,
700 : TResult Function(OperationNotAllowed value)? operationNotAllowed,
701 : TResult Function(InvalidCredentials value)? invalidCredentials,
702 : required TResult orElse(),
703 : }) {
704 : if (wrongIosVersion != null) {
705 0 : return wrongIosVersion(this);
706 : }
707 0 : return orElse();
708 : }
709 : }
710 :
711 : abstract class WrongIosVersion implements AuthFailure {
712 : const factory WrongIosVersion() = _$WrongIosVersion;
713 : }
714 :
715 : /// @nodoc
716 : abstract class $InvalidEmailCopyWith<$Res> {
717 : factory $InvalidEmailCopyWith(
718 : InvalidEmail value, $Res Function(InvalidEmail) then) =
719 : _$InvalidEmailCopyWithImpl<$Res>;
720 : }
721 :
722 : /// @nodoc
723 : class _$InvalidEmailCopyWithImpl<$Res> extends _$AuthFailureCopyWithImpl<$Res>
724 : implements $InvalidEmailCopyWith<$Res> {
725 0 : _$InvalidEmailCopyWithImpl(
726 : InvalidEmail _value, $Res Function(InvalidEmail) _then)
727 0 : : super(_value, (v) => _then(v as InvalidEmail));
728 :
729 0 : @override
730 0 : InvalidEmail get _value => super._value as InvalidEmail;
731 : }
732 :
733 : /// @nodoc
734 : class _$InvalidEmail implements InvalidEmail {
735 3 : const _$InvalidEmail();
736 :
737 0 : @override
738 : String toString() {
739 : return 'AuthFailure.invalidEmail()';
740 : }
741 :
742 1 : @override
743 : bool operator ==(dynamic other) {
744 0 : return identical(this, other) || (other is InvalidEmail);
745 : }
746 :
747 0 : @override
748 0 : int get hashCode => runtimeType.hashCode;
749 :
750 0 : @override
751 : @optionalTypeArgs
752 : TResult when<TResult extends Object?>({
753 : required TResult Function() cancelledByUser,
754 : required TResult Function() serverError,
755 : required TResult Function() emailAlreadyInUse,
756 : required TResult Function() invalidEmailAndPasswordCombination,
757 : required TResult Function() wrongIosVersion,
758 : required TResult Function() invalidEmail,
759 : required TResult Function() weakPassword,
760 : required TResult Function() operationNotAllowed,
761 : required TResult Function() invalidCredentials,
762 : }) {
763 0 : return invalidEmail();
764 : }
765 :
766 0 : @override
767 : @optionalTypeArgs
768 : TResult maybeWhen<TResult extends Object?>({
769 : TResult Function()? cancelledByUser,
770 : TResult Function()? serverError,
771 : TResult Function()? emailAlreadyInUse,
772 : TResult Function()? invalidEmailAndPasswordCombination,
773 : TResult Function()? wrongIosVersion,
774 : TResult Function()? invalidEmail,
775 : TResult Function()? weakPassword,
776 : TResult Function()? operationNotAllowed,
777 : TResult Function()? invalidCredentials,
778 : required TResult orElse(),
779 : }) {
780 : if (invalidEmail != null) {
781 0 : return invalidEmail();
782 : }
783 0 : return orElse();
784 : }
785 :
786 0 : @override
787 : @optionalTypeArgs
788 : TResult map<TResult extends Object?>({
789 : required TResult Function(CancelledByUser value) cancelledByUser,
790 : required TResult Function(ServerError value) serverError,
791 : required TResult Function(EmailAlreadyInUse value) emailAlreadyInUse,
792 : required TResult Function(InvalidEmailAndPasswordCombination value)
793 : invalidEmailAndPasswordCombination,
794 : required TResult Function(WrongIosVersion value) wrongIosVersion,
795 : required TResult Function(InvalidEmail value) invalidEmail,
796 : required TResult Function(WeakPassword value) weakPassword,
797 : required TResult Function(OperationNotAllowed value) operationNotAllowed,
798 : required TResult Function(InvalidCredentials value) invalidCredentials,
799 : }) {
800 0 : return invalidEmail(this);
801 : }
802 :
803 0 : @override
804 : @optionalTypeArgs
805 : TResult maybeMap<TResult extends Object?>({
806 : TResult Function(CancelledByUser value)? cancelledByUser,
807 : TResult Function(ServerError value)? serverError,
808 : TResult Function(EmailAlreadyInUse value)? emailAlreadyInUse,
809 : TResult Function(InvalidEmailAndPasswordCombination value)?
810 : invalidEmailAndPasswordCombination,
811 : TResult Function(WrongIosVersion value)? wrongIosVersion,
812 : TResult Function(InvalidEmail value)? invalidEmail,
813 : TResult Function(WeakPassword value)? weakPassword,
814 : TResult Function(OperationNotAllowed value)? operationNotAllowed,
815 : TResult Function(InvalidCredentials value)? invalidCredentials,
816 : required TResult orElse(),
817 : }) {
818 : if (invalidEmail != null) {
819 0 : return invalidEmail(this);
820 : }
821 0 : return orElse();
822 : }
823 : }
824 :
825 : abstract class InvalidEmail implements AuthFailure {
826 : const factory InvalidEmail() = _$InvalidEmail;
827 : }
828 :
829 : /// @nodoc
830 : abstract class $WeakPasswordCopyWith<$Res> {
831 : factory $WeakPasswordCopyWith(
832 : WeakPassword value, $Res Function(WeakPassword) then) =
833 : _$WeakPasswordCopyWithImpl<$Res>;
834 : }
835 :
836 : /// @nodoc
837 : class _$WeakPasswordCopyWithImpl<$Res> extends _$AuthFailureCopyWithImpl<$Res>
838 : implements $WeakPasswordCopyWith<$Res> {
839 0 : _$WeakPasswordCopyWithImpl(
840 : WeakPassword _value, $Res Function(WeakPassword) _then)
841 0 : : super(_value, (v) => _then(v as WeakPassword));
842 :
843 0 : @override
844 0 : WeakPassword get _value => super._value as WeakPassword;
845 : }
846 :
847 : /// @nodoc
848 : class _$WeakPassword implements WeakPassword {
849 3 : const _$WeakPassword();
850 :
851 0 : @override
852 : String toString() {
853 : return 'AuthFailure.weakPassword()';
854 : }
855 :
856 1 : @override
857 : bool operator ==(dynamic other) {
858 0 : return identical(this, other) || (other is WeakPassword);
859 : }
860 :
861 0 : @override
862 0 : int get hashCode => runtimeType.hashCode;
863 :
864 0 : @override
865 : @optionalTypeArgs
866 : TResult when<TResult extends Object?>({
867 : required TResult Function() cancelledByUser,
868 : required TResult Function() serverError,
869 : required TResult Function() emailAlreadyInUse,
870 : required TResult Function() invalidEmailAndPasswordCombination,
871 : required TResult Function() wrongIosVersion,
872 : required TResult Function() invalidEmail,
873 : required TResult Function() weakPassword,
874 : required TResult Function() operationNotAllowed,
875 : required TResult Function() invalidCredentials,
876 : }) {
877 0 : return weakPassword();
878 : }
879 :
880 0 : @override
881 : @optionalTypeArgs
882 : TResult maybeWhen<TResult extends Object?>({
883 : TResult Function()? cancelledByUser,
884 : TResult Function()? serverError,
885 : TResult Function()? emailAlreadyInUse,
886 : TResult Function()? invalidEmailAndPasswordCombination,
887 : TResult Function()? wrongIosVersion,
888 : TResult Function()? invalidEmail,
889 : TResult Function()? weakPassword,
890 : TResult Function()? operationNotAllowed,
891 : TResult Function()? invalidCredentials,
892 : required TResult orElse(),
893 : }) {
894 : if (weakPassword != null) {
895 0 : return weakPassword();
896 : }
897 0 : return orElse();
898 : }
899 :
900 0 : @override
901 : @optionalTypeArgs
902 : TResult map<TResult extends Object?>({
903 : required TResult Function(CancelledByUser value) cancelledByUser,
904 : required TResult Function(ServerError value) serverError,
905 : required TResult Function(EmailAlreadyInUse value) emailAlreadyInUse,
906 : required TResult Function(InvalidEmailAndPasswordCombination value)
907 : invalidEmailAndPasswordCombination,
908 : required TResult Function(WrongIosVersion value) wrongIosVersion,
909 : required TResult Function(InvalidEmail value) invalidEmail,
910 : required TResult Function(WeakPassword value) weakPassword,
911 : required TResult Function(OperationNotAllowed value) operationNotAllowed,
912 : required TResult Function(InvalidCredentials value) invalidCredentials,
913 : }) {
914 0 : return weakPassword(this);
915 : }
916 :
917 0 : @override
918 : @optionalTypeArgs
919 : TResult maybeMap<TResult extends Object?>({
920 : TResult Function(CancelledByUser value)? cancelledByUser,
921 : TResult Function(ServerError value)? serverError,
922 : TResult Function(EmailAlreadyInUse value)? emailAlreadyInUse,
923 : TResult Function(InvalidEmailAndPasswordCombination value)?
924 : invalidEmailAndPasswordCombination,
925 : TResult Function(WrongIosVersion value)? wrongIosVersion,
926 : TResult Function(InvalidEmail value)? invalidEmail,
927 : TResult Function(WeakPassword value)? weakPassword,
928 : TResult Function(OperationNotAllowed value)? operationNotAllowed,
929 : TResult Function(InvalidCredentials value)? invalidCredentials,
930 : required TResult orElse(),
931 : }) {
932 : if (weakPassword != null) {
933 0 : return weakPassword(this);
934 : }
935 0 : return orElse();
936 : }
937 : }
938 :
939 : abstract class WeakPassword implements AuthFailure {
940 : const factory WeakPassword() = _$WeakPassword;
941 : }
942 :
943 : /// @nodoc
944 : abstract class $OperationNotAllowedCopyWith<$Res> {
945 : factory $OperationNotAllowedCopyWith(
946 : OperationNotAllowed value, $Res Function(OperationNotAllowed) then) =
947 : _$OperationNotAllowedCopyWithImpl<$Res>;
948 : }
949 :
950 : /// @nodoc
951 : class _$OperationNotAllowedCopyWithImpl<$Res>
952 : extends _$AuthFailureCopyWithImpl<$Res>
953 : implements $OperationNotAllowedCopyWith<$Res> {
954 0 : _$OperationNotAllowedCopyWithImpl(
955 : OperationNotAllowed _value, $Res Function(OperationNotAllowed) _then)
956 0 : : super(_value, (v) => _then(v as OperationNotAllowed));
957 :
958 0 : @override
959 0 : OperationNotAllowed get _value => super._value as OperationNotAllowed;
960 : }
961 :
962 : /// @nodoc
963 : class _$OperationNotAllowed implements OperationNotAllowed {
964 3 : const _$OperationNotAllowed();
965 :
966 0 : @override
967 : String toString() {
968 : return 'AuthFailure.operationNotAllowed()';
969 : }
970 :
971 1 : @override
972 : bool operator ==(dynamic other) {
973 0 : return identical(this, other) || (other is OperationNotAllowed);
974 : }
975 :
976 0 : @override
977 0 : int get hashCode => runtimeType.hashCode;
978 :
979 0 : @override
980 : @optionalTypeArgs
981 : TResult when<TResult extends Object?>({
982 : required TResult Function() cancelledByUser,
983 : required TResult Function() serverError,
984 : required TResult Function() emailAlreadyInUse,
985 : required TResult Function() invalidEmailAndPasswordCombination,
986 : required TResult Function() wrongIosVersion,
987 : required TResult Function() invalidEmail,
988 : required TResult Function() weakPassword,
989 : required TResult Function() operationNotAllowed,
990 : required TResult Function() invalidCredentials,
991 : }) {
992 0 : return operationNotAllowed();
993 : }
994 :
995 0 : @override
996 : @optionalTypeArgs
997 : TResult maybeWhen<TResult extends Object?>({
998 : TResult Function()? cancelledByUser,
999 : TResult Function()? serverError,
1000 : TResult Function()? emailAlreadyInUse,
1001 : TResult Function()? invalidEmailAndPasswordCombination,
1002 : TResult Function()? wrongIosVersion,
1003 : TResult Function()? invalidEmail,
1004 : TResult Function()? weakPassword,
1005 : TResult Function()? operationNotAllowed,
1006 : TResult Function()? invalidCredentials,
1007 : required TResult orElse(),
1008 : }) {
1009 : if (operationNotAllowed != null) {
1010 0 : return operationNotAllowed();
1011 : }
1012 0 : return orElse();
1013 : }
1014 :
1015 0 : @override
1016 : @optionalTypeArgs
1017 : TResult map<TResult extends Object?>({
1018 : required TResult Function(CancelledByUser value) cancelledByUser,
1019 : required TResult Function(ServerError value) serverError,
1020 : required TResult Function(EmailAlreadyInUse value) emailAlreadyInUse,
1021 : required TResult Function(InvalidEmailAndPasswordCombination value)
1022 : invalidEmailAndPasswordCombination,
1023 : required TResult Function(WrongIosVersion value) wrongIosVersion,
1024 : required TResult Function(InvalidEmail value) invalidEmail,
1025 : required TResult Function(WeakPassword value) weakPassword,
1026 : required TResult Function(OperationNotAllowed value) operationNotAllowed,
1027 : required TResult Function(InvalidCredentials value) invalidCredentials,
1028 : }) {
1029 0 : return operationNotAllowed(this);
1030 : }
1031 :
1032 0 : @override
1033 : @optionalTypeArgs
1034 : TResult maybeMap<TResult extends Object?>({
1035 : TResult Function(CancelledByUser value)? cancelledByUser,
1036 : TResult Function(ServerError value)? serverError,
1037 : TResult Function(EmailAlreadyInUse value)? emailAlreadyInUse,
1038 : TResult Function(InvalidEmailAndPasswordCombination value)?
1039 : invalidEmailAndPasswordCombination,
1040 : TResult Function(WrongIosVersion value)? wrongIosVersion,
1041 : TResult Function(InvalidEmail value)? invalidEmail,
1042 : TResult Function(WeakPassword value)? weakPassword,
1043 : TResult Function(OperationNotAllowed value)? operationNotAllowed,
1044 : TResult Function(InvalidCredentials value)? invalidCredentials,
1045 : required TResult orElse(),
1046 : }) {
1047 : if (operationNotAllowed != null) {
1048 0 : return operationNotAllowed(this);
1049 : }
1050 0 : return orElse();
1051 : }
1052 : }
1053 :
1054 : abstract class OperationNotAllowed implements AuthFailure {
1055 : const factory OperationNotAllowed() = _$OperationNotAllowed;
1056 : }
1057 :
1058 : /// @nodoc
1059 : abstract class $InvalidCredentialsCopyWith<$Res> {
1060 : factory $InvalidCredentialsCopyWith(
1061 : InvalidCredentials value, $Res Function(InvalidCredentials) then) =
1062 : _$InvalidCredentialsCopyWithImpl<$Res>;
1063 : }
1064 :
1065 : /// @nodoc
1066 : class _$InvalidCredentialsCopyWithImpl<$Res>
1067 : extends _$AuthFailureCopyWithImpl<$Res>
1068 : implements $InvalidCredentialsCopyWith<$Res> {
1069 0 : _$InvalidCredentialsCopyWithImpl(
1070 : InvalidCredentials _value, $Res Function(InvalidCredentials) _then)
1071 0 : : super(_value, (v) => _then(v as InvalidCredentials));
1072 :
1073 0 : @override
1074 0 : InvalidCredentials get _value => super._value as InvalidCredentials;
1075 : }
1076 :
1077 : /// @nodoc
1078 : class _$InvalidCredentials implements InvalidCredentials {
1079 2 : const _$InvalidCredentials();
1080 :
1081 0 : @override
1082 : String toString() {
1083 : return 'AuthFailure.invalidCredentials()';
1084 : }
1085 :
1086 0 : @override
1087 : bool operator ==(dynamic other) {
1088 0 : return identical(this, other) || (other is InvalidCredentials);
1089 : }
1090 :
1091 0 : @override
1092 0 : int get hashCode => runtimeType.hashCode;
1093 :
1094 0 : @override
1095 : @optionalTypeArgs
1096 : TResult when<TResult extends Object?>({
1097 : required TResult Function() cancelledByUser,
1098 : required TResult Function() serverError,
1099 : required TResult Function() emailAlreadyInUse,
1100 : required TResult Function() invalidEmailAndPasswordCombination,
1101 : required TResult Function() wrongIosVersion,
1102 : required TResult Function() invalidEmail,
1103 : required TResult Function() weakPassword,
1104 : required TResult Function() operationNotAllowed,
1105 : required TResult Function() invalidCredentials,
1106 : }) {
1107 0 : return invalidCredentials();
1108 : }
1109 :
1110 0 : @override
1111 : @optionalTypeArgs
1112 : TResult maybeWhen<TResult extends Object?>({
1113 : TResult Function()? cancelledByUser,
1114 : TResult Function()? serverError,
1115 : TResult Function()? emailAlreadyInUse,
1116 : TResult Function()? invalidEmailAndPasswordCombination,
1117 : TResult Function()? wrongIosVersion,
1118 : TResult Function()? invalidEmail,
1119 : TResult Function()? weakPassword,
1120 : TResult Function()? operationNotAllowed,
1121 : TResult Function()? invalidCredentials,
1122 : required TResult orElse(),
1123 : }) {
1124 : if (invalidCredentials != null) {
1125 0 : return invalidCredentials();
1126 : }
1127 0 : return orElse();
1128 : }
1129 :
1130 0 : @override
1131 : @optionalTypeArgs
1132 : TResult map<TResult extends Object?>({
1133 : required TResult Function(CancelledByUser value) cancelledByUser,
1134 : required TResult Function(ServerError value) serverError,
1135 : required TResult Function(EmailAlreadyInUse value) emailAlreadyInUse,
1136 : required TResult Function(InvalidEmailAndPasswordCombination value)
1137 : invalidEmailAndPasswordCombination,
1138 : required TResult Function(WrongIosVersion value) wrongIosVersion,
1139 : required TResult Function(InvalidEmail value) invalidEmail,
1140 : required TResult Function(WeakPassword value) weakPassword,
1141 : required TResult Function(OperationNotAllowed value) operationNotAllowed,
1142 : required TResult Function(InvalidCredentials value) invalidCredentials,
1143 : }) {
1144 0 : return invalidCredentials(this);
1145 : }
1146 :
1147 0 : @override
1148 : @optionalTypeArgs
1149 : TResult maybeMap<TResult extends Object?>({
1150 : TResult Function(CancelledByUser value)? cancelledByUser,
1151 : TResult Function(ServerError value)? serverError,
1152 : TResult Function(EmailAlreadyInUse value)? emailAlreadyInUse,
1153 : TResult Function(InvalidEmailAndPasswordCombination value)?
1154 : invalidEmailAndPasswordCombination,
1155 : TResult Function(WrongIosVersion value)? wrongIosVersion,
1156 : TResult Function(InvalidEmail value)? invalidEmail,
1157 : TResult Function(WeakPassword value)? weakPassword,
1158 : TResult Function(OperationNotAllowed value)? operationNotAllowed,
1159 : TResult Function(InvalidCredentials value)? invalidCredentials,
1160 : required TResult orElse(),
1161 : }) {
1162 : if (invalidCredentials != null) {
1163 0 : return invalidCredentials(this);
1164 : }
1165 0 : return orElse();
1166 : }
1167 : }
1168 :
1169 : abstract class InvalidCredentials implements AuthFailure {
1170 : const factory InvalidCredentials() = _$InvalidCredentials;
1171 : }
|