-
Notifications
You must be signed in to change notification settings - Fork 3.9k
/
messages.pigeon.dart
2556 lines (2332 loc) · 85.7 KB
/
messages.pigeon.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2023, the Chromium project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Autogenerated from Pigeon (v19.0.0), do not edit directly.
// See also: https://pub.dev/packages/pigeon
// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name, unnecessary_import, no_leading_underscores_for_local_identifiers
import 'dart:async';
import 'dart:typed_data' show Float64List, Int32List, Int64List, Uint8List;
import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer;
import 'package:flutter/services.dart';
PlatformException _createConnectionError(String channelName) {
return PlatformException(
code: 'channel-error',
message: 'Unable to establish connection on channel: "$channelName".',
);
}
List<Object?> wrapResponse(
{Object? result, PlatformException? error, bool empty = false}) {
if (empty) {
return <Object?>[];
}
if (error == null) {
return <Object?>[result];
}
return <Object?>[error.code, error.message, error.details];
}
/// The type of operation that generated the action code from calling
/// [checkActionCode].
enum ActionCodeInfoOperation {
/// Unknown operation.
unknown,
/// Password reset code generated via [sendPasswordResetEmail].
passwordReset,
/// Email verification code generated via [User.sendEmailVerification].
verifyEmail,
/// Email change revocation code generated via [User.updateEmail].
recoverEmail,
/// Email sign in code generated via [sendSignInLinkToEmail].
emailSignIn,
/// Verify and change email code generated via [User.verifyBeforeUpdateEmail].
verifyAndChangeEmail,
/// Action code for reverting second factor addition.
revertSecondFactorAddition,
}
class PigeonMultiFactorSession {
PigeonMultiFactorSession({
required this.id,
});
String id;
Object encode() {
return <Object?>[
id,
];
}
static PigeonMultiFactorSession decode(Object result) {
result as List<Object?>;
return PigeonMultiFactorSession(
id: result[0]! as String,
);
}
}
class PigeonPhoneMultiFactorAssertion {
PigeonPhoneMultiFactorAssertion({
required this.verificationId,
required this.verificationCode,
});
String verificationId;
String verificationCode;
Object encode() {
return <Object?>[
verificationId,
verificationCode,
];
}
static PigeonPhoneMultiFactorAssertion decode(Object result) {
result as List<Object?>;
return PigeonPhoneMultiFactorAssertion(
verificationId: result[0]! as String,
verificationCode: result[1]! as String,
);
}
}
class PigeonMultiFactorInfo {
PigeonMultiFactorInfo({
this.displayName,
required this.enrollmentTimestamp,
this.factorId,
required this.uid,
this.phoneNumber,
});
String? displayName;
double enrollmentTimestamp;
String? factorId;
String uid;
String? phoneNumber;
Object encode() {
return <Object?>[
displayName,
enrollmentTimestamp,
factorId,
uid,
phoneNumber,
];
}
static PigeonMultiFactorInfo decode(Object result) {
result as List<Object?>;
return PigeonMultiFactorInfo(
displayName: result[0] as String?,
enrollmentTimestamp: result[1]! as double,
factorId: result[2] as String?,
uid: result[3]! as String,
phoneNumber: result[4] as String?,
);
}
}
class AuthPigeonFirebaseApp {
AuthPigeonFirebaseApp({
required this.appName,
this.tenantId,
this.customAuthDomain,
});
String appName;
String? tenantId;
String? customAuthDomain;
Object encode() {
return <Object?>[
appName,
tenantId,
customAuthDomain,
];
}
static AuthPigeonFirebaseApp decode(Object result) {
result as List<Object?>;
return AuthPigeonFirebaseApp(
appName: result[0]! as String,
tenantId: result[1] as String?,
customAuthDomain: result[2] as String?,
);
}
}
class PigeonActionCodeInfoData {
PigeonActionCodeInfoData({
this.email,
this.previousEmail,
});
String? email;
String? previousEmail;
Object encode() {
return <Object?>[
email,
previousEmail,
];
}
static PigeonActionCodeInfoData decode(Object result) {
result as List<Object?>;
return PigeonActionCodeInfoData(
email: result[0] as String?,
previousEmail: result[1] as String?,
);
}
}
class PigeonActionCodeInfo {
PigeonActionCodeInfo({
required this.operation,
required this.data,
});
ActionCodeInfoOperation operation;
PigeonActionCodeInfoData data;
Object encode() {
return <Object?>[
operation.index,
data,
];
}
static PigeonActionCodeInfo decode(Object result) {
result as List<Object?>;
return PigeonActionCodeInfo(
operation: ActionCodeInfoOperation.values[result[0]! as int],
data: result[1]! as PigeonActionCodeInfoData,
);
}
}
class PigeonAdditionalUserInfo {
PigeonAdditionalUserInfo({
required this.isNewUser,
this.providerId,
this.username,
this.authorizationCode,
this.profile,
});
bool isNewUser;
String? providerId;
String? username;
String? authorizationCode;
Map<String?, Object?>? profile;
Object encode() {
return <Object?>[
isNewUser,
providerId,
username,
authorizationCode,
profile,
];
}
static PigeonAdditionalUserInfo decode(Object result) {
result as List<Object?>;
return PigeonAdditionalUserInfo(
isNewUser: result[0]! as bool,
providerId: result[1] as String?,
username: result[2] as String?,
authorizationCode: result[3] as String?,
profile: (result[4] as Map<Object?, Object?>?)?.cast<String?, Object?>(),
);
}
}
class PigeonAuthCredential {
PigeonAuthCredential({
required this.providerId,
required this.signInMethod,
required this.nativeId,
this.accessToken,
});
String providerId;
String signInMethod;
int nativeId;
String? accessToken;
Object encode() {
return <Object?>[
providerId,
signInMethod,
nativeId,
accessToken,
];
}
static PigeonAuthCredential decode(Object result) {
result as List<Object?>;
return PigeonAuthCredential(
providerId: result[0]! as String,
signInMethod: result[1]! as String,
nativeId: result[2]! as int,
accessToken: result[3] as String?,
);
}
}
class PigeonUserInfo {
PigeonUserInfo({
required this.uid,
this.email,
this.displayName,
this.photoUrl,
this.phoneNumber,
required this.isAnonymous,
required this.isEmailVerified,
this.providerId,
this.tenantId,
this.refreshToken,
this.creationTimestamp,
this.lastSignInTimestamp,
});
String uid;
String? email;
String? displayName;
String? photoUrl;
String? phoneNumber;
bool isAnonymous;
bool isEmailVerified;
String? providerId;
String? tenantId;
String? refreshToken;
int? creationTimestamp;
int? lastSignInTimestamp;
Object encode() {
return <Object?>[
uid,
email,
displayName,
photoUrl,
phoneNumber,
isAnonymous,
isEmailVerified,
providerId,
tenantId,
refreshToken,
creationTimestamp,
lastSignInTimestamp,
];
}
static PigeonUserInfo decode(Object result) {
result as List<Object?>;
return PigeonUserInfo(
uid: result[0]! as String,
email: result[1] as String?,
displayName: result[2] as String?,
photoUrl: result[3] as String?,
phoneNumber: result[4] as String?,
isAnonymous: result[5]! as bool,
isEmailVerified: result[6]! as bool,
providerId: result[7] as String?,
tenantId: result[8] as String?,
refreshToken: result[9] as String?,
creationTimestamp: result[10] as int?,
lastSignInTimestamp: result[11] as int?,
);
}
}
class PigeonUserDetails {
PigeonUserDetails({
required this.userInfo,
required this.providerData,
});
PigeonUserInfo userInfo;
List<Map<Object?, Object?>?> providerData;
Object encode() {
return <Object?>[
userInfo,
providerData,
];
}
static PigeonUserDetails decode(Object result) {
result as List<Object?>;
return PigeonUserDetails(
userInfo: result[0]! as PigeonUserInfo,
providerData:
(result[1] as List<Object?>?)!.cast<Map<Object?, Object?>?>(),
);
}
}
class PigeonUserCredential {
PigeonUserCredential({
this.user,
this.additionalUserInfo,
this.credential,
});
PigeonUserDetails? user;
PigeonAdditionalUserInfo? additionalUserInfo;
PigeonAuthCredential? credential;
Object encode() {
return <Object?>[
user,
additionalUserInfo,
credential,
];
}
static PigeonUserCredential decode(Object result) {
result as List<Object?>;
return PigeonUserCredential(
user: result[0] as PigeonUserDetails?,
additionalUserInfo: result[1] as PigeonAdditionalUserInfo?,
credential: result[2] as PigeonAuthCredential?,
);
}
}
class PigeonActionCodeSettings {
PigeonActionCodeSettings({
required this.url,
this.dynamicLinkDomain,
required this.handleCodeInApp,
this.iOSBundleId,
this.androidPackageName,
required this.androidInstallApp,
this.androidMinimumVersion,
});
String url;
String? dynamicLinkDomain;
bool handleCodeInApp;
String? iOSBundleId;
String? androidPackageName;
bool androidInstallApp;
String? androidMinimumVersion;
Object encode() {
return <Object?>[
url,
dynamicLinkDomain,
handleCodeInApp,
iOSBundleId,
androidPackageName,
androidInstallApp,
androidMinimumVersion,
];
}
static PigeonActionCodeSettings decode(Object result) {
result as List<Object?>;
return PigeonActionCodeSettings(
url: result[0]! as String,
dynamicLinkDomain: result[1] as String?,
handleCodeInApp: result[2]! as bool,
iOSBundleId: result[3] as String?,
androidPackageName: result[4] as String?,
androidInstallApp: result[5]! as bool,
androidMinimumVersion: result[6] as String?,
);
}
}
class PigeonFirebaseAuthSettings {
PigeonFirebaseAuthSettings({
required this.appVerificationDisabledForTesting,
this.userAccessGroup,
this.phoneNumber,
this.smsCode,
this.forceRecaptchaFlow,
});
bool appVerificationDisabledForTesting;
String? userAccessGroup;
String? phoneNumber;
String? smsCode;
bool? forceRecaptchaFlow;
Object encode() {
return <Object?>[
appVerificationDisabledForTesting,
userAccessGroup,
phoneNumber,
smsCode,
forceRecaptchaFlow,
];
}
static PigeonFirebaseAuthSettings decode(Object result) {
result as List<Object?>;
return PigeonFirebaseAuthSettings(
appVerificationDisabledForTesting: result[0]! as bool,
userAccessGroup: result[1] as String?,
phoneNumber: result[2] as String?,
smsCode: result[3] as String?,
forceRecaptchaFlow: result[4] as bool?,
);
}
}
class PigeonSignInProvider {
PigeonSignInProvider({
required this.providerId,
this.scopes,
this.customParameters,
});
String providerId;
List<String?>? scopes;
Map<String?, String?>? customParameters;
Object encode() {
return <Object?>[
providerId,
scopes,
customParameters,
];
}
static PigeonSignInProvider decode(Object result) {
result as List<Object?>;
return PigeonSignInProvider(
providerId: result[0]! as String,
scopes: (result[1] as List<Object?>?)?.cast<String?>(),
customParameters:
(result[2] as Map<Object?, Object?>?)?.cast<String?, String?>(),
);
}
}
class PigeonVerifyPhoneNumberRequest {
PigeonVerifyPhoneNumberRequest({
this.phoneNumber,
required this.timeout,
this.forceResendingToken,
this.autoRetrievedSmsCodeForTesting,
this.multiFactorInfoId,
this.multiFactorSessionId,
});
String? phoneNumber;
int timeout;
int? forceResendingToken;
String? autoRetrievedSmsCodeForTesting;
String? multiFactorInfoId;
String? multiFactorSessionId;
Object encode() {
return <Object?>[
phoneNumber,
timeout,
forceResendingToken,
autoRetrievedSmsCodeForTesting,
multiFactorInfoId,
multiFactorSessionId,
];
}
static PigeonVerifyPhoneNumberRequest decode(Object result) {
result as List<Object?>;
return PigeonVerifyPhoneNumberRequest(
phoneNumber: result[0] as String?,
timeout: result[1]! as int,
forceResendingToken: result[2] as int?,
autoRetrievedSmsCodeForTesting: result[3] as String?,
multiFactorInfoId: result[4] as String?,
multiFactorSessionId: result[5] as String?,
);
}
}
class PigeonIdTokenResult {
PigeonIdTokenResult({
this.token,
this.expirationTimestamp,
this.authTimestamp,
this.issuedAtTimestamp,
this.signInProvider,
this.claims,
this.signInSecondFactor,
});
String? token;
int? expirationTimestamp;
int? authTimestamp;
int? issuedAtTimestamp;
String? signInProvider;
Map<String?, Object?>? claims;
String? signInSecondFactor;
Object encode() {
return <Object?>[
token,
expirationTimestamp,
authTimestamp,
issuedAtTimestamp,
signInProvider,
claims,
signInSecondFactor,
];
}
static PigeonIdTokenResult decode(Object result) {
result as List<Object?>;
return PigeonIdTokenResult(
token: result[0] as String?,
expirationTimestamp: result[1] as int?,
authTimestamp: result[2] as int?,
issuedAtTimestamp: result[3] as int?,
signInProvider: result[4] as String?,
claims: (result[5] as Map<Object?, Object?>?)?.cast<String?, Object?>(),
signInSecondFactor: result[6] as String?,
);
}
}
class PigeonUserProfile {
PigeonUserProfile({
this.displayName,
this.photoUrl,
required this.displayNameChanged,
required this.photoUrlChanged,
});
String? displayName;
String? photoUrl;
bool displayNameChanged;
bool photoUrlChanged;
Object encode() {
return <Object?>[
displayName,
photoUrl,
displayNameChanged,
photoUrlChanged,
];
}
static PigeonUserProfile decode(Object result) {
result as List<Object?>;
return PigeonUserProfile(
displayName: result[0] as String?,
photoUrl: result[1] as String?,
displayNameChanged: result[2]! as bool,
photoUrlChanged: result[3]! as bool,
);
}
}
class PigeonTotpSecret {
PigeonTotpSecret({
this.codeIntervalSeconds,
this.codeLength,
this.enrollmentCompletionDeadline,
this.hashingAlgorithm,
required this.secretKey,
});
int? codeIntervalSeconds;
int? codeLength;
int? enrollmentCompletionDeadline;
String? hashingAlgorithm;
String secretKey;
Object encode() {
return <Object?>[
codeIntervalSeconds,
codeLength,
enrollmentCompletionDeadline,
hashingAlgorithm,
secretKey,
];
}
static PigeonTotpSecret decode(Object result) {
result as List<Object?>;
return PigeonTotpSecret(
codeIntervalSeconds: result[0] as int?,
codeLength: result[1] as int?,
enrollmentCompletionDeadline: result[2] as int?,
hashingAlgorithm: result[3] as String?,
secretKey: result[4]! as String,
);
}
}
class _FirebaseAuthHostApiCodec extends StandardMessageCodec {
const _FirebaseAuthHostApiCodec();
@override
void writeValue(WriteBuffer buffer, Object? value) {
if (value is AuthPigeonFirebaseApp) {
buffer.putUint8(128);
writeValue(buffer, value.encode());
} else if (value is PigeonActionCodeInfo) {
buffer.putUint8(129);
writeValue(buffer, value.encode());
} else if (value is PigeonActionCodeInfoData) {
buffer.putUint8(130);
writeValue(buffer, value.encode());
} else if (value is PigeonActionCodeSettings) {
buffer.putUint8(131);
writeValue(buffer, value.encode());
} else if (value is PigeonAdditionalUserInfo) {
buffer.putUint8(132);
writeValue(buffer, value.encode());
} else if (value is PigeonAuthCredential) {
buffer.putUint8(133);
writeValue(buffer, value.encode());
} else if (value is PigeonFirebaseAuthSettings) {
buffer.putUint8(134);
writeValue(buffer, value.encode());
} else if (value is PigeonIdTokenResult) {
buffer.putUint8(135);
writeValue(buffer, value.encode());
} else if (value is PigeonMultiFactorInfo) {
buffer.putUint8(136);
writeValue(buffer, value.encode());
} else if (value is PigeonMultiFactorSession) {
buffer.putUint8(137);
writeValue(buffer, value.encode());
} else if (value is PigeonPhoneMultiFactorAssertion) {
buffer.putUint8(138);
writeValue(buffer, value.encode());
} else if (value is PigeonSignInProvider) {
buffer.putUint8(139);
writeValue(buffer, value.encode());
} else if (value is PigeonTotpSecret) {
buffer.putUint8(140);
writeValue(buffer, value.encode());
} else if (value is PigeonUserCredential) {
buffer.putUint8(141);
writeValue(buffer, value.encode());
} else if (value is PigeonUserDetails) {
buffer.putUint8(142);
writeValue(buffer, value.encode());
} else if (value is PigeonUserInfo) {
buffer.putUint8(143);
writeValue(buffer, value.encode());
} else if (value is PigeonUserProfile) {
buffer.putUint8(144);
writeValue(buffer, value.encode());
} else if (value is PigeonVerifyPhoneNumberRequest) {
buffer.putUint8(145);
writeValue(buffer, value.encode());
} else {
super.writeValue(buffer, value);
}
}
@override
Object? readValueOfType(int type, ReadBuffer buffer) {
switch (type) {
case 128:
return AuthPigeonFirebaseApp.decode(readValue(buffer)!);
case 129:
return PigeonActionCodeInfo.decode(readValue(buffer)!);
case 130:
return PigeonActionCodeInfoData.decode(readValue(buffer)!);
case 131:
return PigeonActionCodeSettings.decode(readValue(buffer)!);
case 132:
return PigeonAdditionalUserInfo.decode(readValue(buffer)!);
case 133:
return PigeonAuthCredential.decode(readValue(buffer)!);
case 134:
return PigeonFirebaseAuthSettings.decode(readValue(buffer)!);
case 135:
return PigeonIdTokenResult.decode(readValue(buffer)!);
case 136:
return PigeonMultiFactorInfo.decode(readValue(buffer)!);
case 137:
return PigeonMultiFactorSession.decode(readValue(buffer)!);
case 138:
return PigeonPhoneMultiFactorAssertion.decode(readValue(buffer)!);
case 139:
return PigeonSignInProvider.decode(readValue(buffer)!);
case 140:
return PigeonTotpSecret.decode(readValue(buffer)!);
case 141:
return PigeonUserCredential.decode(readValue(buffer)!);
case 142:
return PigeonUserDetails.decode(readValue(buffer)!);
case 143:
return PigeonUserInfo.decode(readValue(buffer)!);
case 144:
return PigeonUserProfile.decode(readValue(buffer)!);
case 145:
return PigeonVerifyPhoneNumberRequest.decode(readValue(buffer)!);
default:
return super.readValueOfType(type, buffer);
}
}
}
class FirebaseAuthHostApi {
/// Constructor for [FirebaseAuthHostApi]. The [binaryMessenger] named argument is
/// available for dependency injection. If it is left null, the default
/// BinaryMessenger will be used which routes to the host platform.
FirebaseAuthHostApi(
{BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''})
: __pigeon_binaryMessenger = binaryMessenger,
__pigeon_messageChannelSuffix =
messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : '';
final BinaryMessenger? __pigeon_binaryMessenger;
static const MessageCodec<Object?> pigeonChannelCodec =
_FirebaseAuthHostApiCodec();
final String __pigeon_messageChannelSuffix;
Future<String> registerIdTokenListener(AuthPigeonFirebaseApp app) async {
final String __pigeon_channelName =
'dev.flutter.pigeon.firebase_auth_platform_interface.FirebaseAuthHostApi.registerIdTokenListener$__pigeon_messageChannelSuffix';
final BasicMessageChannel<Object?> __pigeon_channel =
BasicMessageChannel<Object?>(
__pigeon_channelName,
pigeonChannelCodec,
binaryMessenger: __pigeon_binaryMessenger,
);
final List<Object?>? __pigeon_replyList =
await __pigeon_channel.send(<Object?>[app]) as List<Object?>?;
if (__pigeon_replyList == null) {
throw _createConnectionError(__pigeon_channelName);
} else if (__pigeon_replyList.length > 1) {
throw PlatformException(
code: __pigeon_replyList[0]! as String,
message: __pigeon_replyList[1] as String?,
details: __pigeon_replyList[2],
);
} else if (__pigeon_replyList[0] == null) {
throw PlatformException(
code: 'null-error',
message: 'Host platform returned null value for non-null return value.',
);
} else {
return (__pigeon_replyList[0] as String?)!;
}
}
Future<String> registerAuthStateListener(AuthPigeonFirebaseApp app) async {
final String __pigeon_channelName =
'dev.flutter.pigeon.firebase_auth_platform_interface.FirebaseAuthHostApi.registerAuthStateListener$__pigeon_messageChannelSuffix';
final BasicMessageChannel<Object?> __pigeon_channel =
BasicMessageChannel<Object?>(
__pigeon_channelName,
pigeonChannelCodec,
binaryMessenger: __pigeon_binaryMessenger,
);
final List<Object?>? __pigeon_replyList =
await __pigeon_channel.send(<Object?>[app]) as List<Object?>?;
if (__pigeon_replyList == null) {
throw _createConnectionError(__pigeon_channelName);
} else if (__pigeon_replyList.length > 1) {
throw PlatformException(
code: __pigeon_replyList[0]! as String,
message: __pigeon_replyList[1] as String?,
details: __pigeon_replyList[2],
);
} else if (__pigeon_replyList[0] == null) {
throw PlatformException(
code: 'null-error',
message: 'Host platform returned null value for non-null return value.',
);
} else {
return (__pigeon_replyList[0] as String?)!;
}
}
Future<void> useEmulator(
AuthPigeonFirebaseApp app, String host, int port) async {
final String __pigeon_channelName =
'dev.flutter.pigeon.firebase_auth_platform_interface.FirebaseAuthHostApi.useEmulator$__pigeon_messageChannelSuffix';
final BasicMessageChannel<Object?> __pigeon_channel =
BasicMessageChannel<Object?>(
__pigeon_channelName,
pigeonChannelCodec,
binaryMessenger: __pigeon_binaryMessenger,
);
final List<Object?>? __pigeon_replyList = await __pigeon_channel
.send(<Object?>[app, host, port]) as List<Object?>?;
if (__pigeon_replyList == null) {
throw _createConnectionError(__pigeon_channelName);
} else if (__pigeon_replyList.length > 1) {
throw PlatformException(
code: __pigeon_replyList[0]! as String,
message: __pigeon_replyList[1] as String?,
details: __pigeon_replyList[2],
);
} else {
return;
}
}
Future<void> applyActionCode(AuthPigeonFirebaseApp app, String code) async {
final String __pigeon_channelName =
'dev.flutter.pigeon.firebase_auth_platform_interface.FirebaseAuthHostApi.applyActionCode$__pigeon_messageChannelSuffix';
final BasicMessageChannel<Object?> __pigeon_channel =
BasicMessageChannel<Object?>(
__pigeon_channelName,
pigeonChannelCodec,
binaryMessenger: __pigeon_binaryMessenger,
);
final List<Object?>? __pigeon_replyList =
await __pigeon_channel.send(<Object?>[app, code]) as List<Object?>?;
if (__pigeon_replyList == null) {
throw _createConnectionError(__pigeon_channelName);
} else if (__pigeon_replyList.length > 1) {
throw PlatformException(
code: __pigeon_replyList[0]! as String,
message: __pigeon_replyList[1] as String?,
details: __pigeon_replyList[2],
);
} else {
return;
}
}
Future<PigeonActionCodeInfo> checkActionCode(
AuthPigeonFirebaseApp app, String code) async {
final String __pigeon_channelName =
'dev.flutter.pigeon.firebase_auth_platform_interface.FirebaseAuthHostApi.checkActionCode$__pigeon_messageChannelSuffix';
final BasicMessageChannel<Object?> __pigeon_channel =
BasicMessageChannel<Object?>(
__pigeon_channelName,
pigeonChannelCodec,
binaryMessenger: __pigeon_binaryMessenger,
);
final List<Object?>? __pigeon_replyList =
await __pigeon_channel.send(<Object?>[app, code]) as List<Object?>?;
if (__pigeon_replyList == null) {
throw _createConnectionError(__pigeon_channelName);
} else if (__pigeon_replyList.length > 1) {
throw PlatformException(
code: __pigeon_replyList[0]! as String,
message: __pigeon_replyList[1] as String?,
details: __pigeon_replyList[2],
);
} else if (__pigeon_replyList[0] == null) {
throw PlatformException(
code: 'null-error',
message: 'Host platform returned null value for non-null return value.',
);
} else {
return (__pigeon_replyList[0] as PigeonActionCodeInfo?)!;
}
}
Future<void> confirmPasswordReset(
AuthPigeonFirebaseApp app, String code, String newPassword) async {
final String __pigeon_channelName =