@@ -18,7 +18,8 @@ PlatformException _createConnectionError(String channelName) {
1818 );
1919}
2020
21- List <Object ?> wrapResponse ({Object ? result, PlatformException ? error, bool empty = false }) {
21+ List <Object ?> wrapResponse (
22+ {Object ? result, PlatformException ? error, bool empty = false }) {
2223 if (empty) {
2324 return < Object ? > [];
2425 }
@@ -27,21 +28,22 @@ List<Object?> wrapResponse({Object? result, PlatformException? error, bool empty
2728 }
2829 return < Object ? > [error.code, error.message, error.details];
2930}
31+
3032bool _deepEquals (Object ? a, Object ? b) {
3133 if (a is List && b is List ) {
3234 return a.length == b.length &&
3335 a.indexed
34- .every (((int , dynamic ) item) => _deepEquals (item.$2, b[item.$1]));
36+ .every (((int , dynamic ) item) => _deepEquals (item.$2, b[item.$1]));
3537 }
3638 if (a is Map && b is Map ) {
37- return a.length == b.length && a.entries.every ((MapEntry <Object ?, Object ?> entry) =>
38- (b as Map <Object ?, Object ?>).containsKey (entry.key) &&
39- _deepEquals (entry.value, b[entry.key]));
39+ return a.length == b.length &&
40+ a.entries.every ((MapEntry <Object ?, Object ?> entry) =>
41+ (b as Map <Object ?, Object ?>).containsKey (entry.key) &&
42+ _deepEquals (entry.value, b[entry.key]));
4043 }
4144 return a == b;
4245}
4346
44-
4547class CoreFirebaseOptions {
4648 CoreFirebaseOptions ({
4749 required this .apiKey,
@@ -108,7 +110,8 @@ class CoreFirebaseOptions {
108110 }
109111
110112 Object encode () {
111- return _toList (); }
113+ return _toList ();
114+ }
112115
113116 static CoreFirebaseOptions decode (Object result) {
114117 result as List <Object ?>;
@@ -144,8 +147,7 @@ class CoreFirebaseOptions {
144147
145148 @override
146149 // ignore: avoid_equals_and_hash_code_on_mutable_classes
147- int get hashCode => Object .hashAll (_toList ())
148- ;
150+ int get hashCode => Object .hashAll (_toList ());
149151}
150152
151153class CoreInitializeResponse {
@@ -174,15 +176,17 @@ class CoreInitializeResponse {
174176 }
175177
176178 Object encode () {
177- return _toList (); }
179+ return _toList ();
180+ }
178181
179182 static CoreInitializeResponse decode (Object result) {
180183 result as List <Object ?>;
181184 return CoreInitializeResponse (
182185 name: result[0 ]! as String ,
183186 options: result[1 ]! as CoreFirebaseOptions ,
184187 isAutomaticDataCollectionEnabled: result[2 ] as bool ? ,
185- pluginConstants: (result[3 ] as Map <Object ?, Object ?>? )! .cast <String ?, Object ?>(),
188+ pluginConstants:
189+ (result[3 ] as Map <Object ?, Object ?>? )! .cast <String ?, Object ?>(),
186190 );
187191 }
188192
@@ -200,22 +204,20 @@ class CoreInitializeResponse {
200204
201205 @override
202206 // ignore: avoid_equals_and_hash_code_on_mutable_classes
203- int get hashCode => Object .hashAll (_toList ())
204- ;
207+ int get hashCode => Object .hashAll (_toList ());
205208}
206209
207-
208210class _PigeonCodec extends StandardMessageCodec {
209211 const _PigeonCodec ();
210212 @override
211213 void writeValue (WriteBuffer buffer, Object ? value) {
212214 if (value is int ) {
213215 buffer.putUint8 (4 );
214216 buffer.putInt64 (value);
215- } else if (value is CoreFirebaseOptions ) {
217+ } else if (value is CoreFirebaseOptions ) {
216218 buffer.putUint8 (129 );
217219 writeValue (buffer, value.encode ());
218- } else if (value is CoreInitializeResponse ) {
220+ } else if (value is CoreInitializeResponse ) {
219221 buffer.putUint8 (130 );
220222 writeValue (buffer, value.encode ());
221223 } else {
@@ -226,9 +228,9 @@ class _PigeonCodec extends StandardMessageCodec {
226228 @override
227229 Object ? readValueOfType (int type, ReadBuffer buffer) {
228230 switch (type) {
229- case 129 :
231+ case 129 :
230232 return CoreFirebaseOptions .decode (readValue (buffer)! );
231- case 130 :
233+ case 130 :
232234 return CoreInitializeResponse .decode (readValue (buffer)! );
233235 default :
234236 return super .readValueOfType (type, buffer);
@@ -240,23 +242,29 @@ class FirebaseCoreHostApi {
240242 /// Constructor for [FirebaseCoreHostApi] . The [binaryMessenger] named argument is
241243 /// available for dependency injection. If it is left null, the default
242244 /// BinaryMessenger will be used which routes to the host platform.
243- FirebaseCoreHostApi ({BinaryMessenger ? binaryMessenger, String messageChannelSuffix = '' })
245+ FirebaseCoreHostApi (
246+ {BinaryMessenger ? binaryMessenger, String messageChannelSuffix = '' })
244247 : pigeonVar_binaryMessenger = binaryMessenger,
245- pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix ' : '' ;
248+ pigeonVar_messageChannelSuffix =
249+ messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix ' : '' ;
246250 final BinaryMessenger ? pigeonVar_binaryMessenger;
247251
248252 static const MessageCodec <Object ?> pigeonChannelCodec = _PigeonCodec ();
249253
250254 final String pigeonVar_messageChannelSuffix;
251255
252- Future <CoreInitializeResponse > initializeApp (String appName, CoreFirebaseOptions initializeAppRequest) async {
253- final String pigeonVar_channelName = 'dev.flutter.pigeon.firebase_core_platform_interface.FirebaseCoreHostApi.initializeApp$pigeonVar_messageChannelSuffix ' ;
254- final BasicMessageChannel <Object ?> pigeonVar_channel = BasicMessageChannel <Object ?>(
256+ Future <CoreInitializeResponse > initializeApp (
257+ String appName, CoreFirebaseOptions initializeAppRequest) async {
258+ final String pigeonVar_channelName =
259+ 'dev.flutter.pigeon.firebase_core_platform_interface.FirebaseCoreHostApi.initializeApp$pigeonVar_messageChannelSuffix ' ;
260+ final BasicMessageChannel <Object ?> pigeonVar_channel =
261+ BasicMessageChannel <Object ?>(
255262 pigeonVar_channelName,
256263 pigeonChannelCodec,
257264 binaryMessenger: pigeonVar_binaryMessenger,
258265 );
259- final Future <Object ?> pigeonVar_sendFuture = pigeonVar_channel.send (< Object ? > [appName, initializeAppRequest]);
266+ final Future <Object ?> pigeonVar_sendFuture =
267+ pigeonVar_channel.send (< Object ? > [appName, initializeAppRequest]);
260268 final List <Object ?>? pigeonVar_replyList =
261269 await pigeonVar_sendFuture as List <Object ?>? ;
262270 if (pigeonVar_replyList == null ) {
@@ -278,8 +286,10 @@ class FirebaseCoreHostApi {
278286 }
279287
280288 Future <List <CoreInitializeResponse >> initializeCore () async {
281- final String pigeonVar_channelName = 'dev.flutter.pigeon.firebase_core_platform_interface.FirebaseCoreHostApi.initializeCore$pigeonVar_messageChannelSuffix ' ;
282- final BasicMessageChannel <Object ?> pigeonVar_channel = BasicMessageChannel <Object ?>(
289+ final String pigeonVar_channelName =
290+ 'dev.flutter.pigeon.firebase_core_platform_interface.FirebaseCoreHostApi.initializeCore$pigeonVar_messageChannelSuffix ' ;
291+ final BasicMessageChannel <Object ?> pigeonVar_channel =
292+ BasicMessageChannel <Object ?>(
283293 pigeonVar_channelName,
284294 pigeonChannelCodec,
285295 binaryMessenger: pigeonVar_binaryMessenger,
@@ -301,13 +311,16 @@ class FirebaseCoreHostApi {
301311 message: 'Host platform returned null value for non-null return value.' ,
302312 );
303313 } else {
304- return (pigeonVar_replyList[0 ] as List <Object ?>? )! .cast <CoreInitializeResponse >();
314+ return (pigeonVar_replyList[0 ] as List <Object ?>? )!
315+ .cast <CoreInitializeResponse >();
305316 }
306317 }
307318
308319 Future <CoreFirebaseOptions > optionsFromResource () async {
309- final String pigeonVar_channelName = 'dev.flutter.pigeon.firebase_core_platform_interface.FirebaseCoreHostApi.optionsFromResource$pigeonVar_messageChannelSuffix ' ;
310- final BasicMessageChannel <Object ?> pigeonVar_channel = BasicMessageChannel <Object ?>(
320+ final String pigeonVar_channelName =
321+ 'dev.flutter.pigeon.firebase_core_platform_interface.FirebaseCoreHostApi.optionsFromResource$pigeonVar_messageChannelSuffix ' ;
322+ final BasicMessageChannel <Object ?> pigeonVar_channel =
323+ BasicMessageChannel <Object ?>(
311324 pigeonVar_channelName,
312325 pigeonChannelCodec,
313326 binaryMessenger: pigeonVar_binaryMessenger,
@@ -338,23 +351,29 @@ class FirebaseAppHostApi {
338351 /// Constructor for [FirebaseAppHostApi] . The [binaryMessenger] named argument is
339352 /// available for dependency injection. If it is left null, the default
340353 /// BinaryMessenger will be used which routes to the host platform.
341- FirebaseAppHostApi ({BinaryMessenger ? binaryMessenger, String messageChannelSuffix = '' })
354+ FirebaseAppHostApi (
355+ {BinaryMessenger ? binaryMessenger, String messageChannelSuffix = '' })
342356 : pigeonVar_binaryMessenger = binaryMessenger,
343- pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix ' : '' ;
357+ pigeonVar_messageChannelSuffix =
358+ messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix ' : '' ;
344359 final BinaryMessenger ? pigeonVar_binaryMessenger;
345360
346361 static const MessageCodec <Object ?> pigeonChannelCodec = _PigeonCodec ();
347362
348363 final String pigeonVar_messageChannelSuffix;
349364
350- Future <void > setAutomaticDataCollectionEnabled (String appName, bool enabled) async {
351- final String pigeonVar_channelName = 'dev.flutter.pigeon.firebase_core_platform_interface.FirebaseAppHostApi.setAutomaticDataCollectionEnabled$pigeonVar_messageChannelSuffix ' ;
352- final BasicMessageChannel <Object ?> pigeonVar_channel = BasicMessageChannel <Object ?>(
365+ Future <void > setAutomaticDataCollectionEnabled (
366+ String appName, bool enabled) async {
367+ final String pigeonVar_channelName =
368+ 'dev.flutter.pigeon.firebase_core_platform_interface.FirebaseAppHostApi.setAutomaticDataCollectionEnabled$pigeonVar_messageChannelSuffix ' ;
369+ final BasicMessageChannel <Object ?> pigeonVar_channel =
370+ BasicMessageChannel <Object ?>(
353371 pigeonVar_channelName,
354372 pigeonChannelCodec,
355373 binaryMessenger: pigeonVar_binaryMessenger,
356374 );
357- final Future <Object ?> pigeonVar_sendFuture = pigeonVar_channel.send (< Object ? > [appName, enabled]);
375+ final Future <Object ?> pigeonVar_sendFuture =
376+ pigeonVar_channel.send (< Object ? > [appName, enabled]);
358377 final List <Object ?>? pigeonVar_replyList =
359378 await pigeonVar_sendFuture as List <Object ?>? ;
360379 if (pigeonVar_replyList == null ) {
@@ -370,14 +389,18 @@ class FirebaseAppHostApi {
370389 }
371390 }
372391
373- Future <void > setAutomaticResourceManagementEnabled (String appName, bool enabled) async {
374- final String pigeonVar_channelName = 'dev.flutter.pigeon.firebase_core_platform_interface.FirebaseAppHostApi.setAutomaticResourceManagementEnabled$pigeonVar_messageChannelSuffix ' ;
375- final BasicMessageChannel <Object ?> pigeonVar_channel = BasicMessageChannel <Object ?>(
392+ Future <void > setAutomaticResourceManagementEnabled (
393+ String appName, bool enabled) async {
394+ final String pigeonVar_channelName =
395+ 'dev.flutter.pigeon.firebase_core_platform_interface.FirebaseAppHostApi.setAutomaticResourceManagementEnabled$pigeonVar_messageChannelSuffix ' ;
396+ final BasicMessageChannel <Object ?> pigeonVar_channel =
397+ BasicMessageChannel <Object ?>(
376398 pigeonVar_channelName,
377399 pigeonChannelCodec,
378400 binaryMessenger: pigeonVar_binaryMessenger,
379401 );
380- final Future <Object ?> pigeonVar_sendFuture = pigeonVar_channel.send (< Object ? > [appName, enabled]);
402+ final Future <Object ?> pigeonVar_sendFuture =
403+ pigeonVar_channel.send (< Object ? > [appName, enabled]);
381404 final List <Object ?>? pigeonVar_replyList =
382405 await pigeonVar_sendFuture as List <Object ?>? ;
383406 if (pigeonVar_replyList == null ) {
@@ -394,13 +417,16 @@ class FirebaseAppHostApi {
394417 }
395418
396419 Future <void > delete (String appName) async {
397- final String pigeonVar_channelName = 'dev.flutter.pigeon.firebase_core_platform_interface.FirebaseAppHostApi.delete$pigeonVar_messageChannelSuffix ' ;
398- final BasicMessageChannel <Object ?> pigeonVar_channel = BasicMessageChannel <Object ?>(
420+ final String pigeonVar_channelName =
421+ 'dev.flutter.pigeon.firebase_core_platform_interface.FirebaseAppHostApi.delete$pigeonVar_messageChannelSuffix ' ;
422+ final BasicMessageChannel <Object ?> pigeonVar_channel =
423+ BasicMessageChannel <Object ?>(
399424 pigeonVar_channelName,
400425 pigeonChannelCodec,
401426 binaryMessenger: pigeonVar_binaryMessenger,
402427 );
403- final Future <Object ?> pigeonVar_sendFuture = pigeonVar_channel.send (< Object ? > [appName]);
428+ final Future <Object ?> pigeonVar_sendFuture =
429+ pigeonVar_channel.send (< Object ? > [appName]);
404430 final List <Object ?>? pigeonVar_replyList =
405431 await pigeonVar_sendFuture as List <Object ?>? ;
406432 if (pigeonVar_replyList == null ) {
0 commit comments