1- // Autogenerated from Pigeon (v22.7.2 ), do not edit directly.
1+ // Autogenerated from Pigeon (v22.7.4 ), do not edit directly.
22// See also: https://pub.dev/packages/pigeon
33@file:Suppress(" UNCHECKED_CAST" , " ArrayInDataClass" )
44
@@ -18,7 +18,7 @@ private fun wrapResult(result: Any?): List<Any?> {
1818}
1919
2020private fun wrapError (exception : Throwable ): List <Any ?> {
21- return if (exception is FlutterError ) {
21+ return if (exception is MockzillaFlutterError ) {
2222 listOf (
2323 exception.code,
2424 exception.message,
@@ -33,16 +33,16 @@ private fun wrapError(exception: Throwable): List<Any?> {
3333 }
3434}
3535
36- private fun createConnectionError (channelName : String ): FlutterError {
37- return FlutterError (" channel-error" , " Unable to establish connection on channel: '$channelName '." , " " )}
36+ private fun createConnectionError (channelName : String ): MockzillaFlutterError {
37+ return MockzillaFlutterError (" channel-error" , " Unable to establish connection on channel: '$channelName '." , " " )}
3838
3939/* *
4040 * Error class for passing custom error details to Flutter via a thrown PlatformException.
4141 * @property code The error code.
4242 * @property message The error message.
4343 * @property details The error details. Must be a datatype supported by the api codec.
4444 */
45- class FlutterError (
45+ class MockzillaFlutterError (
4646 val code : String ,
4747 override val message : String? = null ,
4848 val details : Any? = null
@@ -424,9 +424,9 @@ class MockzillaFlutterApi(private val binaryMessenger: BinaryMessenger, private
424424 channel.send(listOf (requestArg, keyArg)) {
425425 if (it is List <* >) {
426426 if (it.size > 1 ) {
427- callback(Result .failure(FlutterError (it[0 ] as String , it[1 ] as String , it[2 ] as String? )))
427+ callback(Result .failure(MockzillaFlutterError (it[0 ] as String , it[1 ] as String , it[2 ] as String? )))
428428 } else if (it[0 ] == null ) {
429- callback(Result .failure(FlutterError (" null-error" , " Flutter api returned null value for non-null return value." , " " )))
429+ callback(Result .failure(MockzillaFlutterError (" null-error" , " Flutter api returned null value for non-null return value." , " " )))
430430 } else {
431431 val output = it[0 ] as Boolean
432432 callback(Result .success(output))
@@ -444,9 +444,9 @@ class MockzillaFlutterApi(private val binaryMessenger: BinaryMessenger, private
444444 channel.send(listOf (requestArg, keyArg)) {
445445 if (it is List <* >) {
446446 if (it.size > 1 ) {
447- callback(Result .failure(FlutterError (it[0 ] as String , it[1 ] as String , it[2 ] as String? )))
447+ callback(Result .failure(MockzillaFlutterError (it[0 ] as String , it[1 ] as String , it[2 ] as String? )))
448448 } else if (it[0 ] == null ) {
449- callback(Result .failure(FlutterError (" null-error" , " Flutter api returned null value for non-null return value." , " " )))
449+ callback(Result .failure(MockzillaFlutterError (" null-error" , " Flutter api returned null value for non-null return value." , " " )))
450450 } else {
451451 val output = it[0 ] as BridgeMockzillaHttpResponse
452452 callback(Result .success(output))
@@ -464,9 +464,9 @@ class MockzillaFlutterApi(private val binaryMessenger: BinaryMessenger, private
464464 channel.send(listOf (requestArg, keyArg)) {
465465 if (it is List <* >) {
466466 if (it.size > 1 ) {
467- callback(Result .failure(FlutterError (it[0 ] as String , it[1 ] as String , it[2 ] as String? )))
467+ callback(Result .failure(MockzillaFlutterError (it[0 ] as String , it[1 ] as String , it[2 ] as String? )))
468468 } else if (it[0 ] == null ) {
469- callback(Result .failure(FlutterError (" null-error" , " Flutter api returned null value for non-null return value." , " " )))
469+ callback(Result .failure(MockzillaFlutterError (" null-error" , " Flutter api returned null value for non-null return value." , " " )))
470470 } else {
471471 val output = it[0 ] as BridgeMockzillaHttpResponse
472472 callback(Result .success(output))
@@ -484,7 +484,7 @@ class MockzillaFlutterApi(private val binaryMessenger: BinaryMessenger, private
484484 channel.send(listOf (logLevelArg, messageArg, tagArg, exceptionArg)) {
485485 if (it is List <* >) {
486486 if (it.size > 1 ) {
487- callback(Result .failure(FlutterError (it[0 ] as String , it[1 ] as String , it[2 ] as String? )))
487+ callback(Result .failure(MockzillaFlutterError (it[0 ] as String , it[1 ] as String , it[2 ] as String? )))
488488 } else {
489489 callback(Result .success(Unit ))
490490 }
0 commit comments