From 7e81a6c13957f50589d5e828990593486d214761 Mon Sep 17 00:00:00 2001 From: Fedor Blagodyr Date: Mon, 23 Dec 2024 13:46:15 +0300 Subject: [PATCH] issue(123867): format --- .../java/io/flutter/plugins/Messages.java | 104 +- .../pigeon_example_app/MainActivity.kt | 15 +- .../flutter/pigeon_example_app/Messages.g.kt | 174 +- .../ios/Runner/EventChannelMessages.g.swift | 21 +- .../example/app/ios/Runner/Messages.g.swift | 2 +- .../app/lib/src/event_channel_messages.g.dart | 23 +- .../example/app/lib/src/messages.g.dart | 2 +- .../pigeon/example/app/linux/messages.g.cc | 2 +- .../pigeon/example/app/linux/messages.g.h | 2 +- .../example/app/macos/Runner/messages.g.h | 2 +- .../example/app/macos/Runner/messages.g.m | 2 +- .../example/app/windows/runner/messages.g.cpp | 2 +- .../example/app/windows/runner/messages.g.h | 2 +- .../background_platform_channels.gen.dart | 13 +- .../lib/src/generated/core_tests.gen.dart | 2421 ++++++----------- .../lib/src/generated/enum.gen.dart | 50 +- .../generated/event_channel_tests.gen.dart | 85 +- .../src/generated/flutter_unittests.gen.dart | 44 +- .../lib/src/generated/message.gen.dart | 76 +- .../lib/src/generated/multiple_arity.gen.dart | 39 +- .../src/generated/non_null_fields.gen.dart | 61 +- .../lib/src/generated/null_fields.gen.dart | 54 +- .../src/generated/nullable_returns.gen.dart | 143 +- .../lib/src/generated/primitive.gen.dart | 211 +- .../src/generated/proxy_api_tests.gen.dart | 107 +- .../test/test_message.gen.dart | 105 +- .../ios/Classes/CoreTests.gen.swift | 1883 ++++--------- .../ios/Classes/EventChannelTests.gen.swift | 42 +- .../ios/Classes/ProxyApiTests.gen.swift | 1814 ++++-------- .../macos/Classes/CoreTests.gen.swift | 1883 ++++--------- .../macos/Classes/EventChannelTests.gen.swift | 42 +- .../macos/Classes/ProxyApiTests.gen.swift | 1814 ++++-------- 32 files changed, 3296 insertions(+), 7944 deletions(-) diff --git a/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java b/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java index 38d2ff06eebf..a5ef30585077 100644 --- a/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java +++ b/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java @@ -1,7 +1,7 @@ // Copyright 2013 The Flutter Authors. 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 (v22.7.0), do not edit directly. +// Autogenerated from Pigeon, do not edit directly. // See also: https://pub.dev/packages/pigeon import static java.lang.annotation.ElementType.METHOD; @@ -19,9 +19,7 @@ import java.lang.annotation.Target; import java.nio.ByteBuffer; import java.util.ArrayList; -import java.util.Arrays; import java.util.Collections; -import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Objects; @@ -39,8 +37,7 @@ public static class FlutterError extends RuntimeException { /** The error details. Must be a datatype supported by the api codec. */ public final Object details; - public FlutterError(@NonNull String code, @Nullable String message, @Nullable Object details) - { + public FlutterError(@NonNull String code, @Nullable String message, @Nullable Object details) { super(message); this.code = code; this.details = details; @@ -59,14 +56,15 @@ protected static ArrayList wrapError(@NonNull Throwable exception) { errorList.add(exception.toString()); errorList.add(exception.getClass().getSimpleName()); errorList.add( - "Cause: " + exception.getCause() + ", Stacktrace: " + Log.getStackTraceString(exception)); + "Cause: " + exception.getCause() + ", Stacktrace: " + Log.getStackTraceString(exception)); } return errorList; } @NonNull protected static FlutterError createConnectionError(@NonNull String channelName) { - return new FlutterError("channel-error", "Unable to establish connection on channel: " + channelName + ".", ""); + return new FlutterError( + "channel-error", "Unable to establish connection on channel: " + channelName + ".", ""); } @Target(METHOD) @@ -137,10 +135,17 @@ public void setData(@NonNull Map setterArg) { @Override public boolean equals(Object o) { - if (this == o) { return true; } - if (o == null || getClass() != o.getClass()) { return false; } + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } MessageData that = (MessageData) o; - return Objects.equals(name, that.name) && Objects.equals(description, that.description) && code.equals(that.code) && data.equals(that.data); + return Objects.equals(name, that.name) + && Objects.equals(description, that.description) + && code.equals(that.code) + && data.equals(that.data); } @Override @@ -224,10 +229,11 @@ private PigeonCodec() {} @Override protected Object readValueOfType(byte type, @NonNull ByteBuffer buffer) { switch (type) { - case (byte) 129: { - Object value = readValue(buffer); - return value == null ? null : Code.values()[((Long) value).intValue()]; - } + case (byte) 129: + { + Object value = readValue(buffer); + return value == null ? null : Code.values()[((Long) value).intValue()]; + } case (byte) 130: return MessageData.fromList((ArrayList) readValue(buffer)); default: @@ -249,7 +255,6 @@ protected void writeValue(@NonNull ByteArrayOutputStream stream, Object value) { } } - /** Asynchronous error handling return type for non-nullable API method returns. */ public interface Result { /** Success case callback method for handling returns. */ @@ -277,10 +282,10 @@ public interface VoidResult { /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ public interface ExampleHostApi { - @NonNull + @NonNull String getHostLanguage(); - @NonNull + @NonNull Long add(@NonNull Long a, @NonNull Long b); void sendMessage(@NonNull MessageData message, @NonNull Result result); @@ -291,16 +296,23 @@ public interface ExampleHostApi { static @NonNull MessageCodec getCodec() { return PigeonCodec.INSTANCE; } - /**Sets up an instance of `ExampleHostApi` to handle messages through the `binaryMessenger`. */ + /** Sets up an instance of `ExampleHostApi` to handle messages through the `binaryMessenger`. */ static void setUp(@NonNull BinaryMessenger binaryMessenger, @Nullable ExampleHostApi api) { setUp(binaryMessenger, "", api); } - static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String messageChannelSuffix, @Nullable ExampleHostApi api) { + + static void setUp( + @NonNull BinaryMessenger binaryMessenger, + @NonNull String messageChannelSuffix, + @Nullable ExampleHostApi api) { messageChannelSuffix = messageChannelSuffix.isEmpty() ? "" : "." + messageChannelSuffix; { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_example_package.ExampleHostApi.getHostLanguage" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_example_package.ExampleHostApi.getHostLanguage" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -308,8 +320,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { String output = api.getHostLanguage(); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -321,7 +332,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_example_package.ExampleHostApi.add" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_example_package.ExampleHostApi.add" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -332,8 +346,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { Long output = api.add(aArg, bArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -345,7 +358,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_example_package.ExampleHostApi.sendMessage" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_example_package.ExampleHostApi.sendMessage" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -374,7 +390,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_example_package.ExampleHostApi.sendMessageModernAsync" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_example_package.ExampleHostApi.sendMessageModernAsync" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -410,40 +429,47 @@ public static class MessageFlutterApi { public MessageFlutterApi(@NonNull BinaryMessenger argBinaryMessenger) { this(argBinaryMessenger, ""); } - public MessageFlutterApi(@NonNull BinaryMessenger argBinaryMessenger, @NonNull String messageChannelSuffix) { + + public MessageFlutterApi( + @NonNull BinaryMessenger argBinaryMessenger, @NonNull String messageChannelSuffix) { this.binaryMessenger = argBinaryMessenger; this.messageChannelSuffix = messageChannelSuffix.isEmpty() ? "" : "." + messageChannelSuffix; } - /** - * Public interface for sending reply. - * The codec used by MessageFlutterApi. - */ + /** Public interface for sending reply. The codec used by MessageFlutterApi. */ static @NonNull MessageCodec getCodec() { return PigeonCodec.INSTANCE; } + public void flutterMethod(@Nullable String aStringArg, @NonNull Result result) { - final String channelName = "dev.flutter.pigeon.pigeon_example_package.MessageFlutterApi.flutterMethod" + messageChannelSuffix; + final String channelName = + "dev.flutter.pigeon.pigeon_example_package.MessageFlutterApi.flutterMethod" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(aStringArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); } else { @SuppressWarnings("ConstantConditions") String output = (String) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } } diff --git a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/MainActivity.kt b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/MainActivity.kt index a8fc1237dfa9..b1efd59b20c6 100644 --- a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/MainActivity.kt +++ b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/MainActivity.kt @@ -45,13 +45,13 @@ private class PigeonApiImplementation : ExampleHostApi { } override suspend fun sendMessageModernAsync(message: MessageData): Boolean { - if (message.code == Code.ONE) { - throw FlutterError("code", "message", "details") - } + if (message.code == Code.ONE) { + throw FlutterError("code", "message", "details") + } - delay(2000) + delay(2000) - return true + return true } } // #enddocregion kotlin-class @@ -125,7 +125,10 @@ class MainActivity : FlutterActivity() { super.configureFlutterEngine(flutterEngine) val api = PigeonApiImplementation() - ExampleHostApi.setUp(flutterEngine.dartExecutor.binaryMessenger, api, coroutineScope = CoroutineScope(Dispatchers.Main + SupervisorJob())) + ExampleHostApi.setUp( + flutterEngine.dartExecutor.binaryMessenger, + api, + coroutineScope = CoroutineScope(Dispatchers.Main + SupervisorJob())) // #docregion kotlin-init-event val eventListener = EventListener() StreamEventsStreamHandler.register(flutterEngine.dartExecutor.binaryMessenger, eventListener) diff --git a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt index 0e8c6da0b023..c0570e04afb0 100644 --- a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt +++ b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt @@ -1,23 +1,20 @@ // Copyright 2013 The Flutter Authors. 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 (v22.7.0), do not edit directly. +// Autogenerated from Pigeon, do not edit directly. // See also: https://pub.dev/packages/pigeon @file:Suppress("UNCHECKED_CAST", "ArrayInDataClass") - import android.util.Log import io.flutter.plugin.common.BasicMessageChannel import io.flutter.plugin.common.BinaryMessenger -import io.flutter.plugin.common.EventChannel import io.flutter.plugin.common.MessageCodec -import io.flutter.plugin.common.StandardMethodCodec import io.flutter.plugin.common.StandardMessageCodec import java.io.ByteArrayOutputStream import java.nio.ByteBuffer -import kotlinx.coroutines.launch import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers +import kotlinx.coroutines.launch import kotlinx.coroutines.withContext private fun wrapResult(result: Any?): List { @@ -26,33 +23,31 @@ private fun wrapResult(result: Any?): List { private fun wrapError(exception: Throwable): List { return if (exception is FlutterError) { - listOf( - exception.code, - exception.message, - exception.details - ) + listOf(exception.code, exception.message, exception.details) } else { listOf( - exception.javaClass.simpleName, - exception.toString(), - "Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception) - ) + exception.javaClass.simpleName, + exception.toString(), + "Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception)) } } private fun createConnectionError(channelName: String): FlutterError { - return FlutterError("channel-error", "Unable to establish connection on channel: '$channelName'.", "")} + return FlutterError( + "channel-error", "Unable to establish connection on channel: '$channelName'.", "") +} /** * Error class for passing custom error details to Flutter via a thrown PlatformException. + * * @property code The error code. * @property message The error message. * @property details The error details. Must be a datatype supported by the api codec. */ -class FlutterError ( - val code: String, - override val message: String? = null, - val details: Any? = null +class FlutterError( + val code: String, + override val message: String? = null, + val details: Any? = null ) : Throwable() enum class Code(val raw: Int) { @@ -67,13 +62,12 @@ enum class Code(val raw: Int) { } /** Generated class from Pigeon that represents data sent in messages. */ -data class MessageData ( - val name: String? = null, - val description: String? = null, - val code: Code, - val data: Map -) - { +data class MessageData( + val name: String? = null, + val description: String? = null, + val code: Code, + val data: Map +) { companion object { fun fromList(pigeonVar_list: List): MessageData { val name = pigeonVar_list[0] as String? @@ -83,32 +77,31 @@ data class MessageData ( return MessageData(name, description, code, data) } } + fun toList(): List { return listOf( - name, - description, - code, - data, + name, + description, + code, + data, ) } } + private open class MessagesPigeonCodec : StandardMessageCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { 129.toByte() -> { - return (readValue(buffer) as Long?)?.let { - Code.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { Code.ofRaw(it.toInt()) } } 130.toByte() -> { - return (readValue(buffer) as? List)?.let { - MessageData.fromList(it) - } + return (readValue(buffer) as? List)?.let { MessageData.fromList(it) } } else -> super.readValueOfType(type, buffer) } } - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { when (value) { is Code -> { stream.write(129) @@ -123,32 +116,43 @@ private open class MessagesPigeonCodec : StandardMessageCodec() { } } - /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface ExampleHostApi { fun getHostLanguage(): String + fun add(a: Long, b: Long): Long + fun sendMessage(message: MessageData, callback: (Result) -> Unit) + suspend fun sendMessageModernAsync(message: MessageData): Boolean companion object { /** The codec used by ExampleHostApi. */ - val codec: MessageCodec by lazy { - MessagesPigeonCodec() - } + val codec: MessageCodec by lazy { MessagesPigeonCodec() } /** Sets up an instance of `ExampleHostApi` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp(binaryMessenger: BinaryMessenger, api: ExampleHostApi?, messageChannelSuffix: String = "", coroutineScope: CoroutineScope) { - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp( + binaryMessenger: BinaryMessenger, + api: ExampleHostApi?, + messageChannelSuffix: String = "", + coroutineScope: CoroutineScope + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_example_package.ExampleHostApi.getHostLanguage$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_example_package.ExampleHostApi.getHostLanguage$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getHostLanguage()) - } catch (exception: Throwable) { - wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getHostLanguage()) + } catch (exception: Throwable) { + wrapError(exception) + } reply.reply(wrapped) } } else { @@ -156,17 +160,22 @@ interface ExampleHostApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_example_package.ExampleHostApi.add$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_example_package.ExampleHostApi.add$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aArg = args[0] as Long val bArg = args[1] as Long - val wrapped: List = try { - listOf(api.add(aArg, bArg)) - } catch (exception: Throwable) { - wrapError(exception) - } + val wrapped: List = + try { + listOf(api.add(aArg, bArg)) + } catch (exception: Throwable) { + wrapError(exception) + } reply.reply(wrapped) } } else { @@ -174,7 +183,11 @@ interface ExampleHostApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_example_package.ExampleHostApi.sendMessage$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_example_package.ExampleHostApi.sendMessage$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -194,20 +207,23 @@ interface ExampleHostApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_example_package.ExampleHostApi.sendMessageModernAsync$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_example_package.ExampleHostApi.sendMessageModernAsync$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val messageArg = args[0] as MessageData coroutineScope.launch { - val wrapped: List = try { - listOf(api.sendMessageModernAsync(messageArg)) - } catch (exception: Throwable) { - wrapError(exception) - } - withContext(Dispatchers.Main) { - reply.reply(wrapped) - } + val wrapped: List = + try { + listOf(api.sendMessageModernAsync(messageArg)) + } catch (exception: Throwable) { + wrapError(exception) + } + withContext(Dispatchers.Main) { reply.reply(wrapped) } } } } else { @@ -218,31 +234,39 @@ interface ExampleHostApi { } } /** Generated class from Pigeon that represents Flutter messages that can be called from Kotlin. */ -class MessageFlutterApi(private val binaryMessenger: BinaryMessenger, private val messageChannelSuffix: String = "") { +class MessageFlutterApi( + private val binaryMessenger: BinaryMessenger, + private val messageChannelSuffix: String = "" +) { companion object { /** The codec used by MessageFlutterApi. */ - val codec: MessageCodec by lazy { - MessagesPigeonCodec() - } + val codec: MessageCodec by lazy { MessagesPigeonCodec() } } - fun flutterMethod(aStringArg: String?, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_example_package.MessageFlutterApi.flutterMethod$separatedMessageChannelSuffix" + + fun flutterMethod(aStringArg: String?, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_example_package.MessageFlutterApi.flutterMethod$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(aStringArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as String callback(Result.success(output)) } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } } diff --git a/packages/pigeon/example/app/ios/Runner/EventChannelMessages.g.swift b/packages/pigeon/example/app/ios/Runner/EventChannelMessages.g.swift index 16d1ab990486..0b346c920145 100644 --- a/packages/pigeon/example/app/ios/Runner/EventChannelMessages.g.swift +++ b/packages/pigeon/example/app/ios/Runner/EventChannelMessages.g.swift @@ -33,6 +33,7 @@ protocol PlatformEvent { struct IntEvent: PlatformEvent { var data: Int64 + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> IntEvent? { let data = pigeonVar_list[0] as! Int64 @@ -52,6 +53,7 @@ struct IntEvent: PlatformEvent { struct StringEvent: PlatformEvent { var data: String + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> StringEvent? { let data = pigeonVar_list[0] as! String @@ -105,12 +107,11 @@ private class EventChannelMessagesPigeonCodecReaderWriter: FlutterStandardReader } class EventChannelMessagesPigeonCodec: FlutterStandardMessageCodec, @unchecked Sendable { - static let shared = EventChannelMessagesPigeonCodec( - readerWriter: EventChannelMessagesPigeonCodecReaderWriter()) + static let shared = EventChannelMessagesPigeonCodec(readerWriter: EventChannelMessagesPigeonCodecReaderWriter()) } -var eventChannelMessagesPigeonMethodCodec = FlutterStandardMethodCodec( - readerWriter: EventChannelMessagesPigeonCodecReaderWriter()) +var eventChannelMessagesPigeonMethodCodec = FlutterStandardMethodCodec(readerWriter: EventChannelMessagesPigeonCodecReaderWriter()); + private class PigeonStreamHandler: NSObject, FlutterStreamHandler { private let wrapper: PigeonEventChannelWrapper @@ -162,18 +163,16 @@ class PigeonEventSink { } class StreamEventsStreamHandler: PigeonEventChannelWrapper { - static func register( - with messenger: FlutterBinaryMessenger, - instanceName: String = "", - streamHandler: StreamEventsStreamHandler - ) { + static func register(with messenger: FlutterBinaryMessenger, + instanceName: String = "", + streamHandler: StreamEventsStreamHandler) { var channelName = "dev.flutter.pigeon.pigeon_example_package.EventChannelMethods.streamEvents" if !instanceName.isEmpty { channelName += ".\(instanceName)" } let internalStreamHandler = PigeonStreamHandler(wrapper: streamHandler) - let channel = FlutterEventChannel( - name: channelName, binaryMessenger: messenger, codec: eventChannelMessagesPigeonMethodCodec) + let channel = FlutterEventChannel(name: channelName, binaryMessenger: messenger, codec: eventChannelMessagesPigeonMethodCodec) channel.setStreamHandler(internalStreamHandler) } } + diff --git a/packages/pigeon/example/app/ios/Runner/Messages.g.swift b/packages/pigeon/example/app/ios/Runner/Messages.g.swift index 9e1ba8031571..92a7ad5e97e2 100644 --- a/packages/pigeon/example/app/ios/Runner/Messages.g.swift +++ b/packages/pigeon/example/app/ios/Runner/Messages.g.swift @@ -1,7 +1,7 @@ // Copyright 2013 The Flutter Authors. 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 (v22.7.0), do not edit directly. +// Autogenerated from Pigeon, do not edit directly. // See also: https://pub.dev/packages/pigeon import Foundation diff --git a/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart b/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart index c180a9d742ac..46d022af2347 100644 --- a/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart +++ b/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart @@ -11,7 +11,8 @@ import 'dart:typed_data' show Float64List, Int32List, Int64List, Uint8List; import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; import 'package:flutter/services.dart'; -sealed class PlatformEvent {} +sealed class PlatformEvent { +} class IntEvent extends PlatformEvent { IntEvent({ @@ -55,6 +56,7 @@ class StringEvent extends PlatformEvent { } } + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -62,10 +64,10 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is IntEvent) { + } else if (value is IntEvent) { buffer.putUint8(129); writeValue(buffer, value.encode()); - } else if (value is StringEvent) { + } else if (value is StringEvent) { buffer.putUint8(130); writeValue(buffer, value.encode()); } else { @@ -76,9 +78,9 @@ class _PigeonCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 129: + case 129: return IntEvent.decode(readValue(buffer)!); - case 130: + case 130: return StringEvent.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -86,17 +88,16 @@ class _PigeonCodec extends StandardMessageCodec { } } -const StandardMethodCodec pigeonMethodCodec = - StandardMethodCodec(_PigeonCodec()); +const StandardMethodCodec pigeonMethodCodec = StandardMethodCodec(_PigeonCodec()); -Stream streamEvents({String instanceName = ''}) { +Stream streamEvents( {String instanceName = ''}) { if (instanceName.isNotEmpty) { instanceName = '.$instanceName'; } - const EventChannel streamEventsChannel = EventChannel( - 'dev.flutter.pigeon.pigeon_example_package.EventChannelMethods.streamEvents', - pigeonMethodCodec); + const EventChannel streamEventsChannel = + EventChannel('dev.flutter.pigeon.pigeon_example_package.EventChannelMethods.streamEvents', pigeonMethodCodec); return streamEventsChannel.receiveBroadcastStream().map((dynamic event) { return event as PlatformEvent; }); } + diff --git a/packages/pigeon/example/app/lib/src/messages.g.dart b/packages/pigeon/example/app/lib/src/messages.g.dart index 9929e71683e7..2aae37ef7904 100644 --- a/packages/pigeon/example/app/lib/src/messages.g.dart +++ b/packages/pigeon/example/app/lib/src/messages.g.dart @@ -1,7 +1,7 @@ // Copyright 2013 The Flutter Authors. 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 (v22.7.0), do not edit directly. +// Autogenerated from Pigeon, 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 diff --git a/packages/pigeon/example/app/linux/messages.g.cc b/packages/pigeon/example/app/linux/messages.g.cc index 3f275348df11..4767e017a79a 100644 --- a/packages/pigeon/example/app/linux/messages.g.cc +++ b/packages/pigeon/example/app/linux/messages.g.cc @@ -1,7 +1,7 @@ // Copyright 2013 The Flutter Authors. 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 (v22.7.0), do not edit directly. +// Autogenerated from Pigeon, do not edit directly. // See also: https://pub.dev/packages/pigeon #include "messages.g.h" diff --git a/packages/pigeon/example/app/linux/messages.g.h b/packages/pigeon/example/app/linux/messages.g.h index b13fcf821d19..b880a832565c 100644 --- a/packages/pigeon/example/app/linux/messages.g.h +++ b/packages/pigeon/example/app/linux/messages.g.h @@ -1,7 +1,7 @@ // Copyright 2013 The Flutter Authors. 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 (v22.7.0), do not edit directly. +// Autogenerated from Pigeon, do not edit directly. // See also: https://pub.dev/packages/pigeon #ifndef PIGEON_MESSAGES_G_H_ diff --git a/packages/pigeon/example/app/macos/Runner/messages.g.h b/packages/pigeon/example/app/macos/Runner/messages.g.h index 26c889af11d7..0ebe561ac9f9 100644 --- a/packages/pigeon/example/app/macos/Runner/messages.g.h +++ b/packages/pigeon/example/app/macos/Runner/messages.g.h @@ -1,7 +1,7 @@ // Copyright 2013 The Flutter Authors. 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 (v22.7.0), do not edit directly. +// Autogenerated from Pigeon, do not edit directly. // See also: https://pub.dev/packages/pigeon #import diff --git a/packages/pigeon/example/app/macos/Runner/messages.g.m b/packages/pigeon/example/app/macos/Runner/messages.g.m index 6829c765565a..d2d7da743d68 100644 --- a/packages/pigeon/example/app/macos/Runner/messages.g.m +++ b/packages/pigeon/example/app/macos/Runner/messages.g.m @@ -1,7 +1,7 @@ // Copyright 2013 The Flutter Authors. 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 (v22.7.0), do not edit directly. +// Autogenerated from Pigeon, do not edit directly. // See also: https://pub.dev/packages/pigeon #import "messages.g.h" diff --git a/packages/pigeon/example/app/windows/runner/messages.g.cpp b/packages/pigeon/example/app/windows/runner/messages.g.cpp index 9cd7cc7b037e..9a007ab72cf6 100644 --- a/packages/pigeon/example/app/windows/runner/messages.g.cpp +++ b/packages/pigeon/example/app/windows/runner/messages.g.cpp @@ -1,7 +1,7 @@ // Copyright 2013 The Flutter Authors. 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 (v22.7.0), do not edit directly. +// Autogenerated from Pigeon, do not edit directly. // See also: https://pub.dev/packages/pigeon #undef _HAS_EXCEPTIONS diff --git a/packages/pigeon/example/app/windows/runner/messages.g.h b/packages/pigeon/example/app/windows/runner/messages.g.h index e1d93b66d4ce..e7a64e07d56f 100644 --- a/packages/pigeon/example/app/windows/runner/messages.g.h +++ b/packages/pigeon/example/app/windows/runner/messages.g.h @@ -1,7 +1,7 @@ // Copyright 2013 The Flutter Authors. 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 (v22.7.0), do not edit directly. +// Autogenerated from Pigeon, do not edit directly. // See also: https://pub.dev/packages/pigeon #ifndef PIGEON_MESSAGES_G_H_ diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/background_platform_channels.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/background_platform_channels.gen.dart index 3bcbaaff4703..a5794056e3ed 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/background_platform_channels.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/background_platform_channels.gen.dart @@ -19,6 +19,7 @@ PlatformException _createConnectionError(String channelName) { ); } + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -44,11 +45,9 @@ class BackgroundApi2Host { /// Constructor for [BackgroundApi2Host]. 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. - BackgroundApi2Host( - {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + BackgroundApi2Host({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -56,10 +55,8 @@ class BackgroundApi2Host { final String pigeonVar_messageChannelSuffix; Future add(int x, int y) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.BackgroundApi2Host.add$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.BackgroundApi2Host.add$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart index 234361ada5ae..508f0b823e5e 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart @@ -19,8 +19,7 @@ PlatformException _createConnectionError(String channelName) { ); } -List wrapResponse( - {Object? result, PlatformException? error, bool empty = false}) { +List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { if (empty) { return []; } @@ -214,10 +213,8 @@ class AllTypes { intMap: (result[23] as Map?)!.cast(), enumMap: (result[24] as Map?)!.cast(), objectMap: (result[25] as Map?)!.cast(), - listMap: - (result[26] as Map?)!.cast>(), - mapMap: (result[27] as Map?)! - .cast>(), + listMap: (result[26] as Map?)!.cast>(), + mapMap: (result[27] as Map?)!.cast>(), ); } } @@ -381,21 +378,15 @@ class AllNullableTypes { objectList: (result[19] as List?)?.cast(), listList: (result[20] as List?)?.cast?>(), mapList: (result[21] as List?)?.cast?>(), - recursiveClassList: - (result[22] as List?)?.cast(), + recursiveClassList: (result[22] as List?)?.cast(), map: result[23] as Map?, - stringMap: - (result[24] as Map?)?.cast(), + stringMap: (result[24] as Map?)?.cast(), intMap: (result[25] as Map?)?.cast(), enumMap: (result[26] as Map?)?.cast(), - objectMap: - (result[27] as Map?)?.cast(), - listMap: - (result[28] as Map?)?.cast?>(), - mapMap: (result[29] as Map?) - ?.cast?>(), - recursiveClassMap: (result[30] as Map?) - ?.cast(), + objectMap: (result[27] as Map?)?.cast(), + listMap: (result[28] as Map?)?.cast?>(), + mapMap: (result[29] as Map?)?.cast?>(), + recursiveClassMap: (result[30] as Map?)?.cast(), ); } } @@ -549,16 +540,12 @@ class AllNullableTypesWithoutRecursion { listList: (result[19] as List?)?.cast?>(), mapList: (result[20] as List?)?.cast?>(), map: result[21] as Map?, - stringMap: - (result[22] as Map?)?.cast(), + stringMap: (result[22] as Map?)?.cast(), intMap: (result[23] as Map?)?.cast(), enumMap: (result[24] as Map?)?.cast(), - objectMap: - (result[25] as Map?)?.cast(), - listMap: - (result[26] as Map?)?.cast?>(), - mapMap: (result[27] as Map?) - ?.cast?>(), + objectMap: (result[25] as Map?)?.cast(), + listMap: (result[26] as Map?)?.cast?>(), + mapMap: (result[27] as Map?)?.cast?>(), ); } } @@ -609,15 +596,12 @@ class AllClassesWrapper { result as List; return AllClassesWrapper( allNullableTypes: result[0]! as AllNullableTypes, - allNullableTypesWithoutRecursion: - result[1] as AllNullableTypesWithoutRecursion?, + allNullableTypesWithoutRecursion: result[1] as AllNullableTypesWithoutRecursion?, allTypes: result[2] as AllTypes?, classList: (result[3] as List?)!.cast(), - nullableClassList: (result[4] as List?) - ?.cast(), + nullableClassList: (result[4] as List?)?.cast(), classMap: (result[5] as Map?)!.cast(), - nullableClassMap: (result[6] as Map?) - ?.cast(), + nullableClassMap: (result[6] as Map?)?.cast(), ); } } @@ -644,6 +628,7 @@ class TestMessage { } } + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -651,28 +636,28 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is AnEnum) { + } else if (value is AnEnum) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is AnotherEnum) { + } else if (value is AnotherEnum) { buffer.putUint8(130); writeValue(buffer, value.index); - } else if (value is UnusedClass) { + } else if (value is UnusedClass) { buffer.putUint8(131); writeValue(buffer, value.encode()); - } else if (value is AllTypes) { + } else if (value is AllTypes) { buffer.putUint8(132); writeValue(buffer, value.encode()); - } else if (value is AllNullableTypes) { + } else if (value is AllNullableTypes) { buffer.putUint8(133); writeValue(buffer, value.encode()); - } else if (value is AllNullableTypesWithoutRecursion) { + } else if (value is AllNullableTypesWithoutRecursion) { buffer.putUint8(134); writeValue(buffer, value.encode()); - } else if (value is AllClassesWrapper) { + } else if (value is AllClassesWrapper) { buffer.putUint8(135); writeValue(buffer, value.encode()); - } else if (value is TestMessage) { + } else if (value is TestMessage) { buffer.putUint8(136); writeValue(buffer, value.encode()); } else { @@ -683,23 +668,23 @@ class _PigeonCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 129: + case 129: final int? value = readValue(buffer) as int?; return value == null ? null : AnEnum.values[value]; - case 130: + case 130: final int? value = readValue(buffer) as int?; return value == null ? null : AnotherEnum.values[value]; - case 131: + case 131: return UnusedClass.decode(readValue(buffer)!); - case 132: + case 132: return AllTypes.decode(readValue(buffer)!); - case 133: + case 133: return AllNullableTypes.decode(readValue(buffer)!); - case 134: + case 134: return AllNullableTypesWithoutRecursion.decode(readValue(buffer)!); - case 135: + case 135: return AllClassesWrapper.decode(readValue(buffer)!); - case 136: + case 136: return TestMessage.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -713,11 +698,9 @@ class HostIntegrationCoreApi { /// Constructor for [HostIntegrationCoreApi]. 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. - HostIntegrationCoreApi( - {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + HostIntegrationCoreApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -727,10 +710,8 @@ class HostIntegrationCoreApi { /// A no-op function taking no arguments and returning no value, to sanity /// test basic calling. Future noop() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -752,10 +733,8 @@ class HostIntegrationCoreApi { /// Returns the passed object, to test serialization and deserialization. Future echoAllTypes(AllTypes everything) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllTypes$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllTypes$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -782,10 +761,8 @@ class HostIntegrationCoreApi { /// Returns an error, to test error handling. Future throwError() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwError$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwError$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -807,10 +784,8 @@ class HostIntegrationCoreApi { /// Returns an error from a void function, to test error handling. Future throwErrorFromVoid() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwErrorFromVoid$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwErrorFromVoid$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -832,10 +807,8 @@ class HostIntegrationCoreApi { /// Returns a Flutter error, to test error handling. Future throwFlutterError() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwFlutterError$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwFlutterError$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -857,10 +830,8 @@ class HostIntegrationCoreApi { /// Returns passed in int. Future echoInt(int anInt) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoInt$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoInt$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -887,10 +858,8 @@ class HostIntegrationCoreApi { /// Returns passed in double. Future echoDouble(double aDouble) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoDouble$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoDouble$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -917,10 +886,8 @@ class HostIntegrationCoreApi { /// Returns the passed in boolean. Future echoBool(bool aBool) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoBool$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoBool$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -947,10 +914,8 @@ class HostIntegrationCoreApi { /// Returns the passed in string. Future echoString(String aString) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoString$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoString$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -977,10 +942,8 @@ class HostIntegrationCoreApi { /// Returns the passed in Uint8List. Future echoUint8List(Uint8List aUint8List) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoUint8List$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoUint8List$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -1007,10 +970,8 @@ class HostIntegrationCoreApi { /// Returns the passed in generic Object. Future echoObject(Object anObject) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoObject$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoObject$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -1037,10 +998,8 @@ class HostIntegrationCoreApi { /// Returns the passed list, to test serialization and deserialization. Future> echoList(List list) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoList$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -1067,10 +1026,8 @@ class HostIntegrationCoreApi { /// Returns the passed list, to test serialization and deserialization. Future> echoEnumList(List enumList) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumList$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -1096,12 +1053,9 @@ class HostIntegrationCoreApi { } /// Returns the passed list, to test serialization and deserialization. - Future> echoClassList( - List classList) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassList$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future> echoClassList(List classList) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -1122,17 +1076,14 @@ class HostIntegrationCoreApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as List?)! - .cast(); + return (pigeonVar_replyList[0] as List?)!.cast(); } } /// Returns the passed list, to test serialization and deserialization. Future> echoNonNullEnumList(List enumList) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumList$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -1158,12 +1109,9 @@ class HostIntegrationCoreApi { } /// Returns the passed list, to test serialization and deserialization. - Future> echoNonNullClassList( - List classList) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassList$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future> echoNonNullClassList(List classList) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -1184,17 +1132,14 @@ class HostIntegrationCoreApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as List?)! - .cast(); + return (pigeonVar_replyList[0] as List?)!.cast(); } } /// Returns the passed map, to test serialization and deserialization. Future> echoMap(Map map) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -1215,18 +1160,14 @@ class HostIntegrationCoreApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); + return (pigeonVar_replyList[0] as Map?)!.cast(); } } /// Returns the passed map, to test serialization and deserialization. - Future> echoStringMap( - Map stringMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoStringMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future> echoStringMap(Map stringMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoStringMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -1247,17 +1188,14 @@ class HostIntegrationCoreApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); + return (pigeonVar_replyList[0] as Map?)!.cast(); } } /// Returns the passed map, to test serialization and deserialization. Future> echoIntMap(Map intMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoIntMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoIntMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -1278,18 +1216,14 @@ class HostIntegrationCoreApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); + return (pigeonVar_replyList[0] as Map?)!.cast(); } } /// Returns the passed map, to test serialization and deserialization. - Future> echoEnumMap( - Map enumMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future> echoEnumMap(Map enumMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -1310,18 +1244,14 @@ class HostIntegrationCoreApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); + return (pigeonVar_replyList[0] as Map?)!.cast(); } } /// Returns the passed map, to test serialization and deserialization. - Future> echoClassMap( - Map classMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future> echoClassMap(Map classMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -1342,18 +1272,14 @@ class HostIntegrationCoreApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); + return (pigeonVar_replyList[0] as Map?)!.cast(); } } /// Returns the passed map, to test serialization and deserialization. - Future> echoNonNullStringMap( - Map stringMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullStringMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future> echoNonNullStringMap(Map stringMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullStringMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -1374,17 +1300,14 @@ class HostIntegrationCoreApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); + return (pigeonVar_replyList[0] as Map?)!.cast(); } } /// Returns the passed map, to test serialization and deserialization. Future> echoNonNullIntMap(Map intMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullIntMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullIntMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -1405,18 +1328,14 @@ class HostIntegrationCoreApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); + return (pigeonVar_replyList[0] as Map?)!.cast(); } } /// Returns the passed map, to test serialization and deserialization. - Future> echoNonNullEnumMap( - Map enumMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future> echoNonNullEnumMap(Map enumMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -1437,18 +1356,14 @@ class HostIntegrationCoreApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); + return (pigeonVar_replyList[0] as Map?)!.cast(); } } /// Returns the passed map, to test serialization and deserialization. - Future> echoNonNullClassMap( - Map classMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future> echoNonNullClassMap(Map classMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -1469,17 +1384,14 @@ class HostIntegrationCoreApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); + return (pigeonVar_replyList[0] as Map?)!.cast(); } } /// Returns the passed class to test nested class serialization and deserialization. Future echoClassWrapper(AllClassesWrapper wrapper) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassWrapper$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassWrapper$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -1506,10 +1418,8 @@ class HostIntegrationCoreApi { /// Returns the passed enum to test serialization and deserialization. Future echoEnum(AnEnum anEnum) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnum$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnum$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -1536,10 +1446,8 @@ class HostIntegrationCoreApi { /// Returns the passed enum to test serialization and deserialization. Future echoAnotherEnum(AnotherEnum anotherEnum) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -1566,10 +1474,8 @@ class HostIntegrationCoreApi { /// Returns the default string. Future echoNamedDefaultString({String aString = 'default'}) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedDefaultString$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedDefaultString$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -1596,10 +1502,8 @@ class HostIntegrationCoreApi { /// Returns passed in double. Future echoOptionalDefaultDouble([double aDouble = 3.14]) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalDefaultDouble$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalDefaultDouble$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -1626,10 +1530,8 @@ class HostIntegrationCoreApi { /// Returns passed in int. Future echoRequiredInt({required int anInt}) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoRequiredInt$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoRequiredInt$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -1655,12 +1557,9 @@ class HostIntegrationCoreApi { } /// Returns the passed object, to test serialization and deserialization. - Future echoAllNullableTypes( - AllNullableTypes? everything) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypes$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future echoAllNullableTypes(AllNullableTypes? everything) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypes$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -1681,13 +1580,9 @@ class HostIntegrationCoreApi { } /// Returns the passed object, to test serialization and deserialization. - Future - echoAllNullableTypesWithoutRecursion( - AllNullableTypesWithoutRecursion? everything) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future echoAllNullableTypesWithoutRecursion(AllNullableTypesWithoutRecursion? everything) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -1710,10 +1605,8 @@ class HostIntegrationCoreApi { /// Returns the inner `aString` value from the wrapped object, to test /// sending of nested objects. Future extractNestedNullableString(AllClassesWrapper wrapper) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.extractNestedNullableString$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.extractNestedNullableString$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -1735,18 +1628,15 @@ class HostIntegrationCoreApi { /// Returns the inner `aString` value from the wrapped object, to test /// sending of nested objects. - Future createNestedNullableString( - String? nullableString) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.createNestedNullableString$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future createNestedNullableString(String? nullableString) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.createNestedNullableString$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeonVar_replyList = await pigeonVar_channel - .send([nullableString]) as List?; + final List? pigeonVar_replyList = + await pigeonVar_channel.send([nullableString]) as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1766,19 +1656,15 @@ class HostIntegrationCoreApi { } /// Returns passed in arguments of multiple types. - Future sendMultipleNullableTypes( - bool? aNullableBool, int? aNullableInt, String? aNullableString) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypes$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future sendMultipleNullableTypes(bool? aNullableBool, int? aNullableInt, String? aNullableString) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypes$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeonVar_replyList = await pigeonVar_channel - .send([aNullableBool, aNullableInt, aNullableString]) - as List?; + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aNullableBool, aNullableInt, aNullableString]) as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1798,20 +1684,15 @@ class HostIntegrationCoreApi { } /// Returns passed in arguments of multiple types. - Future - sendMultipleNullableTypesWithoutRecursion(bool? aNullableBool, - int? aNullableInt, String? aNullableString) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future sendMultipleNullableTypesWithoutRecursion(bool? aNullableBool, int? aNullableInt, String? aNullableString) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeonVar_replyList = await pigeonVar_channel - .send([aNullableBool, aNullableInt, aNullableString]) - as List?; + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aNullableBool, aNullableInt, aNullableString]) as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1832,10 +1713,8 @@ class HostIntegrationCoreApi { /// Returns passed in int. Future echoNullableInt(int? aNullableInt) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableInt$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableInt$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -1857,16 +1736,14 @@ class HostIntegrationCoreApi { /// Returns passed in double. Future echoNullableDouble(double? aNullableDouble) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableDouble$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableDouble$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeonVar_replyList = await pigeonVar_channel - .send([aNullableDouble]) as List?; + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aNullableDouble]) as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1882,16 +1759,14 @@ class HostIntegrationCoreApi { /// Returns the passed in boolean. Future echoNullableBool(bool? aNullableBool) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableBool$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableBool$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeonVar_replyList = await pigeonVar_channel - .send([aNullableBool]) as List?; + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aNullableBool]) as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1907,16 +1782,14 @@ class HostIntegrationCoreApi { /// Returns the passed in string. Future echoNullableString(String? aNullableString) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableString$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableString$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeonVar_replyList = await pigeonVar_channel - .send([aNullableString]) as List?; + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aNullableString]) as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1931,18 +1804,15 @@ class HostIntegrationCoreApi { } /// Returns the passed in Uint8List. - Future echoNullableUint8List( - Uint8List? aNullableUint8List) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableUint8List$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future echoNullableUint8List(Uint8List? aNullableUint8List) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableUint8List$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeonVar_replyList = await pigeonVar_channel - .send([aNullableUint8List]) as List?; + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aNullableUint8List]) as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1958,16 +1828,14 @@ class HostIntegrationCoreApi { /// Returns the passed in generic Object. Future echoNullableObject(Object? aNullableObject) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableObject$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableObject$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeonVar_replyList = await pigeonVar_channel - .send([aNullableObject]) as List?; + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aNullableObject]) as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1983,16 +1851,14 @@ class HostIntegrationCoreApi { /// Returns the passed list, to test serialization and deserialization. Future?> echoNullableList(List? aNullableList) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableList$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeonVar_replyList = await pigeonVar_channel - .send([aNullableList]) as List?; + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aNullableList]) as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -2008,10 +1874,8 @@ class HostIntegrationCoreApi { /// Returns the passed list, to test serialization and deserialization. Future?> echoNullableEnumList(List? enumList) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumList$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -2032,12 +1896,9 @@ class HostIntegrationCoreApi { } /// Returns the passed list, to test serialization and deserialization. - Future?> echoNullableClassList( - List? classList) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassList$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future?> echoNullableClassList(List? classList) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -2053,18 +1914,14 @@ class HostIntegrationCoreApi { details: pigeonVar_replyList[2], ); } else { - return (pigeonVar_replyList[0] as List?) - ?.cast(); + return (pigeonVar_replyList[0] as List?)?.cast(); } } /// Returns the passed list, to test serialization and deserialization. - Future?> echoNullableNonNullEnumList( - List? enumList) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumList$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future?> echoNullableNonNullEnumList(List? enumList) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -2085,12 +1942,9 @@ class HostIntegrationCoreApi { } /// Returns the passed list, to test serialization and deserialization. - Future?> echoNullableNonNullClassList( - List? classList) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassList$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future?> echoNullableNonNullClassList(List? classList) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -2106,18 +1960,14 @@ class HostIntegrationCoreApi { details: pigeonVar_replyList[2], ); } else { - return (pigeonVar_replyList[0] as List?) - ?.cast(); + return (pigeonVar_replyList[0] as List?)?.cast(); } } /// Returns the passed map, to test serialization and deserialization. - Future?> echoNullableMap( - Map? map) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future?> echoNullableMap(Map? map) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -2133,18 +1983,14 @@ class HostIntegrationCoreApi { details: pigeonVar_replyList[2], ); } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); + return (pigeonVar_replyList[0] as Map?)?.cast(); } } /// Returns the passed map, to test serialization and deserialization. - Future?> echoNullableStringMap( - Map? stringMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableStringMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future?> echoNullableStringMap(Map? stringMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableStringMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -2160,17 +2006,14 @@ class HostIntegrationCoreApi { details: pigeonVar_replyList[2], ); } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); + return (pigeonVar_replyList[0] as Map?)?.cast(); } } /// Returns the passed map, to test serialization and deserialization. Future?> echoNullableIntMap(Map? intMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableIntMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableIntMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -2186,18 +2029,14 @@ class HostIntegrationCoreApi { details: pigeonVar_replyList[2], ); } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); + return (pigeonVar_replyList[0] as Map?)?.cast(); } } /// Returns the passed map, to test serialization and deserialization. - Future?> echoNullableEnumMap( - Map? enumMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future?> echoNullableEnumMap(Map? enumMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -2213,18 +2052,14 @@ class HostIntegrationCoreApi { details: pigeonVar_replyList[2], ); } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); + return (pigeonVar_replyList[0] as Map?)?.cast(); } } /// Returns the passed map, to test serialization and deserialization. - Future?> echoNullableClassMap( - Map? classMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future?> echoNullableClassMap(Map? classMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -2240,18 +2075,14 @@ class HostIntegrationCoreApi { details: pigeonVar_replyList[2], ); } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); + return (pigeonVar_replyList[0] as Map?)?.cast(); } } /// Returns the passed map, to test serialization and deserialization. - Future?> echoNullableNonNullStringMap( - Map? stringMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullStringMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future?> echoNullableNonNullStringMap(Map? stringMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullStringMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -2267,18 +2098,14 @@ class HostIntegrationCoreApi { details: pigeonVar_replyList[2], ); } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); + return (pigeonVar_replyList[0] as Map?)?.cast(); } } /// Returns the passed map, to test serialization and deserialization. - Future?> echoNullableNonNullIntMap( - Map? intMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullIntMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future?> echoNullableNonNullIntMap(Map? intMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullIntMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -2294,18 +2121,14 @@ class HostIntegrationCoreApi { details: pigeonVar_replyList[2], ); } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); + return (pigeonVar_replyList[0] as Map?)?.cast(); } } /// Returns the passed map, to test serialization and deserialization. - Future?> echoNullableNonNullEnumMap( - Map? enumMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future?> echoNullableNonNullEnumMap(Map? enumMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -2321,18 +2144,14 @@ class HostIntegrationCoreApi { details: pigeonVar_replyList[2], ); } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); + return (pigeonVar_replyList[0] as Map?)?.cast(); } } /// Returns the passed map, to test serialization and deserialization. - Future?> echoNullableNonNullClassMap( - Map? classMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future?> echoNullableNonNullClassMap(Map? classMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -2348,16 +2167,13 @@ class HostIntegrationCoreApi { details: pigeonVar_replyList[2], ); } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); + return (pigeonVar_replyList[0] as Map?)?.cast(); } } Future echoNullableEnum(AnEnum? anEnum) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnum$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnum$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -2378,10 +2194,8 @@ class HostIntegrationCoreApi { } Future echoAnotherNullableEnum(AnotherEnum? anotherEnum) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -2403,10 +2217,8 @@ class HostIntegrationCoreApi { /// Returns passed in int. Future echoOptionalNullableInt([int? aNullableInt]) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalNullableInt$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalNullableInt$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -2428,16 +2240,14 @@ class HostIntegrationCoreApi { /// Returns the passed in string. Future echoNamedNullableString({String? aNullableString}) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedNullableString$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedNullableString$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeonVar_replyList = await pigeonVar_channel - .send([aNullableString]) as List?; + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aNullableString]) as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -2454,10 +2264,8 @@ class HostIntegrationCoreApi { /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. Future noopAsync() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noopAsync$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noopAsync$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -2479,10 +2287,8 @@ class HostIntegrationCoreApi { /// Returns passed in int asynchronously. Future echoAsyncInt(int anInt) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncInt$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncInt$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -2509,10 +2315,8 @@ class HostIntegrationCoreApi { /// Returns passed in double asynchronously. Future echoAsyncDouble(double aDouble) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncDouble$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncDouble$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -2539,10 +2343,8 @@ class HostIntegrationCoreApi { /// Returns the passed in boolean asynchronously. Future echoAsyncBool(bool aBool) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncBool$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncBool$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -2569,10 +2371,8 @@ class HostIntegrationCoreApi { /// Returns the passed string asynchronously. Future echoAsyncString(String aString) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncString$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncString$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -2599,10 +2399,8 @@ class HostIntegrationCoreApi { /// Returns the passed in Uint8List asynchronously. Future echoAsyncUint8List(Uint8List aUint8List) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncUint8List$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncUint8List$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -2629,10 +2427,8 @@ class HostIntegrationCoreApi { /// Returns the passed in generic Object asynchronously. Future echoAsyncObject(Object anObject) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncObject$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncObject$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -2659,10 +2455,8 @@ class HostIntegrationCoreApi { /// Returns the passed list, to test asynchronous serialization and deserialization. Future> echoAsyncList(List list) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncList$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -2689,10 +2483,8 @@ class HostIntegrationCoreApi { /// Returns the passed list, to test asynchronous serialization and deserialization. Future> echoAsyncEnumList(List enumList) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumList$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -2718,12 +2510,9 @@ class HostIntegrationCoreApi { } /// Returns the passed list, to test asynchronous serialization and deserialization. - Future> echoAsyncClassList( - List classList) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassList$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future> echoAsyncClassList(List classList) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -2744,17 +2533,14 @@ class HostIntegrationCoreApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as List?)! - .cast(); + return (pigeonVar_replyList[0] as List?)!.cast(); } } /// Returns the passed map, to test asynchronous serialization and deserialization. Future> echoAsyncMap(Map map) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -2775,18 +2561,14 @@ class HostIntegrationCoreApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); + return (pigeonVar_replyList[0] as Map?)!.cast(); } } /// Returns the passed map, to test asynchronous serialization and deserialization. - Future> echoAsyncStringMap( - Map stringMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncStringMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future> echoAsyncStringMap(Map stringMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncStringMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -2807,17 +2589,14 @@ class HostIntegrationCoreApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); + return (pigeonVar_replyList[0] as Map?)!.cast(); } } /// Returns the passed map, to test asynchronous serialization and deserialization. Future> echoAsyncIntMap(Map intMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncIntMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncIntMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -2838,18 +2617,14 @@ class HostIntegrationCoreApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); + return (pigeonVar_replyList[0] as Map?)!.cast(); } } /// Returns the passed map, to test asynchronous serialization and deserialization. - Future> echoAsyncEnumMap( - Map enumMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future> echoAsyncEnumMap(Map enumMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -2870,18 +2645,14 @@ class HostIntegrationCoreApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); + return (pigeonVar_replyList[0] as Map?)!.cast(); } } /// Returns the passed map, to test asynchronous serialization and deserialization. - Future> echoAsyncClassMap( - Map classMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future> echoAsyncClassMap(Map classMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -2902,17 +2673,14 @@ class HostIntegrationCoreApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); + return (pigeonVar_replyList[0] as Map?)!.cast(); } } /// Returns the passed enum, to test asynchronous serialization and deserialization. Future echoAsyncEnum(AnEnum anEnum) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnum$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnum$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -2939,10 +2707,8 @@ class HostIntegrationCoreApi { /// Returns the passed enum, to test asynchronous serialization and deserialization. Future echoAnotherAsyncEnum(AnotherEnum anotherEnum) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -2969,10 +2735,8 @@ class HostIntegrationCoreApi { /// Responds with an error from an async function returning a value. Future throwAsyncError() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncError$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncError$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -2994,10 +2758,8 @@ class HostIntegrationCoreApi { /// Responds with an error from an async void function. Future throwAsyncErrorFromVoid() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncErrorFromVoid$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncErrorFromVoid$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3019,10 +2781,8 @@ class HostIntegrationCoreApi { /// Responds with a Flutter error from an async function returning a value. Future throwAsyncFlutterError() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncFlutterError$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncFlutterError$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3044,10 +2804,8 @@ class HostIntegrationCoreApi { /// Returns the passed object, to test async serialization and deserialization. Future echoAsyncAllTypes(AllTypes everything) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncAllTypes$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncAllTypes$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3073,12 +2831,9 @@ class HostIntegrationCoreApi { } /// Returns the passed object, to test serialization and deserialization. - Future echoAsyncNullableAllNullableTypes( - AllNullableTypes? everything) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future echoAsyncNullableAllNullableTypes(AllNullableTypes? everything) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3099,13 +2854,9 @@ class HostIntegrationCoreApi { } /// Returns the passed object, to test serialization and deserialization. - Future - echoAsyncNullableAllNullableTypesWithoutRecursion( - AllNullableTypesWithoutRecursion? everything) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future echoAsyncNullableAllNullableTypesWithoutRecursion(AllNullableTypesWithoutRecursion? everything) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3127,10 +2878,8 @@ class HostIntegrationCoreApi { /// Returns passed in int asynchronously. Future echoAsyncNullableInt(int? anInt) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableInt$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableInt$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3152,10 +2901,8 @@ class HostIntegrationCoreApi { /// Returns passed in double asynchronously. Future echoAsyncNullableDouble(double? aDouble) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableDouble$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableDouble$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3177,10 +2924,8 @@ class HostIntegrationCoreApi { /// Returns the passed in boolean asynchronously. Future echoAsyncNullableBool(bool? aBool) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableBool$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableBool$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3202,10 +2947,8 @@ class HostIntegrationCoreApi { /// Returns the passed string asynchronously. Future echoAsyncNullableString(String? aString) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableString$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableString$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3227,10 +2970,8 @@ class HostIntegrationCoreApi { /// Returns the passed in Uint8List asynchronously. Future echoAsyncNullableUint8List(Uint8List? aUint8List) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableUint8List$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableUint8List$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3252,10 +2993,8 @@ class HostIntegrationCoreApi { /// Returns the passed in generic Object asynchronously. Future echoAsyncNullableObject(Object? anObject) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableObject$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableObject$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3277,10 +3016,8 @@ class HostIntegrationCoreApi { /// Returns the passed list, to test asynchronous serialization and deserialization. Future?> echoAsyncNullableList(List? list) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableList$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3301,12 +3038,9 @@ class HostIntegrationCoreApi { } /// Returns the passed list, to test asynchronous serialization and deserialization. - Future?> echoAsyncNullableEnumList( - List? enumList) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumList$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future?> echoAsyncNullableEnumList(List? enumList) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3327,12 +3061,9 @@ class HostIntegrationCoreApi { } /// Returns the passed list, to test asynchronous serialization and deserialization. - Future?> echoAsyncNullableClassList( - List? classList) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassList$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future?> echoAsyncNullableClassList(List? classList) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3348,18 +3079,14 @@ class HostIntegrationCoreApi { details: pigeonVar_replyList[2], ); } else { - return (pigeonVar_replyList[0] as List?) - ?.cast(); + return (pigeonVar_replyList[0] as List?)?.cast(); } } /// Returns the passed map, to test asynchronous serialization and deserialization. - Future?> echoAsyncNullableMap( - Map? map) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future?> echoAsyncNullableMap(Map? map) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3375,18 +3102,14 @@ class HostIntegrationCoreApi { details: pigeonVar_replyList[2], ); } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); + return (pigeonVar_replyList[0] as Map?)?.cast(); } } /// Returns the passed map, to test asynchronous serialization and deserialization. - Future?> echoAsyncNullableStringMap( - Map? stringMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableStringMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future?> echoAsyncNullableStringMap(Map? stringMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableStringMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3402,18 +3125,14 @@ class HostIntegrationCoreApi { details: pigeonVar_replyList[2], ); } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); + return (pigeonVar_replyList[0] as Map?)?.cast(); } } /// Returns the passed map, to test asynchronous serialization and deserialization. - Future?> echoAsyncNullableIntMap( - Map? intMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableIntMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future?> echoAsyncNullableIntMap(Map? intMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableIntMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3429,18 +3148,14 @@ class HostIntegrationCoreApi { details: pigeonVar_replyList[2], ); } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); + return (pigeonVar_replyList[0] as Map?)?.cast(); } } /// Returns the passed map, to test asynchronous serialization and deserialization. - Future?> echoAsyncNullableEnumMap( - Map? enumMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future?> echoAsyncNullableEnumMap(Map? enumMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3456,18 +3171,14 @@ class HostIntegrationCoreApi { details: pigeonVar_replyList[2], ); } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); + return (pigeonVar_replyList[0] as Map?)?.cast(); } } /// Returns the passed map, to test asynchronous serialization and deserialization. - Future?> echoAsyncNullableClassMap( - Map? classMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future?> echoAsyncNullableClassMap(Map? classMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3483,17 +3194,14 @@ class HostIntegrationCoreApi { details: pigeonVar_replyList[2], ); } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); + return (pigeonVar_replyList[0] as Map?)?.cast(); } } /// Returns the passed enum, to test asynchronous serialization and deserialization. Future echoAsyncNullableEnum(AnEnum? anEnum) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnum$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnum$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3514,12 +3222,9 @@ class HostIntegrationCoreApi { } /// Returns the passed enum, to test asynchronous serialization and deserialization. - Future echoAnotherAsyncNullableEnum( - AnotherEnum? anotherEnum) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future echoAnotherAsyncNullableEnum(AnotherEnum? anotherEnum) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3540,10 +3245,8 @@ class HostIntegrationCoreApi { } Future callFlutterNoop() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3564,10 +3267,8 @@ class HostIntegrationCoreApi { } Future callFlutterThrowError() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowError$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowError$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3588,10 +3289,8 @@ class HostIntegrationCoreApi { } Future callFlutterThrowErrorFromVoid() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3612,10 +3311,8 @@ class HostIntegrationCoreApi { } Future callFlutterEchoAllTypes(AllTypes everything) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllTypes$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllTypes$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3640,12 +3337,9 @@ class HostIntegrationCoreApi { } } - Future callFlutterEchoAllNullableTypes( - AllNullableTypes? everything) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future callFlutterEchoAllNullableTypes(AllNullableTypes? everything) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3665,19 +3359,15 @@ class HostIntegrationCoreApi { } } - Future callFlutterSendMultipleNullableTypes( - bool? aNullableBool, int? aNullableInt, String? aNullableString) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future callFlutterSendMultipleNullableTypes(bool? aNullableBool, int? aNullableInt, String? aNullableString) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeonVar_replyList = await pigeonVar_channel - .send([aNullableBool, aNullableInt, aNullableString]) - as List?; + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aNullableBool, aNullableInt, aNullableString]) as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -3696,13 +3386,9 @@ class HostIntegrationCoreApi { } } - Future - callFlutterEchoAllNullableTypesWithoutRecursion( - AllNullableTypesWithoutRecursion? everything) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future callFlutterEchoAllNullableTypesWithoutRecursion(AllNullableTypesWithoutRecursion? everything) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3722,20 +3408,15 @@ class HostIntegrationCoreApi { } } - Future - callFlutterSendMultipleNullableTypesWithoutRecursion(bool? aNullableBool, - int? aNullableInt, String? aNullableString) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future callFlutterSendMultipleNullableTypesWithoutRecursion(bool? aNullableBool, int? aNullableInt, String? aNullableString) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeonVar_replyList = await pigeonVar_channel - .send([aNullableBool, aNullableInt, aNullableString]) - as List?; + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aNullableBool, aNullableInt, aNullableString]) as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -3755,10 +3436,8 @@ class HostIntegrationCoreApi { } Future callFlutterEchoBool(bool aBool) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoBool$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoBool$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3784,10 +3463,8 @@ class HostIntegrationCoreApi { } Future callFlutterEchoInt(int anInt) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoInt$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoInt$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3813,10 +3490,8 @@ class HostIntegrationCoreApi { } Future callFlutterEchoDouble(double aDouble) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoDouble$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoDouble$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3842,10 +3517,8 @@ class HostIntegrationCoreApi { } Future callFlutterEchoString(String aString) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoString$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoString$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3871,10 +3544,8 @@ class HostIntegrationCoreApi { } Future callFlutterEchoUint8List(Uint8List list) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoUint8List$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoUint8List$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3900,10 +3571,8 @@ class HostIntegrationCoreApi { } Future> callFlutterEchoList(List list) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoList$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3929,10 +3598,8 @@ class HostIntegrationCoreApi { } Future> callFlutterEchoEnumList(List enumList) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumList$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3957,12 +3624,9 @@ class HostIntegrationCoreApi { } } - Future> callFlutterEchoClassList( - List classList) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassList$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future> callFlutterEchoClassList(List classList) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -3983,17 +3647,13 @@ class HostIntegrationCoreApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as List?)! - .cast(); + return (pigeonVar_replyList[0] as List?)!.cast(); } } - Future> callFlutterEchoNonNullEnumList( - List enumList) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future> callFlutterEchoNonNullEnumList(List enumList) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4018,12 +3678,9 @@ class HostIntegrationCoreApi { } } - Future> callFlutterEchoNonNullClassList( - List classList) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassList$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future> callFlutterEchoNonNullClassList(List classList) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4044,17 +3701,13 @@ class HostIntegrationCoreApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as List?)! - .cast(); + return (pigeonVar_replyList[0] as List?)!.cast(); } } - Future> callFlutterEchoMap( - Map map) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future> callFlutterEchoMap(Map map) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4075,17 +3728,13 @@ class HostIntegrationCoreApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); + return (pigeonVar_replyList[0] as Map?)!.cast(); } } - Future> callFlutterEchoStringMap( - Map stringMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoStringMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future> callFlutterEchoStringMap(Map stringMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoStringMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4106,16 +3755,13 @@ class HostIntegrationCoreApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); + return (pigeonVar_replyList[0] as Map?)!.cast(); } } Future> callFlutterEchoIntMap(Map intMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoIntMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoIntMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4136,17 +3782,13 @@ class HostIntegrationCoreApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); + return (pigeonVar_replyList[0] as Map?)!.cast(); } } - Future> callFlutterEchoEnumMap( - Map enumMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future> callFlutterEchoEnumMap(Map enumMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4167,17 +3809,13 @@ class HostIntegrationCoreApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); + return (pigeonVar_replyList[0] as Map?)!.cast(); } } - Future> callFlutterEchoClassMap( - Map classMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future> callFlutterEchoClassMap(Map classMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4198,17 +3836,13 @@ class HostIntegrationCoreApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); + return (pigeonVar_replyList[0] as Map?)!.cast(); } } - Future> callFlutterEchoNonNullStringMap( - Map stringMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future> callFlutterEchoNonNullStringMap(Map stringMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4229,17 +3863,13 @@ class HostIntegrationCoreApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); + return (pigeonVar_replyList[0] as Map?)!.cast(); } } - Future> callFlutterEchoNonNullIntMap( - Map intMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future> callFlutterEchoNonNullIntMap(Map intMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4260,17 +3890,13 @@ class HostIntegrationCoreApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); + return (pigeonVar_replyList[0] as Map?)!.cast(); } } - Future> callFlutterEchoNonNullEnumMap( - Map enumMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future> callFlutterEchoNonNullEnumMap(Map enumMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4291,17 +3917,13 @@ class HostIntegrationCoreApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); + return (pigeonVar_replyList[0] as Map?)!.cast(); } } - Future> callFlutterEchoNonNullClassMap( - Map classMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future> callFlutterEchoNonNullClassMap(Map classMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4322,16 +3944,13 @@ class HostIntegrationCoreApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); + return (pigeonVar_replyList[0] as Map?)!.cast(); } } Future callFlutterEchoEnum(AnEnum anEnum) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnum$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnum$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4356,12 +3975,9 @@ class HostIntegrationCoreApi { } } - Future callFlutterEchoAnotherEnum( - AnotherEnum anotherEnum) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future callFlutterEchoAnotherEnum(AnotherEnum anotherEnum) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4387,10 +4003,8 @@ class HostIntegrationCoreApi { } Future callFlutterEchoNullableBool(bool? aBool) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4411,10 +4025,8 @@ class HostIntegrationCoreApi { } Future callFlutterEchoNullableInt(int? anInt) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableInt$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableInt$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4435,10 +4047,8 @@ class HostIntegrationCoreApi { } Future callFlutterEchoNullableDouble(double? aDouble) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableDouble$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableDouble$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4459,10 +4069,8 @@ class HostIntegrationCoreApi { } Future callFlutterEchoNullableString(String? aString) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableString$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableString$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4483,10 +4091,8 @@ class HostIntegrationCoreApi { } Future callFlutterEchoNullableUint8List(Uint8List? list) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableUint8List$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableUint8List$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4506,12 +4112,9 @@ class HostIntegrationCoreApi { } } - Future?> callFlutterEchoNullableList( - List? list) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableList$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future?> callFlutterEchoNullableList(List? list) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4531,12 +4134,9 @@ class HostIntegrationCoreApi { } } - Future?> callFlutterEchoNullableEnumList( - List? enumList) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumList$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future?> callFlutterEchoNullableEnumList(List? enumList) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4556,12 +4156,9 @@ class HostIntegrationCoreApi { } } - Future?> callFlutterEchoNullableClassList( - List? classList) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassList$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future?> callFlutterEchoNullableClassList(List? classList) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4577,17 +4174,13 @@ class HostIntegrationCoreApi { details: pigeonVar_replyList[2], ); } else { - return (pigeonVar_replyList[0] as List?) - ?.cast(); + return (pigeonVar_replyList[0] as List?)?.cast(); } } - Future?> callFlutterEchoNullableNonNullEnumList( - List? enumList) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future?> callFlutterEchoNullableNonNullEnumList(List? enumList) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4607,12 +4200,9 @@ class HostIntegrationCoreApi { } } - Future?> callFlutterEchoNullableNonNullClassList( - List? classList) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future?> callFlutterEchoNullableNonNullClassList(List? classList) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4628,17 +4218,13 @@ class HostIntegrationCoreApi { details: pigeonVar_replyList[2], ); } else { - return (pigeonVar_replyList[0] as List?) - ?.cast(); + return (pigeonVar_replyList[0] as List?)?.cast(); } } - Future?> callFlutterEchoNullableMap( - Map? map) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future?> callFlutterEchoNullableMap(Map? map) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4654,17 +4240,13 @@ class HostIntegrationCoreApi { details: pigeonVar_replyList[2], ); } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); + return (pigeonVar_replyList[0] as Map?)?.cast(); } } - Future?> callFlutterEchoNullableStringMap( - Map? stringMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableStringMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future?> callFlutterEchoNullableStringMap(Map? stringMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableStringMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4680,17 +4262,13 @@ class HostIntegrationCoreApi { details: pigeonVar_replyList[2], ); } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); + return (pigeonVar_replyList[0] as Map?)?.cast(); } } - Future?> callFlutterEchoNullableIntMap( - Map? intMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableIntMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future?> callFlutterEchoNullableIntMap(Map? intMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableIntMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4706,17 +4284,13 @@ class HostIntegrationCoreApi { details: pigeonVar_replyList[2], ); } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); + return (pigeonVar_replyList[0] as Map?)?.cast(); } } - Future?> callFlutterEchoNullableEnumMap( - Map? enumMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future?> callFlutterEchoNullableEnumMap(Map? enumMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4732,17 +4306,13 @@ class HostIntegrationCoreApi { details: pigeonVar_replyList[2], ); } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); + return (pigeonVar_replyList[0] as Map?)?.cast(); } } - Future?> callFlutterEchoNullableClassMap( - Map? classMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future?> callFlutterEchoNullableClassMap(Map? classMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4758,17 +4328,13 @@ class HostIntegrationCoreApi { details: pigeonVar_replyList[2], ); } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); + return (pigeonVar_replyList[0] as Map?)?.cast(); } } - Future?> callFlutterEchoNullableNonNullStringMap( - Map? stringMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future?> callFlutterEchoNullableNonNullStringMap(Map? stringMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4784,17 +4350,13 @@ class HostIntegrationCoreApi { details: pigeonVar_replyList[2], ); } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); + return (pigeonVar_replyList[0] as Map?)?.cast(); } } - Future?> callFlutterEchoNullableNonNullIntMap( - Map? intMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future?> callFlutterEchoNullableNonNullIntMap(Map? intMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4810,17 +4372,13 @@ class HostIntegrationCoreApi { details: pigeonVar_replyList[2], ); } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); + return (pigeonVar_replyList[0] as Map?)?.cast(); } } - Future?> callFlutterEchoNullableNonNullEnumMap( - Map? enumMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future?> callFlutterEchoNullableNonNullEnumMap(Map? enumMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4836,17 +4394,13 @@ class HostIntegrationCoreApi { details: pigeonVar_replyList[2], ); } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); + return (pigeonVar_replyList[0] as Map?)?.cast(); } } - Future?> callFlutterEchoNullableNonNullClassMap( - Map? classMap) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future?> callFlutterEchoNullableNonNullClassMap(Map? classMap) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4862,16 +4416,13 @@ class HostIntegrationCoreApi { details: pigeonVar_replyList[2], ); } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); + return (pigeonVar_replyList[0] as Map?)?.cast(); } } Future callFlutterEchoNullableEnum(AnEnum? anEnum) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnum$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnum$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4891,12 +4442,9 @@ class HostIntegrationCoreApi { } } - Future callFlutterEchoAnotherNullableEnum( - AnotherEnum? anotherEnum) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future callFlutterEchoAnotherNullableEnum(AnotherEnum? anotherEnum) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4917,10 +4465,8 @@ class HostIntegrationCoreApi { } Future callFlutterSmallApiEchoString(String aString) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -4970,18 +4516,15 @@ abstract class FlutterIntegrationCoreApi { /// Returns passed in arguments of multiple types. /// /// Tests multiple-arity FlutterApi handling. - AllNullableTypes sendMultipleNullableTypes( - bool? aNullableBool, int? aNullableInt, String? aNullableString); + AllNullableTypes sendMultipleNullableTypes(bool? aNullableBool, int? aNullableInt, String? aNullableString); /// Returns the passed object, to test serialization and deserialization. - AllNullableTypesWithoutRecursion? echoAllNullableTypesWithoutRecursion( - AllNullableTypesWithoutRecursion? everything); + AllNullableTypesWithoutRecursion? echoAllNullableTypesWithoutRecursion(AllNullableTypesWithoutRecursion? everything); /// Returns passed in arguments of multiple types. /// /// Tests multiple-arity FlutterApi handling. - AllNullableTypesWithoutRecursion sendMultipleNullableTypesWithoutRecursion( - bool? aNullableBool, int? aNullableInt, String? aNullableString); + AllNullableTypesWithoutRecursion sendMultipleNullableTypesWithoutRecursion(bool? aNullableBool, int? aNullableInt, String? aNullableString); /// Returns the passed boolean, to test serialization and deserialization. bool echoBool(bool aBool); @@ -5026,8 +4569,7 @@ abstract class FlutterIntegrationCoreApi { Map echoEnumMap(Map enumMap); /// Returns the passed map, to test serialization and deserialization. - Map echoClassMap( - Map classMap); + Map echoClassMap(Map classMap); /// Returns the passed map, to test serialization and deserialization. Map echoNonNullStringMap(Map stringMap); @@ -5039,8 +4581,7 @@ abstract class FlutterIntegrationCoreApi { Map echoNonNullEnumMap(Map enumMap); /// Returns the passed map, to test serialization and deserialization. - Map echoNonNullClassMap( - Map classMap); + Map echoNonNullClassMap(Map classMap); /// Returns the passed enum to test serialization and deserialization. AnEnum echoEnum(AnEnum anEnum); @@ -5070,22 +4611,19 @@ abstract class FlutterIntegrationCoreApi { List? echoNullableEnumList(List? enumList); /// Returns the passed list, to test serialization and deserialization. - List? echoNullableClassList( - List? classList); + List? echoNullableClassList(List? classList); /// Returns the passed list, to test serialization and deserialization. List? echoNullableNonNullEnumList(List? enumList); /// Returns the passed list, to test serialization and deserialization. - List? echoNullableNonNullClassList( - List? classList); + List? echoNullableNonNullClassList(List? classList); /// Returns the passed map, to test serialization and deserialization. Map? echoNullableMap(Map? map); /// Returns the passed map, to test serialization and deserialization. - Map? echoNullableStringMap( - Map? stringMap); + Map? echoNullableStringMap(Map? stringMap); /// Returns the passed map, to test serialization and deserialization. Map? echoNullableIntMap(Map? intMap); @@ -5094,12 +4632,10 @@ abstract class FlutterIntegrationCoreApi { Map? echoNullableEnumMap(Map? enumMap); /// Returns the passed map, to test serialization and deserialization. - Map? echoNullableClassMap( - Map? classMap); + Map? echoNullableClassMap(Map? classMap); /// Returns the passed map, to test serialization and deserialization. - Map? echoNullableNonNullStringMap( - Map? stringMap); + Map? echoNullableNonNullStringMap(Map? stringMap); /// Returns the passed map, to test serialization and deserialization. Map? echoNullableNonNullIntMap(Map? intMap); @@ -5108,8 +4644,7 @@ abstract class FlutterIntegrationCoreApi { Map? echoNullableNonNullEnumMap(Map? enumMap); /// Returns the passed map, to test serialization and deserialization. - Map? echoNullableNonNullClassMap( - Map? classMap); + Map? echoNullableNonNullClassMap(Map? classMap); /// Returns the passed enum to test serialization and deserialization. AnEnum? echoNullableEnum(AnEnum? anEnum); @@ -5124,19 +4659,11 @@ abstract class FlutterIntegrationCoreApi { /// Returns the passed in generic Object asynchronously. Future echoAsyncString(String aString); - static void setUp( - FlutterIntegrationCoreApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp(FlutterIntegrationCoreApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noop$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noop$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -5147,19 +4674,15 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwError$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwError$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -5170,19 +4693,15 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwErrorFromVoid$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwErrorFromVoid$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -5193,26 +4712,22 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes was null.'); final List args = (message as List?)!; final AllTypes? arg_everything = (args[0] as AllTypes?); assert(arg_everything != null, @@ -5222,145 +4737,118 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes was null.'); final List args = (message as List?)!; - final AllNullableTypes? arg_everything = - (args[0] as AllNullableTypes?); + final AllNullableTypes? arg_everything = (args[0] as AllNullableTypes?); try { - final AllNullableTypes? output = - api.echoAllNullableTypes(arg_everything); + final AllNullableTypes? output = api.echoAllNullableTypes(arg_everything); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes was null.'); final List args = (message as List?)!; final bool? arg_aNullableBool = (args[0] as bool?); final int? arg_aNullableInt = (args[1] as int?); final String? arg_aNullableString = (args[2] as String?); try { - final AllNullableTypes output = api.sendMultipleNullableTypes( - arg_aNullableBool, arg_aNullableInt, arg_aNullableString); + final AllNullableTypes output = api.sendMultipleNullableTypes(arg_aNullableBool, arg_aNullableInt, arg_aNullableString); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion was null.'); final List args = (message as List?)!; - final AllNullableTypesWithoutRecursion? arg_everything = - (args[0] as AllNullableTypesWithoutRecursion?); + final AllNullableTypesWithoutRecursion? arg_everything = (args[0] as AllNullableTypesWithoutRecursion?); try { - final AllNullableTypesWithoutRecursion? output = - api.echoAllNullableTypesWithoutRecursion(arg_everything); + final AllNullableTypesWithoutRecursion? output = api.echoAllNullableTypesWithoutRecursion(arg_everything); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion was null.'); final List args = (message as List?)!; final bool? arg_aNullableBool = (args[0] as bool?); final int? arg_aNullableInt = (args[1] as int?); final String? arg_aNullableString = (args[2] as String?); try { - final AllNullableTypesWithoutRecursion output = - api.sendMultipleNullableTypesWithoutRecursion( - arg_aNullableBool, arg_aNullableInt, arg_aNullableString); + final AllNullableTypesWithoutRecursion output = api.sendMultipleNullableTypesWithoutRecursion(arg_aNullableBool, arg_aNullableInt, arg_aNullableString); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool was null.'); final List args = (message as List?)!; final bool? arg_aBool = (args[0] as bool?); assert(arg_aBool != null, @@ -5370,26 +4858,22 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt was null.'); final List args = (message as List?)!; final int? arg_anInt = (args[0] as int?); assert(arg_anInt != null, @@ -5399,26 +4883,22 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble was null.'); final List args = (message as List?)!; final double? arg_aDouble = (args[0] as double?); assert(arg_aDouble != null, @@ -5428,26 +4908,22 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString was null.'); final List args = (message as List?)!; final String? arg_aString = (args[0] as String?); assert(arg_aString != null, @@ -5457,26 +4933,22 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List was null.'); final List args = (message as List?)!; final Uint8List? arg_list = (args[0] as Uint8List?); assert(arg_list != null, @@ -5486,29 +4958,24 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList was null.'); final List args = (message as List?)!; - final List? arg_list = - (args[0] as List?)?.cast(); + final List? arg_list = (args[0] as List?)?.cast(); assert(arg_list != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList was null, expected non-null List.'); try { @@ -5516,29 +4983,24 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList was null.'); final List args = (message as List?)!; - final List? arg_enumList = - (args[0] as List?)?.cast(); + final List? arg_enumList = (args[0] as List?)?.cast(); assert(arg_enumList != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList was null, expected non-null List.'); try { @@ -5546,60 +5008,49 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList was null.'); final List args = (message as List?)!; - final List? arg_classList = - (args[0] as List?)?.cast(); + final List? arg_classList = (args[0] as List?)?.cast(); assert(arg_classList != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList was null, expected non-null List.'); try { - final List output = - api.echoClassList(arg_classList!); + final List output = api.echoClassList(arg_classList!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList was null.'); final List args = (message as List?)!; - final List? arg_enumList = - (args[0] as List?)?.cast(); + final List? arg_enumList = (args[0] as List?)?.cast(); assert(arg_enumList != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList was null, expected non-null List.'); try { @@ -5607,60 +5058,49 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList was null.'); final List args = (message as List?)!; - final List? arg_classList = - (args[0] as List?)?.cast(); + final List? arg_classList = (args[0] as List?)?.cast(); assert(arg_classList != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList was null, expected non-null List.'); try { - final List output = - api.echoNonNullClassList(arg_classList!); + final List output = api.echoNonNullClassList(arg_classList!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap was null.'); final List args = (message as List?)!; - final Map? arg_map = - (args[0] as Map?)?.cast(); + final Map? arg_map = (args[0] as Map?)?.cast(); assert(arg_map != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap was null, expected non-null Map.'); try { @@ -5668,60 +5108,49 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap was null.'); final List args = (message as List?)!; - final Map? arg_stringMap = - (args[0] as Map?)?.cast(); + final Map? arg_stringMap = (args[0] as Map?)?.cast(); assert(arg_stringMap != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap was null, expected non-null Map.'); try { - final Map output = - api.echoStringMap(arg_stringMap!); + final Map output = api.echoStringMap(arg_stringMap!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap was null.'); final List args = (message as List?)!; - final Map? arg_intMap = - (args[0] as Map?)?.cast(); + final Map? arg_intMap = (args[0] as Map?)?.cast(); assert(arg_intMap != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap was null, expected non-null Map.'); try { @@ -5729,29 +5158,24 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap was null.'); final List args = (message as List?)!; - final Map? arg_enumMap = - (args[0] as Map?)?.cast(); + final Map? arg_enumMap = (args[0] as Map?)?.cast(); assert(arg_enumMap != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap was null, expected non-null Map.'); try { @@ -5759,92 +5183,74 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap was null.'); final List args = (message as List?)!; - final Map? arg_classMap = - (args[0] as Map?) - ?.cast(); + final Map? arg_classMap = (args[0] as Map?)?.cast(); assert(arg_classMap != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap was null, expected non-null Map.'); try { - final Map output = - api.echoClassMap(arg_classMap!); + final Map output = api.echoClassMap(arg_classMap!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap was null.'); final List args = (message as List?)!; - final Map? arg_stringMap = - (args[0] as Map?)?.cast(); + final Map? arg_stringMap = (args[0] as Map?)?.cast(); assert(arg_stringMap != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap was null, expected non-null Map.'); try { - final Map output = - api.echoNonNullStringMap(arg_stringMap!); + final Map output = api.echoNonNullStringMap(arg_stringMap!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap was null.'); final List args = (message as List?)!; - final Map? arg_intMap = - (args[0] as Map?)?.cast(); + final Map? arg_intMap = (args[0] as Map?)?.cast(); assert(arg_intMap != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap was null, expected non-null Map.'); try { @@ -5852,89 +5258,72 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap was null.'); final List args = (message as List?)!; - final Map? arg_enumMap = - (args[0] as Map?)?.cast(); + final Map? arg_enumMap = (args[0] as Map?)?.cast(); assert(arg_enumMap != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap was null, expected non-null Map.'); try { - final Map output = - api.echoNonNullEnumMap(arg_enumMap!); + final Map output = api.echoNonNullEnumMap(arg_enumMap!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap was null.'); final List args = (message as List?)!; - final Map? arg_classMap = - (args[0] as Map?) - ?.cast(); + final Map? arg_classMap = (args[0] as Map?)?.cast(); assert(arg_classMap != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap was null, expected non-null Map.'); try { - final Map output = - api.echoNonNullClassMap(arg_classMap!); + final Map output = api.echoNonNullClassMap(arg_classMap!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum was null.'); final List args = (message as List?)!; final AnEnum? arg_anEnum = (args[0] as AnEnum?); assert(arg_anEnum != null, @@ -5944,26 +5333,22 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum was null.'); final List args = (message as List?)!; final AnotherEnum? arg_anotherEnum = (args[0] as AnotherEnum?); assert(arg_anotherEnum != null, @@ -5973,26 +5358,22 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool was null.'); final List args = (message as List?)!; final bool? arg_aBool = (args[0] as bool?); try { @@ -6000,26 +5381,22 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt was null.'); final List args = (message as List?)!; final int? arg_anInt = (args[0] as int?); try { @@ -6027,26 +5404,22 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble was null.'); final List args = (message as List?)!; final double? arg_aDouble = (args[0] as double?); try { @@ -6054,26 +5427,22 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString was null.'); final List args = (message as List?)!; final String? arg_aString = (args[0] as String?); try { @@ -6081,26 +5450,22 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List was null.'); final List args = (message as List?)!; final Uint8List? arg_list = (args[0] as Uint8List?); try { @@ -6108,431 +5473,344 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList was null.'); final List args = (message as List?)!; - final List? arg_list = - (args[0] as List?)?.cast(); + final List? arg_list = (args[0] as List?)?.cast(); try { final List? output = api.echoNullableList(arg_list); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumList$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumList$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumList was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumList was null.'); final List args = (message as List?)!; - final List? arg_enumList = - (args[0] as List?)?.cast(); + final List? arg_enumList = (args[0] as List?)?.cast(); try { - final List? output = - api.echoNullableEnumList(arg_enumList); + final List? output = api.echoNullableEnumList(arg_enumList); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassList$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassList$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassList was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassList was null.'); final List args = (message as List?)!; - final List? arg_classList = - (args[0] as List?)?.cast(); + final List? arg_classList = (args[0] as List?)?.cast(); try { - final List? output = - api.echoNullableClassList(arg_classList); + final List? output = api.echoNullableClassList(arg_classList); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumList$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumList$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumList was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumList was null.'); final List args = (message as List?)!; - final List? arg_enumList = - (args[0] as List?)?.cast(); + final List? arg_enumList = (args[0] as List?)?.cast(); try { - final List? output = - api.echoNullableNonNullEnumList(arg_enumList); + final List? output = api.echoNullableNonNullEnumList(arg_enumList); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassList$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassList$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassList was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassList was null.'); final List args = (message as List?)!; - final List? arg_classList = - (args[0] as List?)?.cast(); + final List? arg_classList = (args[0] as List?)?.cast(); try { - final List? output = - api.echoNullableNonNullClassList(arg_classList); + final List? output = api.echoNullableNonNullClassList(arg_classList); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap was null.'); final List args = (message as List?)!; - final Map? arg_map = - (args[0] as Map?)?.cast(); + final Map? arg_map = (args[0] as Map?)?.cast(); try { final Map? output = api.echoNullableMap(arg_map); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableStringMap$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableStringMap$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableStringMap was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableStringMap was null.'); final List args = (message as List?)!; - final Map? arg_stringMap = - (args[0] as Map?)?.cast(); + final Map? arg_stringMap = (args[0] as Map?)?.cast(); try { - final Map? output = - api.echoNullableStringMap(arg_stringMap); + final Map? output = api.echoNullableStringMap(arg_stringMap); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableIntMap$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableIntMap$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableIntMap was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableIntMap was null.'); final List args = (message as List?)!; - final Map? arg_intMap = - (args[0] as Map?)?.cast(); + final Map? arg_intMap = (args[0] as Map?)?.cast(); try { final Map? output = api.echoNullableIntMap(arg_intMap); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumMap$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumMap$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumMap was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumMap was null.'); final List args = (message as List?)!; - final Map? arg_enumMap = - (args[0] as Map?)?.cast(); + final Map? arg_enumMap = (args[0] as Map?)?.cast(); try { - final Map? output = - api.echoNullableEnumMap(arg_enumMap); + final Map? output = api.echoNullableEnumMap(arg_enumMap); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassMap$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassMap$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassMap was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassMap was null.'); final List args = (message as List?)!; - final Map? arg_classMap = - (args[0] as Map?) - ?.cast(); + final Map? arg_classMap = (args[0] as Map?)?.cast(); try { - final Map? output = - api.echoNullableClassMap(arg_classMap); + final Map? output = api.echoNullableClassMap(arg_classMap); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullStringMap$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullStringMap$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullStringMap was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullStringMap was null.'); final List args = (message as List?)!; - final Map? arg_stringMap = - (args[0] as Map?)?.cast(); + final Map? arg_stringMap = (args[0] as Map?)?.cast(); try { - final Map? output = - api.echoNullableNonNullStringMap(arg_stringMap); + final Map? output = api.echoNullableNonNullStringMap(arg_stringMap); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullIntMap$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullIntMap$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullIntMap was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullIntMap was null.'); final List args = (message as List?)!; - final Map? arg_intMap = - (args[0] as Map?)?.cast(); + final Map? arg_intMap = (args[0] as Map?)?.cast(); try { - final Map? output = - api.echoNullableNonNullIntMap(arg_intMap); + final Map? output = api.echoNullableNonNullIntMap(arg_intMap); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap was null.'); final List args = (message as List?)!; - final Map? arg_enumMap = - (args[0] as Map?)?.cast(); + final Map? arg_enumMap = (args[0] as Map?)?.cast(); try { - final Map? output = - api.echoNullableNonNullEnumMap(arg_enumMap); + final Map? output = api.echoNullableNonNullEnumMap(arg_enumMap); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassMap$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassMap$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassMap was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassMap was null.'); final List args = (message as List?)!; - final Map? arg_classMap = - (args[0] as Map?) - ?.cast(); + final Map? arg_classMap = (args[0] as Map?)?.cast(); try { - final Map? output = - api.echoNullableNonNullClassMap(arg_classMap); + final Map? output = api.echoNullableNonNullClassMap(arg_classMap); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum was null.'); final List args = (message as List?)!; final AnEnum? arg_anEnum = (args[0] as AnEnum?); try { @@ -6540,47 +5818,38 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum was null.'); final List args = (message as List?)!; final AnotherEnum? arg_anotherEnum = (args[0] as AnotherEnum?); try { - final AnotherEnum? output = - api.echoAnotherNullableEnum(arg_anotherEnum); + final AnotherEnum? output = api.echoAnotherNullableEnum(arg_anotherEnum); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noopAsync$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noopAsync$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -6591,26 +5860,22 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString was null.'); final List args = (message as List?)!; final String? arg_aString = (args[0] as String?); assert(arg_aString != null, @@ -6620,9 +5885,8 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -6635,11 +5899,9 @@ class HostTrivialApi { /// Constructor for [HostTrivialApi]. 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. - HostTrivialApi( - {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + HostTrivialApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -6647,10 +5909,8 @@ class HostTrivialApi { final String pigeonVar_messageChannelSuffix; Future noop() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -6676,11 +5936,9 @@ class HostSmallApi { /// Constructor for [HostSmallApi]. 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. - HostSmallApi( - {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + HostSmallApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -6688,10 +5946,8 @@ class HostSmallApi { final String pigeonVar_messageChannelSuffix; Future echo(String aString) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -6717,10 +5973,8 @@ class HostSmallApi { } Future voidVoid() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -6749,26 +6003,18 @@ abstract class FlutterSmallApi { String echoString(String aString); - static void setUp( - FlutterSmallApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp(FlutterSmallApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList was null.'); final List args = (message as List?)!; final TestMessage? arg_msg = (args[0] as TestMessage?); assert(arg_msg != null, @@ -6778,26 +6024,22 @@ abstract class FlutterSmallApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString was null.'); final List args = (message as List?)!; final String? arg_aString = (args[0] as String?); assert(arg_aString != null, @@ -6807,9 +6049,8 @@ abstract class FlutterSmallApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart index 6dfbc13452ca..d503a32d4efa 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart @@ -19,8 +19,7 @@ PlatformException _createConnectionError(String channelName) { ); } -List wrapResponse( - {Object? result, PlatformException? error, bool empty = false}) { +List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { if (empty) { return []; } @@ -34,13 +33,10 @@ List wrapResponse( enum EnumState { /// This comment is to test enum member (Pending) documentation comments. Pending, - /// This comment is to test enum member (Success) documentation comments. Success, - /// This comment is to test enum member (Error) documentation comments. Error, - /// This comment is to test enum member (SnakeCase) documentation comments. SnakeCase, } @@ -68,6 +64,7 @@ class DataWithEnum { } } + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -75,10 +72,10 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is EnumState) { + } else if (value is EnumState) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is DataWithEnum) { + } else if (value is DataWithEnum) { buffer.putUint8(130); writeValue(buffer, value.encode()); } else { @@ -89,10 +86,10 @@ class _PigeonCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 129: + case 129: final int? value = readValue(buffer) as int?; return value == null ? null : EnumState.values[value]; - case 130: + case 130: return DataWithEnum.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -105,11 +102,9 @@ class EnumApi2Host { /// Constructor for [EnumApi2Host]. 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. - EnumApi2Host( - {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + EnumApi2Host({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -118,10 +113,8 @@ class EnumApi2Host { /// This comment is to test method documentation comments. Future echo(DataWithEnum data) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.EnumApi2Host.echo$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.EnumApi2Host.echo$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -154,26 +147,18 @@ abstract class EnumApi2Flutter { /// This comment is to test method documentation comments. DataWithEnum echo(DataWithEnum data); - static void setUp( - EnumApi2Flutter? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp(EnumApi2Flutter? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.EnumApi2Flutter.echo$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.EnumApi2Flutter.echo$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.EnumApi2Flutter.echo was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.EnumApi2Flutter.echo was null.'); final List args = (message as List?)!; final DataWithEnum? arg_data = (args[0] as DataWithEnum?); assert(arg_data != null, @@ -183,9 +168,8 @@ abstract class EnumApi2Flutter { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart index fe57f06e99f8..402ea1506582 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart @@ -183,27 +183,21 @@ class EventAllNullableTypes { objectList: (result[19] as List?)?.cast(), listList: (result[20] as List?)?.cast?>(), mapList: (result[21] as List?)?.cast?>(), - recursiveClassList: - (result[22] as List?)?.cast(), + recursiveClassList: (result[22] as List?)?.cast(), map: result[23] as Map?, - stringMap: - (result[24] as Map?)?.cast(), + stringMap: (result[24] as Map?)?.cast(), intMap: (result[25] as Map?)?.cast(), - enumMap: (result[26] as Map?) - ?.cast(), - objectMap: - (result[27] as Map?)?.cast(), - listMap: - (result[28] as Map?)?.cast?>(), - mapMap: (result[29] as Map?) - ?.cast?>(), - recursiveClassMap: (result[30] as Map?) - ?.cast(), + enumMap: (result[26] as Map?)?.cast(), + objectMap: (result[27] as Map?)?.cast(), + listMap: (result[28] as Map?)?.cast?>(), + mapMap: (result[29] as Map?)?.cast?>(), + recursiveClassMap: (result[30] as Map?)?.cast(), ); } } -sealed class PlatformEvent {} +sealed class PlatformEvent { +} class IntEvent extends PlatformEvent { IntEvent({ @@ -352,6 +346,7 @@ class ClassEvent extends PlatformEvent { } } + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -359,34 +354,34 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is EventEnum) { + } else if (value is EventEnum) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is AnotherEventEnum) { + } else if (value is AnotherEventEnum) { buffer.putUint8(130); writeValue(buffer, value.index); - } else if (value is EventAllNullableTypes) { + } else if (value is EventAllNullableTypes) { buffer.putUint8(131); writeValue(buffer, value.encode()); - } else if (value is IntEvent) { + } else if (value is IntEvent) { buffer.putUint8(132); writeValue(buffer, value.encode()); - } else if (value is StringEvent) { + } else if (value is StringEvent) { buffer.putUint8(133); writeValue(buffer, value.encode()); - } else if (value is BoolEvent) { + } else if (value is BoolEvent) { buffer.putUint8(134); writeValue(buffer, value.encode()); - } else if (value is DoubleEvent) { + } else if (value is DoubleEvent) { buffer.putUint8(135); writeValue(buffer, value.encode()); - } else if (value is ObjectsEvent) { + } else if (value is ObjectsEvent) { buffer.putUint8(136); writeValue(buffer, value.encode()); - } else if (value is EnumEvent) { + } else if (value is EnumEvent) { buffer.putUint8(137); writeValue(buffer, value.encode()); - } else if (value is ClassEvent) { + } else if (value is ClassEvent) { buffer.putUint8(138); writeValue(buffer, value.encode()); } else { @@ -397,27 +392,27 @@ class _PigeonCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 129: + case 129: final int? value = readValue(buffer) as int?; return value == null ? null : EventEnum.values[value]; - case 130: + case 130: final int? value = readValue(buffer) as int?; return value == null ? null : AnotherEventEnum.values[value]; - case 131: + case 131: return EventAllNullableTypes.decode(readValue(buffer)!); - case 132: + case 132: return IntEvent.decode(readValue(buffer)!); - case 133: + case 133: return StringEvent.decode(readValue(buffer)!); - case 134: + case 134: return BoolEvent.decode(readValue(buffer)!); - case 135: + case 135: return DoubleEvent.decode(readValue(buffer)!); - case 136: + case 136: return ObjectsEvent.decode(readValue(buffer)!); - case 137: + case 137: return EnumEvent.decode(readValue(buffer)!); - case 138: + case 138: return ClassEvent.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -425,29 +420,27 @@ class _PigeonCodec extends StandardMessageCodec { } } -const StandardMethodCodec pigeonMethodCodec = - StandardMethodCodec(_PigeonCodec()); +const StandardMethodCodec pigeonMethodCodec = StandardMethodCodec(_PigeonCodec()); -Stream streamInts({String instanceName = ''}) { +Stream streamInts( {String instanceName = ''}) { if (instanceName.isNotEmpty) { instanceName = '.$instanceName'; } - const EventChannel streamIntsChannel = EventChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamInts', - pigeonMethodCodec); + const EventChannel streamIntsChannel = + EventChannel('dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamInts', pigeonMethodCodec); return streamIntsChannel.receiveBroadcastStream().map((dynamic event) { return event as int; }); } - -Stream streamEvents({String instanceName = ''}) { + +Stream streamEvents( {String instanceName = ''}) { if (instanceName.isNotEmpty) { instanceName = '.$instanceName'; } - const EventChannel streamEventsChannel = EventChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamEvents', - pigeonMethodCodec); + const EventChannel streamEventsChannel = + EventChannel('dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamEvents', pigeonMethodCodec); return streamEventsChannel.receiveBroadcastStream().map((dynamic event) { return event as PlatformEvent; }); } + diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart index c1a8d542e512..7755e840263d 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart @@ -108,6 +108,7 @@ class FlutterSearchReplies { } } + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -115,16 +116,16 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is FlutterSearchRequest) { + } else if (value is FlutterSearchRequest) { buffer.putUint8(129); writeValue(buffer, value.encode()); - } else if (value is FlutterSearchReply) { + } else if (value is FlutterSearchReply) { buffer.putUint8(130); writeValue(buffer, value.encode()); - } else if (value is FlutterSearchRequests) { + } else if (value is FlutterSearchRequests) { buffer.putUint8(131); writeValue(buffer, value.encode()); - } else if (value is FlutterSearchReplies) { + } else if (value is FlutterSearchReplies) { buffer.putUint8(132); writeValue(buffer, value.encode()); } else { @@ -135,13 +136,13 @@ class _PigeonCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 129: + case 129: return FlutterSearchRequest.decode(readValue(buffer)!); - case 130: + case 130: return FlutterSearchReply.decode(readValue(buffer)!); - case 131: + case 131: return FlutterSearchRequests.decode(readValue(buffer)!); - case 132: + case 132: return FlutterSearchReplies.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -155,8 +156,7 @@ class Api { /// BinaryMessenger will be used which routes to the host platform. Api({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -164,10 +164,8 @@ class Api { final String pigeonVar_messageChannelSuffix; Future search(FlutterSearchRequest request) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.Api.search$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.Api.search$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -193,10 +191,8 @@ class Api { } Future doSearches(FlutterSearchRequests request) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.Api.doSearches$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.Api.doSearches$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -222,10 +218,8 @@ class Api { } Future echo(FlutterSearchRequests requests) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.Api.echo$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.Api.echo$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -251,10 +245,8 @@ class Api { } Future anInt(int value) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.Api.anInt$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.Api.anInt$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart index 6a63637da6f6..015ba9ccba66 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart @@ -19,8 +19,7 @@ PlatformException _createConnectionError(String channelName) { ); } -List wrapResponse( - {Object? result, PlatformException? error, bool empty = false}) { +List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { if (empty) { return []; } @@ -140,6 +139,7 @@ class MessageNested { } } + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -147,16 +147,16 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is MessageRequestState) { + } else if (value is MessageRequestState) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is MessageSearchRequest) { + } else if (value is MessageSearchRequest) { buffer.putUint8(130); writeValue(buffer, value.encode()); - } else if (value is MessageSearchReply) { + } else if (value is MessageSearchReply) { buffer.putUint8(131); writeValue(buffer, value.encode()); - } else if (value is MessageNested) { + } else if (value is MessageNested) { buffer.putUint8(132); writeValue(buffer, value.encode()); } else { @@ -167,14 +167,14 @@ class _PigeonCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 129: + case 129: final int? value = readValue(buffer) as int?; return value == null ? null : MessageRequestState.values[value]; - case 130: + case 130: return MessageSearchRequest.decode(readValue(buffer)!); - case 131: + case 131: return MessageSearchReply.decode(readValue(buffer)!); - case 132: + case 132: return MessageNested.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -189,11 +189,9 @@ class MessageApi { /// Constructor for [MessageApi]. 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. - MessageApi( - {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + MessageApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -204,10 +202,8 @@ class MessageApi { /// /// This comment also tests multiple line comments. Future initialize() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.initialize$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.initialize$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -229,10 +225,8 @@ class MessageApi { /// This comment is to test method documentation comments. Future search(MessageSearchRequest request) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.search$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.search$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -263,11 +257,9 @@ class MessageNestedApi { /// Constructor for [MessageNestedApi]. 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. - MessageNestedApi( - {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + MessageNestedApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -278,10 +270,8 @@ class MessageNestedApi { /// /// This comment also tests multiple line comments. Future search(MessageNested nested) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.MessageNestedApi.search$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.MessageNestedApi.search$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -314,29 +304,20 @@ abstract class MessageFlutterSearchApi { /// This comment is to test method documentation comments. MessageSearchReply search(MessageSearchRequest request); - static void setUp( - MessageFlutterSearchApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp(MessageFlutterSearchApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.MessageFlutterSearchApi.search$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.MessageFlutterSearchApi.search$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageFlutterSearchApi.search was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageFlutterSearchApi.search was null.'); final List args = (message as List?)!; - final MessageSearchRequest? arg_request = - (args[0] as MessageSearchRequest?); + final MessageSearchRequest? arg_request = (args[0] as MessageSearchRequest?); assert(arg_request != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageFlutterSearchApi.search was null, expected non-null MessageSearchRequest.'); try { @@ -344,9 +325,8 @@ abstract class MessageFlutterSearchApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/multiple_arity.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/multiple_arity.gen.dart index 05197c29c3ce..3e57a7d6b61f 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/multiple_arity.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/multiple_arity.gen.dart @@ -19,8 +19,7 @@ PlatformException _createConnectionError(String channelName) { ); } -List wrapResponse( - {Object? result, PlatformException? error, bool empty = false}) { +List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { if (empty) { return []; } @@ -30,6 +29,7 @@ List wrapResponse( return [error.code, error.message, error.details]; } + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -55,11 +55,9 @@ class MultipleArityHostApi { /// Constructor for [MultipleArityHostApi]. 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. - MultipleArityHostApi( - {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + MultipleArityHostApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -67,10 +65,8 @@ class MultipleArityHostApi { final String pigeonVar_messageChannelSuffix; Future subtract(int x, int y) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.MultipleArityHostApi.subtract$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.MultipleArityHostApi.subtract$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -101,26 +97,18 @@ abstract class MultipleArityFlutterApi { int subtract(int x, int y); - static void setUp( - MultipleArityFlutterApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp(MultipleArityFlutterApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.MultipleArityFlutterApi.subtract$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.MultipleArityFlutterApi.subtract$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MultipleArityFlutterApi.subtract was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MultipleArityFlutterApi.subtract was null.'); final List args = (message as List?)!; final int? arg_x = (args[0] as int?); assert(arg_x != null, @@ -133,9 +121,8 @@ abstract class MultipleArityFlutterApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart index c7a84edb7ab0..f4eae10440c5 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart @@ -19,8 +19,7 @@ PlatformException _createConnectionError(String channelName) { ); } -List wrapResponse( - {Object? result, PlatformException? error, bool empty = false}) { +List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { if (empty) { return []; } @@ -123,6 +122,7 @@ class NonNullFieldSearchReply { } } + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -130,16 +130,16 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is ReplyType) { + } else if (value is ReplyType) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is NonNullFieldSearchRequest) { + } else if (value is NonNullFieldSearchRequest) { buffer.putUint8(130); writeValue(buffer, value.encode()); - } else if (value is ExtraData) { + } else if (value is ExtraData) { buffer.putUint8(131); writeValue(buffer, value.encode()); - } else if (value is NonNullFieldSearchReply) { + } else if (value is NonNullFieldSearchReply) { buffer.putUint8(132); writeValue(buffer, value.encode()); } else { @@ -150,14 +150,14 @@ class _PigeonCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 129: + case 129: final int? value = readValue(buffer) as int?; return value == null ? null : ReplyType.values[value]; - case 130: + case 130: return NonNullFieldSearchRequest.decode(readValue(buffer)!); - case 131: + case 131: return ExtraData.decode(readValue(buffer)!); - case 132: + case 132: return NonNullFieldSearchReply.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -169,23 +169,18 @@ class NonNullFieldHostApi { /// Constructor for [NonNullFieldHostApi]. 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. - NonNullFieldHostApi( - {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + NonNullFieldHostApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); final String pigeonVar_messageChannelSuffix; - Future search( - NonNullFieldSearchRequest nested) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.NonNullFieldHostApi.search$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + Future search(NonNullFieldSearchRequest nested) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.NonNullFieldHostApi.search$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -216,29 +211,20 @@ abstract class NonNullFieldFlutterApi { NonNullFieldSearchReply search(NonNullFieldSearchRequest request); - static void setUp( - NonNullFieldFlutterApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp(NonNullFieldFlutterApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.NonNullFieldFlutterApi.search$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.NonNullFieldFlutterApi.search$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NonNullFieldFlutterApi.search was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NonNullFieldFlutterApi.search was null.'); final List args = (message as List?)!; - final NonNullFieldSearchRequest? arg_request = - (args[0] as NonNullFieldSearchRequest?); + final NonNullFieldSearchRequest? arg_request = (args[0] as NonNullFieldSearchRequest?); assert(arg_request != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NonNullFieldFlutterApi.search was null, expected non-null NonNullFieldSearchRequest.'); try { @@ -246,9 +232,8 @@ abstract class NonNullFieldFlutterApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart index 9ef352f4a45e..a0644217c8c3 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart @@ -19,8 +19,7 @@ PlatformException _createConnectionError(String channelName) { ); } -List wrapResponse( - {Object? result, PlatformException? error, bool empty = false}) { +List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { if (empty) { return []; } @@ -102,6 +101,7 @@ class NullFieldsSearchReply { } } + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -109,13 +109,13 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is NullFieldsSearchReplyType) { + } else if (value is NullFieldsSearchReplyType) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is NullFieldsSearchRequest) { + } else if (value is NullFieldsSearchRequest) { buffer.putUint8(130); writeValue(buffer, value.encode()); - } else if (value is NullFieldsSearchReply) { + } else if (value is NullFieldsSearchReply) { buffer.putUint8(131); writeValue(buffer, value.encode()); } else { @@ -126,12 +126,12 @@ class _PigeonCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 129: + case 129: final int? value = readValue(buffer) as int?; return value == null ? null : NullFieldsSearchReplyType.values[value]; - case 130: + case 130: return NullFieldsSearchRequest.decode(readValue(buffer)!); - case 131: + case 131: return NullFieldsSearchReply.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -143,11 +143,9 @@ class NullFieldsHostApi { /// Constructor for [NullFieldsHostApi]. 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. - NullFieldsHostApi( - {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + NullFieldsHostApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -155,10 +153,8 @@ class NullFieldsHostApi { final String pigeonVar_messageChannelSuffix; Future search(NullFieldsSearchRequest nested) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.NullFieldsHostApi.search$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.NullFieldsHostApi.search$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -189,29 +185,20 @@ abstract class NullFieldsFlutterApi { NullFieldsSearchReply search(NullFieldsSearchRequest request); - static void setUp( - NullFieldsFlutterApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp(NullFieldsFlutterApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.NullFieldsFlutterApi.search$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.NullFieldsFlutterApi.search$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NullFieldsFlutterApi.search was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NullFieldsFlutterApi.search was null.'); final List args = (message as List?)!; - final NullFieldsSearchRequest? arg_request = - (args[0] as NullFieldsSearchRequest?); + final NullFieldsSearchRequest? arg_request = (args[0] as NullFieldsSearchRequest?); assert(arg_request != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NullFieldsFlutterApi.search was null, expected non-null NullFieldsSearchRequest.'); try { @@ -219,9 +206,8 @@ abstract class NullFieldsFlutterApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/nullable_returns.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/nullable_returns.gen.dart index 99cb3a3bf928..e22dfabb08e1 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/nullable_returns.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/nullable_returns.gen.dart @@ -19,8 +19,7 @@ PlatformException _createConnectionError(String channelName) { ); } -List wrapResponse( - {Object? result, PlatformException? error, bool empty = false}) { +List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { if (empty) { return []; } @@ -30,6 +29,7 @@ List wrapResponse( return [error.code, error.message, error.details]; } + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -55,11 +55,9 @@ class NullableReturnHostApi { /// Constructor for [NullableReturnHostApi]. 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. - NullableReturnHostApi( - {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + NullableReturnHostApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -67,10 +65,8 @@ class NullableReturnHostApi { final String pigeonVar_messageChannelSuffix; Future doit() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.NullableReturnHostApi.doit$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.NullableReturnHostApi.doit$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -96,19 +92,11 @@ abstract class NullableReturnFlutterApi { int? doit(); - static void setUp( - NullableReturnFlutterApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp(NullableReturnFlutterApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.NullableReturnFlutterApi.doit$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.NullableReturnFlutterApi.doit$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -119,9 +107,8 @@ abstract class NullableReturnFlutterApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -133,11 +120,9 @@ class NullableArgHostApi { /// Constructor for [NullableArgHostApi]. 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. - NullableArgHostApi( - {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + NullableArgHostApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -145,10 +130,8 @@ class NullableArgHostApi { final String pigeonVar_messageChannelSuffix; Future doit(int? x) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.NullableArgHostApi.doit$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.NullableArgHostApi.doit$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -179,26 +162,18 @@ abstract class NullableArgFlutterApi { int? doit(int? x); - static void setUp( - NullableArgFlutterApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp(NullableArgFlutterApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.NullableArgFlutterApi.doit$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.NullableArgFlutterApi.doit$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NullableArgFlutterApi.doit was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NullableArgFlutterApi.doit was null.'); final List args = (message as List?)!; final int? arg_x = (args[0] as int?); try { @@ -206,9 +181,8 @@ abstract class NullableArgFlutterApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -220,11 +194,9 @@ class NullableCollectionReturnHostApi { /// Constructor for [NullableCollectionReturnHostApi]. 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. - NullableCollectionReturnHostApi( - {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + NullableCollectionReturnHostApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -232,10 +204,8 @@ class NullableCollectionReturnHostApi { final String pigeonVar_messageChannelSuffix; Future?> doit() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionReturnHostApi.doit$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionReturnHostApi.doit$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -261,19 +231,11 @@ abstract class NullableCollectionReturnFlutterApi { List? doit(); - static void setUp( - NullableCollectionReturnFlutterApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp(NullableCollectionReturnFlutterApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionReturnFlutterApi.doit$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionReturnFlutterApi.doit$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -284,9 +246,8 @@ abstract class NullableCollectionReturnFlutterApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -298,11 +259,9 @@ class NullableCollectionArgHostApi { /// Constructor for [NullableCollectionArgHostApi]. 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. - NullableCollectionArgHostApi( - {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + NullableCollectionArgHostApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -310,10 +269,8 @@ class NullableCollectionArgHostApi { final String pigeonVar_messageChannelSuffix; Future> doit(List? x) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionArgHostApi.doit$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionArgHostApi.doit$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -344,37 +301,27 @@ abstract class NullableCollectionArgFlutterApi { List doit(List? x); - static void setUp( - NullableCollectionArgFlutterApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp(NullableCollectionArgFlutterApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionArgFlutterApi.doit$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionArgFlutterApi.doit$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionArgFlutterApi.doit was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionArgFlutterApi.doit was null.'); final List args = (message as List?)!; - final List? arg_x = - (args[0] as List?)?.cast(); + final List? arg_x = (args[0] as List?)?.cast(); try { final List output = api.doit(arg_x); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/primitive.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/primitive.gen.dart index e6f864538078..98c3e1d6a282 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/primitive.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/primitive.gen.dart @@ -19,8 +19,7 @@ PlatformException _createConnectionError(String channelName) { ); } -List wrapResponse( - {Object? result, PlatformException? error, bool empty = false}) { +List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { if (empty) { return []; } @@ -30,6 +29,7 @@ List wrapResponse( return [error.code, error.message, error.details]; } + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -55,11 +55,9 @@ class PrimitiveHostApi { /// Constructor for [PrimitiveHostApi]. 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. - PrimitiveHostApi( - {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + PrimitiveHostApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -67,10 +65,8 @@ class PrimitiveHostApi { final String pigeonVar_messageChannelSuffix; Future anInt(int value) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.anInt$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.anInt$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -96,10 +92,8 @@ class PrimitiveHostApi { } Future aBool(bool value) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aBool$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aBool$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -125,10 +119,8 @@ class PrimitiveHostApi { } Future aString(String value) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aString$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aString$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -154,10 +146,8 @@ class PrimitiveHostApi { } Future aDouble(double value) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aDouble$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aDouble$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -183,10 +173,8 @@ class PrimitiveHostApi { } Future> aMap(Map value) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -212,10 +200,8 @@ class PrimitiveHostApi { } Future> aList(List value) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aList$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -241,10 +227,8 @@ class PrimitiveHostApi { } Future anInt32List(Int32List value) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.anInt32List$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.anInt32List$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -270,10 +254,8 @@ class PrimitiveHostApi { } Future> aBoolList(List value) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aBoolList$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aBoolList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -299,10 +281,8 @@ class PrimitiveHostApi { } Future> aStringIntMap(Map value) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aStringIntMap$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( + final String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aStringIntMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, @@ -323,8 +303,7 @@ class PrimitiveHostApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); + return (pigeonVar_replyList[0] as Map?)!.cast(); } } } @@ -350,26 +329,18 @@ abstract class PrimitiveFlutterApi { Map aStringIntMap(Map value); - static void setUp( - PrimitiveFlutterApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp(PrimitiveFlutterApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt was null.'); final List args = (message as List?)!; final int? arg_value = (args[0] as int?); assert(arg_value != null, @@ -379,26 +350,22 @@ abstract class PrimitiveFlutterApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBool$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBool$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBool was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBool was null.'); final List args = (message as List?)!; final bool? arg_value = (args[0] as bool?); assert(arg_value != null, @@ -408,26 +375,22 @@ abstract class PrimitiveFlutterApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aString$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aString$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aString was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aString was null.'); final List args = (message as List?)!; final String? arg_value = (args[0] as String?); assert(arg_value != null, @@ -437,26 +400,22 @@ abstract class PrimitiveFlutterApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aDouble$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aDouble$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aDouble was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aDouble was null.'); final List args = (message as List?)!; final double? arg_value = (args[0] as double?); assert(arg_value != null, @@ -466,29 +425,24 @@ abstract class PrimitiveFlutterApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aMap$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aMap$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aMap was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aMap was null.'); final List args = (message as List?)!; - final Map? arg_value = - (args[0] as Map?); + final Map? arg_value = (args[0] as Map?); assert(arg_value != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aMap was null, expected non-null Map.'); try { @@ -496,26 +450,22 @@ abstract class PrimitiveFlutterApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aList$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aList$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aList was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aList was null.'); final List args = (message as List?)!; final List? arg_value = (args[0] as List?); assert(arg_value != null, @@ -525,26 +475,22 @@ abstract class PrimitiveFlutterApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt32List$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt32List$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt32List was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt32List was null.'); final List args = (message as List?)!; final Int32List? arg_value = (args[0] as Int32List?); assert(arg_value != null, @@ -554,29 +500,24 @@ abstract class PrimitiveFlutterApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBoolList$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBoolList$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBoolList was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBoolList was null.'); final List args = (message as List?)!; - final List? arg_value = - (args[0] as List?)?.cast(); + final List? arg_value = (args[0] as List?)?.cast(); assert(arg_value != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBoolList was null, expected non-null List.'); try { @@ -584,29 +525,24 @@ abstract class PrimitiveFlutterApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aStringIntMap$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aStringIntMap$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aStringIntMap was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aStringIntMap was null.'); final List args = (message as List?)!; - final Map? arg_value = - (args[0] as Map?)?.cast(); + final Map? arg_value = (args[0] as Map?)?.cast(); assert(arg_value != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aStringIntMap was null, expected non-null Map.'); try { @@ -614,9 +550,8 @@ abstract class PrimitiveFlutterApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/proxy_api_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/proxy_api_tests.gen.dart index a371c3333497..12db7789f553 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/proxy_api_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/proxy_api_tests.gen.dart @@ -9,8 +9,7 @@ import 'dart:async'; import 'dart:typed_data' show Float64List, Int32List, Int64List, Uint8List; -import 'package:flutter/foundation.dart' - show ReadBuffer, WriteBuffer, immutable, protected; +import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer, immutable, protected; import 'package:flutter/services.dart'; import 'package:flutter/widgets.dart' show WidgetsFlutterBinding; @@ -21,8 +20,7 @@ PlatformException _createConnectionError(String channelName) { ); } -List wrapResponse( - {Object? result, PlatformException? error, bool empty = false}) { +List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { if (empty) { return []; } @@ -31,7 +29,6 @@ List wrapResponse( } return [error.code, error.message, error.details]; } - /// An immutable object that serves as the base class for all ProxyApis and /// can provide functional copies of itself. /// @@ -114,10 +111,9 @@ class PigeonInstanceManager { // by calling instanceManager.getIdentifier() inside of `==` while this was a // HashMap). final Expando _identifiers = Expando(); - final Map> - _weakInstances = >{}; - final Map _strongInstances = - {}; + final Map> _weakInstances = + >{}; + final Map _strongInstances = {}; late final Finalizer _finalizer; int _nextIdentifier = 0; @@ -127,8 +123,7 @@ class PigeonInstanceManager { static PigeonInstanceManager _initInstance() { WidgetsFlutterBinding.ensureInitialized(); - final _PigeonInternalInstanceManagerApi api = - _PigeonInternalInstanceManagerApi(); + final _PigeonInternalInstanceManagerApi api = _PigeonInternalInstanceManagerApi(); // Clears the native `PigeonInstanceManager` on the initial use of the Dart one. api.clear(); final PigeonInstanceManager instanceManager = PigeonInstanceManager( @@ -136,16 +131,11 @@ class PigeonInstanceManager { api.removeStrongReference(identifier); }, ); - _PigeonInternalInstanceManagerApi.setUpMessageHandlers( - instanceManager: instanceManager); - ProxyApiTestClass.pigeon_setUpMessageHandlers( - pigeon_instanceManager: instanceManager); - ProxyApiSuperClass.pigeon_setUpMessageHandlers( - pigeon_instanceManager: instanceManager); - ProxyApiInterface.pigeon_setUpMessageHandlers( - pigeon_instanceManager: instanceManager); - ClassWithApiRequirement.pigeon_setUpMessageHandlers( - pigeon_instanceManager: instanceManager); + _PigeonInternalInstanceManagerApi.setUpMessageHandlers(instanceManager: instanceManager); + ProxyApiTestClass.pigeon_setUpMessageHandlers(pigeon_instanceManager: instanceManager); + ProxyApiSuperClass.pigeon_setUpMessageHandlers(pigeon_instanceManager: instanceManager); + ProxyApiInterface.pigeon_setUpMessageHandlers(pigeon_instanceManager: instanceManager); + ClassWithApiRequirement.pigeon_setUpMessageHandlers(pigeon_instanceManager: instanceManager); return instanceManager; } @@ -209,20 +199,15 @@ class PigeonInstanceManager { /// /// This method also expects the host `InstanceManager` to have a strong /// reference to the instance the identifier is associated with. - T? getInstanceWithWeakReference( - int identifier) { - final PigeonInternalProxyApiBaseClass? weakInstance = - _weakInstances[identifier]?.target; + T? getInstanceWithWeakReference(int identifier) { + final PigeonInternalProxyApiBaseClass? weakInstance = _weakInstances[identifier]?.target; if (weakInstance == null) { - final PigeonInternalProxyApiBaseClass? strongInstance = - _strongInstances[identifier]; + final PigeonInternalProxyApiBaseClass? strongInstance = _strongInstances[identifier]; if (strongInstance != null) { - final PigeonInternalProxyApiBaseClass copy = - strongInstance.pigeon_copy(); + final PigeonInternalProxyApiBaseClass copy = strongInstance.pigeon_copy(); _identifiers[copy] = identifier; - _weakInstances[identifier] = - WeakReference(copy); + _weakInstances[identifier] = WeakReference(copy); _finalizer.attach(copy, identifier, detach: copy); return copy as T; } @@ -246,20 +231,17 @@ class PigeonInstanceManager { /// added. /// /// Returns unique identifier of the [instance] added. - void addHostCreatedInstance( - PigeonInternalProxyApiBaseClass instance, int identifier) { + void addHostCreatedInstance(PigeonInternalProxyApiBaseClass instance, int identifier) { _addInstanceWithIdentifier(instance, identifier); } - void _addInstanceWithIdentifier( - PigeonInternalProxyApiBaseClass instance, int identifier) { + void _addInstanceWithIdentifier(PigeonInternalProxyApiBaseClass instance, int identifier) { assert(!containsIdentifier(identifier)); assert(getIdentifier(instance) == null); assert(identifier >= 0); _identifiers[instance] = identifier; - _weakInstances[identifier] = - WeakReference(instance); + _weakInstances[identifier] = WeakReference(instance); _finalizer.attach(instance, identifier, detach: instance); final PigeonInternalProxyApiBaseClass copy = instance.pigeon_copy(); @@ -383,36 +365,37 @@ class _PigeonInternalInstanceManagerApi { } class _PigeonInternalProxyApiBaseCodec extends _PigeonCodec { - const _PigeonInternalProxyApiBaseCodec(this.instanceManager); - final PigeonInstanceManager instanceManager; - @override - void writeValue(WriteBuffer buffer, Object? value) { - if (value is PigeonInternalProxyApiBaseClass) { - buffer.putUint8(128); - writeValue(buffer, instanceManager.getIdentifier(value)); - } else { - super.writeValue(buffer, value); - } - } - - @override - Object? readValueOfType(int type, ReadBuffer buffer) { - switch (type) { - case 128: - return instanceManager - .getInstanceWithWeakReference(readValue(buffer)! as int); - default: - return super.readValueOfType(type, buffer); - } - } + const _PigeonInternalProxyApiBaseCodec(this.instanceManager); + final PigeonInstanceManager instanceManager; + @override + void writeValue(WriteBuffer buffer, Object? value) { + if (value is PigeonInternalProxyApiBaseClass) { + buffer.putUint8(128); + writeValue(buffer, instanceManager.getIdentifier(value)); + } else { + super.writeValue(buffer, value); + } + } + @override + Object? readValueOfType(int type, ReadBuffer buffer) { + switch (type) { + case 128: + return instanceManager + .getInstanceWithWeakReference(readValue(buffer)! as int); + default: + return super.readValueOfType(type, buffer); + } + } } + enum ProxyApiTestEnum { one, two, three, } + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -420,7 +403,7 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is ProxyApiTestEnum) { + } else if (value is ProxyApiTestEnum) { buffer.putUint8(129); writeValue(buffer, value.index); } else { @@ -431,7 +414,7 @@ class _PigeonCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 129: + case 129: final int? value = readValue(buffer) as int?; return value == null ? null : ProxyApiTestEnum.values[value]; default: @@ -439,7 +422,6 @@ class _PigeonCodec extends StandardMessageCodec { } } } - /// The core ProxyApi test class that each supported host language must /// implement in platform_tests integration tests. class ProxyApiTestClass extends ProxyApiSuperClass @@ -5318,3 +5300,4 @@ class ClassWithApiRequirement extends PigeonInternalProxyApiBaseClass { ); } } + diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/test/test_message.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/test/test_message.gen.dart index 62f677202322..d5f9304ceea7 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/test/test_message.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/test/test_message.gen.dart @@ -14,6 +14,7 @@ import 'package:flutter_test/flutter_test.dart'; import 'package:shared_test_plugin_code/src/generated/message.gen.dart'; + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -21,16 +22,16 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is MessageRequestState) { + } else if (value is MessageRequestState) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is MessageSearchRequest) { + } else if (value is MessageSearchRequest) { buffer.putUint8(130); writeValue(buffer, value.encode()); - } else if (value is MessageSearchReply) { + } else if (value is MessageSearchReply) { buffer.putUint8(131); writeValue(buffer, value.encode()); - } else if (value is MessageNested) { + } else if (value is MessageNested) { buffer.putUint8(132); writeValue(buffer, value.encode()); } else { @@ -41,14 +42,14 @@ class _PigeonCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 129: + case 129: final int? value = readValue(buffer) as int?; return value == null ? null : MessageRequestState.values[value]; - case 130: + case 130: return MessageSearchRequest.decode(readValue(buffer)!); - case 131: + case 131: return MessageSearchReply.decode(readValue(buffer)!); - case 132: + case 132: return MessageNested.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -60,8 +61,7 @@ class _PigeonCodec extends StandardMessageCodec { /// /// This comment also tests multiple line comments. abstract class TestHostApi { - static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => - TestDefaultBinaryMessengerBinding.instance; + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => TestDefaultBinaryMessengerBinding.instance; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); /// This comment is to test documentation comments. @@ -72,58 +72,39 @@ abstract class TestHostApi { /// This comment is to test method documentation comments. MessageSearchReply search(MessageSearchRequest request); - static void setUp( - TestHostApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp(TestHostApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.initialize$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.initialize$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { try { api.initialize(); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.search$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.search$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageApi.search was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageApi.search was null.'); final List args = (message as List?)!; - final MessageSearchRequest? arg_request = - (args[0] as MessageSearchRequest?); + final MessageSearchRequest? arg_request = (args[0] as MessageSearchRequest?); assert(arg_request != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageApi.search was null, expected non-null MessageSearchRequest.'); try { @@ -131,9 +112,8 @@ abstract class TestHostApi { return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -143,8 +123,7 @@ abstract class TestHostApi { /// This comment is to test api documentation comments. abstract class TestNestedApi { - static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => - TestDefaultBinaryMessengerBinding.instance; + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => TestDefaultBinaryMessengerBinding.instance; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); /// This comment is to test method documentation comments. @@ -152,29 +131,18 @@ abstract class TestNestedApi { /// This comment also tests multiple line comments. MessageSearchReply search(MessageNested nested); - static void setUp( - TestNestedApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp(TestNestedApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.MessageNestedApi.search$messageChannelSuffix', - pigeonChannelCodec, + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.MessageNestedApi.search$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageNestedApi.search was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageNestedApi.search was null.'); final List args = (message as List?)!; final MessageNested? arg_nested = (args[0] as MessageNested?); assert(arg_nested != null, @@ -184,9 +152,8 @@ abstract class TestNestedApi { return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } diff --git a/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift index 2b2001d6aa44..e2841cab9bdd 100644 --- a/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift @@ -30,7 +30,7 @@ final class PigeonError: Error { var localizedDescription: String { return "PigeonError(code: \(code), message: \(message ?? ""), details: \(details ?? "")" - } + } } private func wrapResult(_ result: Any?) -> [Any?] { @@ -60,9 +60,7 @@ private func wrapError(_ error: Any) -> [Any?] { } private func createConnectionError(withChannelName channelName: String) -> PigeonError { - return PigeonError( - code: "channel-error", message: "Unable to establish connection on channel: '\(channelName)'.", - details: "") + return PigeonError(code: "channel-error", message: "Unable to establish connection on channel: '\(channelName)'.", details: "") } private func isNullish(_ value: Any?) -> Bool { @@ -90,6 +88,7 @@ enum AnotherEnum: Int { struct UnusedClass { var aField: Any? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> UnusedClass? { let aField: Any? = pigeonVar_list[0] @@ -138,6 +137,7 @@ struct AllTypes { var listMap: [Int64: [Any?]] var mapMap: [Int64: [AnyHashable?: Any?]] + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> AllTypes? { let aBool = pigeonVar_list[0] as! Bool @@ -335,6 +335,7 @@ class AllNullableTypes { var mapMap: [Int64?: [AnyHashable?: Any?]?]? var recursiveClassMap: [Int64?: AllNullableTypes?]? + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> AllNullableTypes? { let aNullableBool: Bool? = nilOrValue(pigeonVar_list[0]) @@ -475,6 +476,7 @@ struct AllNullableTypesWithoutRecursion { var listMap: [Int64?: [Any?]?]? = nil var mapMap: [Int64?: [AnyHashable?: Any?]?]? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> AllNullableTypesWithoutRecursion? { let aNullableBool: Bool? = nilOrValue(pigeonVar_list[0]) @@ -587,17 +589,16 @@ struct AllClassesWrapper { var classMap: [Int64?: AllTypes?] var nullableClassMap: [Int64?: AllNullableTypesWithoutRecursion?]? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> AllClassesWrapper? { let allNullableTypes = pigeonVar_list[0] as! AllNullableTypes - let allNullableTypesWithoutRecursion: AllNullableTypesWithoutRecursion? = nilOrValue( - pigeonVar_list[1]) + let allNullableTypesWithoutRecursion: AllNullableTypesWithoutRecursion? = nilOrValue(pigeonVar_list[1]) let allTypes: AllTypes? = nilOrValue(pigeonVar_list[2]) let classList = pigeonVar_list[3] as! [AllTypes?] let nullableClassList: [AllNullableTypesWithoutRecursion?]? = nilOrValue(pigeonVar_list[4]) let classMap = pigeonVar_list[5] as! [Int64?: AllTypes?] - let nullableClassMap: [Int64?: AllNullableTypesWithoutRecursion?]? = nilOrValue( - pigeonVar_list[6]) + let nullableClassMap: [Int64?: AllNullableTypesWithoutRecursion?]? = nilOrValue(pigeonVar_list[6]) return AllClassesWrapper( allNullableTypes: allNullableTypes, @@ -628,6 +629,7 @@ struct AllClassesWrapper { struct TestMessage { var testList: [Any?]? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> TestMessage? { let testList: [Any?]? = nilOrValue(pigeonVar_list[0]) @@ -722,6 +724,7 @@ class CoreTestsPigeonCodec: FlutterStandardMessageCodec, @unchecked Sendable { static let shared = CoreTestsPigeonCodec(readerWriter: CoreTestsPigeonCodecReaderWriter()) } + /// The core interface that each host language plugin must implement in /// platform_test integration tests. /// @@ -793,8 +796,7 @@ protocol HostIntegrationCoreApi { /// Returns the passed object, to test serialization and deserialization. func echo(_ everything: AllNullableTypes?) throws -> AllNullableTypes? /// Returns the passed object, to test serialization and deserialization. - func echo(_ everything: AllNullableTypesWithoutRecursion?) throws - -> AllNullableTypesWithoutRecursion? + func echo(_ everything: AllNullableTypesWithoutRecursion?) throws -> AllNullableTypesWithoutRecursion? /// Returns the inner `aString` value from the wrapped object, to test /// sending of nested objects. func extractNestedNullableString(from wrapper: AllClassesWrapper) throws -> String? @@ -802,13 +804,9 @@ protocol HostIntegrationCoreApi { /// sending of nested objects. func createNestedObject(with nullableString: String?) throws -> AllClassesWrapper /// Returns passed in arguments of multiple types. - func sendMultipleNullableTypes( - aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String? - ) throws -> AllNullableTypes + func sendMultipleNullableTypes(aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String?) throws -> AllNullableTypes /// Returns passed in arguments of multiple types. - func sendMultipleNullableTypesWithoutRecursion( - aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String? - ) throws -> AllNullableTypesWithoutRecursion + func sendMultipleNullableTypesWithoutRecursion(aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String?) throws -> AllNullableTypesWithoutRecursion /// Returns passed in int. func echo(_ aNullableInt: Int64?) throws -> Int64? /// Returns passed in double. @@ -848,8 +846,7 @@ protocol HostIntegrationCoreApi { /// Returns the passed map, to test serialization and deserialization. func echoNullableNonNull(enumMap: [AnEnum: AnEnum]?) throws -> [AnEnum: AnEnum]? /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull(classMap: [Int64: AllNullableTypes]?) throws -> [Int64: - AllNullableTypes]? + func echoNullableNonNull(classMap: [Int64: AllNullableTypes]?) throws -> [Int64: AllNullableTypes]? func echoNullable(_ anEnum: AnEnum?) throws -> AnEnum? func echoNullable(_ anotherEnum: AnotherEnum?) throws -> AnotherEnum? /// Returns passed in int. @@ -868,9 +865,7 @@ protocol HostIntegrationCoreApi { /// Returns the passed string asynchronously. func echoAsync(_ aString: String, completion: @escaping (Result) -> Void) /// Returns the passed in Uint8List asynchronously. - func echoAsync( - _ aUint8List: FlutterStandardTypedData, - completion: @escaping (Result) -> Void) + func echoAsync(_ aUint8List: FlutterStandardTypedData, completion: @escaping (Result) -> Void) /// Returns the passed in generic Object asynchronously. func echoAsync(_ anObject: Any, completion: @escaping (Result) -> Void) /// Returns the passed list, to test asynchronous serialization and deserialization. @@ -878,32 +873,21 @@ protocol HostIntegrationCoreApi { /// Returns the passed list, to test asynchronous serialization and deserialization. func echoAsync(enumList: [AnEnum?], completion: @escaping (Result<[AnEnum?], Error>) -> Void) /// Returns the passed list, to test asynchronous serialization and deserialization. - func echoAsync( - classList: [AllNullableTypes?], - completion: @escaping (Result<[AllNullableTypes?], Error>) -> Void) + func echoAsync(classList: [AllNullableTypes?], completion: @escaping (Result<[AllNullableTypes?], Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsync( - _ map: [AnyHashable?: Any?], completion: @escaping (Result<[AnyHashable?: Any?], Error>) -> Void - ) + func echoAsync(_ map: [AnyHashable?: Any?], completion: @escaping (Result<[AnyHashable?: Any?], Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsync( - stringMap: [String?: String?], completion: @escaping (Result<[String?: String?], Error>) -> Void - ) + func echoAsync(stringMap: [String?: String?], completion: @escaping (Result<[String?: String?], Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsync( - intMap: [Int64?: Int64?], completion: @escaping (Result<[Int64?: Int64?], Error>) -> Void) + func echoAsync(intMap: [Int64?: Int64?], completion: @escaping (Result<[Int64?: Int64?], Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsync( - enumMap: [AnEnum?: AnEnum?], completion: @escaping (Result<[AnEnum?: AnEnum?], Error>) -> Void) + func echoAsync(enumMap: [AnEnum?: AnEnum?], completion: @escaping (Result<[AnEnum?: AnEnum?], Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsync( - classMap: [Int64?: AllNullableTypes?], - completion: @escaping (Result<[Int64?: AllNullableTypes?], Error>) -> Void) + func echoAsync(classMap: [Int64?: AllNullableTypes?], completion: @escaping (Result<[Int64?: AllNullableTypes?], Error>) -> Void) /// Returns the passed enum, to test asynchronous serialization and deserialization. func echoAsync(_ anEnum: AnEnum, completion: @escaping (Result) -> Void) /// Returns the passed enum, to test asynchronous serialization and deserialization. - func echoAsync( - _ anotherEnum: AnotherEnum, completion: @escaping (Result) -> Void) + func echoAsync(_ anotherEnum: AnotherEnum, completion: @escaping (Result) -> Void) /// Responds with an error from an async function returning a value. func throwAsyncError(completion: @escaping (Result) -> Void) /// Responds with an error from an async void function. @@ -913,13 +897,9 @@ protocol HostIntegrationCoreApi { /// Returns the passed object, to test async serialization and deserialization. func echoAsync(_ everything: AllTypes, completion: @escaping (Result) -> Void) /// Returns the passed object, to test serialization and deserialization. - func echoAsync( - _ everything: AllNullableTypes?, - completion: @escaping (Result) -> Void) + func echoAsync(_ everything: AllNullableTypes?, completion: @escaping (Result) -> Void) /// Returns the passed object, to test serialization and deserialization. - func echoAsync( - _ everything: AllNullableTypesWithoutRecursion?, - completion: @escaping (Result) -> Void) + func echoAsync(_ everything: AllNullableTypesWithoutRecursion?, completion: @escaping (Result) -> Void) /// Returns passed in int asynchronously. func echoAsyncNullable(_ anInt: Int64?, completion: @escaping (Result) -> Void) /// Returns passed in double asynchronously. @@ -929,172 +909,91 @@ protocol HostIntegrationCoreApi { /// Returns the passed string asynchronously. func echoAsyncNullable(_ aString: String?, completion: @escaping (Result) -> Void) /// Returns the passed in Uint8List asynchronously. - func echoAsyncNullable( - _ aUint8List: FlutterStandardTypedData?, - completion: @escaping (Result) -> Void) + func echoAsyncNullable(_ aUint8List: FlutterStandardTypedData?, completion: @escaping (Result) -> Void) /// Returns the passed in generic Object asynchronously. func echoAsyncNullable(_ anObject: Any?, completion: @escaping (Result) -> Void) /// Returns the passed list, to test asynchronous serialization and deserialization. func echoAsyncNullable(_ list: [Any?]?, completion: @escaping (Result<[Any?]?, Error>) -> Void) /// Returns the passed list, to test asynchronous serialization and deserialization. - func echoAsyncNullable( - enumList: [AnEnum?]?, completion: @escaping (Result<[AnEnum?]?, Error>) -> Void) + func echoAsyncNullable(enumList: [AnEnum?]?, completion: @escaping (Result<[AnEnum?]?, Error>) -> Void) /// Returns the passed list, to test asynchronous serialization and deserialization. - func echoAsyncNullable( - classList: [AllNullableTypes?]?, - completion: @escaping (Result<[AllNullableTypes?]?, Error>) -> Void) + func echoAsyncNullable(classList: [AllNullableTypes?]?, completion: @escaping (Result<[AllNullableTypes?]?, Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsyncNullable( - _ map: [AnyHashable?: Any?]?, - completion: @escaping (Result<[AnyHashable?: Any?]?, Error>) -> Void) + func echoAsyncNullable(_ map: [AnyHashable?: Any?]?, completion: @escaping (Result<[AnyHashable?: Any?]?, Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsyncNullable( - stringMap: [String?: String?]?, - completion: @escaping (Result<[String?: String?]?, Error>) -> Void) + func echoAsyncNullable(stringMap: [String?: String?]?, completion: @escaping (Result<[String?: String?]?, Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsyncNullable( - intMap: [Int64?: Int64?]?, completion: @escaping (Result<[Int64?: Int64?]?, Error>) -> Void) + func echoAsyncNullable(intMap: [Int64?: Int64?]?, completion: @escaping (Result<[Int64?: Int64?]?, Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsyncNullable( - enumMap: [AnEnum?: AnEnum?]?, completion: @escaping (Result<[AnEnum?: AnEnum?]?, Error>) -> Void - ) + func echoAsyncNullable(enumMap: [AnEnum?: AnEnum?]?, completion: @escaping (Result<[AnEnum?: AnEnum?]?, Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsyncNullable( - classMap: [Int64?: AllNullableTypes?]?, - completion: @escaping (Result<[Int64?: AllNullableTypes?]?, Error>) -> Void) + func echoAsyncNullable(classMap: [Int64?: AllNullableTypes?]?, completion: @escaping (Result<[Int64?: AllNullableTypes?]?, Error>) -> Void) /// Returns the passed enum, to test asynchronous serialization and deserialization. func echoAsyncNullable(_ anEnum: AnEnum?, completion: @escaping (Result) -> Void) /// Returns the passed enum, to test asynchronous serialization and deserialization. - func echoAsyncNullable( - _ anotherEnum: AnotherEnum?, completion: @escaping (Result) -> Void) + func echoAsyncNullable(_ anotherEnum: AnotherEnum?, completion: @escaping (Result) -> Void) func callFlutterNoop(completion: @escaping (Result) -> Void) func callFlutterThrowError(completion: @escaping (Result) -> Void) func callFlutterThrowErrorFromVoid(completion: @escaping (Result) -> Void) - func callFlutterEcho( - _ everything: AllTypes, completion: @escaping (Result) -> Void) - func callFlutterEcho( - _ everything: AllNullableTypes?, - completion: @escaping (Result) -> Void) - func callFlutterSendMultipleNullableTypes( - aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String?, - completion: @escaping (Result) -> Void) - func callFlutterEcho( - _ everything: AllNullableTypesWithoutRecursion?, - completion: @escaping (Result) -> Void) - func callFlutterSendMultipleNullableTypesWithoutRecursion( - aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String?, - completion: @escaping (Result) -> Void) + func callFlutterEcho(_ everything: AllTypes, completion: @escaping (Result) -> Void) + func callFlutterEcho(_ everything: AllNullableTypes?, completion: @escaping (Result) -> Void) + func callFlutterSendMultipleNullableTypes(aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String?, completion: @escaping (Result) -> Void) + func callFlutterEcho(_ everything: AllNullableTypesWithoutRecursion?, completion: @escaping (Result) -> Void) + func callFlutterSendMultipleNullableTypesWithoutRecursion(aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String?, completion: @escaping (Result) -> Void) func callFlutterEcho(_ aBool: Bool, completion: @escaping (Result) -> Void) func callFlutterEcho(_ anInt: Int64, completion: @escaping (Result) -> Void) func callFlutterEcho(_ aDouble: Double, completion: @escaping (Result) -> Void) func callFlutterEcho(_ aString: String, completion: @escaping (Result) -> Void) - func callFlutterEcho( - _ list: FlutterStandardTypedData, - completion: @escaping (Result) -> Void) + func callFlutterEcho(_ list: FlutterStandardTypedData, completion: @escaping (Result) -> Void) func callFlutterEcho(_ list: [Any?], completion: @escaping (Result<[Any?], Error>) -> Void) - func callFlutterEcho( - enumList: [AnEnum?], completion: @escaping (Result<[AnEnum?], Error>) -> Void) - func callFlutterEcho( - classList: [AllNullableTypes?], - completion: @escaping (Result<[AllNullableTypes?], Error>) -> Void) - func callFlutterEchoNonNull( - enumList: [AnEnum], completion: @escaping (Result<[AnEnum], Error>) -> Void) - func callFlutterEchoNonNull( - classList: [AllNullableTypes], completion: @escaping (Result<[AllNullableTypes], Error>) -> Void - ) - func callFlutterEcho( - _ map: [AnyHashable?: Any?], completion: @escaping (Result<[AnyHashable?: Any?], Error>) -> Void - ) - func callFlutterEcho( - stringMap: [String?: String?], completion: @escaping (Result<[String?: String?], Error>) -> Void - ) - func callFlutterEcho( - intMap: [Int64?: Int64?], completion: @escaping (Result<[Int64?: Int64?], Error>) -> Void) - func callFlutterEcho( - enumMap: [AnEnum?: AnEnum?], completion: @escaping (Result<[AnEnum?: AnEnum?], Error>) -> Void) - func callFlutterEcho( - classMap: [Int64?: AllNullableTypes?], - completion: @escaping (Result<[Int64?: AllNullableTypes?], Error>) -> Void) - func callFlutterEchoNonNull( - stringMap: [String: String], completion: @escaping (Result<[String: String], Error>) -> Void) - func callFlutterEchoNonNull( - intMap: [Int64: Int64], completion: @escaping (Result<[Int64: Int64], Error>) -> Void) - func callFlutterEchoNonNull( - enumMap: [AnEnum: AnEnum], completion: @escaping (Result<[AnEnum: AnEnum], Error>) -> Void) - func callFlutterEchoNonNull( - classMap: [Int64: AllNullableTypes], - completion: @escaping (Result<[Int64: AllNullableTypes], Error>) -> Void) + func callFlutterEcho(enumList: [AnEnum?], completion: @escaping (Result<[AnEnum?], Error>) -> Void) + func callFlutterEcho(classList: [AllNullableTypes?], completion: @escaping (Result<[AllNullableTypes?], Error>) -> Void) + func callFlutterEchoNonNull(enumList: [AnEnum], completion: @escaping (Result<[AnEnum], Error>) -> Void) + func callFlutterEchoNonNull(classList: [AllNullableTypes], completion: @escaping (Result<[AllNullableTypes], Error>) -> Void) + func callFlutterEcho(_ map: [AnyHashable?: Any?], completion: @escaping (Result<[AnyHashable?: Any?], Error>) -> Void) + func callFlutterEcho(stringMap: [String?: String?], completion: @escaping (Result<[String?: String?], Error>) -> Void) + func callFlutterEcho(intMap: [Int64?: Int64?], completion: @escaping (Result<[Int64?: Int64?], Error>) -> Void) + func callFlutterEcho(enumMap: [AnEnum?: AnEnum?], completion: @escaping (Result<[AnEnum?: AnEnum?], Error>) -> Void) + func callFlutterEcho(classMap: [Int64?: AllNullableTypes?], completion: @escaping (Result<[Int64?: AllNullableTypes?], Error>) -> Void) + func callFlutterEchoNonNull(stringMap: [String: String], completion: @escaping (Result<[String: String], Error>) -> Void) + func callFlutterEchoNonNull(intMap: [Int64: Int64], completion: @escaping (Result<[Int64: Int64], Error>) -> Void) + func callFlutterEchoNonNull(enumMap: [AnEnum: AnEnum], completion: @escaping (Result<[AnEnum: AnEnum], Error>) -> Void) + func callFlutterEchoNonNull(classMap: [Int64: AllNullableTypes], completion: @escaping (Result<[Int64: AllNullableTypes], Error>) -> Void) func callFlutterEcho(_ anEnum: AnEnum, completion: @escaping (Result) -> Void) - func callFlutterEcho( - _ anotherEnum: AnotherEnum, completion: @escaping (Result) -> Void) + func callFlutterEcho(_ anotherEnum: AnotherEnum, completion: @escaping (Result) -> Void) func callFlutterEchoNullable(_ aBool: Bool?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullable( - _ anInt: Int64?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullable( - _ aDouble: Double?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullable( - _ aString: String?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullable( - _ list: FlutterStandardTypedData?, - completion: @escaping (Result) -> Void) - func callFlutterEchoNullable( - _ list: [Any?]?, completion: @escaping (Result<[Any?]?, Error>) -> Void) - func callFlutterEchoNullable( - enumList: [AnEnum?]?, completion: @escaping (Result<[AnEnum?]?, Error>) -> Void) - func callFlutterEchoNullable( - classList: [AllNullableTypes?]?, - completion: @escaping (Result<[AllNullableTypes?]?, Error>) -> Void) - func callFlutterEchoNullableNonNull( - enumList: [AnEnum]?, completion: @escaping (Result<[AnEnum]?, Error>) -> Void) - func callFlutterEchoNullableNonNull( - classList: [AllNullableTypes]?, - completion: @escaping (Result<[AllNullableTypes]?, Error>) -> Void) - func callFlutterEchoNullable( - _ map: [AnyHashable?: Any?]?, - completion: @escaping (Result<[AnyHashable?: Any?]?, Error>) -> Void) - func callFlutterEchoNullable( - stringMap: [String?: String?]?, - completion: @escaping (Result<[String?: String?]?, Error>) -> Void) - func callFlutterEchoNullable( - intMap: [Int64?: Int64?]?, completion: @escaping (Result<[Int64?: Int64?]?, Error>) -> Void) - func callFlutterEchoNullable( - enumMap: [AnEnum?: AnEnum?]?, completion: @escaping (Result<[AnEnum?: AnEnum?]?, Error>) -> Void - ) - func callFlutterEchoNullable( - classMap: [Int64?: AllNullableTypes?]?, - completion: @escaping (Result<[Int64?: AllNullableTypes?]?, Error>) -> Void) - func callFlutterEchoNullableNonNull( - stringMap: [String: String]?, completion: @escaping (Result<[String: String]?, Error>) -> Void) - func callFlutterEchoNullableNonNull( - intMap: [Int64: Int64]?, completion: @escaping (Result<[Int64: Int64]?, Error>) -> Void) - func callFlutterEchoNullableNonNull( - enumMap: [AnEnum: AnEnum]?, completion: @escaping (Result<[AnEnum: AnEnum]?, Error>) -> Void) - func callFlutterEchoNullableNonNull( - classMap: [Int64: AllNullableTypes]?, - completion: @escaping (Result<[Int64: AllNullableTypes]?, Error>) -> Void) - func callFlutterEchoNullable( - _ anEnum: AnEnum?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullable( - _ anotherEnum: AnotherEnum?, completion: @escaping (Result) -> Void) - func callFlutterSmallApiEcho( - _ aString: String, completion: @escaping (Result) -> Void) + func callFlutterEchoNullable(_ anInt: Int64?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullable(_ aDouble: Double?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullable(_ aString: String?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullable(_ list: FlutterStandardTypedData?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullable(_ list: [Any?]?, completion: @escaping (Result<[Any?]?, Error>) -> Void) + func callFlutterEchoNullable(enumList: [AnEnum?]?, completion: @escaping (Result<[AnEnum?]?, Error>) -> Void) + func callFlutterEchoNullable(classList: [AllNullableTypes?]?, completion: @escaping (Result<[AllNullableTypes?]?, Error>) -> Void) + func callFlutterEchoNullableNonNull(enumList: [AnEnum]?, completion: @escaping (Result<[AnEnum]?, Error>) -> Void) + func callFlutterEchoNullableNonNull(classList: [AllNullableTypes]?, completion: @escaping (Result<[AllNullableTypes]?, Error>) -> Void) + func callFlutterEchoNullable(_ map: [AnyHashable?: Any?]?, completion: @escaping (Result<[AnyHashable?: Any?]?, Error>) -> Void) + func callFlutterEchoNullable(stringMap: [String?: String?]?, completion: @escaping (Result<[String?: String?]?, Error>) -> Void) + func callFlutterEchoNullable(intMap: [Int64?: Int64?]?, completion: @escaping (Result<[Int64?: Int64?]?, Error>) -> Void) + func callFlutterEchoNullable(enumMap: [AnEnum?: AnEnum?]?, completion: @escaping (Result<[AnEnum?: AnEnum?]?, Error>) -> Void) + func callFlutterEchoNullable(classMap: [Int64?: AllNullableTypes?]?, completion: @escaping (Result<[Int64?: AllNullableTypes?]?, Error>) -> Void) + func callFlutterEchoNullableNonNull(stringMap: [String: String]?, completion: @escaping (Result<[String: String]?, Error>) -> Void) + func callFlutterEchoNullableNonNull(intMap: [Int64: Int64]?, completion: @escaping (Result<[Int64: Int64]?, Error>) -> Void) + func callFlutterEchoNullableNonNull(enumMap: [AnEnum: AnEnum]?, completion: @escaping (Result<[AnEnum: AnEnum]?, Error>) -> Void) + func callFlutterEchoNullableNonNull(classMap: [Int64: AllNullableTypes]?, completion: @escaping (Result<[Int64: AllNullableTypes]?, Error>) -> Void) + func callFlutterEchoNullable(_ anEnum: AnEnum?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullable(_ anotherEnum: AnotherEnum?, completion: @escaping (Result) -> Void) + func callFlutterSmallApiEcho(_ aString: String, completion: @escaping (Result) -> Void) } /// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. class HostIntegrationCoreApiSetup { static var codec: FlutterStandardMessageCodec { CoreTestsPigeonCodec.shared } /// Sets up an instance of `HostIntegrationCoreApi` to handle messages through the `binaryMessenger`. - static func setUp( - binaryMessenger: FlutterBinaryMessenger, api: HostIntegrationCoreApi?, - messageChannelSuffix: String = "" - ) { + static func setUp(binaryMessenger: FlutterBinaryMessenger, api: HostIntegrationCoreApi?, messageChannelSuffix: String = "") { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" /// A no-op function taking no arguments and returning no value, to sanity /// test basic calling. - let noopChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let noopChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { noopChannel.setMessageHandler { _, reply in do { @@ -1108,10 +1007,7 @@ class HostIntegrationCoreApiSetup { noopChannel.setMessageHandler(nil) } /// Returns the passed object, to test serialization and deserialization. - let echoAllTypesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllTypes\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAllTypesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllTypes\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAllTypesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1127,10 +1023,7 @@ class HostIntegrationCoreApiSetup { echoAllTypesChannel.setMessageHandler(nil) } /// Returns an error, to test error handling. - let throwErrorChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwError\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let throwErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwError\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwErrorChannel.setMessageHandler { _, reply in do { @@ -1144,10 +1037,7 @@ class HostIntegrationCoreApiSetup { throwErrorChannel.setMessageHandler(nil) } /// Returns an error from a void function, to test error handling. - let throwErrorFromVoidChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwErrorFromVoid\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let throwErrorFromVoidChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwErrorFromVoid\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwErrorFromVoidChannel.setMessageHandler { _, reply in do { @@ -1161,10 +1051,7 @@ class HostIntegrationCoreApiSetup { throwErrorFromVoidChannel.setMessageHandler(nil) } /// Returns a Flutter error, to test error handling. - let throwFlutterErrorChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwFlutterError\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let throwFlutterErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwFlutterError\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwFlutterErrorChannel.setMessageHandler { _, reply in do { @@ -1178,10 +1065,7 @@ class HostIntegrationCoreApiSetup { throwFlutterErrorChannel.setMessageHandler(nil) } /// Returns passed in int. - let echoIntChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoInt\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoInt\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1197,10 +1081,7 @@ class HostIntegrationCoreApiSetup { echoIntChannel.setMessageHandler(nil) } /// Returns passed in double. - let echoDoubleChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoDouble\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoDouble\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1216,10 +1097,7 @@ class HostIntegrationCoreApiSetup { echoDoubleChannel.setMessageHandler(nil) } /// Returns the passed in boolean. - let echoBoolChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoBool\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoBool\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1235,10 +1113,7 @@ class HostIntegrationCoreApiSetup { echoBoolChannel.setMessageHandler(nil) } /// Returns the passed in string. - let echoStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1254,10 +1129,7 @@ class HostIntegrationCoreApiSetup { echoStringChannel.setMessageHandler(nil) } /// Returns the passed in Uint8List. - let echoUint8ListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoUint8List\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoUint8List\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1273,10 +1145,7 @@ class HostIntegrationCoreApiSetup { echoUint8ListChannel.setMessageHandler(nil) } /// Returns the passed in generic Object. - let echoObjectChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoObject\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoObjectChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoObject\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoObjectChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1292,10 +1161,7 @@ class HostIntegrationCoreApiSetup { echoObjectChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1311,10 +1177,7 @@ class HostIntegrationCoreApiSetup { echoListChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1330,10 +1193,7 @@ class HostIntegrationCoreApiSetup { echoEnumListChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1349,10 +1209,7 @@ class HostIntegrationCoreApiSetup { echoClassListChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoNonNullEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNonNullEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNonNullEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1368,10 +1225,7 @@ class HostIntegrationCoreApiSetup { echoNonNullEnumListChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoNonNullClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNonNullClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNonNullClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1387,10 +1241,7 @@ class HostIntegrationCoreApiSetup { echoNonNullClassListChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1406,10 +1257,7 @@ class HostIntegrationCoreApiSetup { echoMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1425,10 +1273,7 @@ class HostIntegrationCoreApiSetup { echoStringMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1444,10 +1289,7 @@ class HostIntegrationCoreApiSetup { echoIntMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1463,10 +1305,7 @@ class HostIntegrationCoreApiSetup { echoEnumMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1482,10 +1321,7 @@ class HostIntegrationCoreApiSetup { echoClassMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNonNullStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNonNullStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNonNullStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1501,10 +1337,7 @@ class HostIntegrationCoreApiSetup { echoNonNullStringMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNonNullIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNonNullIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNonNullIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1520,10 +1353,7 @@ class HostIntegrationCoreApiSetup { echoNonNullIntMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNonNullEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNonNullEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNonNullEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1539,10 +1369,7 @@ class HostIntegrationCoreApiSetup { echoNonNullEnumMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNonNullClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNonNullClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNonNullClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1558,10 +1385,7 @@ class HostIntegrationCoreApiSetup { echoNonNullClassMapChannel.setMessageHandler(nil) } /// Returns the passed class to test nested class serialization and deserialization. - let echoClassWrapperChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassWrapper\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoClassWrapperChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassWrapper\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoClassWrapperChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1577,10 +1401,7 @@ class HostIntegrationCoreApiSetup { echoClassWrapperChannel.setMessageHandler(nil) } /// Returns the passed enum to test serialization and deserialization. - let echoEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1596,10 +1417,7 @@ class HostIntegrationCoreApiSetup { echoEnumChannel.setMessageHandler(nil) } /// Returns the passed enum to test serialization and deserialization. - let echoAnotherEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAnotherEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAnotherEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1615,10 +1433,7 @@ class HostIntegrationCoreApiSetup { echoAnotherEnumChannel.setMessageHandler(nil) } /// Returns the default string. - let echoNamedDefaultStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedDefaultString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNamedDefaultStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedDefaultString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNamedDefaultStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1634,10 +1449,7 @@ class HostIntegrationCoreApiSetup { echoNamedDefaultStringChannel.setMessageHandler(nil) } /// Returns passed in double. - let echoOptionalDefaultDoubleChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalDefaultDouble\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoOptionalDefaultDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalDefaultDouble\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoOptionalDefaultDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1653,10 +1465,7 @@ class HostIntegrationCoreApiSetup { echoOptionalDefaultDoubleChannel.setMessageHandler(nil) } /// Returns passed in int. - let echoRequiredIntChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoRequiredInt\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoRequiredIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoRequiredInt\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoRequiredIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1672,10 +1481,7 @@ class HostIntegrationCoreApiSetup { echoRequiredIntChannel.setMessageHandler(nil) } /// Returns the passed object, to test serialization and deserialization. - let echoAllNullableTypesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypes\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAllNullableTypesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypes\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAllNullableTypesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1691,10 +1497,7 @@ class HostIntegrationCoreApiSetup { echoAllNullableTypesChannel.setMessageHandler(nil) } /// Returns the passed object, to test serialization and deserialization. - let echoAllNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAllNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAllNullableTypesWithoutRecursionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1711,10 +1514,7 @@ class HostIntegrationCoreApiSetup { } /// Returns the inner `aString` value from the wrapped object, to test /// sending of nested objects. - let extractNestedNullableStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.extractNestedNullableString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let extractNestedNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.extractNestedNullableString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { extractNestedNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1731,10 +1531,7 @@ class HostIntegrationCoreApiSetup { } /// Returns the inner `aString` value from the wrapped object, to test /// sending of nested objects. - let createNestedNullableStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.createNestedNullableString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let createNestedNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.createNestedNullableString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { createNestedNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1750,10 +1547,7 @@ class HostIntegrationCoreApiSetup { createNestedNullableStringChannel.setMessageHandler(nil) } /// Returns passed in arguments of multiple types. - let sendMultipleNullableTypesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypes\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let sendMultipleNullableTypesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypes\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { sendMultipleNullableTypesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1761,8 +1555,7 @@ class HostIntegrationCoreApiSetup { let aNullableIntArg: Int64? = nilOrValue(args[1]) let aNullableStringArg: String? = nilOrValue(args[2]) do { - let result = try api.sendMultipleNullableTypes( - aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg) + let result = try api.sendMultipleNullableTypes(aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1772,10 +1565,7 @@ class HostIntegrationCoreApiSetup { sendMultipleNullableTypesChannel.setMessageHandler(nil) } /// Returns passed in arguments of multiple types. - let sendMultipleNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let sendMultipleNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { sendMultipleNullableTypesWithoutRecursionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1783,8 +1573,7 @@ class HostIntegrationCoreApiSetup { let aNullableIntArg: Int64? = nilOrValue(args[1]) let aNullableStringArg: String? = nilOrValue(args[2]) do { - let result = try api.sendMultipleNullableTypesWithoutRecursion( - aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg) + let result = try api.sendMultipleNullableTypesWithoutRecursion(aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1794,10 +1583,7 @@ class HostIntegrationCoreApiSetup { sendMultipleNullableTypesWithoutRecursionChannel.setMessageHandler(nil) } /// Returns passed in int. - let echoNullableIntChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableInt\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableInt\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1813,10 +1599,7 @@ class HostIntegrationCoreApiSetup { echoNullableIntChannel.setMessageHandler(nil) } /// Returns passed in double. - let echoNullableDoubleChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableDouble\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableDouble\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1832,10 +1615,7 @@ class HostIntegrationCoreApiSetup { echoNullableDoubleChannel.setMessageHandler(nil) } /// Returns the passed in boolean. - let echoNullableBoolChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableBool\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableBool\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1851,10 +1631,7 @@ class HostIntegrationCoreApiSetup { echoNullableBoolChannel.setMessageHandler(nil) } /// Returns the passed in string. - let echoNullableStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1870,10 +1647,7 @@ class HostIntegrationCoreApiSetup { echoNullableStringChannel.setMessageHandler(nil) } /// Returns the passed in Uint8List. - let echoNullableUint8ListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableUint8List\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableUint8List\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1889,10 +1663,7 @@ class HostIntegrationCoreApiSetup { echoNullableUint8ListChannel.setMessageHandler(nil) } /// Returns the passed in generic Object. - let echoNullableObjectChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableObject\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableObjectChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableObject\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableObjectChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1908,10 +1679,7 @@ class HostIntegrationCoreApiSetup { echoNullableObjectChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoNullableListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1927,10 +1695,7 @@ class HostIntegrationCoreApiSetup { echoNullableListChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoNullableEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1946,10 +1711,7 @@ class HostIntegrationCoreApiSetup { echoNullableEnumListChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoNullableClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1965,10 +1727,7 @@ class HostIntegrationCoreApiSetup { echoNullableClassListChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoNullableNonNullEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableNonNullEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableNonNullEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1984,10 +1743,7 @@ class HostIntegrationCoreApiSetup { echoNullableNonNullEnumListChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoNullableNonNullClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableNonNullClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableNonNullClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2003,10 +1759,7 @@ class HostIntegrationCoreApiSetup { echoNullableNonNullClassListChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2022,10 +1775,7 @@ class HostIntegrationCoreApiSetup { echoNullableMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2041,10 +1791,7 @@ class HostIntegrationCoreApiSetup { echoNullableStringMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2060,10 +1807,7 @@ class HostIntegrationCoreApiSetup { echoNullableIntMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2079,10 +1823,7 @@ class HostIntegrationCoreApiSetup { echoNullableEnumMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2098,10 +1839,7 @@ class HostIntegrationCoreApiSetup { echoNullableClassMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableNonNullStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableNonNullStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableNonNullStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2117,10 +1855,7 @@ class HostIntegrationCoreApiSetup { echoNullableNonNullStringMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableNonNullIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableNonNullIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableNonNullIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2136,10 +1871,7 @@ class HostIntegrationCoreApiSetup { echoNullableNonNullIntMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableNonNullEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableNonNullEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableNonNullEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2155,10 +1887,7 @@ class HostIntegrationCoreApiSetup { echoNullableNonNullEnumMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableNonNullClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableNonNullClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableNonNullClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2173,10 +1902,7 @@ class HostIntegrationCoreApiSetup { } else { echoNullableNonNullClassMapChannel.setMessageHandler(nil) } - let echoNullableEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2191,10 +1917,7 @@ class HostIntegrationCoreApiSetup { } else { echoNullableEnumChannel.setMessageHandler(nil) } - let echoAnotherNullableEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAnotherNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAnotherNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2210,10 +1933,7 @@ class HostIntegrationCoreApiSetup { echoAnotherNullableEnumChannel.setMessageHandler(nil) } /// Returns passed in int. - let echoOptionalNullableIntChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalNullableInt\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoOptionalNullableIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalNullableInt\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoOptionalNullableIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2229,10 +1949,7 @@ class HostIntegrationCoreApiSetup { echoOptionalNullableIntChannel.setMessageHandler(nil) } /// Returns the passed in string. - let echoNamedNullableStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedNullableString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNamedNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedNullableString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNamedNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2249,10 +1966,7 @@ class HostIntegrationCoreApiSetup { } /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. - let noopAsyncChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noopAsync\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let noopAsyncChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noopAsync\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { noopAsyncChannel.setMessageHandler { _, reply in api.noopAsync { result in @@ -2268,10 +1982,7 @@ class HostIntegrationCoreApiSetup { noopAsyncChannel.setMessageHandler(nil) } /// Returns passed in int asynchronously. - let echoAsyncIntChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncInt\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncInt\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2289,10 +2000,7 @@ class HostIntegrationCoreApiSetup { echoAsyncIntChannel.setMessageHandler(nil) } /// Returns passed in double asynchronously. - let echoAsyncDoubleChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncDouble\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncDouble\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2310,10 +2018,7 @@ class HostIntegrationCoreApiSetup { echoAsyncDoubleChannel.setMessageHandler(nil) } /// Returns the passed in boolean asynchronously. - let echoAsyncBoolChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncBool\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncBool\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2331,10 +2036,7 @@ class HostIntegrationCoreApiSetup { echoAsyncBoolChannel.setMessageHandler(nil) } /// Returns the passed string asynchronously. - let echoAsyncStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2352,10 +2054,7 @@ class HostIntegrationCoreApiSetup { echoAsyncStringChannel.setMessageHandler(nil) } /// Returns the passed in Uint8List asynchronously. - let echoAsyncUint8ListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncUint8List\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncUint8List\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2373,10 +2072,7 @@ class HostIntegrationCoreApiSetup { echoAsyncUint8ListChannel.setMessageHandler(nil) } /// Returns the passed in generic Object asynchronously. - let echoAsyncObjectChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncObject\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncObjectChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncObject\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncObjectChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2394,10 +2090,7 @@ class HostIntegrationCoreApiSetup { echoAsyncObjectChannel.setMessageHandler(nil) } /// Returns the passed list, to test asynchronous serialization and deserialization. - let echoAsyncListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2415,10 +2108,7 @@ class HostIntegrationCoreApiSetup { echoAsyncListChannel.setMessageHandler(nil) } /// Returns the passed list, to test asynchronous serialization and deserialization. - let echoAsyncEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2436,10 +2126,7 @@ class HostIntegrationCoreApiSetup { echoAsyncEnumListChannel.setMessageHandler(nil) } /// Returns the passed list, to test asynchronous serialization and deserialization. - let echoAsyncClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2457,10 +2144,7 @@ class HostIntegrationCoreApiSetup { echoAsyncClassListChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2478,10 +2162,7 @@ class HostIntegrationCoreApiSetup { echoAsyncMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2499,10 +2180,7 @@ class HostIntegrationCoreApiSetup { echoAsyncStringMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2520,10 +2198,7 @@ class HostIntegrationCoreApiSetup { echoAsyncIntMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2541,10 +2216,7 @@ class HostIntegrationCoreApiSetup { echoAsyncEnumMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2562,10 +2234,7 @@ class HostIntegrationCoreApiSetup { echoAsyncClassMapChannel.setMessageHandler(nil) } /// Returns the passed enum, to test asynchronous serialization and deserialization. - let echoAsyncEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2583,10 +2252,7 @@ class HostIntegrationCoreApiSetup { echoAsyncEnumChannel.setMessageHandler(nil) } /// Returns the passed enum, to test asynchronous serialization and deserialization. - let echoAnotherAsyncEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAnotherAsyncEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAnotherAsyncEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2604,10 +2270,7 @@ class HostIntegrationCoreApiSetup { echoAnotherAsyncEnumChannel.setMessageHandler(nil) } /// Responds with an error from an async function returning a value. - let throwAsyncErrorChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncError\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let throwAsyncErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncError\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwAsyncErrorChannel.setMessageHandler { _, reply in api.throwAsyncError { result in @@ -2623,10 +2286,7 @@ class HostIntegrationCoreApiSetup { throwAsyncErrorChannel.setMessageHandler(nil) } /// Responds with an error from an async void function. - let throwAsyncErrorFromVoidChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncErrorFromVoid\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let throwAsyncErrorFromVoidChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncErrorFromVoid\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwAsyncErrorFromVoidChannel.setMessageHandler { _, reply in api.throwAsyncErrorFromVoid { result in @@ -2642,10 +2302,7 @@ class HostIntegrationCoreApiSetup { throwAsyncErrorFromVoidChannel.setMessageHandler(nil) } /// Responds with a Flutter error from an async function returning a value. - let throwAsyncFlutterErrorChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncFlutterError\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let throwAsyncFlutterErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncFlutterError\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwAsyncFlutterErrorChannel.setMessageHandler { _, reply in api.throwAsyncFlutterError { result in @@ -2661,10 +2318,7 @@ class HostIntegrationCoreApiSetup { throwAsyncFlutterErrorChannel.setMessageHandler(nil) } /// Returns the passed object, to test async serialization and deserialization. - let echoAsyncAllTypesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncAllTypes\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncAllTypesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncAllTypes\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncAllTypesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2682,10 +2336,7 @@ class HostIntegrationCoreApiSetup { echoAsyncAllTypesChannel.setMessageHandler(nil) } /// Returns the passed object, to test serialization and deserialization. - let echoAsyncNullableAllNullableTypesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableAllNullableTypesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableAllNullableTypesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2703,10 +2354,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableAllNullableTypesChannel.setMessageHandler(nil) } /// Returns the passed object, to test serialization and deserialization. - let echoAsyncNullableAllNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableAllNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableAllNullableTypesWithoutRecursionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2724,10 +2372,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableAllNullableTypesWithoutRecursionChannel.setMessageHandler(nil) } /// Returns passed in int asynchronously. - let echoAsyncNullableIntChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableInt\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableInt\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2745,10 +2390,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableIntChannel.setMessageHandler(nil) } /// Returns passed in double asynchronously. - let echoAsyncNullableDoubleChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableDouble\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableDouble\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2766,10 +2408,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableDoubleChannel.setMessageHandler(nil) } /// Returns the passed in boolean asynchronously. - let echoAsyncNullableBoolChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableBool\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableBool\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2787,10 +2426,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableBoolChannel.setMessageHandler(nil) } /// Returns the passed string asynchronously. - let echoAsyncNullableStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2808,10 +2444,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableStringChannel.setMessageHandler(nil) } /// Returns the passed in Uint8List asynchronously. - let echoAsyncNullableUint8ListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableUint8List\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableUint8List\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2829,10 +2462,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableUint8ListChannel.setMessageHandler(nil) } /// Returns the passed in generic Object asynchronously. - let echoAsyncNullableObjectChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableObject\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableObjectChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableObject\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableObjectChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2850,10 +2480,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableObjectChannel.setMessageHandler(nil) } /// Returns the passed list, to test asynchronous serialization and deserialization. - let echoAsyncNullableListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2871,10 +2498,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableListChannel.setMessageHandler(nil) } /// Returns the passed list, to test asynchronous serialization and deserialization. - let echoAsyncNullableEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2892,10 +2516,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableEnumListChannel.setMessageHandler(nil) } /// Returns the passed list, to test asynchronous serialization and deserialization. - let echoAsyncNullableClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2913,10 +2534,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableClassListChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncNullableMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2934,10 +2552,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncNullableStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2955,10 +2570,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableStringMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncNullableIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2976,10 +2588,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableIntMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncNullableEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2997,10 +2606,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableEnumMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncNullableClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3018,10 +2624,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableClassMapChannel.setMessageHandler(nil) } /// Returns the passed enum, to test asynchronous serialization and deserialization. - let echoAsyncNullableEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3039,10 +2642,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableEnumChannel.setMessageHandler(nil) } /// Returns the passed enum, to test asynchronous serialization and deserialization. - let echoAnotherAsyncNullableEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAnotherAsyncNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAnotherAsyncNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3059,10 +2659,7 @@ class HostIntegrationCoreApiSetup { } else { echoAnotherAsyncNullableEnumChannel.setMessageHandler(nil) } - let callFlutterNoopChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterNoopChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterNoopChannel.setMessageHandler { _, reply in api.callFlutterNoop { result in @@ -3077,10 +2674,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterNoopChannel.setMessageHandler(nil) } - let callFlutterThrowErrorChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowError\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterThrowErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowError\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterThrowErrorChannel.setMessageHandler { _, reply in api.callFlutterThrowError { result in @@ -3095,10 +2689,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterThrowErrorChannel.setMessageHandler(nil) } - let callFlutterThrowErrorFromVoidChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterThrowErrorFromVoidChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterThrowErrorFromVoidChannel.setMessageHandler { _, reply in api.callFlutterThrowErrorFromVoid { result in @@ -3113,10 +2704,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterThrowErrorFromVoidChannel.setMessageHandler(nil) } - let callFlutterEchoAllTypesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllTypes\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoAllTypesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllTypes\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoAllTypesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3133,10 +2721,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoAllTypesChannel.setMessageHandler(nil) } - let callFlutterEchoAllNullableTypesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoAllNullableTypesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoAllNullableTypesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3153,19 +2738,14 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoAllNullableTypesChannel.setMessageHandler(nil) } - let callFlutterSendMultipleNullableTypesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterSendMultipleNullableTypesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterSendMultipleNullableTypesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let aNullableBoolArg: Bool? = nilOrValue(args[0]) let aNullableIntArg: Int64? = nilOrValue(args[1]) let aNullableStringArg: String? = nilOrValue(args[2]) - api.callFlutterSendMultipleNullableTypes( - aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg - ) { result in + api.callFlutterSendMultipleNullableTypes(aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -3177,10 +2757,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterSendMultipleNullableTypesChannel.setMessageHandler(nil) } - let callFlutterEchoAllNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoAllNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoAllNullableTypesWithoutRecursionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3197,20 +2774,14 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoAllNullableTypesWithoutRecursionChannel.setMessageHandler(nil) } - let callFlutterSendMultipleNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterSendMultipleNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { - callFlutterSendMultipleNullableTypesWithoutRecursionChannel.setMessageHandler { - message, reply in + callFlutterSendMultipleNullableTypesWithoutRecursionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let aNullableBoolArg: Bool? = nilOrValue(args[0]) let aNullableIntArg: Int64? = nilOrValue(args[1]) let aNullableStringArg: String? = nilOrValue(args[2]) - api.callFlutterSendMultipleNullableTypesWithoutRecursion( - aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg - ) { result in + api.callFlutterSendMultipleNullableTypesWithoutRecursion(aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -3222,10 +2793,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterSendMultipleNullableTypesWithoutRecursionChannel.setMessageHandler(nil) } - let callFlutterEchoBoolChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoBool\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoBool\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3242,10 +2810,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoBoolChannel.setMessageHandler(nil) } - let callFlutterEchoIntChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoInt\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoInt\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3262,10 +2827,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoIntChannel.setMessageHandler(nil) } - let callFlutterEchoDoubleChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoDouble\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoDouble\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3282,10 +2844,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoDoubleChannel.setMessageHandler(nil) } - let callFlutterEchoStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3302,10 +2861,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoStringChannel.setMessageHandler(nil) } - let callFlutterEchoUint8ListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoUint8List\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoUint8List\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3322,10 +2878,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoUint8ListChannel.setMessageHandler(nil) } - let callFlutterEchoListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3342,10 +2895,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoListChannel.setMessageHandler(nil) } - let callFlutterEchoEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3362,10 +2912,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoEnumListChannel.setMessageHandler(nil) } - let callFlutterEchoClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3382,10 +2929,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoClassListChannel.setMessageHandler(nil) } - let callFlutterEchoNonNullEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNonNullEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNonNullEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3402,10 +2946,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNonNullEnumListChannel.setMessageHandler(nil) } - let callFlutterEchoNonNullClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNonNullClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNonNullClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3422,10 +2963,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNonNullClassListChannel.setMessageHandler(nil) } - let callFlutterEchoMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3442,10 +2980,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoMapChannel.setMessageHandler(nil) } - let callFlutterEchoStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3462,10 +2997,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoStringMapChannel.setMessageHandler(nil) } - let callFlutterEchoIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3482,10 +3014,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoIntMapChannel.setMessageHandler(nil) } - let callFlutterEchoEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3502,10 +3031,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoEnumMapChannel.setMessageHandler(nil) } - let callFlutterEchoClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3522,10 +3048,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoClassMapChannel.setMessageHandler(nil) } - let callFlutterEchoNonNullStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNonNullStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNonNullStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3542,10 +3065,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNonNullStringMapChannel.setMessageHandler(nil) } - let callFlutterEchoNonNullIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNonNullIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNonNullIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3562,10 +3082,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNonNullIntMapChannel.setMessageHandler(nil) } - let callFlutterEchoNonNullEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNonNullEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNonNullEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3582,10 +3099,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNonNullEnumMapChannel.setMessageHandler(nil) } - let callFlutterEchoNonNullClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNonNullClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNonNullClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3602,10 +3116,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNonNullClassMapChannel.setMessageHandler(nil) } - let callFlutterEchoEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3622,10 +3133,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoEnumChannel.setMessageHandler(nil) } - let callFlutterEchoAnotherEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoAnotherEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoAnotherEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3642,10 +3150,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoAnotherEnumChannel.setMessageHandler(nil) } - let callFlutterEchoNullableBoolChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3662,10 +3167,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableBoolChannel.setMessageHandler(nil) } - let callFlutterEchoNullableIntChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableInt\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableInt\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3682,10 +3184,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableIntChannel.setMessageHandler(nil) } - let callFlutterEchoNullableDoubleChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableDouble\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableDouble\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3702,10 +3201,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableDoubleChannel.setMessageHandler(nil) } - let callFlutterEchoNullableStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3722,10 +3218,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableStringChannel.setMessageHandler(nil) } - let callFlutterEchoNullableUint8ListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableUint8List\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableUint8List\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3742,10 +3235,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableUint8ListChannel.setMessageHandler(nil) } - let callFlutterEchoNullableListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3762,10 +3252,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableListChannel.setMessageHandler(nil) } - let callFlutterEchoNullableEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3782,10 +3269,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableEnumListChannel.setMessageHandler(nil) } - let callFlutterEchoNullableClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3802,10 +3286,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableClassListChannel.setMessageHandler(nil) } - let callFlutterEchoNullableNonNullEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableNonNullEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableNonNullEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3822,10 +3303,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableNonNullEnumListChannel.setMessageHandler(nil) } - let callFlutterEchoNullableNonNullClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableNonNullClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableNonNullClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3842,10 +3320,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableNonNullClassListChannel.setMessageHandler(nil) } - let callFlutterEchoNullableMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3862,10 +3337,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3882,10 +3354,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableStringMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3902,10 +3371,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableIntMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3922,10 +3388,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableEnumMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3942,10 +3405,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableClassMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableNonNullStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableNonNullStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableNonNullStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3962,10 +3422,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableNonNullStringMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableNonNullIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableNonNullIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableNonNullIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3982,10 +3439,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableNonNullIntMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableNonNullEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableNonNullEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableNonNullEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4002,10 +3456,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableNonNullEnumMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableNonNullClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableNonNullClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableNonNullClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4022,10 +3473,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableNonNullClassMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4042,10 +3490,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableEnumChannel.setMessageHandler(nil) } - let callFlutterEchoAnotherNullableEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoAnotherNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoAnotherNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4062,10 +3507,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoAnotherNullableEnumChannel.setMessageHandler(nil) } - let callFlutterSmallApiEchoStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterSmallApiEchoStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterSmallApiEchoStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4097,30 +3539,19 @@ protocol FlutterIntegrationCoreApiProtocol { /// Responds with an error from an async void function. func throwErrorFromVoid(completion: @escaping (Result) -> Void) /// Returns the passed object, to test serialization and deserialization. - func echo( - _ everythingArg: AllTypes, completion: @escaping (Result) -> Void) + func echo(_ everythingArg: AllTypes, completion: @escaping (Result) -> Void) /// Returns the passed object, to test serialization and deserialization. - func echoNullable( - _ everythingArg: AllNullableTypes?, - completion: @escaping (Result) -> Void) + func echoNullable(_ everythingArg: AllNullableTypes?, completion: @escaping (Result) -> Void) /// Returns passed in arguments of multiple types. /// /// Tests multiple-arity FlutterApi handling. - func sendMultipleNullableTypes( - aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, - aString aNullableStringArg: String?, - completion: @escaping (Result) -> Void) + func sendMultipleNullableTypes(aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, aString aNullableStringArg: String?, completion: @escaping (Result) -> Void) /// Returns the passed object, to test serialization and deserialization. - func echoNullable( - _ everythingArg: AllNullableTypesWithoutRecursion?, - completion: @escaping (Result) -> Void) + func echoNullable(_ everythingArg: AllNullableTypesWithoutRecursion?, completion: @escaping (Result) -> Void) /// Returns passed in arguments of multiple types. /// /// Tests multiple-arity FlutterApi handling. - func sendMultipleNullableTypesWithoutRecursion( - aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, - aString aNullableStringArg: String?, - completion: @escaping (Result) -> Void) + func sendMultipleNullableTypesWithoutRecursion(aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, aString aNullableStringArg: String?, completion: @escaping (Result) -> Void) /// Returns the passed boolean, to test serialization and deserialization. func echo(_ aBoolArg: Bool, completion: @escaping (Result) -> Void) /// Returns the passed int, to test serialization and deserialization. @@ -4130,141 +3561,81 @@ protocol FlutterIntegrationCoreApiProtocol { /// Returns the passed string, to test serialization and deserialization. func echo(_ aStringArg: String, completion: @escaping (Result) -> Void) /// Returns the passed byte list, to test serialization and deserialization. - func echo( - _ listArg: FlutterStandardTypedData, - completion: @escaping (Result) -> Void) + func echo(_ listArg: FlutterStandardTypedData, completion: @escaping (Result) -> Void) /// Returns the passed list, to test serialization and deserialization. func echo(_ listArg: [Any?], completion: @escaping (Result<[Any?], PigeonError>) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echo( - enumList enumListArg: [AnEnum?], completion: @escaping (Result<[AnEnum?], PigeonError>) -> Void) + func echo(enumList enumListArg: [AnEnum?], completion: @escaping (Result<[AnEnum?], PigeonError>) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echo( - classList classListArg: [AllNullableTypes?], - completion: @escaping (Result<[AllNullableTypes?], PigeonError>) -> Void) + func echo(classList classListArg: [AllNullableTypes?], completion: @escaping (Result<[AllNullableTypes?], PigeonError>) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echoNonNull( - enumList enumListArg: [AnEnum], completion: @escaping (Result<[AnEnum], PigeonError>) -> Void) + func echoNonNull(enumList enumListArg: [AnEnum], completion: @escaping (Result<[AnEnum], PigeonError>) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echoNonNull( - classList classListArg: [AllNullableTypes], - completion: @escaping (Result<[AllNullableTypes], PigeonError>) -> Void) + func echoNonNull(classList classListArg: [AllNullableTypes], completion: @escaping (Result<[AllNullableTypes], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echo( - _ mapArg: [AnyHashable?: Any?], - completion: @escaping (Result<[AnyHashable?: Any?], PigeonError>) -> Void) + func echo(_ mapArg: [AnyHashable?: Any?], completion: @escaping (Result<[AnyHashable?: Any?], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echo( - stringMap stringMapArg: [String?: String?], - completion: @escaping (Result<[String?: String?], PigeonError>) -> Void) + func echo(stringMap stringMapArg: [String?: String?], completion: @escaping (Result<[String?: String?], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echo( - intMap intMapArg: [Int64?: Int64?], - completion: @escaping (Result<[Int64?: Int64?], PigeonError>) -> Void) + func echo(intMap intMapArg: [Int64?: Int64?], completion: @escaping (Result<[Int64?: Int64?], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echo( - enumMap enumMapArg: [AnEnum?: AnEnum?], - completion: @escaping (Result<[AnEnum?: AnEnum?], PigeonError>) -> Void) + func echo(enumMap enumMapArg: [AnEnum?: AnEnum?], completion: @escaping (Result<[AnEnum?: AnEnum?], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echo( - classMap classMapArg: [Int64?: AllNullableTypes?], - completion: @escaping (Result<[Int64?: AllNullableTypes?], PigeonError>) -> Void) + func echo(classMap classMapArg: [Int64?: AllNullableTypes?], completion: @escaping (Result<[Int64?: AllNullableTypes?], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNonNull( - stringMap stringMapArg: [String: String], - completion: @escaping (Result<[String: String], PigeonError>) -> Void) + func echoNonNull(stringMap stringMapArg: [String: String], completion: @escaping (Result<[String: String], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNonNull( - intMap intMapArg: [Int64: Int64], - completion: @escaping (Result<[Int64: Int64], PigeonError>) -> Void) + func echoNonNull(intMap intMapArg: [Int64: Int64], completion: @escaping (Result<[Int64: Int64], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNonNull( - enumMap enumMapArg: [AnEnum: AnEnum], - completion: @escaping (Result<[AnEnum: AnEnum], PigeonError>) -> Void) + func echoNonNull(enumMap enumMapArg: [AnEnum: AnEnum], completion: @escaping (Result<[AnEnum: AnEnum], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNonNull( - classMap classMapArg: [Int64: AllNullableTypes], - completion: @escaping (Result<[Int64: AllNullableTypes], PigeonError>) -> Void) + func echoNonNull(classMap classMapArg: [Int64: AllNullableTypes], completion: @escaping (Result<[Int64: AllNullableTypes], PigeonError>) -> Void) /// Returns the passed enum to test serialization and deserialization. func echo(_ anEnumArg: AnEnum, completion: @escaping (Result) -> Void) /// Returns the passed enum to test serialization and deserialization. - func echo( - _ anotherEnumArg: AnotherEnum, completion: @escaping (Result) -> Void) + func echo(_ anotherEnumArg: AnotherEnum, completion: @escaping (Result) -> Void) /// Returns the passed boolean, to test serialization and deserialization. func echoNullable(_ aBoolArg: Bool?, completion: @escaping (Result) -> Void) /// Returns the passed int, to test serialization and deserialization. func echoNullable(_ anIntArg: Int64?, completion: @escaping (Result) -> Void) /// Returns the passed double, to test serialization and deserialization. - func echoNullable( - _ aDoubleArg: Double?, completion: @escaping (Result) -> Void) + func echoNullable(_ aDoubleArg: Double?, completion: @escaping (Result) -> Void) /// Returns the passed string, to test serialization and deserialization. - func echoNullable( - _ aStringArg: String?, completion: @escaping (Result) -> Void) + func echoNullable(_ aStringArg: String?, completion: @escaping (Result) -> Void) /// Returns the passed byte list, to test serialization and deserialization. - func echoNullable( - _ listArg: FlutterStandardTypedData?, - completion: @escaping (Result) -> Void) + func echoNullable(_ listArg: FlutterStandardTypedData?, completion: @escaping (Result) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echoNullable( - _ listArg: [Any?]?, completion: @escaping (Result<[Any?]?, PigeonError>) -> Void) + func echoNullable(_ listArg: [Any?]?, completion: @escaping (Result<[Any?]?, PigeonError>) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echoNullable( - enumList enumListArg: [AnEnum?]?, - completion: @escaping (Result<[AnEnum?]?, PigeonError>) -> Void) + func echoNullable(enumList enumListArg: [AnEnum?]?, completion: @escaping (Result<[AnEnum?]?, PigeonError>) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echoNullable( - classList classListArg: [AllNullableTypes?]?, - completion: @escaping (Result<[AllNullableTypes?]?, PigeonError>) -> Void) + func echoNullable(classList classListArg: [AllNullableTypes?]?, completion: @escaping (Result<[AllNullableTypes?]?, PigeonError>) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echoNullableNonNull( - enumList enumListArg: [AnEnum]?, completion: @escaping (Result<[AnEnum]?, PigeonError>) -> Void) + func echoNullableNonNull(enumList enumListArg: [AnEnum]?, completion: @escaping (Result<[AnEnum]?, PigeonError>) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echoNullableNonNull( - classList classListArg: [AllNullableTypes]?, - completion: @escaping (Result<[AllNullableTypes]?, PigeonError>) -> Void) + func echoNullableNonNull(classList classListArg: [AllNullableTypes]?, completion: @escaping (Result<[AllNullableTypes]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - _ mapArg: [AnyHashable?: Any?]?, - completion: @escaping (Result<[AnyHashable?: Any?]?, PigeonError>) -> Void) + func echoNullable(_ mapArg: [AnyHashable?: Any?]?, completion: @escaping (Result<[AnyHashable?: Any?]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - stringMap stringMapArg: [String?: String?]?, - completion: @escaping (Result<[String?: String?]?, PigeonError>) -> Void) + func echoNullable(stringMap stringMapArg: [String?: String?]?, completion: @escaping (Result<[String?: String?]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - intMap intMapArg: [Int64?: Int64?]?, - completion: @escaping (Result<[Int64?: Int64?]?, PigeonError>) -> Void) + func echoNullable(intMap intMapArg: [Int64?: Int64?]?, completion: @escaping (Result<[Int64?: Int64?]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - enumMap enumMapArg: [AnEnum?: AnEnum?]?, - completion: @escaping (Result<[AnEnum?: AnEnum?]?, PigeonError>) -> Void) + func echoNullable(enumMap enumMapArg: [AnEnum?: AnEnum?]?, completion: @escaping (Result<[AnEnum?: AnEnum?]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - classMap classMapArg: [Int64?: AllNullableTypes?]?, - completion: @escaping (Result<[Int64?: AllNullableTypes?]?, PigeonError>) -> Void) + func echoNullable(classMap classMapArg: [Int64?: AllNullableTypes?]?, completion: @escaping (Result<[Int64?: AllNullableTypes?]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull( - stringMap stringMapArg: [String: String]?, - completion: @escaping (Result<[String: String]?, PigeonError>) -> Void) + func echoNullableNonNull(stringMap stringMapArg: [String: String]?, completion: @escaping (Result<[String: String]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull( - intMap intMapArg: [Int64: Int64]?, - completion: @escaping (Result<[Int64: Int64]?, PigeonError>) -> Void) + func echoNullableNonNull(intMap intMapArg: [Int64: Int64]?, completion: @escaping (Result<[Int64: Int64]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull( - enumMap enumMapArg: [AnEnum: AnEnum]?, - completion: @escaping (Result<[AnEnum: AnEnum]?, PigeonError>) -> Void) + func echoNullableNonNull(enumMap enumMapArg: [AnEnum: AnEnum]?, completion: @escaping (Result<[AnEnum: AnEnum]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull( - classMap classMapArg: [Int64: AllNullableTypes]?, - completion: @escaping (Result<[Int64: AllNullableTypes]?, PigeonError>) -> Void) + func echoNullableNonNull(classMap classMapArg: [Int64: AllNullableTypes]?, completion: @escaping (Result<[Int64: AllNullableTypes]?, PigeonError>) -> Void) /// Returns the passed enum to test serialization and deserialization. - func echoNullable( - _ anEnumArg: AnEnum?, completion: @escaping (Result) -> Void) + func echoNullable(_ anEnumArg: AnEnum?, completion: @escaping (Result) -> Void) /// Returns the passed enum to test serialization and deserialization. - func echoNullable( - _ anotherEnumArg: AnotherEnum?, - completion: @escaping (Result) -> Void) + func echoNullable(_ anotherEnumArg: AnotherEnum?, completion: @escaping (Result) -> Void) /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. func noopAsync(completion: @escaping (Result) -> Void) @@ -4284,10 +3655,8 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { /// A no-op function taking no arguments and returning no value, to sanity /// test basic calling. func noop(completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noop\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noop\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage(nil) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4305,10 +3674,8 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Responds with an error from an async function returning a value. func throwError(completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwError\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwError\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage(nil) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4327,10 +3694,8 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Responds with an error from an async void function. func throwErrorFromVoid(completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwErrorFromVoid\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwErrorFromVoid\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage(nil) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4347,13 +3712,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed object, to test serialization and deserialization. - func echo( - _ everythingArg: AllTypes, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(_ everythingArg: AllTypes, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([everythingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4365,11 +3726,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! AllTypes completion(.success(result)) @@ -4377,14 +3734,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed object, to test serialization and deserialization. - func echoNullable( - _ everythingArg: AllNullableTypes?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(_ everythingArg: AllNullableTypes?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([everythingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4404,17 +3756,10 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { /// Returns passed in arguments of multiple types. /// /// Tests multiple-arity FlutterApi handling. - func sendMultipleNullableTypes( - aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, - aString aNullableStringArg: String?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([aNullableBoolArg, aNullableIntArg, aNullableStringArg] as [Any?]) { - response in + func sendMultipleNullableTypes(aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, aString aNullableStringArg: String?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([aNullableBoolArg, aNullableIntArg, aNullableStringArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) return @@ -4425,11 +3770,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! AllNullableTypes completion(.success(result)) @@ -4437,14 +3778,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed object, to test serialization and deserialization. - func echoNullable( - _ everythingArg: AllNullableTypesWithoutRecursion?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(_ everythingArg: AllNullableTypesWithoutRecursion?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([everythingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4464,17 +3800,10 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { /// Returns passed in arguments of multiple types. /// /// Tests multiple-arity FlutterApi handling. - func sendMultipleNullableTypesWithoutRecursion( - aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, - aString aNullableStringArg: String?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([aNullableBoolArg, aNullableIntArg, aNullableStringArg] as [Any?]) { - response in + func sendMultipleNullableTypesWithoutRecursion(aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, aString aNullableStringArg: String?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([aNullableBoolArg, aNullableIntArg, aNullableStringArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) return @@ -4485,11 +3814,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! AllNullableTypesWithoutRecursion completion(.success(result)) @@ -4498,10 +3823,8 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Returns the passed boolean, to test serialization and deserialization. func echo(_ aBoolArg: Bool, completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([aBoolArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4513,11 +3836,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! Bool completion(.success(result)) @@ -4526,10 +3845,8 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Returns the passed int, to test serialization and deserialization. func echo(_ anIntArg: Int64, completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([anIntArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4541,11 +3858,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! Int64 completion(.success(result)) @@ -4554,10 +3867,8 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Returns the passed double, to test serialization and deserialization. func echo(_ aDoubleArg: Double, completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([aDoubleArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4569,11 +3880,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! Double completion(.success(result)) @@ -4582,10 +3889,8 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Returns the passed string, to test serialization and deserialization. func echo(_ aStringArg: String, completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([aStringArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4597,11 +3902,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! String completion(.success(result)) @@ -4609,14 +3910,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed byte list, to test serialization and deserialization. - func echo( - _ listArg: FlutterStandardTypedData, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(_ listArg: FlutterStandardTypedData, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([listArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4628,11 +3924,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! FlutterStandardTypedData completion(.success(result)) @@ -4641,10 +3933,8 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Returns the passed list, to test serialization and deserialization. func echo(_ listArg: [Any?], completion: @escaping (Result<[Any?], PigeonError>) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([listArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4656,11 +3946,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [Any?] completion(.success(result)) @@ -4668,13 +3954,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echo( - enumList enumListArg: [AnEnum?], completion: @escaping (Result<[AnEnum?], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(enumList enumListArg: [AnEnum?], completion: @escaping (Result<[AnEnum?], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([enumListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4686,11 +3968,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [AnEnum?] completion(.success(result)) @@ -4698,14 +3976,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echo( - classList classListArg: [AllNullableTypes?], - completion: @escaping (Result<[AllNullableTypes?], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(classList classListArg: [AllNullableTypes?], completion: @escaping (Result<[AllNullableTypes?], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([classListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4717,11 +3990,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [AllNullableTypes?] completion(.success(result)) @@ -4729,13 +3998,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echoNonNull( - enumList enumListArg: [AnEnum], completion: @escaping (Result<[AnEnum], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNonNull(enumList enumListArg: [AnEnum], completion: @escaping (Result<[AnEnum], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([enumListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4747,11 +4012,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [AnEnum] completion(.success(result)) @@ -4759,14 +4020,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echoNonNull( - classList classListArg: [AllNullableTypes], - completion: @escaping (Result<[AllNullableTypes], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNonNull(classList classListArg: [AllNullableTypes], completion: @escaping (Result<[AllNullableTypes], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([classListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4778,11 +4034,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [AllNullableTypes] completion(.success(result)) @@ -4790,14 +4042,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echo( - _ mapArg: [AnyHashable?: Any?], - completion: @escaping (Result<[AnyHashable?: Any?], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(_ mapArg: [AnyHashable?: Any?], completion: @escaping (Result<[AnyHashable?: Any?], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([mapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4809,11 +4056,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [AnyHashable?: Any?] completion(.success(result)) @@ -4821,14 +4064,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echo( - stringMap stringMapArg: [String?: String?], - completion: @escaping (Result<[String?: String?], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(stringMap stringMapArg: [String?: String?], completion: @escaping (Result<[String?: String?], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([stringMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4840,11 +4078,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [String?: String?] completion(.success(result)) @@ -4852,14 +4086,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echo( - intMap intMapArg: [Int64?: Int64?], - completion: @escaping (Result<[Int64?: Int64?], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(intMap intMapArg: [Int64?: Int64?], completion: @escaping (Result<[Int64?: Int64?], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([intMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4871,11 +4100,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [Int64?: Int64?] completion(.success(result)) @@ -4883,14 +4108,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echo( - enumMap enumMapArg: [AnEnum?: AnEnum?], - completion: @escaping (Result<[AnEnum?: AnEnum?], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(enumMap enumMapArg: [AnEnum?: AnEnum?], completion: @escaping (Result<[AnEnum?: AnEnum?], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([enumMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4902,11 +4122,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as? [AnEnum?: AnEnum?] completion(.success(result!)) @@ -4914,14 +4130,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echo( - classMap classMapArg: [Int64?: AllNullableTypes?], - completion: @escaping (Result<[Int64?: AllNullableTypes?], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(classMap classMapArg: [Int64?: AllNullableTypes?], completion: @escaping (Result<[Int64?: AllNullableTypes?], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([classMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4933,11 +4144,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [Int64?: AllNullableTypes?] completion(.success(result)) @@ -4945,14 +4152,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNonNull( - stringMap stringMapArg: [String: String], - completion: @escaping (Result<[String: String], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNonNull(stringMap stringMapArg: [String: String], completion: @escaping (Result<[String: String], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([stringMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4964,11 +4166,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [String: String] completion(.success(result)) @@ -4976,14 +4174,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNonNull( - intMap intMapArg: [Int64: Int64], - completion: @escaping (Result<[Int64: Int64], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNonNull(intMap intMapArg: [Int64: Int64], completion: @escaping (Result<[Int64: Int64], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([intMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4995,11 +4188,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [Int64: Int64] completion(.success(result)) @@ -5007,14 +4196,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNonNull( - enumMap enumMapArg: [AnEnum: AnEnum], - completion: @escaping (Result<[AnEnum: AnEnum], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNonNull(enumMap enumMapArg: [AnEnum: AnEnum], completion: @escaping (Result<[AnEnum: AnEnum], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([enumMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5026,11 +4210,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as? [AnEnum: AnEnum] completion(.success(result!)) @@ -5038,14 +4218,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNonNull( - classMap classMapArg: [Int64: AllNullableTypes], - completion: @escaping (Result<[Int64: AllNullableTypes], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNonNull(classMap classMapArg: [Int64: AllNullableTypes], completion: @escaping (Result<[Int64: AllNullableTypes], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([classMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5057,11 +4232,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [Int64: AllNullableTypes] completion(.success(result)) @@ -5070,10 +4241,8 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Returns the passed enum to test serialization and deserialization. func echo(_ anEnumArg: AnEnum, completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([anEnumArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5085,11 +4254,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! AnEnum completion(.success(result)) @@ -5097,13 +4262,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed enum to test serialization and deserialization. - func echo( - _ anotherEnumArg: AnotherEnum, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(_ anotherEnumArg: AnotherEnum, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([anotherEnumArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5115,11 +4276,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! AnotherEnum completion(.success(result)) @@ -5128,10 +4285,8 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Returns the passed boolean, to test serialization and deserialization. func echoNullable(_ aBoolArg: Bool?, completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([aBoolArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5149,12 +4304,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed int, to test serialization and deserialization. - func echoNullable(_ anIntArg: Int64?, completion: @escaping (Result) -> Void) - { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(_ anIntArg: Int64?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([anIntArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5172,13 +4324,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed double, to test serialization and deserialization. - func echoNullable( - _ aDoubleArg: Double?, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(_ aDoubleArg: Double?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([aDoubleArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5196,13 +4344,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed string, to test serialization and deserialization. - func echoNullable( - _ aStringArg: String?, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(_ aStringArg: String?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([aStringArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5220,14 +4364,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed byte list, to test serialization and deserialization. - func echoNullable( - _ listArg: FlutterStandardTypedData?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(_ listArg: FlutterStandardTypedData?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([listArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5245,13 +4384,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echoNullable( - _ listArg: [Any?]?, completion: @escaping (Result<[Any?]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(_ listArg: [Any?]?, completion: @escaping (Result<[Any?]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([listArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5269,14 +4404,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echoNullable( - enumList enumListArg: [AnEnum?]?, - completion: @escaping (Result<[AnEnum?]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(enumList enumListArg: [AnEnum?]?, completion: @escaping (Result<[AnEnum?]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([enumListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5294,14 +4424,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echoNullable( - classList classListArg: [AllNullableTypes?]?, - completion: @escaping (Result<[AllNullableTypes?]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(classList classListArg: [AllNullableTypes?]?, completion: @escaping (Result<[AllNullableTypes?]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([classListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5319,13 +4444,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echoNullableNonNull( - enumList enumListArg: [AnEnum]?, completion: @escaping (Result<[AnEnum]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullableNonNull(enumList enumListArg: [AnEnum]?, completion: @escaping (Result<[AnEnum]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([enumListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5343,14 +4464,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echoNullableNonNull( - classList classListArg: [AllNullableTypes]?, - completion: @escaping (Result<[AllNullableTypes]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullableNonNull(classList classListArg: [AllNullableTypes]?, completion: @escaping (Result<[AllNullableTypes]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([classListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5368,14 +4484,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - _ mapArg: [AnyHashable?: Any?]?, - completion: @escaping (Result<[AnyHashable?: Any?]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(_ mapArg: [AnyHashable?: Any?]?, completion: @escaping (Result<[AnyHashable?: Any?]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([mapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5393,14 +4504,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - stringMap stringMapArg: [String?: String?]?, - completion: @escaping (Result<[String?: String?]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableStringMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(stringMap stringMapArg: [String?: String?]?, completion: @escaping (Result<[String?: String?]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableStringMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([stringMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5418,14 +4524,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - intMap intMapArg: [Int64?: Int64?]?, - completion: @escaping (Result<[Int64?: Int64?]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableIntMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(intMap intMapArg: [Int64?: Int64?]?, completion: @escaping (Result<[Int64?: Int64?]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableIntMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([intMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5443,14 +4544,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - enumMap enumMapArg: [AnEnum?: AnEnum?]?, - completion: @escaping (Result<[AnEnum?: AnEnum?]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(enumMap enumMapArg: [AnEnum?: AnEnum?]?, completion: @escaping (Result<[AnEnum?: AnEnum?]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([enumMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5468,14 +4564,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - classMap classMapArg: [Int64?: AllNullableTypes?]?, - completion: @escaping (Result<[Int64?: AllNullableTypes?]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(classMap classMapArg: [Int64?: AllNullableTypes?]?, completion: @escaping (Result<[Int64?: AllNullableTypes?]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([classMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5493,14 +4584,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull( - stringMap stringMapArg: [String: String]?, - completion: @escaping (Result<[String: String]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullStringMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullableNonNull(stringMap stringMapArg: [String: String]?, completion: @escaping (Result<[String: String]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullStringMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([stringMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5518,14 +4604,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull( - intMap intMapArg: [Int64: Int64]?, - completion: @escaping (Result<[Int64: Int64]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullIntMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullableNonNull(intMap intMapArg: [Int64: Int64]?, completion: @escaping (Result<[Int64: Int64]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullIntMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([intMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5543,14 +4624,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull( - enumMap enumMapArg: [AnEnum: AnEnum]?, - completion: @escaping (Result<[AnEnum: AnEnum]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullableNonNull(enumMap enumMapArg: [AnEnum: AnEnum]?, completion: @escaping (Result<[AnEnum: AnEnum]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([enumMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5568,14 +4644,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull( - classMap classMapArg: [Int64: AllNullableTypes]?, - completion: @escaping (Result<[Int64: AllNullableTypes]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullableNonNull(classMap classMapArg: [Int64: AllNullableTypes]?, completion: @escaping (Result<[Int64: AllNullableTypes]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([classMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5593,13 +4664,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed enum to test serialization and deserialization. - func echoNullable( - _ anEnumArg: AnEnum?, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(_ anEnumArg: AnEnum?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([anEnumArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5617,14 +4684,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed enum to test serialization and deserialization. - func echoNullable( - _ anotherEnumArg: AnotherEnum?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(_ anotherEnumArg: AnotherEnum?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([anotherEnumArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5644,10 +4706,8 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. func noopAsync(completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noopAsync\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noopAsync\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage(nil) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5664,12 +4724,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed in generic Object asynchronously. - func echoAsync(_ aStringArg: String, completion: @escaping (Result) -> Void) - { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoAsync(_ aStringArg: String, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([aStringArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5681,11 +4738,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! String completion(.success(result)) @@ -5704,13 +4757,9 @@ protocol HostTrivialApi { class HostTrivialApiSetup { static var codec: FlutterStandardMessageCodec { CoreTestsPigeonCodec.shared } /// Sets up an instance of `HostTrivialApi` to handle messages through the `binaryMessenger`. - static func setUp( - binaryMessenger: FlutterBinaryMessenger, api: HostTrivialApi?, messageChannelSuffix: String = "" - ) { + static func setUp(binaryMessenger: FlutterBinaryMessenger, api: HostTrivialApi?, messageChannelSuffix: String = "") { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let noopChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let noopChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { noopChannel.setMessageHandler { _, reply in do { @@ -5737,13 +4786,9 @@ protocol HostSmallApi { class HostSmallApiSetup { static var codec: FlutterStandardMessageCodec { CoreTestsPigeonCodec.shared } /// Sets up an instance of `HostSmallApi` to handle messages through the `binaryMessenger`. - static func setUp( - binaryMessenger: FlutterBinaryMessenger, api: HostSmallApi?, messageChannelSuffix: String = "" - ) { + static func setUp(binaryMessenger: FlutterBinaryMessenger, api: HostSmallApi?, messageChannelSuffix: String = "") { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let echoChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5760,9 +4805,7 @@ class HostSmallApiSetup { } else { echoChannel.setMessageHandler(nil) } - let voidVoidChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let voidVoidChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { voidVoidChannel.setMessageHandler { _, reply in api.voidVoid { result in @@ -5796,12 +4839,9 @@ class FlutterSmallApi: FlutterSmallApiProtocol { var codec: CoreTestsPigeonCodec { return CoreTestsPigeonCodec.shared } - func echo(_ msgArg: TestMessage, completion: @escaping (Result) -> Void) - { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(_ msgArg: TestMessage, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([msgArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5813,23 +4853,16 @@ class FlutterSmallApi: FlutterSmallApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! TestMessage completion(.success(result)) } } } - func echo(string aStringArg: String, completion: @escaping (Result) -> Void) - { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(string aStringArg: String, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([aStringArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5841,11 +4874,7 @@ class FlutterSmallApi: FlutterSmallApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! String completion(.success(result)) diff --git a/packages/pigeon/platform_tests/test_plugin/ios/Classes/EventChannelTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/ios/Classes/EventChannelTests.gen.swift index 09f682ece4b6..1abd6cbae5bc 100644 --- a/packages/pigeon/platform_tests/test_plugin/ios/Classes/EventChannelTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/ios/Classes/EventChannelTests.gen.swift @@ -30,7 +30,7 @@ final class EventChannelTestsError: Error { var localizedDescription: String { return "EventChannelTestsError(code: \(code), message: \(message ?? ""), details: \(details ?? "")" - } + } } private func isNullish(_ value: Any?) -> Bool { @@ -155,6 +155,7 @@ class EventAllNullableTypes { var mapMap: [Int64?: [AnyHashable?: Any?]?]? var recursiveClassMap: [Int64?: EventAllNullableTypes?]? + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> EventAllNullableTypes? { let aNullableBool: Bool? = nilOrValue(pigeonVar_list[0]) @@ -270,6 +271,7 @@ protocol PlatformEvent { struct IntEvent: PlatformEvent { var value: Int64 + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> IntEvent? { let value = pigeonVar_list[0] as! Int64 @@ -289,6 +291,7 @@ struct IntEvent: PlatformEvent { struct StringEvent: PlatformEvent { var value: String + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> StringEvent? { let value = pigeonVar_list[0] as! String @@ -308,6 +311,7 @@ struct StringEvent: PlatformEvent { struct BoolEvent: PlatformEvent { var value: Bool + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> BoolEvent? { let value = pigeonVar_list[0] as! Bool @@ -327,6 +331,7 @@ struct BoolEvent: PlatformEvent { struct DoubleEvent: PlatformEvent { var value: Double + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> DoubleEvent? { let value = pigeonVar_list[0] as! Double @@ -346,6 +351,7 @@ struct DoubleEvent: PlatformEvent { struct ObjectsEvent: PlatformEvent { var value: Any + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> ObjectsEvent? { let value = pigeonVar_list[0]! @@ -365,6 +371,7 @@ struct ObjectsEvent: PlatformEvent { struct EnumEvent: PlatformEvent { var value: EventEnum + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> EnumEvent? { let value = pigeonVar_list[0] as! EventEnum @@ -384,6 +391,7 @@ struct EnumEvent: PlatformEvent { struct ClassEvent: PlatformEvent { var value: EventAllNullableTypes + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> ClassEvent? { let value = pigeonVar_list[0] as! EventAllNullableTypes @@ -485,12 +493,11 @@ private class EventChannelTestsPigeonCodecReaderWriter: FlutterStandardReaderWri } class EventChannelTestsPigeonCodec: FlutterStandardMessageCodec, @unchecked Sendable { - static let shared = EventChannelTestsPigeonCodec( - readerWriter: EventChannelTestsPigeonCodecReaderWriter()) + static let shared = EventChannelTestsPigeonCodec(readerWriter: EventChannelTestsPigeonCodecReaderWriter()) } -var eventChannelTestsPigeonMethodCodec = FlutterStandardMethodCodec( - readerWriter: EventChannelTestsPigeonCodecReaderWriter()) +var eventChannelTestsPigeonMethodCodec = FlutterStandardMethodCodec(readerWriter: EventChannelTestsPigeonCodecReaderWriter()); + private class PigeonStreamHandler: NSObject, FlutterStreamHandler { private let wrapper: PigeonEventChannelWrapper @@ -542,35 +549,30 @@ class PigeonEventSink { } class StreamIntsStreamHandler: PigeonEventChannelWrapper { - static func register( - with messenger: FlutterBinaryMessenger, - instanceName: String = "", - streamHandler: StreamIntsStreamHandler - ) { + static func register(with messenger: FlutterBinaryMessenger, + instanceName: String = "", + streamHandler: StreamIntsStreamHandler) { var channelName = "dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamInts" if !instanceName.isEmpty { channelName += ".\(instanceName)" } let internalStreamHandler = PigeonStreamHandler(wrapper: streamHandler) - let channel = FlutterEventChannel( - name: channelName, binaryMessenger: messenger, codec: eventChannelTestsPigeonMethodCodec) + let channel = FlutterEventChannel(name: channelName, binaryMessenger: messenger, codec: eventChannelTestsPigeonMethodCodec) channel.setStreamHandler(internalStreamHandler) } } - + class StreamEventsStreamHandler: PigeonEventChannelWrapper { - static func register( - with messenger: FlutterBinaryMessenger, - instanceName: String = "", - streamHandler: StreamEventsStreamHandler - ) { + static func register(with messenger: FlutterBinaryMessenger, + instanceName: String = "", + streamHandler: StreamEventsStreamHandler) { var channelName = "dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamEvents" if !instanceName.isEmpty { channelName += ".\(instanceName)" } let internalStreamHandler = PigeonStreamHandler(wrapper: streamHandler) - let channel = FlutterEventChannel( - name: channelName, binaryMessenger: messenger, codec: eventChannelTestsPigeonMethodCodec) + let channel = FlutterEventChannel(name: channelName, binaryMessenger: messenger, codec: eventChannelTestsPigeonMethodCodec) channel.setStreamHandler(internalStreamHandler) } } + diff --git a/packages/pigeon/platform_tests/test_plugin/ios/Classes/ProxyApiTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/ios/Classes/ProxyApiTests.gen.swift index 506565c1dd67..5ae6b20c0d1d 100644 --- a/packages/pigeon/platform_tests/test_plugin/ios/Classes/ProxyApiTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/ios/Classes/ProxyApiTests.gen.swift @@ -30,7 +30,7 @@ final class ProxyApiTestsError: Error { var localizedDescription: String { return "ProxyApiTestsError(code: \(code), message: \(message ?? ""), details: \(details ?? "")" - } + } } private func wrapResult(_ result: Any?) -> [Any?] { @@ -60,9 +60,7 @@ private func wrapError(_ error: Any) -> [Any?] { } private func createConnectionError(withChannelName channelName: String) -> ProxyApiTestsError { - return ProxyApiTestsError( - code: "channel-error", message: "Unable to establish connection on channel: '\(channelName)'.", - details: "") + return ProxyApiTestsError(code: "channel-error", message: "Unable to establish connection on channel: '\(channelName)'.", details: "") } private func isNullish(_ value: Any?) -> Bool { @@ -79,6 +77,7 @@ protocol ProxyApiTestsPigeonInternalFinalizerDelegate: AnyObject { func onDeinit(identifier: Int64) } + // Attaches to an object to receive a callback when the object is deallocated. internal final class ProxyApiTestsPigeonInternalFinalizer { private static let associatedObjectKey = malloc(1)! @@ -94,8 +93,7 @@ internal final class ProxyApiTestsPigeonInternalFinalizer { } internal static func attach( - to instance: AnyObject, identifier: Int64, - delegate: ProxyApiTestsPigeonInternalFinalizerDelegate + to instance: AnyObject, identifier: Int64, delegate: ProxyApiTestsPigeonInternalFinalizerDelegate ) { let finalizer = ProxyApiTestsPigeonInternalFinalizer(identifier: identifier, delegate: delegate) objc_setAssociatedObject(instance, associatedObjectKey, finalizer, .OBJC_ASSOCIATION_RETAIN) @@ -110,6 +108,7 @@ internal final class ProxyApiTestsPigeonInternalFinalizer { } } + /// Maintains instances used to communicate with the corresponding objects in Dart. /// /// Objects stored in this container are represented by an object in Dart that is also stored in @@ -213,8 +212,7 @@ final class ProxyApiTestsPigeonInstanceManager { identifiers.setObject(NSNumber(value: identifier), forKey: instance) weakInstances.setObject(instance, forKey: NSNumber(value: identifier)) strongInstances.setObject(instance, forKey: NSNumber(value: identifier)) - ProxyApiTestsPigeonInternalFinalizer.attach( - to: instance, identifier: identifier, delegate: finalizerDelegate) + ProxyApiTestsPigeonInternalFinalizer.attach(to: instance, identifier: identifier, delegate: finalizerDelegate) } /// Retrieves the identifier paired with an instance. @@ -291,6 +289,7 @@ final class ProxyApiTestsPigeonInstanceManager { } } + private class ProxyApiTestsPigeonInstanceManagerApi { /// The codec used for serializing messages. var codec: FlutterStandardMessageCodec { ProxyApiTestsPigeonCodec.shared } @@ -303,14 +302,9 @@ private class ProxyApiTestsPigeonInstanceManagerApi { } /// Sets up an instance of `ProxyApiTestsPigeonInstanceManagerApi` to handle messages through the `binaryMessenger`. - static func setUpMessageHandlers( - binaryMessenger: FlutterBinaryMessenger, instanceManager: ProxyApiTestsPigeonInstanceManager? - ) { + static func setUpMessageHandlers(binaryMessenger: FlutterBinaryMessenger, instanceManager: ProxyApiTestsPigeonInstanceManager?) { let codec = ProxyApiTestsPigeonCodec.shared - let removeStrongReferenceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference", - binaryMessenger: binaryMessenger, codec: codec) + let removeStrongReferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference", binaryMessenger: binaryMessenger, codec: codec) if let instanceManager = instanceManager { removeStrongReferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -325,9 +319,7 @@ private class ProxyApiTestsPigeonInstanceManagerApi { } else { removeStrongReferenceChannel.setMessageHandler(nil) } - let clearChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.clear", - binaryMessenger: binaryMessenger, codec: codec) + let clearChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.clear", binaryMessenger: binaryMessenger, codec: codec) if let instanceManager = instanceManager { clearChannel.setMessageHandler { _, reply in do { @@ -343,14 +335,9 @@ private class ProxyApiTestsPigeonInstanceManagerApi { } /// Sends a message to the Dart `InstanceManager` to remove the strong reference of the instance associated with `identifier`. - func removeStrongReference( - identifier identifierArg: Int64, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func removeStrongReference(identifier identifierArg: Int64, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([identifierArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -370,28 +357,21 @@ private class ProxyApiTestsPigeonInstanceManagerApi { protocol ProxyApiTestsPigeonProxyApiDelegate { /// An implementation of [PigeonApiProxyApiTestClass] used to add a new Dart instance of /// `ProxyApiTestClass` to the Dart `InstanceManager` and make calls to Dart. - func pigeonApiProxyApiTestClass(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) - -> PigeonApiProxyApiTestClass + func pigeonApiProxyApiTestClass(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) -> PigeonApiProxyApiTestClass /// An implementation of [PigeonApiProxyApiSuperClass] used to add a new Dart instance of /// `ProxyApiSuperClass` to the Dart `InstanceManager` and make calls to Dart. - func pigeonApiProxyApiSuperClass(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) - -> PigeonApiProxyApiSuperClass + func pigeonApiProxyApiSuperClass(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) -> PigeonApiProxyApiSuperClass /// An implementation of [PigeonApiProxyApiInterface] used to add a new Dart instance of /// `ProxyApiInterface` to the Dart `InstanceManager` and make calls to Dart. - func pigeonApiProxyApiInterface(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) - -> PigeonApiProxyApiInterface + func pigeonApiProxyApiInterface(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) -> PigeonApiProxyApiInterface /// An implementation of [PigeonApiClassWithApiRequirement] used to add a new Dart instance of /// `ClassWithApiRequirement` to the Dart `InstanceManager` and make calls to Dart. - func pigeonApiClassWithApiRequirement(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) - -> PigeonApiClassWithApiRequirement + func pigeonApiClassWithApiRequirement(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) -> PigeonApiClassWithApiRequirement } extension ProxyApiTestsPigeonProxyApiDelegate { - func pigeonApiProxyApiInterface(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) - -> PigeonApiProxyApiInterface - { - return PigeonApiProxyApiInterface( - pigeonRegistrar: registrar, delegate: PigeonApiDelegateProxyApiInterface()) + func pigeonApiProxyApiInterface(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) -> PigeonApiProxyApiInterface { + return PigeonApiProxyApiInterface(pigeonRegistrar: registrar, delegate: PigeonApiDelegateProxyApiInterface()) } } @@ -433,22 +413,16 @@ open class ProxyApiTestsPigeonProxyApiRegistrar { } func setUp() { - ProxyApiTestsPigeonInstanceManagerApi.setUpMessageHandlers( - binaryMessenger: binaryMessenger, instanceManager: instanceManager) - PigeonApiProxyApiTestClass.setUpMessageHandlers( - binaryMessenger: binaryMessenger, api: apiDelegate.pigeonApiProxyApiTestClass(self)) - PigeonApiProxyApiSuperClass.setUpMessageHandlers( - binaryMessenger: binaryMessenger, api: apiDelegate.pigeonApiProxyApiSuperClass(self)) - PigeonApiClassWithApiRequirement.setUpMessageHandlers( - binaryMessenger: binaryMessenger, api: apiDelegate.pigeonApiClassWithApiRequirement(self)) + ProxyApiTestsPigeonInstanceManagerApi.setUpMessageHandlers(binaryMessenger: binaryMessenger, instanceManager: instanceManager) + PigeonApiProxyApiTestClass.setUpMessageHandlers(binaryMessenger: binaryMessenger, api: apiDelegate.pigeonApiProxyApiTestClass(self)) + PigeonApiProxyApiSuperClass.setUpMessageHandlers(binaryMessenger: binaryMessenger, api: apiDelegate.pigeonApiProxyApiSuperClass(self)) + PigeonApiClassWithApiRequirement.setUpMessageHandlers(binaryMessenger: binaryMessenger, api: apiDelegate.pigeonApiClassWithApiRequirement(self)) } func tearDown() { - ProxyApiTestsPigeonInstanceManagerApi.setUpMessageHandlers( - binaryMessenger: binaryMessenger, instanceManager: nil) + ProxyApiTestsPigeonInstanceManagerApi.setUpMessageHandlers(binaryMessenger: binaryMessenger, instanceManager: nil) PigeonApiProxyApiTestClass.setUpMessageHandlers(binaryMessenger: binaryMessenger, api: nil) PigeonApiProxyApiSuperClass.setUpMessageHandlers(binaryMessenger: binaryMessenger, api: nil) - PigeonApiClassWithApiRequirement.setUpMessageHandlers( - binaryMessenger: binaryMessenger, api: nil) + PigeonApiClassWithApiRequirement.setUpMessageHandlers(binaryMessenger: binaryMessenger, api: nil) } } private class ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter: FlutterStandardReaderWriter { @@ -484,61 +458,57 @@ private class ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter: FlutterStand } override func writeValue(_ value: Any) { - if value is [Any] || value is Bool || value is Data || value is [AnyHashable: Any] - || value is Double || value is FlutterStandardTypedData || value is Int64 || value is String - || value is ProxyApiTestEnum - { + if value is [Any] || value is Bool || value is Data || value is [AnyHashable: Any] || value is Double || value is FlutterStandardTypedData || value is Int64 || value is String || value is ProxyApiTestEnum { super.writeValue(value) return } + if let instance = value as? ProxyApiTestClass { pigeonRegistrar.apiDelegate.pigeonApiProxyApiTestClass(pigeonRegistrar).pigeonNewInstance( pigeonInstance: instance ) { _ in } super.writeByte(128) super.writeValue( - pigeonRegistrar.instanceManager.identifierWithStrongReference( - forInstance: instance as AnyObject)!) + pigeonRegistrar.instanceManager.identifierWithStrongReference(forInstance: instance as AnyObject)!) return } + if let instance = value as? ProxyApiSuperClass { pigeonRegistrar.apiDelegate.pigeonApiProxyApiSuperClass(pigeonRegistrar).pigeonNewInstance( pigeonInstance: instance ) { _ in } super.writeByte(128) super.writeValue( - pigeonRegistrar.instanceManager.identifierWithStrongReference( - forInstance: instance as AnyObject)!) + pigeonRegistrar.instanceManager.identifierWithStrongReference(forInstance: instance as AnyObject)!) return } + if let instance = value as? ProxyApiInterface { pigeonRegistrar.apiDelegate.pigeonApiProxyApiInterface(pigeonRegistrar).pigeonNewInstance( pigeonInstance: instance ) { _ in } super.writeByte(128) super.writeValue( - pigeonRegistrar.instanceManager.identifierWithStrongReference( - forInstance: instance as AnyObject)!) + pigeonRegistrar.instanceManager.identifierWithStrongReference(forInstance: instance as AnyObject)!) return } + if #available(iOS 15.0.0, macOS 10.0.0, *), let instance = value as? ClassWithApiRequirement { - pigeonRegistrar.apiDelegate.pigeonApiClassWithApiRequirement(pigeonRegistrar) - .pigeonNewInstance( - pigeonInstance: instance - ) { _ in } + pigeonRegistrar.apiDelegate.pigeonApiClassWithApiRequirement(pigeonRegistrar).pigeonNewInstance( + pigeonInstance: instance + ) { _ in } super.writeByte(128) super.writeValue( - pigeonRegistrar.instanceManager.identifierWithStrongReference( - forInstance: instance as AnyObject)!) + pigeonRegistrar.instanceManager.identifierWithStrongReference(forInstance: instance as AnyObject)!) return } - if let instance = value as AnyObject?, - pigeonRegistrar.instanceManager.containsInstance(instance) + + if let instance = value as AnyObject?, pigeonRegistrar.instanceManager.containsInstance(instance) { super.writeByte(128) super.writeValue( @@ -556,13 +526,11 @@ private class ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter: FlutterStand } override func reader(with data: Data) -> FlutterStandardReader { - return ProxyApiTestsPigeonInternalProxyApiCodecReader( - data: data, pigeonRegistrar: pigeonRegistrar) + return ProxyApiTestsPigeonInternalProxyApiCodecReader(data: data, pigeonRegistrar: pigeonRegistrar) } override func writer(with data: NSMutableData) -> FlutterStandardWriter { - return ProxyApiTestsPigeonInternalProxyApiCodecWriter( - data: data, pigeonRegistrar: pigeonRegistrar) + return ProxyApiTestsPigeonInternalProxyApiCodecWriter(data: data, pigeonRegistrar: pigeonRegistrar) } } @@ -613,469 +581,215 @@ class ProxyApiTestsPigeonCodec: FlutterStandardMessageCodec, @unchecked Sendable } protocol PigeonApiDelegateProxyApiTestClass { - func pigeonDefaultConstructor( - pigeonApi: PigeonApiProxyApiTestClass, aBool: Bool, anInt: Int64, aDouble: Double, - aString: String, aUint8List: FlutterStandardTypedData, aList: [Any?], aMap: [String?: Any?], - anEnum: ProxyApiTestEnum, aProxyApi: ProxyApiSuperClass, aNullableBool: Bool?, - aNullableInt: Int64?, aNullableDouble: Double?, aNullableString: String?, - aNullableUint8List: FlutterStandardTypedData?, aNullableList: [Any?]?, - aNullableMap: [String?: Any?]?, aNullableEnum: ProxyApiTestEnum?, - aNullableProxyApi: ProxyApiSuperClass?, boolParam: Bool, intParam: Int64, doubleParam: Double, - stringParam: String, aUint8ListParam: FlutterStandardTypedData, listParam: [Any?], - mapParam: [String?: Any?], enumParam: ProxyApiTestEnum, proxyApiParam: ProxyApiSuperClass, - nullableBoolParam: Bool?, nullableIntParam: Int64?, nullableDoubleParam: Double?, - nullableStringParam: String?, nullableUint8ListParam: FlutterStandardTypedData?, - nullableListParam: [Any?]?, nullableMapParam: [String?: Any?]?, - nullableEnumParam: ProxyApiTestEnum?, nullableProxyApiParam: ProxyApiSuperClass? - ) throws -> ProxyApiTestClass - func namedConstructor( - pigeonApi: PigeonApiProxyApiTestClass, aBool: Bool, anInt: Int64, aDouble: Double, - aString: String, aUint8List: FlutterStandardTypedData, aList: [Any?], aMap: [String?: Any?], - anEnum: ProxyApiTestEnum, aProxyApi: ProxyApiSuperClass, aNullableBool: Bool?, - aNullableInt: Int64?, aNullableDouble: Double?, aNullableString: String?, - aNullableUint8List: FlutterStandardTypedData?, aNullableList: [Any?]?, - aNullableMap: [String?: Any?]?, aNullableEnum: ProxyApiTestEnum?, - aNullableProxyApi: ProxyApiSuperClass? - ) throws -> ProxyApiTestClass - func attachedField(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) - throws -> ProxyApiSuperClass + func pigeonDefaultConstructor(pigeonApi: PigeonApiProxyApiTestClass, aBool: Bool, anInt: Int64, aDouble: Double, aString: String, aUint8List: FlutterStandardTypedData, aList: [Any?], aMap: [String?: Any?], anEnum: ProxyApiTestEnum, aProxyApi: ProxyApiSuperClass, aNullableBool: Bool?, aNullableInt: Int64?, aNullableDouble: Double?, aNullableString: String?, aNullableUint8List: FlutterStandardTypedData?, aNullableList: [Any?]?, aNullableMap: [String?: Any?]?, aNullableEnum: ProxyApiTestEnum?, aNullableProxyApi: ProxyApiSuperClass?, boolParam: Bool, intParam: Int64, doubleParam: Double, stringParam: String, aUint8ListParam: FlutterStandardTypedData, listParam: [Any?], mapParam: [String?: Any?], enumParam: ProxyApiTestEnum, proxyApiParam: ProxyApiSuperClass, nullableBoolParam: Bool?, nullableIntParam: Int64?, nullableDoubleParam: Double?, nullableStringParam: String?, nullableUint8ListParam: FlutterStandardTypedData?, nullableListParam: [Any?]?, nullableMapParam: [String?: Any?]?, nullableEnumParam: ProxyApiTestEnum?, nullableProxyApiParam: ProxyApiSuperClass?) throws -> ProxyApiTestClass + func namedConstructor(pigeonApi: PigeonApiProxyApiTestClass, aBool: Bool, anInt: Int64, aDouble: Double, aString: String, aUint8List: FlutterStandardTypedData, aList: [Any?], aMap: [String?: Any?], anEnum: ProxyApiTestEnum, aProxyApi: ProxyApiSuperClass, aNullableBool: Bool?, aNullableInt: Int64?, aNullableDouble: Double?, aNullableString: String?, aNullableUint8List: FlutterStandardTypedData?, aNullableList: [Any?]?, aNullableMap: [String?: Any?]?, aNullableEnum: ProxyApiTestEnum?, aNullableProxyApi: ProxyApiSuperClass?) throws -> ProxyApiTestClass + func attachedField(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> ProxyApiSuperClass func staticAttachedField(pigeonApi: PigeonApiProxyApiTestClass) throws -> ProxyApiSuperClass - func aBool(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws - -> Bool - func anInt(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws - -> Int64 - func aDouble(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws - -> Double - func aString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws - -> String - func aUint8List(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws - -> FlutterStandardTypedData - func aList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws - -> [Any?] - func aMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws - -> [String?: Any?] - func anEnum(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws - -> ProxyApiTestEnum - func aProxyApi(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws - -> ProxyApiSuperClass - func aNullableBool(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) - throws -> Bool? - func aNullableInt(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws - -> Int64? - func aNullableDouble(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) - throws -> Double? - func aNullableString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) - throws -> String? - func aNullableUint8List(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) - throws -> FlutterStandardTypedData? - func aNullableList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) - throws -> [Any?]? - func aNullableMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws - -> [String?: Any?]? - func aNullableEnum(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) - throws -> ProxyApiTestEnum? - func aNullableProxyApi(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) - throws -> ProxyApiSuperClass? + func aBool(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> Bool + func anInt(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> Int64 + func aDouble(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> Double + func aString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> String + func aUint8List(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> FlutterStandardTypedData + func aList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> [Any?] + func aMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> [String?: Any?] + func anEnum(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> ProxyApiTestEnum + func aProxyApi(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> ProxyApiSuperClass + func aNullableBool(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> Bool? + func aNullableInt(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> Int64? + func aNullableDouble(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> Double? + func aNullableString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> String? + func aNullableUint8List(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> FlutterStandardTypedData? + func aNullableList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> [Any?]? + func aNullableMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> [String?: Any?]? + func aNullableEnum(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> ProxyApiTestEnum? + func aNullableProxyApi(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> ProxyApiSuperClass? /// A no-op function taking no arguments and returning no value, to sanity /// test basic calling. func noop(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws /// Returns an error, to test error handling. - func throwError(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws - -> Any? + func throwError(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> Any? /// Returns an error from a void function, to test error handling. - func throwErrorFromVoid(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) - throws + func throwErrorFromVoid(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws /// Returns a Flutter error, to test error handling. - func throwFlutterError(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) - throws -> Any? + func throwFlutterError(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> Any? /// Returns passed in int. - func echoInt( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64 - ) throws -> Int64 + func echoInt(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64) throws -> Int64 /// Returns passed in double. - func echoDouble( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double - ) throws -> Double + func echoDouble(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double) throws -> Double /// Returns the passed in boolean. - func echoBool( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool - ) throws -> Bool + func echoBool(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool) throws -> Bool /// Returns the passed in string. - func echoString( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String - ) throws -> String + func echoString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String) throws -> String /// Returns the passed in Uint8List. - func echoUint8List( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aUint8List: FlutterStandardTypedData - ) throws -> FlutterStandardTypedData + func echoUint8List(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aUint8List: FlutterStandardTypedData) throws -> FlutterStandardTypedData /// Returns the passed in generic Object. - func echoObject( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anObject: Any - ) throws -> Any + func echoObject(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anObject: Any) throws -> Any /// Returns the passed list, to test serialization and deserialization. - func echoList( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?] - ) throws -> [Any?] + func echoList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?]) throws -> [Any?] /// Returns the passed list with ProxyApis, to test serialization and /// deserialization. - func echoProxyApiList( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aList: [ProxyApiTestClass] - ) throws -> [ProxyApiTestClass] + func echoProxyApiList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [ProxyApiTestClass]) throws -> [ProxyApiTestClass] /// Returns the passed map, to test serialization and deserialization. - func echoMap( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: Any?] - ) throws -> [String?: Any?] + func echoMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: Any?]) throws -> [String?: Any?] /// Returns the passed map with ProxyApis, to test serialization and /// deserialization. - func echoProxyApiMap( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aMap: [String: ProxyApiTestClass] - ) throws -> [String: ProxyApiTestClass] + func echoProxyApiMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String: ProxyApiTestClass]) throws -> [String: ProxyApiTestClass] /// Returns the passed enum to test serialization and deserialization. - func echoEnum( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - anEnum: ProxyApiTestEnum - ) throws -> ProxyApiTestEnum + func echoEnum(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anEnum: ProxyApiTestEnum) throws -> ProxyApiTestEnum /// Returns the passed ProxyApi to test serialization and deserialization. - func echoProxyApi( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aProxyApi: ProxyApiSuperClass - ) throws -> ProxyApiSuperClass + func echoProxyApi(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aProxyApi: ProxyApiSuperClass) throws -> ProxyApiSuperClass /// Returns passed in int. - func echoNullableInt( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableInt: Int64? - ) throws -> Int64? + func echoNullableInt(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableInt: Int64?) throws -> Int64? /// Returns passed in double. - func echoNullableDouble( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aNullableDouble: Double? - ) throws -> Double? + func echoNullableDouble(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableDouble: Double?) throws -> Double? /// Returns the passed in boolean. - func echoNullableBool( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableBool: Bool? - ) throws -> Bool? + func echoNullableBool(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableBool: Bool?) throws -> Bool? /// Returns the passed in string. - func echoNullableString( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aNullableString: String? - ) throws -> String? + func echoNullableString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableString: String?) throws -> String? /// Returns the passed in Uint8List. - func echoNullableUint8List( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aNullableUint8List: FlutterStandardTypedData? - ) throws -> FlutterStandardTypedData? + func echoNullableUint8List(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableUint8List: FlutterStandardTypedData?) throws -> FlutterStandardTypedData? /// Returns the passed in generic Object. - func echoNullableObject( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableObject: Any? - ) throws -> Any? + func echoNullableObject(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableObject: Any?) throws -> Any? /// Returns the passed list, to test serialization and deserialization. - func echoNullableList( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableList: [Any?]? - ) throws -> [Any?]? + func echoNullableList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableList: [Any?]?) throws -> [Any?]? /// Returns the passed map, to test serialization and deserialization. - func echoNullableMap( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aNullableMap: [String?: Any?]? - ) throws -> [String?: Any?]? - func echoNullableEnum( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aNullableEnum: ProxyApiTestEnum? - ) throws -> ProxyApiTestEnum? + func echoNullableMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableMap: [String?: Any?]?) throws -> [String?: Any?]? + func echoNullableEnum(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableEnum: ProxyApiTestEnum?) throws -> ProxyApiTestEnum? /// Returns the passed ProxyApi to test serialization and deserialization. - func echoNullableProxyApi( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aNullableProxyApi: ProxyApiSuperClass? - ) throws -> ProxyApiSuperClass? + func echoNullableProxyApi(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableProxyApi: ProxyApiSuperClass?) throws -> ProxyApiSuperClass? /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. - func noopAsync( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - completion: @escaping (Result) -> Void) + func noopAsync(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) /// Returns passed in int asynchronously. - func echoAsyncInt( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64, - completion: @escaping (Result) -> Void) + func echoAsyncInt(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64, completion: @escaping (Result) -> Void) /// Returns passed in double asynchronously. - func echoAsyncDouble( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double, - completion: @escaping (Result) -> Void) + func echoAsyncDouble(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double, completion: @escaping (Result) -> Void) /// Returns the passed in boolean asynchronously. - func echoAsyncBool( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool, - completion: @escaping (Result) -> Void) + func echoAsyncBool(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool, completion: @escaping (Result) -> Void) /// Returns the passed string asynchronously. - func echoAsyncString( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String, - completion: @escaping (Result) -> Void) + func echoAsyncString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String, completion: @escaping (Result) -> Void) /// Returns the passed in Uint8List asynchronously. - func echoAsyncUint8List( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aUint8List: FlutterStandardTypedData, - completion: @escaping (Result) -> Void) + func echoAsyncUint8List(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aUint8List: FlutterStandardTypedData, completion: @escaping (Result) -> Void) /// Returns the passed in generic Object asynchronously. - func echoAsyncObject( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anObject: Any, - completion: @escaping (Result) -> Void) + func echoAsyncObject(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anObject: Any, completion: @escaping (Result) -> Void) /// Returns the passed list, to test asynchronous serialization and deserialization. - func echoAsyncList( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?], - completion: @escaping (Result<[Any?], Error>) -> Void) + func echoAsyncList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?], completion: @escaping (Result<[Any?], Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsyncMap( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: Any?], - completion: @escaping (Result<[String?: Any?], Error>) -> Void) + func echoAsyncMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: Any?], completion: @escaping (Result<[String?: Any?], Error>) -> Void) /// Returns the passed enum, to test asynchronous serialization and deserialization. - func echoAsyncEnum( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - anEnum: ProxyApiTestEnum, completion: @escaping (Result) -> Void) + func echoAsyncEnum(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anEnum: ProxyApiTestEnum, completion: @escaping (Result) -> Void) /// Responds with an error from an async function returning a value. - func throwAsyncError( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - completion: @escaping (Result) -> Void) + func throwAsyncError(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) /// Responds with an error from an async void function. - func throwAsyncErrorFromVoid( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - completion: @escaping (Result) -> Void) + func throwAsyncErrorFromVoid(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) /// Responds with a Flutter error from an async function returning a value. - func throwAsyncFlutterError( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - completion: @escaping (Result) -> Void) + func throwAsyncFlutterError(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) /// Returns passed in int asynchronously. - func echoAsyncNullableInt( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64?, - completion: @escaping (Result) -> Void) + func echoAsyncNullableInt(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64?, completion: @escaping (Result) -> Void) /// Returns passed in double asynchronously. - func echoAsyncNullableDouble( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double?, - completion: @escaping (Result) -> Void) + func echoAsyncNullableDouble(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double?, completion: @escaping (Result) -> Void) /// Returns the passed in boolean asynchronously. - func echoAsyncNullableBool( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool?, - completion: @escaping (Result) -> Void) + func echoAsyncNullableBool(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool?, completion: @escaping (Result) -> Void) /// Returns the passed string asynchronously. - func echoAsyncNullableString( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String?, - completion: @escaping (Result) -> Void) + func echoAsyncNullableString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String?, completion: @escaping (Result) -> Void) /// Returns the passed in Uint8List asynchronously. - func echoAsyncNullableUint8List( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aUint8List: FlutterStandardTypedData?, - completion: @escaping (Result) -> Void) + func echoAsyncNullableUint8List(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aUint8List: FlutterStandardTypedData?, completion: @escaping (Result) -> Void) /// Returns the passed in generic Object asynchronously. - func echoAsyncNullableObject( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anObject: Any?, - completion: @escaping (Result) -> Void) + func echoAsyncNullableObject(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anObject: Any?, completion: @escaping (Result) -> Void) /// Returns the passed list, to test asynchronous serialization and deserialization. - func echoAsyncNullableList( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?]?, - completion: @escaping (Result<[Any?]?, Error>) -> Void) + func echoAsyncNullableList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?]?, completion: @escaping (Result<[Any?]?, Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsyncNullableMap( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aMap: [String?: Any?]?, completion: @escaping (Result<[String?: Any?]?, Error>) -> Void) + func echoAsyncNullableMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: Any?]?, completion: @escaping (Result<[String?: Any?]?, Error>) -> Void) /// Returns the passed enum, to test asynchronous serialization and deserialization. - func echoAsyncNullableEnum( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - anEnum: ProxyApiTestEnum?, completion: @escaping (Result) -> Void) + func echoAsyncNullableEnum(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anEnum: ProxyApiTestEnum?, completion: @escaping (Result) -> Void) func staticNoop(pigeonApi: PigeonApiProxyApiTestClass) throws func echoStaticString(pigeonApi: PigeonApiProxyApiTestClass, aString: String) throws -> String - func staticAsyncNoop( - pigeonApi: PigeonApiProxyApiTestClass, completion: @escaping (Result) -> Void) - func callFlutterNoop( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - completion: @escaping (Result) -> Void) - func callFlutterThrowError( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - completion: @escaping (Result) -> Void) - func callFlutterThrowErrorFromVoid( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - completion: @escaping (Result) -> Void) - func callFlutterEchoBool( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool, - completion: @escaping (Result) -> Void) - func callFlutterEchoInt( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64, - completion: @escaping (Result) -> Void) - func callFlutterEchoDouble( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double, - completion: @escaping (Result) -> Void) - func callFlutterEchoString( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String, - completion: @escaping (Result) -> Void) - func callFlutterEchoUint8List( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aUint8List: FlutterStandardTypedData, - completion: @escaping (Result) -> Void) - func callFlutterEchoList( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?], - completion: @escaping (Result<[Any?], Error>) -> Void) - func callFlutterEchoProxyApiList( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aList: [ProxyApiTestClass?], completion: @escaping (Result<[ProxyApiTestClass?], Error>) -> Void - ) - func callFlutterEchoMap( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: Any?], - completion: @escaping (Result<[String?: Any?], Error>) -> Void) - func callFlutterEchoProxyApiMap( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aMap: [String?: ProxyApiTestClass?], - completion: @escaping (Result<[String?: ProxyApiTestClass?], Error>) -> Void) - func callFlutterEchoEnum( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - anEnum: ProxyApiTestEnum, completion: @escaping (Result) -> Void) - func callFlutterEchoProxyApi( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aProxyApi: ProxyApiSuperClass, completion: @escaping (Result) -> Void - ) - func callFlutterEchoNullableBool( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool?, - completion: @escaping (Result) -> Void) - func callFlutterEchoNullableInt( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64?, - completion: @escaping (Result) -> Void) - func callFlutterEchoNullableDouble( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double?, - completion: @escaping (Result) -> Void) - func callFlutterEchoNullableString( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String?, - completion: @escaping (Result) -> Void) - func callFlutterEchoNullableUint8List( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aUint8List: FlutterStandardTypedData?, - completion: @escaping (Result) -> Void) - func callFlutterEchoNullableList( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?]?, - completion: @escaping (Result<[Any?]?, Error>) -> Void) - func callFlutterEchoNullableMap( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aMap: [String?: Any?]?, completion: @escaping (Result<[String?: Any?]?, Error>) -> Void) - func callFlutterEchoNullableEnum( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - anEnum: ProxyApiTestEnum?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullableProxyApi( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aProxyApi: ProxyApiSuperClass?, - completion: @escaping (Result) -> Void) - func callFlutterNoopAsync( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - completion: @escaping (Result) -> Void) - func callFlutterEchoAsyncString( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String, - completion: @escaping (Result) -> Void) + func staticAsyncNoop(pigeonApi: PigeonApiProxyApiTestClass, completion: @escaping (Result) -> Void) + func callFlutterNoop(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) + func callFlutterThrowError(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) + func callFlutterThrowErrorFromVoid(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) + func callFlutterEchoBool(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool, completion: @escaping (Result) -> Void) + func callFlutterEchoInt(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64, completion: @escaping (Result) -> Void) + func callFlutterEchoDouble(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double, completion: @escaping (Result) -> Void) + func callFlutterEchoString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String, completion: @escaping (Result) -> Void) + func callFlutterEchoUint8List(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aUint8List: FlutterStandardTypedData, completion: @escaping (Result) -> Void) + func callFlutterEchoList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?], completion: @escaping (Result<[Any?], Error>) -> Void) + func callFlutterEchoProxyApiList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [ProxyApiTestClass?], completion: @escaping (Result<[ProxyApiTestClass?], Error>) -> Void) + func callFlutterEchoMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: Any?], completion: @escaping (Result<[String?: Any?], Error>) -> Void) + func callFlutterEchoProxyApiMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: ProxyApiTestClass?], completion: @escaping (Result<[String?: ProxyApiTestClass?], Error>) -> Void) + func callFlutterEchoEnum(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anEnum: ProxyApiTestEnum, completion: @escaping (Result) -> Void) + func callFlutterEchoProxyApi(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aProxyApi: ProxyApiSuperClass, completion: @escaping (Result) -> Void) + func callFlutterEchoNullableBool(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullableInt(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullableDouble(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullableString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullableUint8List(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aUint8List: FlutterStandardTypedData?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullableList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?]?, completion: @escaping (Result<[Any?]?, Error>) -> Void) + func callFlutterEchoNullableMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: Any?]?, completion: @escaping (Result<[String?: Any?]?, Error>) -> Void) + func callFlutterEchoNullableEnum(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anEnum: ProxyApiTestEnum?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullableProxyApi(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aProxyApi: ProxyApiSuperClass?, completion: @escaping (Result) -> Void) + func callFlutterNoopAsync(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) + func callFlutterEchoAsyncString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String, completion: @escaping (Result) -> Void) } protocol PigeonApiProtocolProxyApiTestClass { /// A no-op function taking no arguments and returning no value, to sanity /// test basic calling. - func flutterNoop( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - completion: @escaping (Result) -> Void) + func flutterNoop(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, completion: @escaping (Result) -> Void) /// Responds with an error from an async function returning a value. - func flutterThrowError( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - completion: @escaping (Result) -> Void) + func flutterThrowError(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, completion: @escaping (Result) -> Void) /// Responds with an error from an async void function. - func flutterThrowErrorFromVoid( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - completion: @escaping (Result) -> Void) + func flutterThrowErrorFromVoid(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, completion: @escaping (Result) -> Void) /// Returns the passed boolean, to test serialization and deserialization. - func flutterEchoBool( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aBool aBoolArg: Bool, - completion: @escaping (Result) -> Void) + func flutterEchoBool(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aBool aBoolArg: Bool, completion: @escaping (Result) -> Void) /// Returns the passed int, to test serialization and deserialization. - func flutterEchoInt( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anInt anIntArg: Int64, - completion: @escaping (Result) -> Void) + func flutterEchoInt(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anInt anIntArg: Int64, completion: @escaping (Result) -> Void) /// Returns the passed double, to test serialization and deserialization. - func flutterEchoDouble( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aDouble aDoubleArg: Double, - completion: @escaping (Result) -> Void) + func flutterEchoDouble(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aDouble aDoubleArg: Double, completion: @escaping (Result) -> Void) /// Returns the passed string, to test serialization and deserialization. - func flutterEchoString( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String, - completion: @escaping (Result) -> Void) + func flutterEchoString(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String, completion: @escaping (Result) -> Void) /// Returns the passed byte list, to test serialization and deserialization. - func flutterEchoUint8List( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: FlutterStandardTypedData, - completion: @escaping (Result) -> Void) + func flutterEchoUint8List(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: FlutterStandardTypedData, completion: @escaping (Result) -> Void) /// Returns the passed list, to test serialization and deserialization. - func flutterEchoList( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [Any?], - completion: @escaping (Result<[Any?], ProxyApiTestsError>) -> Void) + func flutterEchoList(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [Any?], completion: @escaping (Result<[Any?], ProxyApiTestsError>) -> Void) /// Returns the passed list with ProxyApis, to test serialization and /// deserialization. - func flutterEchoProxyApiList( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [ProxyApiTestClass?], - completion: @escaping (Result<[ProxyApiTestClass?], ProxyApiTestsError>) -> Void) + func flutterEchoProxyApiList(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [ProxyApiTestClass?], completion: @escaping (Result<[ProxyApiTestClass?], ProxyApiTestsError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func flutterEchoMap( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: Any?], - completion: @escaping (Result<[String?: Any?], ProxyApiTestsError>) -> Void) + func flutterEchoMap(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: Any?], completion: @escaping (Result<[String?: Any?], ProxyApiTestsError>) -> Void) /// Returns the passed map with ProxyApis, to test serialization and /// deserialization. - func flutterEchoProxyApiMap( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - aMap aMapArg: [String?: ProxyApiTestClass?], - completion: @escaping (Result<[String?: ProxyApiTestClass?], ProxyApiTestsError>) -> Void) + func flutterEchoProxyApiMap(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: ProxyApiTestClass?], completion: @escaping (Result<[String?: ProxyApiTestClass?], ProxyApiTestsError>) -> Void) /// Returns the passed enum to test serialization and deserialization. - func flutterEchoEnum( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anEnum anEnumArg: ProxyApiTestEnum, - completion: @escaping (Result) -> Void) + func flutterEchoEnum(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anEnum anEnumArg: ProxyApiTestEnum, completion: @escaping (Result) -> Void) /// Returns the passed ProxyApi to test serialization and deserialization. - func flutterEchoProxyApi( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aProxyApi aProxyApiArg: ProxyApiSuperClass, - completion: @escaping (Result) -> Void) + func flutterEchoProxyApi(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aProxyApi aProxyApiArg: ProxyApiSuperClass, completion: @escaping (Result) -> Void) /// Returns the passed boolean, to test serialization and deserialization. - func flutterEchoNullableBool( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aBool aBoolArg: Bool?, - completion: @escaping (Result) -> Void) + func flutterEchoNullableBool(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aBool aBoolArg: Bool?, completion: @escaping (Result) -> Void) /// Returns the passed int, to test serialization and deserialization. - func flutterEchoNullableInt( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anInt anIntArg: Int64?, - completion: @escaping (Result) -> Void) + func flutterEchoNullableInt(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anInt anIntArg: Int64?, completion: @escaping (Result) -> Void) /// Returns the passed double, to test serialization and deserialization. - func flutterEchoNullableDouble( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aDouble aDoubleArg: Double?, - completion: @escaping (Result) -> Void) + func flutterEchoNullableDouble(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aDouble aDoubleArg: Double?, completion: @escaping (Result) -> Void) /// Returns the passed string, to test serialization and deserialization. - func flutterEchoNullableString( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String?, - completion: @escaping (Result) -> Void) + func flutterEchoNullableString(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String?, completion: @escaping (Result) -> Void) /// Returns the passed byte list, to test serialization and deserialization. - func flutterEchoNullableUint8List( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: FlutterStandardTypedData?, - completion: @escaping (Result) -> Void) + func flutterEchoNullableUint8List(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: FlutterStandardTypedData?, completion: @escaping (Result) -> Void) /// Returns the passed list, to test serialization and deserialization. - func flutterEchoNullableList( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [Any?]?, - completion: @escaping (Result<[Any?]?, ProxyApiTestsError>) -> Void) + func flutterEchoNullableList(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [Any?]?, completion: @escaping (Result<[Any?]?, ProxyApiTestsError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func flutterEchoNullableMap( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: Any?]?, - completion: @escaping (Result<[String?: Any?]?, ProxyApiTestsError>) -> Void) + func flutterEchoNullableMap(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: Any?]?, completion: @escaping (Result<[String?: Any?]?, ProxyApiTestsError>) -> Void) /// Returns the passed enum to test serialization and deserialization. - func flutterEchoNullableEnum( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anEnum anEnumArg: ProxyApiTestEnum?, - completion: @escaping (Result) -> Void) + func flutterEchoNullableEnum(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anEnum anEnumArg: ProxyApiTestEnum?, completion: @escaping (Result) -> Void) /// Returns the passed ProxyApi to test serialization and deserialization. - func flutterEchoNullableProxyApi( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - aProxyApi aProxyApiArg: ProxyApiSuperClass?, - completion: @escaping (Result) -> Void) + func flutterEchoNullableProxyApi(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aProxyApi aProxyApiArg: ProxyApiSuperClass?, completion: @escaping (Result) -> Void) /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. - func flutterNoopAsync( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - completion: @escaping (Result) -> Void) + func flutterNoopAsync(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, completion: @escaping (Result) -> Void) /// Returns the passed in generic Object asynchronously. - func flutterEchoAsyncString( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String, - completion: @escaping (Result) -> Void) + func flutterEchoAsyncString(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String, completion: @escaping (Result) -> Void) } -final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { +final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { unowned let pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar let pigeonDelegate: PigeonApiDelegateProxyApiTestClass ///An implementation of [ProxyApiSuperClass] used to access callback methods @@ -1088,26 +802,17 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { return pigeonRegistrar.apiDelegate.pigeonApiProxyApiInterface(pigeonRegistrar) } - init( - pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar, - delegate: PigeonApiDelegateProxyApiTestClass - ) { + init(pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar, delegate: PigeonApiDelegateProxyApiTestClass) { self.pigeonRegistrar = pigeonRegistrar self.pigeonDelegate = delegate } - static func setUpMessageHandlers( - binaryMessenger: FlutterBinaryMessenger, api: PigeonApiProxyApiTestClass? - ) { + static func setUpMessageHandlers(binaryMessenger: FlutterBinaryMessenger, api: PigeonApiProxyApiTestClass?) { let codec: FlutterStandardMessageCodec = api != nil ? FlutterStandardMessageCodec( - readerWriter: ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter( - pigeonRegistrar: api!.pigeonRegistrar)) + readerWriter: ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter(pigeonRegistrar: api!.pigeonRegistrar)) : FlutterStandardMessageCodec.sharedInstance() - let pigeonDefaultConstructorChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_defaultConstructor", - binaryMessenger: binaryMessenger, codec: codec) + let pigeonDefaultConstructorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_defaultConstructor", binaryMessenger: binaryMessenger, codec: codec) if let api = api { pigeonDefaultConstructorChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1150,25 +855,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let nullableProxyApiParamArg: ProxyApiSuperClass? = nilOrValue(args[36]) do { api.pigeonRegistrar.instanceManager.addDartCreatedInstance( - try api.pigeonDelegate.pigeonDefaultConstructor( - pigeonApi: api, aBool: aBoolArg, anInt: anIntArg, aDouble: aDoubleArg, - aString: aStringArg, aUint8List: aUint8ListArg, aList: aListArg, aMap: aMapArg, - anEnum: anEnumArg, aProxyApi: aProxyApiArg, aNullableBool: aNullableBoolArg, - aNullableInt: aNullableIntArg, aNullableDouble: aNullableDoubleArg, - aNullableString: aNullableStringArg, aNullableUint8List: aNullableUint8ListArg, - aNullableList: aNullableListArg, aNullableMap: aNullableMapArg, - aNullableEnum: aNullableEnumArg, aNullableProxyApi: aNullableProxyApiArg, - boolParam: boolParamArg, intParam: intParamArg, doubleParam: doubleParamArg, - stringParam: stringParamArg, aUint8ListParam: aUint8ListParamArg, - listParam: listParamArg, mapParam: mapParamArg, enumParam: enumParamArg, - proxyApiParam: proxyApiParamArg, nullableBoolParam: nullableBoolParamArg, - nullableIntParam: nullableIntParamArg, nullableDoubleParam: nullableDoubleParamArg, - nullableStringParam: nullableStringParamArg, - nullableUint8ListParam: nullableUint8ListParamArg, - nullableListParam: nullableListParamArg, nullableMapParam: nullableMapParamArg, - nullableEnumParam: nullableEnumParamArg, - nullableProxyApiParam: nullableProxyApiParamArg), - withIdentifier: pigeonIdentifierArg) +try api.pigeonDelegate.pigeonDefaultConstructor(pigeonApi: api, aBool: aBoolArg, anInt: anIntArg, aDouble: aDoubleArg, aString: aStringArg, aUint8List: aUint8ListArg, aList: aListArg, aMap: aMapArg, anEnum: anEnumArg, aProxyApi: aProxyApiArg, aNullableBool: aNullableBoolArg, aNullableInt: aNullableIntArg, aNullableDouble: aNullableDoubleArg, aNullableString: aNullableStringArg, aNullableUint8List: aNullableUint8ListArg, aNullableList: aNullableListArg, aNullableMap: aNullableMapArg, aNullableEnum: aNullableEnumArg, aNullableProxyApi: aNullableProxyApiArg, boolParam: boolParamArg, intParam: intParamArg, doubleParam: doubleParamArg, stringParam: stringParamArg, aUint8ListParam: aUint8ListParamArg, listParam: listParamArg, mapParam: mapParamArg, enumParam: enumParamArg, proxyApiParam: proxyApiParamArg, nullableBoolParam: nullableBoolParamArg, nullableIntParam: nullableIntParamArg, nullableDoubleParam: nullableDoubleParamArg, nullableStringParam: nullableStringParamArg, nullableUint8ListParam: nullableUint8ListParamArg, nullableListParam: nullableListParamArg, nullableMapParam: nullableMapParamArg, nullableEnumParam: nullableEnumParamArg, nullableProxyApiParam: nullableProxyApiParamArg), +withIdentifier: pigeonIdentifierArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -1177,9 +865,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { pigeonDefaultConstructorChannel.setMessageHandler(nil) } - let namedConstructorChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.namedConstructor", - binaryMessenger: binaryMessenger, codec: codec) + let namedConstructorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.namedConstructor", binaryMessenger: binaryMessenger, codec: codec) if let api = api { namedConstructorChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1204,15 +890,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let aNullableProxyApiArg: ProxyApiSuperClass? = nilOrValue(args[18]) do { api.pigeonRegistrar.instanceManager.addDartCreatedInstance( - try api.pigeonDelegate.namedConstructor( - pigeonApi: api, aBool: aBoolArg, anInt: anIntArg, aDouble: aDoubleArg, - aString: aStringArg, aUint8List: aUint8ListArg, aList: aListArg, aMap: aMapArg, - anEnum: anEnumArg, aProxyApi: aProxyApiArg, aNullableBool: aNullableBoolArg, - aNullableInt: aNullableIntArg, aNullableDouble: aNullableDoubleArg, - aNullableString: aNullableStringArg, aNullableUint8List: aNullableUint8ListArg, - aNullableList: aNullableListArg, aNullableMap: aNullableMapArg, - aNullableEnum: aNullableEnumArg, aNullableProxyApi: aNullableProxyApiArg), - withIdentifier: pigeonIdentifierArg) +try api.pigeonDelegate.namedConstructor(pigeonApi: api, aBool: aBoolArg, anInt: anIntArg, aDouble: aDoubleArg, aString: aStringArg, aUint8List: aUint8ListArg, aList: aListArg, aMap: aMapArg, anEnum: anEnumArg, aProxyApi: aProxyApiArg, aNullableBool: aNullableBoolArg, aNullableInt: aNullableIntArg, aNullableDouble: aNullableDoubleArg, aNullableString: aNullableStringArg, aNullableUint8List: aNullableUint8ListArg, aNullableList: aNullableListArg, aNullableMap: aNullableMapArg, aNullableEnum: aNullableEnumArg, aNullableProxyApi: aNullableProxyApiArg), +withIdentifier: pigeonIdentifierArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -1221,18 +900,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { namedConstructorChannel.setMessageHandler(nil) } - let attachedFieldChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.attachedField", - binaryMessenger: binaryMessenger, codec: codec) + let attachedFieldChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.attachedField", binaryMessenger: binaryMessenger, codec: codec) if let api = api { attachedFieldChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let pigeonIdentifierArg = args[1] as! Int64 do { - api.pigeonRegistrar.instanceManager.addDartCreatedInstance( - try api.pigeonDelegate.attachedField(pigeonApi: api, pigeonInstance: pigeonInstanceArg), - withIdentifier: pigeonIdentifierArg) + api.pigeonRegistrar.instanceManager.addDartCreatedInstance(try api.pigeonDelegate.attachedField(pigeonApi: api, pigeonInstance: pigeonInstanceArg), withIdentifier: pigeonIdentifierArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -1241,17 +916,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { attachedFieldChannel.setMessageHandler(nil) } - let staticAttachedFieldChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticAttachedField", - binaryMessenger: binaryMessenger, codec: codec) + let staticAttachedFieldChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticAttachedField", binaryMessenger: binaryMessenger, codec: codec) if let api = api { staticAttachedFieldChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonIdentifierArg = args[0] as! Int64 do { - api.pigeonRegistrar.instanceManager.addDartCreatedInstance( - try api.pigeonDelegate.staticAttachedField(pigeonApi: api), - withIdentifier: pigeonIdentifierArg) + api.pigeonRegistrar.instanceManager.addDartCreatedInstance(try api.pigeonDelegate.staticAttachedField(pigeonApi: api), withIdentifier: pigeonIdentifierArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -1260,9 +931,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { staticAttachedFieldChannel.setMessageHandler(nil) } - let noopChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.noop", - binaryMessenger: binaryMessenger, codec: codec) + let noopChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.noop", binaryMessenger: binaryMessenger, codec: codec) if let api = api { noopChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1277,16 +946,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { noopChannel.setMessageHandler(nil) } - let throwErrorChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwError", - binaryMessenger: binaryMessenger, codec: codec) + let throwErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwError", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwErrorChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass do { - let result = try api.pigeonDelegate.throwError( - pigeonApi: api, pigeonInstance: pigeonInstanceArg) + let result = try api.pigeonDelegate.throwError(pigeonApi: api, pigeonInstance: pigeonInstanceArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1295,16 +961,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { throwErrorChannel.setMessageHandler(nil) } - let throwErrorFromVoidChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwErrorFromVoid", - binaryMessenger: binaryMessenger, codec: codec) + let throwErrorFromVoidChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwErrorFromVoid", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwErrorFromVoidChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass do { - try api.pigeonDelegate.throwErrorFromVoid( - pigeonApi: api, pigeonInstance: pigeonInstanceArg) + try api.pigeonDelegate.throwErrorFromVoid(pigeonApi: api, pigeonInstance: pigeonInstanceArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -1313,16 +976,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { throwErrorFromVoidChannel.setMessageHandler(nil) } - let throwFlutterErrorChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwFlutterError", - binaryMessenger: binaryMessenger, codec: codec) + let throwFlutterErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwFlutterError", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwFlutterErrorChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass do { - let result = try api.pigeonDelegate.throwFlutterError( - pigeonApi: api, pigeonInstance: pigeonInstanceArg) + let result = try api.pigeonDelegate.throwFlutterError(pigeonApi: api, pigeonInstance: pigeonInstanceArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1331,17 +991,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { throwFlutterErrorChannel.setMessageHandler(nil) } - let echoIntChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoInt", - binaryMessenger: binaryMessenger, codec: codec) + let echoIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoInt", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anIntArg = args[1] as! Int64 do { - let result = try api.pigeonDelegate.echoInt( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg) + let result = try api.pigeonDelegate.echoInt(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1350,17 +1007,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoIntChannel.setMessageHandler(nil) } - let echoDoubleChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoDouble", - binaryMessenger: binaryMessenger, codec: codec) + let echoDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoDouble", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aDoubleArg = args[1] as! Double do { - let result = try api.pigeonDelegate.echoDouble( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg) + let result = try api.pigeonDelegate.echoDouble(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1369,17 +1023,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoDoubleChannel.setMessageHandler(nil) } - let echoBoolChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoBool", - binaryMessenger: binaryMessenger, codec: codec) + let echoBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoBool", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aBoolArg = args[1] as! Bool do { - let result = try api.pigeonDelegate.echoBool( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg) + let result = try api.pigeonDelegate.echoBool(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1388,17 +1039,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoBoolChannel.setMessageHandler(nil) } - let echoStringChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoString", - binaryMessenger: binaryMessenger, codec: codec) + let echoStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoString", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aStringArg = args[1] as! String do { - let result = try api.pigeonDelegate.echoString( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg) + let result = try api.pigeonDelegate.echoString(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1407,17 +1055,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoStringChannel.setMessageHandler(nil) } - let echoUint8ListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoUint8List", - binaryMessenger: binaryMessenger, codec: codec) + let echoUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoUint8List", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aUint8ListArg = args[1] as! FlutterStandardTypedData do { - let result = try api.pigeonDelegate.echoUint8List( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg) + let result = try api.pigeonDelegate.echoUint8List(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1426,17 +1071,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoUint8ListChannel.setMessageHandler(nil) } - let echoObjectChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoObject", - binaryMessenger: binaryMessenger, codec: codec) + let echoObjectChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoObject", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoObjectChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anObjectArg = args[1]! do { - let result = try api.pigeonDelegate.echoObject( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anObject: anObjectArg) + let result = try api.pigeonDelegate.echoObject(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anObject: anObjectArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1445,17 +1087,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoObjectChannel.setMessageHandler(nil) } - let echoListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoList", - binaryMessenger: binaryMessenger, codec: codec) + let echoListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoList", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aListArg = args[1] as! [Any?] do { - let result = try api.pigeonDelegate.echoList( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) + let result = try api.pigeonDelegate.echoList(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1464,17 +1103,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoListChannel.setMessageHandler(nil) } - let echoProxyApiListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApiList", - binaryMessenger: binaryMessenger, codec: codec) + let echoProxyApiListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApiList", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoProxyApiListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aListArg = args[1] as! [ProxyApiTestClass] do { - let result = try api.pigeonDelegate.echoProxyApiList( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) + let result = try api.pigeonDelegate.echoProxyApiList(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1483,17 +1119,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoProxyApiListChannel.setMessageHandler(nil) } - let echoMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoMap", - binaryMessenger: binaryMessenger, codec: codec) + let echoMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoMap", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aMapArg = args[1] as! [String?: Any?] do { - let result = try api.pigeonDelegate.echoMap( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) + let result = try api.pigeonDelegate.echoMap(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1502,17 +1135,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoMapChannel.setMessageHandler(nil) } - let echoProxyApiMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApiMap", - binaryMessenger: binaryMessenger, codec: codec) + let echoProxyApiMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApiMap", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoProxyApiMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aMapArg = args[1] as! [String: ProxyApiTestClass] do { - let result = try api.pigeonDelegate.echoProxyApiMap( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) + let result = try api.pigeonDelegate.echoProxyApiMap(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1521,17 +1151,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoProxyApiMapChannel.setMessageHandler(nil) } - let echoEnumChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoEnum", - binaryMessenger: binaryMessenger, codec: codec) + let echoEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoEnum", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anEnumArg = args[1] as! ProxyApiTestEnum do { - let result = try api.pigeonDelegate.echoEnum( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg) + let result = try api.pigeonDelegate.echoEnum(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1540,17 +1167,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoEnumChannel.setMessageHandler(nil) } - let echoProxyApiChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApi", - binaryMessenger: binaryMessenger, codec: codec) + let echoProxyApiChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApi", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoProxyApiChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aProxyApiArg = args[1] as! ProxyApiSuperClass do { - let result = try api.pigeonDelegate.echoProxyApi( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aProxyApi: aProxyApiArg) + let result = try api.pigeonDelegate.echoProxyApi(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aProxyApi: aProxyApiArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1559,17 +1183,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoProxyApiChannel.setMessageHandler(nil) } - let echoNullableIntChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableInt", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableInt", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableIntArg: Int64? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableInt( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableInt: aNullableIntArg) + let result = try api.pigeonDelegate.echoNullableInt(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableInt: aNullableIntArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1578,17 +1199,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoNullableIntChannel.setMessageHandler(nil) } - let echoNullableDoubleChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableDouble", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableDouble", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableDoubleArg: Double? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableDouble( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableDouble: aNullableDoubleArg) + let result = try api.pigeonDelegate.echoNullableDouble(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableDouble: aNullableDoubleArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1597,17 +1215,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoNullableDoubleChannel.setMessageHandler(nil) } - let echoNullableBoolChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableBool", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableBool", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableBoolArg: Bool? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableBool( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableBool: aNullableBoolArg) + let result = try api.pigeonDelegate.echoNullableBool(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableBool: aNullableBoolArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1616,17 +1231,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoNullableBoolChannel.setMessageHandler(nil) } - let echoNullableStringChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableString", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableString", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableStringArg: String? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableString( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableString: aNullableStringArg) + let result = try api.pigeonDelegate.echoNullableString(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableString: aNullableStringArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1635,18 +1247,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoNullableStringChannel.setMessageHandler(nil) } - let echoNullableUint8ListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableUint8List", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableUint8List", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableUint8ListArg: FlutterStandardTypedData? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableUint8List( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, - aNullableUint8List: aNullableUint8ListArg) + let result = try api.pigeonDelegate.echoNullableUint8List(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableUint8List: aNullableUint8ListArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1655,17 +1263,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoNullableUint8ListChannel.setMessageHandler(nil) } - let echoNullableObjectChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableObject", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableObjectChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableObject", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableObjectChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableObjectArg: Any? = args[1] do { - let result = try api.pigeonDelegate.echoNullableObject( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableObject: aNullableObjectArg) + let result = try api.pigeonDelegate.echoNullableObject(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableObject: aNullableObjectArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1674,17 +1279,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoNullableObjectChannel.setMessageHandler(nil) } - let echoNullableListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableList", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableList", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableListArg: [Any?]? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableList( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableList: aNullableListArg) + let result = try api.pigeonDelegate.echoNullableList(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableList: aNullableListArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1693,17 +1295,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoNullableListChannel.setMessageHandler(nil) } - let echoNullableMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableMap", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableMap", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableMapArg: [String?: Any?]? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableMap( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableMap: aNullableMapArg) + let result = try api.pigeonDelegate.echoNullableMap(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableMap: aNullableMapArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1712,17 +1311,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoNullableMapChannel.setMessageHandler(nil) } - let echoNullableEnumChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableEnum", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableEnum", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableEnumArg: ProxyApiTestEnum? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableEnum( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableEnum: aNullableEnumArg) + let result = try api.pigeonDelegate.echoNullableEnum(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableEnum: aNullableEnumArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1731,18 +1327,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoNullableEnumChannel.setMessageHandler(nil) } - let echoNullableProxyApiChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableProxyApi", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableProxyApiChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableProxyApi", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableProxyApiChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableProxyApiArg: ProxyApiSuperClass? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableProxyApi( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, - aNullableProxyApi: aNullableProxyApiArg) + let result = try api.pigeonDelegate.echoNullableProxyApi(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableProxyApi: aNullableProxyApiArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1751,9 +1343,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoNullableProxyApiChannel.setMessageHandler(nil) } - let noopAsyncChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.noopAsync", - binaryMessenger: binaryMessenger, codec: codec) + let noopAsyncChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.noopAsync", binaryMessenger: binaryMessenger, codec: codec) if let api = api { noopAsyncChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1770,17 +1360,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { noopAsyncChannel.setMessageHandler(nil) } - let echoAsyncIntChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncInt", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncInt", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anIntArg = args[1] as! Int64 - api.pigeonDelegate.echoAsyncInt( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg - ) { result in + api.pigeonDelegate.echoAsyncInt(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1792,17 +1378,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncIntChannel.setMessageHandler(nil) } - let echoAsyncDoubleChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncDouble", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncDouble", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aDoubleArg = args[1] as! Double - api.pigeonDelegate.echoAsyncDouble( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg - ) { result in + api.pigeonDelegate.echoAsyncDouble(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1814,17 +1396,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncDoubleChannel.setMessageHandler(nil) } - let echoAsyncBoolChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncBool", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncBool", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aBoolArg = args[1] as! Bool - api.pigeonDelegate.echoAsyncBool( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg - ) { result in + api.pigeonDelegate.echoAsyncBool(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1836,17 +1414,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncBoolChannel.setMessageHandler(nil) } - let echoAsyncStringChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncString", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncString", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aStringArg = args[1] as! String - api.pigeonDelegate.echoAsyncString( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg - ) { result in + api.pigeonDelegate.echoAsyncString(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1858,17 +1432,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncStringChannel.setMessageHandler(nil) } - let echoAsyncUint8ListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncUint8List", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncUint8List", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aUint8ListArg = args[1] as! FlutterStandardTypedData - api.pigeonDelegate.echoAsyncUint8List( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg - ) { result in + api.pigeonDelegate.echoAsyncUint8List(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1880,17 +1450,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncUint8ListChannel.setMessageHandler(nil) } - let echoAsyncObjectChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncObject", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncObjectChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncObject", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncObjectChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anObjectArg = args[1]! - api.pigeonDelegate.echoAsyncObject( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anObject: anObjectArg - ) { result in + api.pigeonDelegate.echoAsyncObject(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anObject: anObjectArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1902,17 +1468,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncObjectChannel.setMessageHandler(nil) } - let echoAsyncListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncList", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncList", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aListArg = args[1] as! [Any?] - api.pigeonDelegate.echoAsyncList( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg - ) { result in + api.pigeonDelegate.echoAsyncList(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1924,17 +1486,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncListChannel.setMessageHandler(nil) } - let echoAsyncMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncMap", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncMap", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aMapArg = args[1] as! [String?: Any?] - api.pigeonDelegate.echoAsyncMap( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg - ) { result in + api.pigeonDelegate.echoAsyncMap(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1946,17 +1504,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncMapChannel.setMessageHandler(nil) } - let echoAsyncEnumChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncEnum", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncEnum", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anEnumArg = args[1] as! ProxyApiTestEnum - api.pigeonDelegate.echoAsyncEnum( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg - ) { result in + api.pigeonDelegate.echoAsyncEnum(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1968,15 +1522,12 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncEnumChannel.setMessageHandler(nil) } - let throwAsyncErrorChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncError", - binaryMessenger: binaryMessenger, codec: codec) + let throwAsyncErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncError", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwAsyncErrorChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass - api.pigeonDelegate.throwAsyncError(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { - result in + api.pigeonDelegate.throwAsyncError(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1988,16 +1539,12 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { throwAsyncErrorChannel.setMessageHandler(nil) } - let throwAsyncErrorFromVoidChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncErrorFromVoid", - binaryMessenger: binaryMessenger, codec: codec) + let throwAsyncErrorFromVoidChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncErrorFromVoid", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwAsyncErrorFromVoidChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass - api.pigeonDelegate.throwAsyncErrorFromVoid( - pigeonApi: api, pigeonInstance: pigeonInstanceArg - ) { result in + api.pigeonDelegate.throwAsyncErrorFromVoid(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { result in switch result { case .success: reply(wrapResult(nil)) @@ -2009,15 +1556,12 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { throwAsyncErrorFromVoidChannel.setMessageHandler(nil) } - let throwAsyncFlutterErrorChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncFlutterError", - binaryMessenger: binaryMessenger, codec: codec) + let throwAsyncFlutterErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncFlutterError", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwAsyncFlutterErrorChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass - api.pigeonDelegate.throwAsyncFlutterError(pigeonApi: api, pigeonInstance: pigeonInstanceArg) - { result in + api.pigeonDelegate.throwAsyncFlutterError(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2029,17 +1573,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { throwAsyncFlutterErrorChannel.setMessageHandler(nil) } - let echoAsyncNullableIntChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableInt", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableInt", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anIntArg: Int64? = nilOrValue(args[1]) - api.pigeonDelegate.echoAsyncNullableInt( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg - ) { result in + api.pigeonDelegate.echoAsyncNullableInt(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2051,17 +1591,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncNullableIntChannel.setMessageHandler(nil) } - let echoAsyncNullableDoubleChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableDouble", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableDouble", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aDoubleArg: Double? = nilOrValue(args[1]) - api.pigeonDelegate.echoAsyncNullableDouble( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg - ) { result in + api.pigeonDelegate.echoAsyncNullableDouble(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2073,17 +1609,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncNullableDoubleChannel.setMessageHandler(nil) } - let echoAsyncNullableBoolChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableBool", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableBool", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aBoolArg: Bool? = nilOrValue(args[1]) - api.pigeonDelegate.echoAsyncNullableBool( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg - ) { result in + api.pigeonDelegate.echoAsyncNullableBool(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2095,17 +1627,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncNullableBoolChannel.setMessageHandler(nil) } - let echoAsyncNullableStringChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableString", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableString", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aStringArg: String? = nilOrValue(args[1]) - api.pigeonDelegate.echoAsyncNullableString( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg - ) { result in + api.pigeonDelegate.echoAsyncNullableString(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2117,18 +1645,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncNullableStringChannel.setMessageHandler(nil) } - let echoAsyncNullableUint8ListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableUint8List", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableUint8List", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aUint8ListArg: FlutterStandardTypedData? = nilOrValue(args[1]) - api.pigeonDelegate.echoAsyncNullableUint8List( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg - ) { result in + api.pigeonDelegate.echoAsyncNullableUint8List(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2140,17 +1663,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncNullableUint8ListChannel.setMessageHandler(nil) } - let echoAsyncNullableObjectChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableObject", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableObjectChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableObject", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableObjectChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anObjectArg: Any? = args[1] - api.pigeonDelegate.echoAsyncNullableObject( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anObject: anObjectArg - ) { result in + api.pigeonDelegate.echoAsyncNullableObject(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anObject: anObjectArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2162,17 +1681,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncNullableObjectChannel.setMessageHandler(nil) } - let echoAsyncNullableListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableList", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableList", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aListArg: [Any?]? = nilOrValue(args[1]) - api.pigeonDelegate.echoAsyncNullableList( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg - ) { result in + api.pigeonDelegate.echoAsyncNullableList(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2184,17 +1699,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncNullableListChannel.setMessageHandler(nil) } - let echoAsyncNullableMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableMap", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableMap", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aMapArg: [String?: Any?]? = nilOrValue(args[1]) - api.pigeonDelegate.echoAsyncNullableMap( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg - ) { result in + api.pigeonDelegate.echoAsyncNullableMap(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2206,17 +1717,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncNullableMapChannel.setMessageHandler(nil) } - let echoAsyncNullableEnumChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableEnum", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableEnum", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anEnumArg: ProxyApiTestEnum? = nilOrValue(args[1]) - api.pigeonDelegate.echoAsyncNullableEnum( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg - ) { result in + api.pigeonDelegate.echoAsyncNullableEnum(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2228,9 +1735,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncNullableEnumChannel.setMessageHandler(nil) } - let staticNoopChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticNoop", - binaryMessenger: binaryMessenger, codec: codec) + let staticNoopChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticNoop", binaryMessenger: binaryMessenger, codec: codec) if let api = api { staticNoopChannel.setMessageHandler { _, reply in do { @@ -2243,9 +1748,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { staticNoopChannel.setMessageHandler(nil) } - let echoStaticStringChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoStaticString", - binaryMessenger: binaryMessenger, codec: codec) + let echoStaticStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoStaticString", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoStaticStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2260,9 +1763,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoStaticStringChannel.setMessageHandler(nil) } - let staticAsyncNoopChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticAsyncNoop", - binaryMessenger: binaryMessenger, codec: codec) + let staticAsyncNoopChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticAsyncNoop", binaryMessenger: binaryMessenger, codec: codec) if let api = api { staticAsyncNoopChannel.setMessageHandler { _, reply in api.pigeonDelegate.staticAsyncNoop(pigeonApi: api) { result in @@ -2277,15 +1778,12 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { staticAsyncNoopChannel.setMessageHandler(nil) } - let callFlutterNoopChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterNoop", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterNoopChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterNoop", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterNoopChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass - api.pigeonDelegate.callFlutterNoop(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { - result in + api.pigeonDelegate.callFlutterNoop(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { result in switch result { case .success: reply(wrapResult(nil)) @@ -2297,15 +1795,12 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterNoopChannel.setMessageHandler(nil) } - let callFlutterThrowErrorChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterThrowError", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterThrowErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterThrowError", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterThrowErrorChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass - api.pigeonDelegate.callFlutterThrowError(pigeonApi: api, pigeonInstance: pigeonInstanceArg) - { result in + api.pigeonDelegate.callFlutterThrowError(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2317,17 +1812,12 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterThrowErrorChannel.setMessageHandler(nil) } - let callFlutterThrowErrorFromVoidChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterThrowErrorFromVoid", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterThrowErrorFromVoidChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterThrowErrorFromVoid", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterThrowErrorFromVoidChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass - api.pigeonDelegate.callFlutterThrowErrorFromVoid( - pigeonApi: api, pigeonInstance: pigeonInstanceArg - ) { result in + api.pigeonDelegate.callFlutterThrowErrorFromVoid(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { result in switch result { case .success: reply(wrapResult(nil)) @@ -2339,17 +1829,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterThrowErrorFromVoidChannel.setMessageHandler(nil) } - let callFlutterEchoBoolChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoBool", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoBool", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aBoolArg = args[1] as! Bool - api.pigeonDelegate.callFlutterEchoBool( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg - ) { result in + api.pigeonDelegate.callFlutterEchoBool(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2361,17 +1847,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoBoolChannel.setMessageHandler(nil) } - let callFlutterEchoIntChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoInt", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoInt", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anIntArg = args[1] as! Int64 - api.pigeonDelegate.callFlutterEchoInt( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg - ) { result in + api.pigeonDelegate.callFlutterEchoInt(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2383,17 +1865,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoIntChannel.setMessageHandler(nil) } - let callFlutterEchoDoubleChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoDouble", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoDouble", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aDoubleArg = args[1] as! Double - api.pigeonDelegate.callFlutterEchoDouble( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg - ) { result in + api.pigeonDelegate.callFlutterEchoDouble(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2405,17 +1883,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoDoubleChannel.setMessageHandler(nil) } - let callFlutterEchoStringChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoString", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoString", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aStringArg = args[1] as! String - api.pigeonDelegate.callFlutterEchoString( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg - ) { result in + api.pigeonDelegate.callFlutterEchoString(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2427,18 +1901,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoStringChannel.setMessageHandler(nil) } - let callFlutterEchoUint8ListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoUint8List", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoUint8List", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aUint8ListArg = args[1] as! FlutterStandardTypedData - api.pigeonDelegate.callFlutterEchoUint8List( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg - ) { result in + api.pigeonDelegate.callFlutterEchoUint8List(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2450,17 +1919,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoUint8ListChannel.setMessageHandler(nil) } - let callFlutterEchoListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoList", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoList", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aListArg = args[1] as! [Any?] - api.pigeonDelegate.callFlutterEchoList( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg - ) { result in + api.pigeonDelegate.callFlutterEchoList(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2472,18 +1937,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoListChannel.setMessageHandler(nil) } - let callFlutterEchoProxyApiListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApiList", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoProxyApiListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApiList", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoProxyApiListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aListArg = args[1] as! [ProxyApiTestClass?] - api.pigeonDelegate.callFlutterEchoProxyApiList( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg - ) { result in + api.pigeonDelegate.callFlutterEchoProxyApiList(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2495,17 +1955,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoProxyApiListChannel.setMessageHandler(nil) } - let callFlutterEchoMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoMap", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoMap", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aMapArg = args[1] as! [String?: Any?] - api.pigeonDelegate.callFlutterEchoMap( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg - ) { result in + api.pigeonDelegate.callFlutterEchoMap(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2517,18 +1973,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoMapChannel.setMessageHandler(nil) } - let callFlutterEchoProxyApiMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApiMap", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoProxyApiMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApiMap", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoProxyApiMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aMapArg = args[1] as! [String?: ProxyApiTestClass?] - api.pigeonDelegate.callFlutterEchoProxyApiMap( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg - ) { result in + api.pigeonDelegate.callFlutterEchoProxyApiMap(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2540,17 +1991,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoProxyApiMapChannel.setMessageHandler(nil) } - let callFlutterEchoEnumChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoEnum", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoEnum", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anEnumArg = args[1] as! ProxyApiTestEnum - api.pigeonDelegate.callFlutterEchoEnum( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg - ) { result in + api.pigeonDelegate.callFlutterEchoEnum(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2562,17 +2009,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoEnumChannel.setMessageHandler(nil) } - let callFlutterEchoProxyApiChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApi", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoProxyApiChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApi", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoProxyApiChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aProxyApiArg = args[1] as! ProxyApiSuperClass - api.pigeonDelegate.callFlutterEchoProxyApi( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aProxyApi: aProxyApiArg - ) { result in + api.pigeonDelegate.callFlutterEchoProxyApi(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aProxyApi: aProxyApiArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2584,18 +2027,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoProxyApiChannel.setMessageHandler(nil) } - let callFlutterEchoNullableBoolChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableBool", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableBool", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aBoolArg: Bool? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableBool( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg - ) { result in + api.pigeonDelegate.callFlutterEchoNullableBool(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2607,18 +2045,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoNullableBoolChannel.setMessageHandler(nil) } - let callFlutterEchoNullableIntChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableInt", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableInt", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anIntArg: Int64? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableInt( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg - ) { result in + api.pigeonDelegate.callFlutterEchoNullableInt(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2630,18 +2063,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoNullableIntChannel.setMessageHandler(nil) } - let callFlutterEchoNullableDoubleChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableDouble", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableDouble", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aDoubleArg: Double? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableDouble( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg - ) { result in + api.pigeonDelegate.callFlutterEchoNullableDouble(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2653,18 +2081,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoNullableDoubleChannel.setMessageHandler(nil) } - let callFlutterEchoNullableStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableString", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableString", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aStringArg: String? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableString( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg - ) { result in + api.pigeonDelegate.callFlutterEchoNullableString(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2676,18 +2099,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoNullableStringChannel.setMessageHandler(nil) } - let callFlutterEchoNullableUint8ListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableUint8List", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableUint8List", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aUint8ListArg: FlutterStandardTypedData? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableUint8List( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg - ) { result in + api.pigeonDelegate.callFlutterEchoNullableUint8List(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2699,18 +2117,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoNullableUint8ListChannel.setMessageHandler(nil) } - let callFlutterEchoNullableListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableList", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableList", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aListArg: [Any?]? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableList( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg - ) { result in + api.pigeonDelegate.callFlutterEchoNullableList(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2722,18 +2135,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoNullableListChannel.setMessageHandler(nil) } - let callFlutterEchoNullableMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableMap", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableMap", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aMapArg: [String?: Any?]? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableMap( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg - ) { result in + api.pigeonDelegate.callFlutterEchoNullableMap(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2745,18 +2153,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoNullableMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableEnum", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableEnum", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anEnumArg: ProxyApiTestEnum? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableEnum( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg - ) { result in + api.pigeonDelegate.callFlutterEchoNullableEnum(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2768,18 +2171,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoNullableEnumChannel.setMessageHandler(nil) } - let callFlutterEchoNullableProxyApiChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableProxyApi", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableProxyApiChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableProxyApi", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableProxyApiChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aProxyApiArg: ProxyApiSuperClass? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableProxyApi( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aProxyApi: aProxyApiArg - ) { result in + api.pigeonDelegate.callFlutterEchoNullableProxyApi(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aProxyApi: aProxyApiArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2791,15 +2189,12 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoNullableProxyApiChannel.setMessageHandler(nil) } - let callFlutterNoopAsyncChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterNoopAsync", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterNoopAsyncChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterNoopAsync", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterNoopAsyncChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass - api.pigeonDelegate.callFlutterNoopAsync(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { - result in + api.pigeonDelegate.callFlutterNoopAsync(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { result in switch result { case .success: reply(wrapResult(nil)) @@ -2811,18 +2206,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterNoopAsyncChannel.setMessageHandler(nil) } - let callFlutterEchoAsyncStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoAsyncString", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoAsyncStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoAsyncString", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoAsyncStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aStringArg = args[1] as! String - api.pigeonDelegate.callFlutterEchoAsyncString( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg - ) { result in + api.pigeonDelegate.callFlutterEchoAsyncString(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2837,10 +2227,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } ///Creates a Dart instance of ProxyApiTestClass and attaches it to [pigeonInstance]. - func pigeonNewInstance( - pigeonInstance: ProxyApiTestClass, - completion: @escaping (Result) -> Void - ) { + func pigeonNewInstance(pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -2853,51 +2240,30 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { completion(.success(Void())) return } - let pigeonIdentifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance( - pigeonInstance as AnyObject) + let pigeonIdentifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance(pigeonInstance as AnyObject) let aBoolArg = try! pigeonDelegate.aBool(pigeonApi: self, pigeonInstance: pigeonInstance) let anIntArg = try! pigeonDelegate.anInt(pigeonApi: self, pigeonInstance: pigeonInstance) let aDoubleArg = try! pigeonDelegate.aDouble(pigeonApi: self, pigeonInstance: pigeonInstance) let aStringArg = try! pigeonDelegate.aString(pigeonApi: self, pigeonInstance: pigeonInstance) - let aUint8ListArg = try! pigeonDelegate.aUint8List( - pigeonApi: self, pigeonInstance: pigeonInstance) + let aUint8ListArg = try! pigeonDelegate.aUint8List(pigeonApi: self, pigeonInstance: pigeonInstance) let aListArg = try! pigeonDelegate.aList(pigeonApi: self, pigeonInstance: pigeonInstance) let aMapArg = try! pigeonDelegate.aMap(pigeonApi: self, pigeonInstance: pigeonInstance) let anEnumArg = try! pigeonDelegate.anEnum(pigeonApi: self, pigeonInstance: pigeonInstance) - let aProxyApiArg = try! pigeonDelegate.aProxyApi( - pigeonApi: self, pigeonInstance: pigeonInstance) - let aNullableBoolArg = try! pigeonDelegate.aNullableBool( - pigeonApi: self, pigeonInstance: pigeonInstance) - let aNullableIntArg = try! pigeonDelegate.aNullableInt( - pigeonApi: self, pigeonInstance: pigeonInstance) - let aNullableDoubleArg = try! pigeonDelegate.aNullableDouble( - pigeonApi: self, pigeonInstance: pigeonInstance) - let aNullableStringArg = try! pigeonDelegate.aNullableString( - pigeonApi: self, pigeonInstance: pigeonInstance) - let aNullableUint8ListArg = try! pigeonDelegate.aNullableUint8List( - pigeonApi: self, pigeonInstance: pigeonInstance) - let aNullableListArg = try! pigeonDelegate.aNullableList( - pigeonApi: self, pigeonInstance: pigeonInstance) - let aNullableMapArg = try! pigeonDelegate.aNullableMap( - pigeonApi: self, pigeonInstance: pigeonInstance) - let aNullableEnumArg = try! pigeonDelegate.aNullableEnum( - pigeonApi: self, pigeonInstance: pigeonInstance) - let aNullableProxyApiArg = try! pigeonDelegate.aNullableProxyApi( - pigeonApi: self, pigeonInstance: pigeonInstance) + let aProxyApiArg = try! pigeonDelegate.aProxyApi(pigeonApi: self, pigeonInstance: pigeonInstance) + let aNullableBoolArg = try! pigeonDelegate.aNullableBool(pigeonApi: self, pigeonInstance: pigeonInstance) + let aNullableIntArg = try! pigeonDelegate.aNullableInt(pigeonApi: self, pigeonInstance: pigeonInstance) + let aNullableDoubleArg = try! pigeonDelegate.aNullableDouble(pigeonApi: self, pigeonInstance: pigeonInstance) + let aNullableStringArg = try! pigeonDelegate.aNullableString(pigeonApi: self, pigeonInstance: pigeonInstance) + let aNullableUint8ListArg = try! pigeonDelegate.aNullableUint8List(pigeonApi: self, pigeonInstance: pigeonInstance) + let aNullableListArg = try! pigeonDelegate.aNullableList(pigeonApi: self, pigeonInstance: pigeonInstance) + let aNullableMapArg = try! pigeonDelegate.aNullableMap(pigeonApi: self, pigeonInstance: pigeonInstance) + let aNullableEnumArg = try! pigeonDelegate.aNullableEnum(pigeonApi: self, pigeonInstance: pigeonInstance) + let aNullableProxyApiArg = try! pigeonDelegate.aNullableProxyApi(pigeonApi: self, pigeonInstance: pigeonInstance) let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_newInstance" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage( - [ - pigeonIdentifierArg, aBoolArg, anIntArg, aDoubleArg, aStringArg, aUint8ListArg, aListArg, - aMapArg, anEnumArg, aProxyApiArg, aNullableBoolArg, aNullableIntArg, aNullableDoubleArg, - aNullableStringArg, aNullableUint8ListArg, aNullableListArg, aNullableMapArg, - aNullableEnumArg, aNullableProxyApiArg, - ] as [Any?] - ) { response in + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_newInstance" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([pigeonIdentifierArg, aBoolArg, anIntArg, aDoubleArg, aStringArg, aUint8ListArg, aListArg, aMapArg, anEnumArg, aProxyApiArg, aNullableBoolArg, aNullableIntArg, aNullableDoubleArg, aNullableStringArg, aNullableUint8ListArg, aNullableListArg, aNullableMapArg, aNullableEnumArg, aNullableProxyApiArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) return @@ -2914,10 +2280,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// A no-op function taking no arguments and returning no value, to sanity /// test basic calling. - func flutterNoop( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - completion: @escaping (Result) -> Void - ) { + func flutterNoop(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -2928,10 +2291,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoop" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoop" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -2949,10 +2310,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Responds with an error from an async function returning a value. - func flutterThrowError( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - completion: @escaping (Result) -> Void - ) { + func flutterThrowError(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -2963,10 +2321,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowError" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowError" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -2985,10 +2341,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Responds with an error from an async void function. - func flutterThrowErrorFromVoid( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - completion: @escaping (Result) -> Void - ) { + func flutterThrowErrorFromVoid(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -2999,10 +2352,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowErrorFromVoid" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowErrorFromVoid" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3020,10 +2371,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed boolean, to test serialization and deserialization. - func flutterEchoBool( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aBool aBoolArg: Bool, - completion: @escaping (Result) -> Void - ) { + func flutterEchoBool(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aBool aBoolArg: Bool, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3034,10 +2382,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aBoolArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3049,11 +2395,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! Bool completion(.success(result)) @@ -3062,10 +2404,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed int, to test serialization and deserialization. - func flutterEchoInt( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anInt anIntArg: Int64, - completion: @escaping (Result) -> Void - ) { + func flutterEchoInt(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anInt anIntArg: Int64, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3076,10 +2415,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoInt" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoInt" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, anIntArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3091,11 +2428,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! Int64 completion(.success(result)) @@ -3104,10 +2437,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed double, to test serialization and deserialization. - func flutterEchoDouble( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aDouble aDoubleArg: Double, - completion: @escaping (Result) -> Void - ) { + func flutterEchoDouble(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aDouble aDoubleArg: Double, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3118,10 +2448,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aDoubleArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3133,11 +2461,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! Double completion(.success(result)) @@ -3146,10 +2470,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed string, to test serialization and deserialization. - func flutterEchoString( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String, - completion: @escaping (Result) -> Void - ) { + func flutterEchoString(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3160,10 +2481,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aStringArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3175,11 +2494,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! String completion(.success(result)) @@ -3188,10 +2503,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed byte list, to test serialization and deserialization. - func flutterEchoUint8List( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: FlutterStandardTypedData, - completion: @escaping (Result) -> Void - ) { + func flutterEchoUint8List(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: FlutterStandardTypedData, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3202,10 +2514,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3217,11 +2527,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! FlutterStandardTypedData completion(.success(result)) @@ -3230,10 +2536,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed list, to test serialization and deserialization. - func flutterEchoList( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [Any?], - completion: @escaping (Result<[Any?], ProxyApiTestsError>) -> Void - ) { + func flutterEchoList(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [Any?], completion: @escaping (Result<[Any?], ProxyApiTestsError>) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3244,10 +2547,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3259,11 +2560,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [Any?] completion(.success(result)) @@ -3273,10 +2570,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { /// Returns the passed list with ProxyApis, to test serialization and /// deserialization. - func flutterEchoProxyApiList( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [ProxyApiTestClass?], - completion: @escaping (Result<[ProxyApiTestClass?], ProxyApiTestsError>) -> Void - ) { + func flutterEchoProxyApiList(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [ProxyApiTestClass?], completion: @escaping (Result<[ProxyApiTestClass?], ProxyApiTestsError>) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3287,10 +2581,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3302,11 +2594,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [ProxyApiTestClass?] completion(.success(result)) @@ -3315,10 +2603,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed map, to test serialization and deserialization. - func flutterEchoMap( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: Any?], - completion: @escaping (Result<[String?: Any?], ProxyApiTestsError>) -> Void - ) { + func flutterEchoMap(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: Any?], completion: @escaping (Result<[String?: Any?], ProxyApiTestsError>) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3329,10 +2614,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoMap" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoMap" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3344,11 +2627,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [String?: Any?] completion(.success(result)) @@ -3358,11 +2637,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { /// Returns the passed map with ProxyApis, to test serialization and /// deserialization. - func flutterEchoProxyApiMap( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - aMap aMapArg: [String?: ProxyApiTestClass?], - completion: @escaping (Result<[String?: ProxyApiTestClass?], ProxyApiTestsError>) -> Void - ) { + func flutterEchoProxyApiMap(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: ProxyApiTestClass?], completion: @escaping (Result<[String?: ProxyApiTestClass?], ProxyApiTestsError>) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3373,10 +2648,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiMap" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiMap" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3388,11 +2661,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [String?: ProxyApiTestClass?] completion(.success(result)) @@ -3401,10 +2670,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed enum to test serialization and deserialization. - func flutterEchoEnum( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anEnum anEnumArg: ProxyApiTestEnum, - completion: @escaping (Result) -> Void - ) { + func flutterEchoEnum(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anEnum anEnumArg: ProxyApiTestEnum, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3415,10 +2681,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, anEnumArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3430,11 +2694,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! ProxyApiTestEnum completion(.success(result)) @@ -3443,10 +2703,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed ProxyApi to test serialization and deserialization. - func flutterEchoProxyApi( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aProxyApi aProxyApiArg: ProxyApiSuperClass, - completion: @escaping (Result) -> Void - ) { + func flutterEchoProxyApi(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aProxyApi aProxyApiArg: ProxyApiSuperClass, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3457,10 +2714,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aProxyApiArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3472,11 +2727,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! ProxyApiSuperClass completion(.success(result)) @@ -3485,10 +2736,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed boolean, to test serialization and deserialization. - func flutterEchoNullableBool( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aBool aBoolArg: Bool?, - completion: @escaping (Result) -> Void - ) { + func flutterEchoNullableBool(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aBool aBoolArg: Bool?, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3499,10 +2747,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableBool" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableBool" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aBoolArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3521,10 +2767,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed int, to test serialization and deserialization. - func flutterEchoNullableInt( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anInt anIntArg: Int64?, - completion: @escaping (Result) -> Void - ) { + func flutterEchoNullableInt(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anInt anIntArg: Int64?, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3535,10 +2778,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableInt" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableInt" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, anIntArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3557,10 +2798,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed double, to test serialization and deserialization. - func flutterEchoNullableDouble( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aDouble aDoubleArg: Double?, - completion: @escaping (Result) -> Void - ) { + func flutterEchoNullableDouble(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aDouble aDoubleArg: Double?, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3571,10 +2809,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableDouble" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableDouble" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aDoubleArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3593,10 +2829,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed string, to test serialization and deserialization. - func flutterEchoNullableString( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String?, - completion: @escaping (Result) -> Void - ) { + func flutterEchoNullableString(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String?, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3607,10 +2840,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableString" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableString" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aStringArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3629,10 +2860,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed byte list, to test serialization and deserialization. - func flutterEchoNullableUint8List( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: FlutterStandardTypedData?, - completion: @escaping (Result) -> Void - ) { + func flutterEchoNullableUint8List(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: FlutterStandardTypedData?, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3643,10 +2871,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableUint8List" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableUint8List" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3665,10 +2891,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed list, to test serialization and deserialization. - func flutterEchoNullableList( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [Any?]?, - completion: @escaping (Result<[Any?]?, ProxyApiTestsError>) -> Void - ) { + func flutterEchoNullableList(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [Any?]?, completion: @escaping (Result<[Any?]?, ProxyApiTestsError>) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3679,10 +2902,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableList" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableList" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3701,10 +2922,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed map, to test serialization and deserialization. - func flutterEchoNullableMap( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: Any?]?, - completion: @escaping (Result<[String?: Any?]?, ProxyApiTestsError>) -> Void - ) { + func flutterEchoNullableMap(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: Any?]?, completion: @escaping (Result<[String?: Any?]?, ProxyApiTestsError>) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3715,10 +2933,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableMap" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableMap" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3737,10 +2953,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed enum to test serialization and deserialization. - func flutterEchoNullableEnum( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anEnum anEnumArg: ProxyApiTestEnum?, - completion: @escaping (Result) -> Void - ) { + func flutterEchoNullableEnum(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anEnum anEnumArg: ProxyApiTestEnum?, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3751,10 +2964,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableEnum" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableEnum" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, anEnumArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3773,11 +2984,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed ProxyApi to test serialization and deserialization. - func flutterEchoNullableProxyApi( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - aProxyApi aProxyApiArg: ProxyApiSuperClass?, - completion: @escaping (Result) -> Void - ) { + func flutterEchoNullableProxyApi(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aProxyApi aProxyApiArg: ProxyApiSuperClass?, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3788,10 +2995,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableProxyApi" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableProxyApi" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aProxyApiArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3811,10 +3016,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. - func flutterNoopAsync( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - completion: @escaping (Result) -> Void - ) { + func flutterNoopAsync(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3825,10 +3027,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoopAsync" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoopAsync" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3846,10 +3046,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed in generic Object asynchronously. - func flutterEchoAsyncString( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String, - completion: @escaping (Result) -> Void - ) { + func flutterEchoAsyncString(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3860,10 +3057,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aStringArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3875,11 +3070,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! String completion(.success(result)) @@ -3890,44 +3081,34 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } protocol PigeonApiDelegateProxyApiSuperClass { func pigeonDefaultConstructor(pigeonApi: PigeonApiProxyApiSuperClass) throws -> ProxyApiSuperClass - func aSuperMethod(pigeonApi: PigeonApiProxyApiSuperClass, pigeonInstance: ProxyApiSuperClass) - throws + func aSuperMethod(pigeonApi: PigeonApiProxyApiSuperClass, pigeonInstance: ProxyApiSuperClass) throws } protocol PigeonApiProtocolProxyApiSuperClass { } -final class PigeonApiProxyApiSuperClass: PigeonApiProtocolProxyApiSuperClass { +final class PigeonApiProxyApiSuperClass: PigeonApiProtocolProxyApiSuperClass { unowned let pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar let pigeonDelegate: PigeonApiDelegateProxyApiSuperClass - init( - pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar, - delegate: PigeonApiDelegateProxyApiSuperClass - ) { + init(pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar, delegate: PigeonApiDelegateProxyApiSuperClass) { self.pigeonRegistrar = pigeonRegistrar self.pigeonDelegate = delegate } - static func setUpMessageHandlers( - binaryMessenger: FlutterBinaryMessenger, api: PigeonApiProxyApiSuperClass? - ) { + static func setUpMessageHandlers(binaryMessenger: FlutterBinaryMessenger, api: PigeonApiProxyApiSuperClass?) { let codec: FlutterStandardMessageCodec = api != nil ? FlutterStandardMessageCodec( - readerWriter: ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter( - pigeonRegistrar: api!.pigeonRegistrar)) + readerWriter: ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter(pigeonRegistrar: api!.pigeonRegistrar)) : FlutterStandardMessageCodec.sharedInstance() - let pigeonDefaultConstructorChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_defaultConstructor", - binaryMessenger: binaryMessenger, codec: codec) + let pigeonDefaultConstructorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_defaultConstructor", binaryMessenger: binaryMessenger, codec: codec) if let api = api { pigeonDefaultConstructorChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonIdentifierArg = args[0] as! Int64 do { api.pigeonRegistrar.instanceManager.addDartCreatedInstance( - try api.pigeonDelegate.pigeonDefaultConstructor(pigeonApi: api), - withIdentifier: pigeonIdentifierArg) +try api.pigeonDelegate.pigeonDefaultConstructor(pigeonApi: api), +withIdentifier: pigeonIdentifierArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -3936,9 +3117,7 @@ final class PigeonApiProxyApiSuperClass: PigeonApiProtocolProxyApiSuperClass { } else { pigeonDefaultConstructorChannel.setMessageHandler(nil) } - let aSuperMethodChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.aSuperMethod", - binaryMessenger: binaryMessenger, codec: codec) + let aSuperMethodChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.aSuperMethod", binaryMessenger: binaryMessenger, codec: codec) if let api = api { aSuperMethodChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3956,10 +3135,7 @@ final class PigeonApiProxyApiSuperClass: PigeonApiProtocolProxyApiSuperClass { } ///Creates a Dart instance of ProxyApiSuperClass and attaches it to [pigeonInstance]. - func pigeonNewInstance( - pigeonInstance: ProxyApiSuperClass, - completion: @escaping (Result) -> Void - ) { + func pigeonNewInstance(pigeonInstance: ProxyApiSuperClass, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3972,14 +3148,11 @@ final class PigeonApiProxyApiSuperClass: PigeonApiProtocolProxyApiSuperClass { completion(.success(Void())) return } - let pigeonIdentifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance( - pigeonInstance as AnyObject) + let pigeonIdentifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance(pigeonInstance as AnyObject) let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_newInstance" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_newInstance" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonIdentifierArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4000,26 +3173,18 @@ open class PigeonApiDelegateProxyApiInterface { } protocol PigeonApiProtocolProxyApiInterface { - func anInterfaceMethod( - pigeonInstance pigeonInstanceArg: ProxyApiInterface, - completion: @escaping (Result) -> Void) + func anInterfaceMethod(pigeonInstance pigeonInstanceArg: ProxyApiInterface, completion: @escaping (Result) -> Void) } -final class PigeonApiProxyApiInterface: PigeonApiProtocolProxyApiInterface { +final class PigeonApiProxyApiInterface: PigeonApiProtocolProxyApiInterface { unowned let pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar let pigeonDelegate: PigeonApiDelegateProxyApiInterface - init( - pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar, - delegate: PigeonApiDelegateProxyApiInterface - ) { + init(pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar, delegate: PigeonApiDelegateProxyApiInterface) { self.pigeonRegistrar = pigeonRegistrar self.pigeonDelegate = delegate } ///Creates a Dart instance of ProxyApiInterface and attaches it to [pigeonInstance]. - func pigeonNewInstance( - pigeonInstance: ProxyApiInterface, - completion: @escaping (Result) -> Void - ) { + func pigeonNewInstance(pigeonInstance: ProxyApiInterface, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -4032,14 +3197,11 @@ final class PigeonApiProxyApiInterface: PigeonApiProtocolProxyApiInterface { completion(.success(Void())) return } - let pigeonIdentifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance( - pigeonInstance as AnyObject) + let pigeonIdentifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance(pigeonInstance as AnyObject) let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeon_newInstance" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeon_newInstance" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonIdentifierArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4055,10 +3217,7 @@ final class PigeonApiProxyApiInterface: PigeonApiProtocolProxyApiInterface { } } } - func anInterfaceMethod( - pigeonInstance pigeonInstanceArg: ProxyApiInterface, - completion: @escaping (Result) -> Void - ) { + func anInterfaceMethod(pigeonInstance pigeonInstanceArg: ProxyApiInterface, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -4069,10 +3228,8 @@ final class PigeonApiProxyApiInterface: PigeonApiProtocolProxyApiInterface { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.anInterfaceMethod" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.anInterfaceMethod" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4092,48 +3249,37 @@ final class PigeonApiProxyApiInterface: PigeonApiProtocolProxyApiInterface { } protocol PigeonApiDelegateClassWithApiRequirement { @available(iOS 15.0.0, macOS 10.0.0, *) - func pigeonDefaultConstructor(pigeonApi: PigeonApiClassWithApiRequirement) throws - -> ClassWithApiRequirement + func pigeonDefaultConstructor(pigeonApi: PigeonApiClassWithApiRequirement) throws -> ClassWithApiRequirement @available(iOS 15.0.0, macOS 10.0.0, *) - func aMethod(pigeonApi: PigeonApiClassWithApiRequirement, pigeonInstance: ClassWithApiRequirement) - throws + func aMethod(pigeonApi: PigeonApiClassWithApiRequirement, pigeonInstance: ClassWithApiRequirement) throws } protocol PigeonApiProtocolClassWithApiRequirement { } -final class PigeonApiClassWithApiRequirement: PigeonApiProtocolClassWithApiRequirement { +final class PigeonApiClassWithApiRequirement: PigeonApiProtocolClassWithApiRequirement { unowned let pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar let pigeonDelegate: PigeonApiDelegateClassWithApiRequirement - init( - pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar, - delegate: PigeonApiDelegateClassWithApiRequirement - ) { + init(pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar, delegate: PigeonApiDelegateClassWithApiRequirement) { self.pigeonRegistrar = pigeonRegistrar self.pigeonDelegate = delegate } - static func setUpMessageHandlers( - binaryMessenger: FlutterBinaryMessenger, api: PigeonApiClassWithApiRequirement? - ) { + static func setUpMessageHandlers(binaryMessenger: FlutterBinaryMessenger, api: PigeonApiClassWithApiRequirement?) { let codec: FlutterStandardMessageCodec = api != nil ? FlutterStandardMessageCodec( - readerWriter: ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter( - pigeonRegistrar: api!.pigeonRegistrar)) + readerWriter: ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter(pigeonRegistrar: api!.pigeonRegistrar)) : FlutterStandardMessageCodec.sharedInstance() if #available(iOS 15.0.0, macOS 10.0.0, *) { - let pigeonDefaultConstructorChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_defaultConstructor", - binaryMessenger: binaryMessenger, codec: codec) + let pigeonDefaultConstructorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_defaultConstructor", binaryMessenger: binaryMessenger, codec: codec) if let api = api { pigeonDefaultConstructorChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonIdentifierArg = args[0] as! Int64 do { api.pigeonRegistrar.instanceManager.addDartCreatedInstance( - try api.pigeonDelegate.pigeonDefaultConstructor(pigeonApi: api), - withIdentifier: pigeonIdentifierArg) +try api.pigeonDelegate.pigeonDefaultConstructor(pigeonApi: api), +withIdentifier: pigeonIdentifierArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -4142,30 +3288,23 @@ final class PigeonApiClassWithApiRequirement: PigeonApiProtocolClassWithApiRequi } else { pigeonDefaultConstructorChannel.setMessageHandler(nil) } - } else { + } else { let pigeonDefaultConstructorChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_defaultConstructor", + name: "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_defaultConstructor", binaryMessenger: binaryMessenger, codec: codec) if api != nil { pigeonDefaultConstructorChannel.setMessageHandler { message, reply in - reply( - wrapError( - FlutterError( - code: "PigeonUnsupportedOperationError", - message: - "Call to pigeonDefaultConstructor requires @available(iOS 15.0.0, macOS 10.0.0, *).", - details: nil - ))) + reply(wrapError(FlutterError(code: "PigeonUnsupportedOperationError", + message: "Call to pigeonDefaultConstructor requires @available(iOS 15.0.0, macOS 10.0.0, *).", + details: nil + ))) } } else { pigeonDefaultConstructorChannel.setMessageHandler(nil) } } if #available(iOS 15.0.0, macOS 10.0.0, *) { - let aMethodChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.aMethod", - binaryMessenger: binaryMessenger, codec: codec) + let aMethodChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.aMethod", binaryMessenger: binaryMessenger, codec: codec) if let api = api { aMethodChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4180,19 +3319,16 @@ final class PigeonApiClassWithApiRequirement: PigeonApiProtocolClassWithApiRequi } else { aMethodChannel.setMessageHandler(nil) } - } else { + } else { let aMethodChannel = FlutterBasicMessageChannel( name: "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.aMethod", binaryMessenger: binaryMessenger, codec: codec) if api != nil { aMethodChannel.setMessageHandler { message, reply in - reply( - wrapError( - FlutterError( - code: "PigeonUnsupportedOperationError", - message: "Call to aMethod requires @available(iOS 15.0.0, macOS 10.0.0, *).", - details: nil - ))) + reply(wrapError(FlutterError(code: "PigeonUnsupportedOperationError", + message: "Call to aMethod requires @available(iOS 15.0.0, macOS 10.0.0, *).", + details: nil + ))) } } else { aMethodChannel.setMessageHandler(nil) @@ -4202,10 +3338,7 @@ final class PigeonApiClassWithApiRequirement: PigeonApiProtocolClassWithApiRequi ///Creates a Dart instance of ClassWithApiRequirement and attaches it to [pigeonInstance]. @available(iOS 15.0.0, macOS 10.0.0, *) - func pigeonNewInstance( - pigeonInstance: ClassWithApiRequirement, - completion: @escaping (Result) -> Void - ) { + func pigeonNewInstance(pigeonInstance: ClassWithApiRequirement, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -4218,14 +3351,11 @@ final class PigeonApiClassWithApiRequirement: PigeonApiProtocolClassWithApiRequi completion(.success(Void())) return } - let pigeonIdentifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance( - pigeonInstance as AnyObject) + let pigeonIdentifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance(pigeonInstance as AnyObject) let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_newInstance" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_newInstance" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonIdentifierArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) diff --git a/packages/pigeon/platform_tests/test_plugin/macos/Classes/CoreTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/macos/Classes/CoreTests.gen.swift index 2b2001d6aa44..e2841cab9bdd 100644 --- a/packages/pigeon/platform_tests/test_plugin/macos/Classes/CoreTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/macos/Classes/CoreTests.gen.swift @@ -30,7 +30,7 @@ final class PigeonError: Error { var localizedDescription: String { return "PigeonError(code: \(code), message: \(message ?? ""), details: \(details ?? "")" - } + } } private func wrapResult(_ result: Any?) -> [Any?] { @@ -60,9 +60,7 @@ private func wrapError(_ error: Any) -> [Any?] { } private func createConnectionError(withChannelName channelName: String) -> PigeonError { - return PigeonError( - code: "channel-error", message: "Unable to establish connection on channel: '\(channelName)'.", - details: "") + return PigeonError(code: "channel-error", message: "Unable to establish connection on channel: '\(channelName)'.", details: "") } private func isNullish(_ value: Any?) -> Bool { @@ -90,6 +88,7 @@ enum AnotherEnum: Int { struct UnusedClass { var aField: Any? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> UnusedClass? { let aField: Any? = pigeonVar_list[0] @@ -138,6 +137,7 @@ struct AllTypes { var listMap: [Int64: [Any?]] var mapMap: [Int64: [AnyHashable?: Any?]] + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> AllTypes? { let aBool = pigeonVar_list[0] as! Bool @@ -335,6 +335,7 @@ class AllNullableTypes { var mapMap: [Int64?: [AnyHashable?: Any?]?]? var recursiveClassMap: [Int64?: AllNullableTypes?]? + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> AllNullableTypes? { let aNullableBool: Bool? = nilOrValue(pigeonVar_list[0]) @@ -475,6 +476,7 @@ struct AllNullableTypesWithoutRecursion { var listMap: [Int64?: [Any?]?]? = nil var mapMap: [Int64?: [AnyHashable?: Any?]?]? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> AllNullableTypesWithoutRecursion? { let aNullableBool: Bool? = nilOrValue(pigeonVar_list[0]) @@ -587,17 +589,16 @@ struct AllClassesWrapper { var classMap: [Int64?: AllTypes?] var nullableClassMap: [Int64?: AllNullableTypesWithoutRecursion?]? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> AllClassesWrapper? { let allNullableTypes = pigeonVar_list[0] as! AllNullableTypes - let allNullableTypesWithoutRecursion: AllNullableTypesWithoutRecursion? = nilOrValue( - pigeonVar_list[1]) + let allNullableTypesWithoutRecursion: AllNullableTypesWithoutRecursion? = nilOrValue(pigeonVar_list[1]) let allTypes: AllTypes? = nilOrValue(pigeonVar_list[2]) let classList = pigeonVar_list[3] as! [AllTypes?] let nullableClassList: [AllNullableTypesWithoutRecursion?]? = nilOrValue(pigeonVar_list[4]) let classMap = pigeonVar_list[5] as! [Int64?: AllTypes?] - let nullableClassMap: [Int64?: AllNullableTypesWithoutRecursion?]? = nilOrValue( - pigeonVar_list[6]) + let nullableClassMap: [Int64?: AllNullableTypesWithoutRecursion?]? = nilOrValue(pigeonVar_list[6]) return AllClassesWrapper( allNullableTypes: allNullableTypes, @@ -628,6 +629,7 @@ struct AllClassesWrapper { struct TestMessage { var testList: [Any?]? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> TestMessage? { let testList: [Any?]? = nilOrValue(pigeonVar_list[0]) @@ -722,6 +724,7 @@ class CoreTestsPigeonCodec: FlutterStandardMessageCodec, @unchecked Sendable { static let shared = CoreTestsPigeonCodec(readerWriter: CoreTestsPigeonCodecReaderWriter()) } + /// The core interface that each host language plugin must implement in /// platform_test integration tests. /// @@ -793,8 +796,7 @@ protocol HostIntegrationCoreApi { /// Returns the passed object, to test serialization and deserialization. func echo(_ everything: AllNullableTypes?) throws -> AllNullableTypes? /// Returns the passed object, to test serialization and deserialization. - func echo(_ everything: AllNullableTypesWithoutRecursion?) throws - -> AllNullableTypesWithoutRecursion? + func echo(_ everything: AllNullableTypesWithoutRecursion?) throws -> AllNullableTypesWithoutRecursion? /// Returns the inner `aString` value from the wrapped object, to test /// sending of nested objects. func extractNestedNullableString(from wrapper: AllClassesWrapper) throws -> String? @@ -802,13 +804,9 @@ protocol HostIntegrationCoreApi { /// sending of nested objects. func createNestedObject(with nullableString: String?) throws -> AllClassesWrapper /// Returns passed in arguments of multiple types. - func sendMultipleNullableTypes( - aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String? - ) throws -> AllNullableTypes + func sendMultipleNullableTypes(aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String?) throws -> AllNullableTypes /// Returns passed in arguments of multiple types. - func sendMultipleNullableTypesWithoutRecursion( - aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String? - ) throws -> AllNullableTypesWithoutRecursion + func sendMultipleNullableTypesWithoutRecursion(aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String?) throws -> AllNullableTypesWithoutRecursion /// Returns passed in int. func echo(_ aNullableInt: Int64?) throws -> Int64? /// Returns passed in double. @@ -848,8 +846,7 @@ protocol HostIntegrationCoreApi { /// Returns the passed map, to test serialization and deserialization. func echoNullableNonNull(enumMap: [AnEnum: AnEnum]?) throws -> [AnEnum: AnEnum]? /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull(classMap: [Int64: AllNullableTypes]?) throws -> [Int64: - AllNullableTypes]? + func echoNullableNonNull(classMap: [Int64: AllNullableTypes]?) throws -> [Int64: AllNullableTypes]? func echoNullable(_ anEnum: AnEnum?) throws -> AnEnum? func echoNullable(_ anotherEnum: AnotherEnum?) throws -> AnotherEnum? /// Returns passed in int. @@ -868,9 +865,7 @@ protocol HostIntegrationCoreApi { /// Returns the passed string asynchronously. func echoAsync(_ aString: String, completion: @escaping (Result) -> Void) /// Returns the passed in Uint8List asynchronously. - func echoAsync( - _ aUint8List: FlutterStandardTypedData, - completion: @escaping (Result) -> Void) + func echoAsync(_ aUint8List: FlutterStandardTypedData, completion: @escaping (Result) -> Void) /// Returns the passed in generic Object asynchronously. func echoAsync(_ anObject: Any, completion: @escaping (Result) -> Void) /// Returns the passed list, to test asynchronous serialization and deserialization. @@ -878,32 +873,21 @@ protocol HostIntegrationCoreApi { /// Returns the passed list, to test asynchronous serialization and deserialization. func echoAsync(enumList: [AnEnum?], completion: @escaping (Result<[AnEnum?], Error>) -> Void) /// Returns the passed list, to test asynchronous serialization and deserialization. - func echoAsync( - classList: [AllNullableTypes?], - completion: @escaping (Result<[AllNullableTypes?], Error>) -> Void) + func echoAsync(classList: [AllNullableTypes?], completion: @escaping (Result<[AllNullableTypes?], Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsync( - _ map: [AnyHashable?: Any?], completion: @escaping (Result<[AnyHashable?: Any?], Error>) -> Void - ) + func echoAsync(_ map: [AnyHashable?: Any?], completion: @escaping (Result<[AnyHashable?: Any?], Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsync( - stringMap: [String?: String?], completion: @escaping (Result<[String?: String?], Error>) -> Void - ) + func echoAsync(stringMap: [String?: String?], completion: @escaping (Result<[String?: String?], Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsync( - intMap: [Int64?: Int64?], completion: @escaping (Result<[Int64?: Int64?], Error>) -> Void) + func echoAsync(intMap: [Int64?: Int64?], completion: @escaping (Result<[Int64?: Int64?], Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsync( - enumMap: [AnEnum?: AnEnum?], completion: @escaping (Result<[AnEnum?: AnEnum?], Error>) -> Void) + func echoAsync(enumMap: [AnEnum?: AnEnum?], completion: @escaping (Result<[AnEnum?: AnEnum?], Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsync( - classMap: [Int64?: AllNullableTypes?], - completion: @escaping (Result<[Int64?: AllNullableTypes?], Error>) -> Void) + func echoAsync(classMap: [Int64?: AllNullableTypes?], completion: @escaping (Result<[Int64?: AllNullableTypes?], Error>) -> Void) /// Returns the passed enum, to test asynchronous serialization and deserialization. func echoAsync(_ anEnum: AnEnum, completion: @escaping (Result) -> Void) /// Returns the passed enum, to test asynchronous serialization and deserialization. - func echoAsync( - _ anotherEnum: AnotherEnum, completion: @escaping (Result) -> Void) + func echoAsync(_ anotherEnum: AnotherEnum, completion: @escaping (Result) -> Void) /// Responds with an error from an async function returning a value. func throwAsyncError(completion: @escaping (Result) -> Void) /// Responds with an error from an async void function. @@ -913,13 +897,9 @@ protocol HostIntegrationCoreApi { /// Returns the passed object, to test async serialization and deserialization. func echoAsync(_ everything: AllTypes, completion: @escaping (Result) -> Void) /// Returns the passed object, to test serialization and deserialization. - func echoAsync( - _ everything: AllNullableTypes?, - completion: @escaping (Result) -> Void) + func echoAsync(_ everything: AllNullableTypes?, completion: @escaping (Result) -> Void) /// Returns the passed object, to test serialization and deserialization. - func echoAsync( - _ everything: AllNullableTypesWithoutRecursion?, - completion: @escaping (Result) -> Void) + func echoAsync(_ everything: AllNullableTypesWithoutRecursion?, completion: @escaping (Result) -> Void) /// Returns passed in int asynchronously. func echoAsyncNullable(_ anInt: Int64?, completion: @escaping (Result) -> Void) /// Returns passed in double asynchronously. @@ -929,172 +909,91 @@ protocol HostIntegrationCoreApi { /// Returns the passed string asynchronously. func echoAsyncNullable(_ aString: String?, completion: @escaping (Result) -> Void) /// Returns the passed in Uint8List asynchronously. - func echoAsyncNullable( - _ aUint8List: FlutterStandardTypedData?, - completion: @escaping (Result) -> Void) + func echoAsyncNullable(_ aUint8List: FlutterStandardTypedData?, completion: @escaping (Result) -> Void) /// Returns the passed in generic Object asynchronously. func echoAsyncNullable(_ anObject: Any?, completion: @escaping (Result) -> Void) /// Returns the passed list, to test asynchronous serialization and deserialization. func echoAsyncNullable(_ list: [Any?]?, completion: @escaping (Result<[Any?]?, Error>) -> Void) /// Returns the passed list, to test asynchronous serialization and deserialization. - func echoAsyncNullable( - enumList: [AnEnum?]?, completion: @escaping (Result<[AnEnum?]?, Error>) -> Void) + func echoAsyncNullable(enumList: [AnEnum?]?, completion: @escaping (Result<[AnEnum?]?, Error>) -> Void) /// Returns the passed list, to test asynchronous serialization and deserialization. - func echoAsyncNullable( - classList: [AllNullableTypes?]?, - completion: @escaping (Result<[AllNullableTypes?]?, Error>) -> Void) + func echoAsyncNullable(classList: [AllNullableTypes?]?, completion: @escaping (Result<[AllNullableTypes?]?, Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsyncNullable( - _ map: [AnyHashable?: Any?]?, - completion: @escaping (Result<[AnyHashable?: Any?]?, Error>) -> Void) + func echoAsyncNullable(_ map: [AnyHashable?: Any?]?, completion: @escaping (Result<[AnyHashable?: Any?]?, Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsyncNullable( - stringMap: [String?: String?]?, - completion: @escaping (Result<[String?: String?]?, Error>) -> Void) + func echoAsyncNullable(stringMap: [String?: String?]?, completion: @escaping (Result<[String?: String?]?, Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsyncNullable( - intMap: [Int64?: Int64?]?, completion: @escaping (Result<[Int64?: Int64?]?, Error>) -> Void) + func echoAsyncNullable(intMap: [Int64?: Int64?]?, completion: @escaping (Result<[Int64?: Int64?]?, Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsyncNullable( - enumMap: [AnEnum?: AnEnum?]?, completion: @escaping (Result<[AnEnum?: AnEnum?]?, Error>) -> Void - ) + func echoAsyncNullable(enumMap: [AnEnum?: AnEnum?]?, completion: @escaping (Result<[AnEnum?: AnEnum?]?, Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsyncNullable( - classMap: [Int64?: AllNullableTypes?]?, - completion: @escaping (Result<[Int64?: AllNullableTypes?]?, Error>) -> Void) + func echoAsyncNullable(classMap: [Int64?: AllNullableTypes?]?, completion: @escaping (Result<[Int64?: AllNullableTypes?]?, Error>) -> Void) /// Returns the passed enum, to test asynchronous serialization and deserialization. func echoAsyncNullable(_ anEnum: AnEnum?, completion: @escaping (Result) -> Void) /// Returns the passed enum, to test asynchronous serialization and deserialization. - func echoAsyncNullable( - _ anotherEnum: AnotherEnum?, completion: @escaping (Result) -> Void) + func echoAsyncNullable(_ anotherEnum: AnotherEnum?, completion: @escaping (Result) -> Void) func callFlutterNoop(completion: @escaping (Result) -> Void) func callFlutterThrowError(completion: @escaping (Result) -> Void) func callFlutterThrowErrorFromVoid(completion: @escaping (Result) -> Void) - func callFlutterEcho( - _ everything: AllTypes, completion: @escaping (Result) -> Void) - func callFlutterEcho( - _ everything: AllNullableTypes?, - completion: @escaping (Result) -> Void) - func callFlutterSendMultipleNullableTypes( - aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String?, - completion: @escaping (Result) -> Void) - func callFlutterEcho( - _ everything: AllNullableTypesWithoutRecursion?, - completion: @escaping (Result) -> Void) - func callFlutterSendMultipleNullableTypesWithoutRecursion( - aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String?, - completion: @escaping (Result) -> Void) + func callFlutterEcho(_ everything: AllTypes, completion: @escaping (Result) -> Void) + func callFlutterEcho(_ everything: AllNullableTypes?, completion: @escaping (Result) -> Void) + func callFlutterSendMultipleNullableTypes(aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String?, completion: @escaping (Result) -> Void) + func callFlutterEcho(_ everything: AllNullableTypesWithoutRecursion?, completion: @escaping (Result) -> Void) + func callFlutterSendMultipleNullableTypesWithoutRecursion(aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String?, completion: @escaping (Result) -> Void) func callFlutterEcho(_ aBool: Bool, completion: @escaping (Result) -> Void) func callFlutterEcho(_ anInt: Int64, completion: @escaping (Result) -> Void) func callFlutterEcho(_ aDouble: Double, completion: @escaping (Result) -> Void) func callFlutterEcho(_ aString: String, completion: @escaping (Result) -> Void) - func callFlutterEcho( - _ list: FlutterStandardTypedData, - completion: @escaping (Result) -> Void) + func callFlutterEcho(_ list: FlutterStandardTypedData, completion: @escaping (Result) -> Void) func callFlutterEcho(_ list: [Any?], completion: @escaping (Result<[Any?], Error>) -> Void) - func callFlutterEcho( - enumList: [AnEnum?], completion: @escaping (Result<[AnEnum?], Error>) -> Void) - func callFlutterEcho( - classList: [AllNullableTypes?], - completion: @escaping (Result<[AllNullableTypes?], Error>) -> Void) - func callFlutterEchoNonNull( - enumList: [AnEnum], completion: @escaping (Result<[AnEnum], Error>) -> Void) - func callFlutterEchoNonNull( - classList: [AllNullableTypes], completion: @escaping (Result<[AllNullableTypes], Error>) -> Void - ) - func callFlutterEcho( - _ map: [AnyHashable?: Any?], completion: @escaping (Result<[AnyHashable?: Any?], Error>) -> Void - ) - func callFlutterEcho( - stringMap: [String?: String?], completion: @escaping (Result<[String?: String?], Error>) -> Void - ) - func callFlutterEcho( - intMap: [Int64?: Int64?], completion: @escaping (Result<[Int64?: Int64?], Error>) -> Void) - func callFlutterEcho( - enumMap: [AnEnum?: AnEnum?], completion: @escaping (Result<[AnEnum?: AnEnum?], Error>) -> Void) - func callFlutterEcho( - classMap: [Int64?: AllNullableTypes?], - completion: @escaping (Result<[Int64?: AllNullableTypes?], Error>) -> Void) - func callFlutterEchoNonNull( - stringMap: [String: String], completion: @escaping (Result<[String: String], Error>) -> Void) - func callFlutterEchoNonNull( - intMap: [Int64: Int64], completion: @escaping (Result<[Int64: Int64], Error>) -> Void) - func callFlutterEchoNonNull( - enumMap: [AnEnum: AnEnum], completion: @escaping (Result<[AnEnum: AnEnum], Error>) -> Void) - func callFlutterEchoNonNull( - classMap: [Int64: AllNullableTypes], - completion: @escaping (Result<[Int64: AllNullableTypes], Error>) -> Void) + func callFlutterEcho(enumList: [AnEnum?], completion: @escaping (Result<[AnEnum?], Error>) -> Void) + func callFlutterEcho(classList: [AllNullableTypes?], completion: @escaping (Result<[AllNullableTypes?], Error>) -> Void) + func callFlutterEchoNonNull(enumList: [AnEnum], completion: @escaping (Result<[AnEnum], Error>) -> Void) + func callFlutterEchoNonNull(classList: [AllNullableTypes], completion: @escaping (Result<[AllNullableTypes], Error>) -> Void) + func callFlutterEcho(_ map: [AnyHashable?: Any?], completion: @escaping (Result<[AnyHashable?: Any?], Error>) -> Void) + func callFlutterEcho(stringMap: [String?: String?], completion: @escaping (Result<[String?: String?], Error>) -> Void) + func callFlutterEcho(intMap: [Int64?: Int64?], completion: @escaping (Result<[Int64?: Int64?], Error>) -> Void) + func callFlutterEcho(enumMap: [AnEnum?: AnEnum?], completion: @escaping (Result<[AnEnum?: AnEnum?], Error>) -> Void) + func callFlutterEcho(classMap: [Int64?: AllNullableTypes?], completion: @escaping (Result<[Int64?: AllNullableTypes?], Error>) -> Void) + func callFlutterEchoNonNull(stringMap: [String: String], completion: @escaping (Result<[String: String], Error>) -> Void) + func callFlutterEchoNonNull(intMap: [Int64: Int64], completion: @escaping (Result<[Int64: Int64], Error>) -> Void) + func callFlutterEchoNonNull(enumMap: [AnEnum: AnEnum], completion: @escaping (Result<[AnEnum: AnEnum], Error>) -> Void) + func callFlutterEchoNonNull(classMap: [Int64: AllNullableTypes], completion: @escaping (Result<[Int64: AllNullableTypes], Error>) -> Void) func callFlutterEcho(_ anEnum: AnEnum, completion: @escaping (Result) -> Void) - func callFlutterEcho( - _ anotherEnum: AnotherEnum, completion: @escaping (Result) -> Void) + func callFlutterEcho(_ anotherEnum: AnotherEnum, completion: @escaping (Result) -> Void) func callFlutterEchoNullable(_ aBool: Bool?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullable( - _ anInt: Int64?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullable( - _ aDouble: Double?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullable( - _ aString: String?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullable( - _ list: FlutterStandardTypedData?, - completion: @escaping (Result) -> Void) - func callFlutterEchoNullable( - _ list: [Any?]?, completion: @escaping (Result<[Any?]?, Error>) -> Void) - func callFlutterEchoNullable( - enumList: [AnEnum?]?, completion: @escaping (Result<[AnEnum?]?, Error>) -> Void) - func callFlutterEchoNullable( - classList: [AllNullableTypes?]?, - completion: @escaping (Result<[AllNullableTypes?]?, Error>) -> Void) - func callFlutterEchoNullableNonNull( - enumList: [AnEnum]?, completion: @escaping (Result<[AnEnum]?, Error>) -> Void) - func callFlutterEchoNullableNonNull( - classList: [AllNullableTypes]?, - completion: @escaping (Result<[AllNullableTypes]?, Error>) -> Void) - func callFlutterEchoNullable( - _ map: [AnyHashable?: Any?]?, - completion: @escaping (Result<[AnyHashable?: Any?]?, Error>) -> Void) - func callFlutterEchoNullable( - stringMap: [String?: String?]?, - completion: @escaping (Result<[String?: String?]?, Error>) -> Void) - func callFlutterEchoNullable( - intMap: [Int64?: Int64?]?, completion: @escaping (Result<[Int64?: Int64?]?, Error>) -> Void) - func callFlutterEchoNullable( - enumMap: [AnEnum?: AnEnum?]?, completion: @escaping (Result<[AnEnum?: AnEnum?]?, Error>) -> Void - ) - func callFlutterEchoNullable( - classMap: [Int64?: AllNullableTypes?]?, - completion: @escaping (Result<[Int64?: AllNullableTypes?]?, Error>) -> Void) - func callFlutterEchoNullableNonNull( - stringMap: [String: String]?, completion: @escaping (Result<[String: String]?, Error>) -> Void) - func callFlutterEchoNullableNonNull( - intMap: [Int64: Int64]?, completion: @escaping (Result<[Int64: Int64]?, Error>) -> Void) - func callFlutterEchoNullableNonNull( - enumMap: [AnEnum: AnEnum]?, completion: @escaping (Result<[AnEnum: AnEnum]?, Error>) -> Void) - func callFlutterEchoNullableNonNull( - classMap: [Int64: AllNullableTypes]?, - completion: @escaping (Result<[Int64: AllNullableTypes]?, Error>) -> Void) - func callFlutterEchoNullable( - _ anEnum: AnEnum?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullable( - _ anotherEnum: AnotherEnum?, completion: @escaping (Result) -> Void) - func callFlutterSmallApiEcho( - _ aString: String, completion: @escaping (Result) -> Void) + func callFlutterEchoNullable(_ anInt: Int64?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullable(_ aDouble: Double?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullable(_ aString: String?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullable(_ list: FlutterStandardTypedData?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullable(_ list: [Any?]?, completion: @escaping (Result<[Any?]?, Error>) -> Void) + func callFlutterEchoNullable(enumList: [AnEnum?]?, completion: @escaping (Result<[AnEnum?]?, Error>) -> Void) + func callFlutterEchoNullable(classList: [AllNullableTypes?]?, completion: @escaping (Result<[AllNullableTypes?]?, Error>) -> Void) + func callFlutterEchoNullableNonNull(enumList: [AnEnum]?, completion: @escaping (Result<[AnEnum]?, Error>) -> Void) + func callFlutterEchoNullableNonNull(classList: [AllNullableTypes]?, completion: @escaping (Result<[AllNullableTypes]?, Error>) -> Void) + func callFlutterEchoNullable(_ map: [AnyHashable?: Any?]?, completion: @escaping (Result<[AnyHashable?: Any?]?, Error>) -> Void) + func callFlutterEchoNullable(stringMap: [String?: String?]?, completion: @escaping (Result<[String?: String?]?, Error>) -> Void) + func callFlutterEchoNullable(intMap: [Int64?: Int64?]?, completion: @escaping (Result<[Int64?: Int64?]?, Error>) -> Void) + func callFlutterEchoNullable(enumMap: [AnEnum?: AnEnum?]?, completion: @escaping (Result<[AnEnum?: AnEnum?]?, Error>) -> Void) + func callFlutterEchoNullable(classMap: [Int64?: AllNullableTypes?]?, completion: @escaping (Result<[Int64?: AllNullableTypes?]?, Error>) -> Void) + func callFlutterEchoNullableNonNull(stringMap: [String: String]?, completion: @escaping (Result<[String: String]?, Error>) -> Void) + func callFlutterEchoNullableNonNull(intMap: [Int64: Int64]?, completion: @escaping (Result<[Int64: Int64]?, Error>) -> Void) + func callFlutterEchoNullableNonNull(enumMap: [AnEnum: AnEnum]?, completion: @escaping (Result<[AnEnum: AnEnum]?, Error>) -> Void) + func callFlutterEchoNullableNonNull(classMap: [Int64: AllNullableTypes]?, completion: @escaping (Result<[Int64: AllNullableTypes]?, Error>) -> Void) + func callFlutterEchoNullable(_ anEnum: AnEnum?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullable(_ anotherEnum: AnotherEnum?, completion: @escaping (Result) -> Void) + func callFlutterSmallApiEcho(_ aString: String, completion: @escaping (Result) -> Void) } /// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. class HostIntegrationCoreApiSetup { static var codec: FlutterStandardMessageCodec { CoreTestsPigeonCodec.shared } /// Sets up an instance of `HostIntegrationCoreApi` to handle messages through the `binaryMessenger`. - static func setUp( - binaryMessenger: FlutterBinaryMessenger, api: HostIntegrationCoreApi?, - messageChannelSuffix: String = "" - ) { + static func setUp(binaryMessenger: FlutterBinaryMessenger, api: HostIntegrationCoreApi?, messageChannelSuffix: String = "") { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" /// A no-op function taking no arguments and returning no value, to sanity /// test basic calling. - let noopChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let noopChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { noopChannel.setMessageHandler { _, reply in do { @@ -1108,10 +1007,7 @@ class HostIntegrationCoreApiSetup { noopChannel.setMessageHandler(nil) } /// Returns the passed object, to test serialization and deserialization. - let echoAllTypesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllTypes\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAllTypesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllTypes\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAllTypesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1127,10 +1023,7 @@ class HostIntegrationCoreApiSetup { echoAllTypesChannel.setMessageHandler(nil) } /// Returns an error, to test error handling. - let throwErrorChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwError\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let throwErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwError\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwErrorChannel.setMessageHandler { _, reply in do { @@ -1144,10 +1037,7 @@ class HostIntegrationCoreApiSetup { throwErrorChannel.setMessageHandler(nil) } /// Returns an error from a void function, to test error handling. - let throwErrorFromVoidChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwErrorFromVoid\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let throwErrorFromVoidChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwErrorFromVoid\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwErrorFromVoidChannel.setMessageHandler { _, reply in do { @@ -1161,10 +1051,7 @@ class HostIntegrationCoreApiSetup { throwErrorFromVoidChannel.setMessageHandler(nil) } /// Returns a Flutter error, to test error handling. - let throwFlutterErrorChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwFlutterError\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let throwFlutterErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwFlutterError\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwFlutterErrorChannel.setMessageHandler { _, reply in do { @@ -1178,10 +1065,7 @@ class HostIntegrationCoreApiSetup { throwFlutterErrorChannel.setMessageHandler(nil) } /// Returns passed in int. - let echoIntChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoInt\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoInt\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1197,10 +1081,7 @@ class HostIntegrationCoreApiSetup { echoIntChannel.setMessageHandler(nil) } /// Returns passed in double. - let echoDoubleChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoDouble\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoDouble\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1216,10 +1097,7 @@ class HostIntegrationCoreApiSetup { echoDoubleChannel.setMessageHandler(nil) } /// Returns the passed in boolean. - let echoBoolChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoBool\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoBool\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1235,10 +1113,7 @@ class HostIntegrationCoreApiSetup { echoBoolChannel.setMessageHandler(nil) } /// Returns the passed in string. - let echoStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1254,10 +1129,7 @@ class HostIntegrationCoreApiSetup { echoStringChannel.setMessageHandler(nil) } /// Returns the passed in Uint8List. - let echoUint8ListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoUint8List\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoUint8List\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1273,10 +1145,7 @@ class HostIntegrationCoreApiSetup { echoUint8ListChannel.setMessageHandler(nil) } /// Returns the passed in generic Object. - let echoObjectChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoObject\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoObjectChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoObject\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoObjectChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1292,10 +1161,7 @@ class HostIntegrationCoreApiSetup { echoObjectChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1311,10 +1177,7 @@ class HostIntegrationCoreApiSetup { echoListChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1330,10 +1193,7 @@ class HostIntegrationCoreApiSetup { echoEnumListChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1349,10 +1209,7 @@ class HostIntegrationCoreApiSetup { echoClassListChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoNonNullEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNonNullEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNonNullEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1368,10 +1225,7 @@ class HostIntegrationCoreApiSetup { echoNonNullEnumListChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoNonNullClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNonNullClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNonNullClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1387,10 +1241,7 @@ class HostIntegrationCoreApiSetup { echoNonNullClassListChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1406,10 +1257,7 @@ class HostIntegrationCoreApiSetup { echoMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1425,10 +1273,7 @@ class HostIntegrationCoreApiSetup { echoStringMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1444,10 +1289,7 @@ class HostIntegrationCoreApiSetup { echoIntMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1463,10 +1305,7 @@ class HostIntegrationCoreApiSetup { echoEnumMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1482,10 +1321,7 @@ class HostIntegrationCoreApiSetup { echoClassMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNonNullStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNonNullStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNonNullStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1501,10 +1337,7 @@ class HostIntegrationCoreApiSetup { echoNonNullStringMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNonNullIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNonNullIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNonNullIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1520,10 +1353,7 @@ class HostIntegrationCoreApiSetup { echoNonNullIntMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNonNullEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNonNullEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNonNullEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1539,10 +1369,7 @@ class HostIntegrationCoreApiSetup { echoNonNullEnumMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNonNullClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNonNullClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNonNullClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1558,10 +1385,7 @@ class HostIntegrationCoreApiSetup { echoNonNullClassMapChannel.setMessageHandler(nil) } /// Returns the passed class to test nested class serialization and deserialization. - let echoClassWrapperChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassWrapper\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoClassWrapperChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassWrapper\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoClassWrapperChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1577,10 +1401,7 @@ class HostIntegrationCoreApiSetup { echoClassWrapperChannel.setMessageHandler(nil) } /// Returns the passed enum to test serialization and deserialization. - let echoEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1596,10 +1417,7 @@ class HostIntegrationCoreApiSetup { echoEnumChannel.setMessageHandler(nil) } /// Returns the passed enum to test serialization and deserialization. - let echoAnotherEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAnotherEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAnotherEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1615,10 +1433,7 @@ class HostIntegrationCoreApiSetup { echoAnotherEnumChannel.setMessageHandler(nil) } /// Returns the default string. - let echoNamedDefaultStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedDefaultString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNamedDefaultStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedDefaultString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNamedDefaultStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1634,10 +1449,7 @@ class HostIntegrationCoreApiSetup { echoNamedDefaultStringChannel.setMessageHandler(nil) } /// Returns passed in double. - let echoOptionalDefaultDoubleChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalDefaultDouble\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoOptionalDefaultDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalDefaultDouble\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoOptionalDefaultDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1653,10 +1465,7 @@ class HostIntegrationCoreApiSetup { echoOptionalDefaultDoubleChannel.setMessageHandler(nil) } /// Returns passed in int. - let echoRequiredIntChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoRequiredInt\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoRequiredIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoRequiredInt\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoRequiredIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1672,10 +1481,7 @@ class HostIntegrationCoreApiSetup { echoRequiredIntChannel.setMessageHandler(nil) } /// Returns the passed object, to test serialization and deserialization. - let echoAllNullableTypesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypes\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAllNullableTypesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypes\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAllNullableTypesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1691,10 +1497,7 @@ class HostIntegrationCoreApiSetup { echoAllNullableTypesChannel.setMessageHandler(nil) } /// Returns the passed object, to test serialization and deserialization. - let echoAllNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAllNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAllNullableTypesWithoutRecursionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1711,10 +1514,7 @@ class HostIntegrationCoreApiSetup { } /// Returns the inner `aString` value from the wrapped object, to test /// sending of nested objects. - let extractNestedNullableStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.extractNestedNullableString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let extractNestedNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.extractNestedNullableString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { extractNestedNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1731,10 +1531,7 @@ class HostIntegrationCoreApiSetup { } /// Returns the inner `aString` value from the wrapped object, to test /// sending of nested objects. - let createNestedNullableStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.createNestedNullableString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let createNestedNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.createNestedNullableString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { createNestedNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1750,10 +1547,7 @@ class HostIntegrationCoreApiSetup { createNestedNullableStringChannel.setMessageHandler(nil) } /// Returns passed in arguments of multiple types. - let sendMultipleNullableTypesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypes\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let sendMultipleNullableTypesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypes\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { sendMultipleNullableTypesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1761,8 +1555,7 @@ class HostIntegrationCoreApiSetup { let aNullableIntArg: Int64? = nilOrValue(args[1]) let aNullableStringArg: String? = nilOrValue(args[2]) do { - let result = try api.sendMultipleNullableTypes( - aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg) + let result = try api.sendMultipleNullableTypes(aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1772,10 +1565,7 @@ class HostIntegrationCoreApiSetup { sendMultipleNullableTypesChannel.setMessageHandler(nil) } /// Returns passed in arguments of multiple types. - let sendMultipleNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let sendMultipleNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { sendMultipleNullableTypesWithoutRecursionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1783,8 +1573,7 @@ class HostIntegrationCoreApiSetup { let aNullableIntArg: Int64? = nilOrValue(args[1]) let aNullableStringArg: String? = nilOrValue(args[2]) do { - let result = try api.sendMultipleNullableTypesWithoutRecursion( - aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg) + let result = try api.sendMultipleNullableTypesWithoutRecursion(aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1794,10 +1583,7 @@ class HostIntegrationCoreApiSetup { sendMultipleNullableTypesWithoutRecursionChannel.setMessageHandler(nil) } /// Returns passed in int. - let echoNullableIntChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableInt\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableInt\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1813,10 +1599,7 @@ class HostIntegrationCoreApiSetup { echoNullableIntChannel.setMessageHandler(nil) } /// Returns passed in double. - let echoNullableDoubleChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableDouble\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableDouble\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1832,10 +1615,7 @@ class HostIntegrationCoreApiSetup { echoNullableDoubleChannel.setMessageHandler(nil) } /// Returns the passed in boolean. - let echoNullableBoolChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableBool\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableBool\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1851,10 +1631,7 @@ class HostIntegrationCoreApiSetup { echoNullableBoolChannel.setMessageHandler(nil) } /// Returns the passed in string. - let echoNullableStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1870,10 +1647,7 @@ class HostIntegrationCoreApiSetup { echoNullableStringChannel.setMessageHandler(nil) } /// Returns the passed in Uint8List. - let echoNullableUint8ListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableUint8List\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableUint8List\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1889,10 +1663,7 @@ class HostIntegrationCoreApiSetup { echoNullableUint8ListChannel.setMessageHandler(nil) } /// Returns the passed in generic Object. - let echoNullableObjectChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableObject\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableObjectChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableObject\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableObjectChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1908,10 +1679,7 @@ class HostIntegrationCoreApiSetup { echoNullableObjectChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoNullableListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1927,10 +1695,7 @@ class HostIntegrationCoreApiSetup { echoNullableListChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoNullableEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1946,10 +1711,7 @@ class HostIntegrationCoreApiSetup { echoNullableEnumListChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoNullableClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1965,10 +1727,7 @@ class HostIntegrationCoreApiSetup { echoNullableClassListChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoNullableNonNullEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableNonNullEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableNonNullEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1984,10 +1743,7 @@ class HostIntegrationCoreApiSetup { echoNullableNonNullEnumListChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoNullableNonNullClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableNonNullClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableNonNullClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2003,10 +1759,7 @@ class HostIntegrationCoreApiSetup { echoNullableNonNullClassListChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2022,10 +1775,7 @@ class HostIntegrationCoreApiSetup { echoNullableMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2041,10 +1791,7 @@ class HostIntegrationCoreApiSetup { echoNullableStringMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2060,10 +1807,7 @@ class HostIntegrationCoreApiSetup { echoNullableIntMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2079,10 +1823,7 @@ class HostIntegrationCoreApiSetup { echoNullableEnumMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2098,10 +1839,7 @@ class HostIntegrationCoreApiSetup { echoNullableClassMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableNonNullStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableNonNullStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableNonNullStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2117,10 +1855,7 @@ class HostIntegrationCoreApiSetup { echoNullableNonNullStringMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableNonNullIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableNonNullIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableNonNullIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2136,10 +1871,7 @@ class HostIntegrationCoreApiSetup { echoNullableNonNullIntMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableNonNullEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableNonNullEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableNonNullEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2155,10 +1887,7 @@ class HostIntegrationCoreApiSetup { echoNullableNonNullEnumMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableNonNullClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableNonNullClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableNonNullClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2173,10 +1902,7 @@ class HostIntegrationCoreApiSetup { } else { echoNullableNonNullClassMapChannel.setMessageHandler(nil) } - let echoNullableEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2191,10 +1917,7 @@ class HostIntegrationCoreApiSetup { } else { echoNullableEnumChannel.setMessageHandler(nil) } - let echoAnotherNullableEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAnotherNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAnotherNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2210,10 +1933,7 @@ class HostIntegrationCoreApiSetup { echoAnotherNullableEnumChannel.setMessageHandler(nil) } /// Returns passed in int. - let echoOptionalNullableIntChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalNullableInt\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoOptionalNullableIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalNullableInt\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoOptionalNullableIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2229,10 +1949,7 @@ class HostIntegrationCoreApiSetup { echoOptionalNullableIntChannel.setMessageHandler(nil) } /// Returns the passed in string. - let echoNamedNullableStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedNullableString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNamedNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedNullableString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNamedNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2249,10 +1966,7 @@ class HostIntegrationCoreApiSetup { } /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. - let noopAsyncChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noopAsync\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let noopAsyncChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noopAsync\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { noopAsyncChannel.setMessageHandler { _, reply in api.noopAsync { result in @@ -2268,10 +1982,7 @@ class HostIntegrationCoreApiSetup { noopAsyncChannel.setMessageHandler(nil) } /// Returns passed in int asynchronously. - let echoAsyncIntChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncInt\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncInt\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2289,10 +2000,7 @@ class HostIntegrationCoreApiSetup { echoAsyncIntChannel.setMessageHandler(nil) } /// Returns passed in double asynchronously. - let echoAsyncDoubleChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncDouble\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncDouble\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2310,10 +2018,7 @@ class HostIntegrationCoreApiSetup { echoAsyncDoubleChannel.setMessageHandler(nil) } /// Returns the passed in boolean asynchronously. - let echoAsyncBoolChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncBool\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncBool\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2331,10 +2036,7 @@ class HostIntegrationCoreApiSetup { echoAsyncBoolChannel.setMessageHandler(nil) } /// Returns the passed string asynchronously. - let echoAsyncStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2352,10 +2054,7 @@ class HostIntegrationCoreApiSetup { echoAsyncStringChannel.setMessageHandler(nil) } /// Returns the passed in Uint8List asynchronously. - let echoAsyncUint8ListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncUint8List\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncUint8List\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2373,10 +2072,7 @@ class HostIntegrationCoreApiSetup { echoAsyncUint8ListChannel.setMessageHandler(nil) } /// Returns the passed in generic Object asynchronously. - let echoAsyncObjectChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncObject\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncObjectChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncObject\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncObjectChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2394,10 +2090,7 @@ class HostIntegrationCoreApiSetup { echoAsyncObjectChannel.setMessageHandler(nil) } /// Returns the passed list, to test asynchronous serialization and deserialization. - let echoAsyncListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2415,10 +2108,7 @@ class HostIntegrationCoreApiSetup { echoAsyncListChannel.setMessageHandler(nil) } /// Returns the passed list, to test asynchronous serialization and deserialization. - let echoAsyncEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2436,10 +2126,7 @@ class HostIntegrationCoreApiSetup { echoAsyncEnumListChannel.setMessageHandler(nil) } /// Returns the passed list, to test asynchronous serialization and deserialization. - let echoAsyncClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2457,10 +2144,7 @@ class HostIntegrationCoreApiSetup { echoAsyncClassListChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2478,10 +2162,7 @@ class HostIntegrationCoreApiSetup { echoAsyncMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2499,10 +2180,7 @@ class HostIntegrationCoreApiSetup { echoAsyncStringMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2520,10 +2198,7 @@ class HostIntegrationCoreApiSetup { echoAsyncIntMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2541,10 +2216,7 @@ class HostIntegrationCoreApiSetup { echoAsyncEnumMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2562,10 +2234,7 @@ class HostIntegrationCoreApiSetup { echoAsyncClassMapChannel.setMessageHandler(nil) } /// Returns the passed enum, to test asynchronous serialization and deserialization. - let echoAsyncEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2583,10 +2252,7 @@ class HostIntegrationCoreApiSetup { echoAsyncEnumChannel.setMessageHandler(nil) } /// Returns the passed enum, to test asynchronous serialization and deserialization. - let echoAnotherAsyncEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAnotherAsyncEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAnotherAsyncEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2604,10 +2270,7 @@ class HostIntegrationCoreApiSetup { echoAnotherAsyncEnumChannel.setMessageHandler(nil) } /// Responds with an error from an async function returning a value. - let throwAsyncErrorChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncError\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let throwAsyncErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncError\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwAsyncErrorChannel.setMessageHandler { _, reply in api.throwAsyncError { result in @@ -2623,10 +2286,7 @@ class HostIntegrationCoreApiSetup { throwAsyncErrorChannel.setMessageHandler(nil) } /// Responds with an error from an async void function. - let throwAsyncErrorFromVoidChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncErrorFromVoid\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let throwAsyncErrorFromVoidChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncErrorFromVoid\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwAsyncErrorFromVoidChannel.setMessageHandler { _, reply in api.throwAsyncErrorFromVoid { result in @@ -2642,10 +2302,7 @@ class HostIntegrationCoreApiSetup { throwAsyncErrorFromVoidChannel.setMessageHandler(nil) } /// Responds with a Flutter error from an async function returning a value. - let throwAsyncFlutterErrorChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncFlutterError\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let throwAsyncFlutterErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncFlutterError\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwAsyncFlutterErrorChannel.setMessageHandler { _, reply in api.throwAsyncFlutterError { result in @@ -2661,10 +2318,7 @@ class HostIntegrationCoreApiSetup { throwAsyncFlutterErrorChannel.setMessageHandler(nil) } /// Returns the passed object, to test async serialization and deserialization. - let echoAsyncAllTypesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncAllTypes\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncAllTypesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncAllTypes\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncAllTypesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2682,10 +2336,7 @@ class HostIntegrationCoreApiSetup { echoAsyncAllTypesChannel.setMessageHandler(nil) } /// Returns the passed object, to test serialization and deserialization. - let echoAsyncNullableAllNullableTypesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableAllNullableTypesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableAllNullableTypesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2703,10 +2354,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableAllNullableTypesChannel.setMessageHandler(nil) } /// Returns the passed object, to test serialization and deserialization. - let echoAsyncNullableAllNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableAllNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableAllNullableTypesWithoutRecursionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2724,10 +2372,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableAllNullableTypesWithoutRecursionChannel.setMessageHandler(nil) } /// Returns passed in int asynchronously. - let echoAsyncNullableIntChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableInt\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableInt\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2745,10 +2390,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableIntChannel.setMessageHandler(nil) } /// Returns passed in double asynchronously. - let echoAsyncNullableDoubleChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableDouble\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableDouble\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2766,10 +2408,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableDoubleChannel.setMessageHandler(nil) } /// Returns the passed in boolean asynchronously. - let echoAsyncNullableBoolChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableBool\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableBool\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2787,10 +2426,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableBoolChannel.setMessageHandler(nil) } /// Returns the passed string asynchronously. - let echoAsyncNullableStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2808,10 +2444,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableStringChannel.setMessageHandler(nil) } /// Returns the passed in Uint8List asynchronously. - let echoAsyncNullableUint8ListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableUint8List\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableUint8List\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2829,10 +2462,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableUint8ListChannel.setMessageHandler(nil) } /// Returns the passed in generic Object asynchronously. - let echoAsyncNullableObjectChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableObject\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableObjectChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableObject\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableObjectChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2850,10 +2480,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableObjectChannel.setMessageHandler(nil) } /// Returns the passed list, to test asynchronous serialization and deserialization. - let echoAsyncNullableListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2871,10 +2498,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableListChannel.setMessageHandler(nil) } /// Returns the passed list, to test asynchronous serialization and deserialization. - let echoAsyncNullableEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2892,10 +2516,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableEnumListChannel.setMessageHandler(nil) } /// Returns the passed list, to test asynchronous serialization and deserialization. - let echoAsyncNullableClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2913,10 +2534,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableClassListChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncNullableMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2934,10 +2552,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncNullableStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2955,10 +2570,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableStringMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncNullableIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2976,10 +2588,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableIntMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncNullableEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2997,10 +2606,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableEnumMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncNullableClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3018,10 +2624,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableClassMapChannel.setMessageHandler(nil) } /// Returns the passed enum, to test asynchronous serialization and deserialization. - let echoAsyncNullableEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3039,10 +2642,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableEnumChannel.setMessageHandler(nil) } /// Returns the passed enum, to test asynchronous serialization and deserialization. - let echoAnotherAsyncNullableEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAnotherAsyncNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAnotherAsyncNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3059,10 +2659,7 @@ class HostIntegrationCoreApiSetup { } else { echoAnotherAsyncNullableEnumChannel.setMessageHandler(nil) } - let callFlutterNoopChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterNoopChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterNoopChannel.setMessageHandler { _, reply in api.callFlutterNoop { result in @@ -3077,10 +2674,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterNoopChannel.setMessageHandler(nil) } - let callFlutterThrowErrorChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowError\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterThrowErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowError\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterThrowErrorChannel.setMessageHandler { _, reply in api.callFlutterThrowError { result in @@ -3095,10 +2689,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterThrowErrorChannel.setMessageHandler(nil) } - let callFlutterThrowErrorFromVoidChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterThrowErrorFromVoidChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterThrowErrorFromVoidChannel.setMessageHandler { _, reply in api.callFlutterThrowErrorFromVoid { result in @@ -3113,10 +2704,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterThrowErrorFromVoidChannel.setMessageHandler(nil) } - let callFlutterEchoAllTypesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllTypes\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoAllTypesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllTypes\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoAllTypesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3133,10 +2721,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoAllTypesChannel.setMessageHandler(nil) } - let callFlutterEchoAllNullableTypesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoAllNullableTypesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoAllNullableTypesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3153,19 +2738,14 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoAllNullableTypesChannel.setMessageHandler(nil) } - let callFlutterSendMultipleNullableTypesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterSendMultipleNullableTypesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterSendMultipleNullableTypesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let aNullableBoolArg: Bool? = nilOrValue(args[0]) let aNullableIntArg: Int64? = nilOrValue(args[1]) let aNullableStringArg: String? = nilOrValue(args[2]) - api.callFlutterSendMultipleNullableTypes( - aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg - ) { result in + api.callFlutterSendMultipleNullableTypes(aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -3177,10 +2757,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterSendMultipleNullableTypesChannel.setMessageHandler(nil) } - let callFlutterEchoAllNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoAllNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoAllNullableTypesWithoutRecursionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3197,20 +2774,14 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoAllNullableTypesWithoutRecursionChannel.setMessageHandler(nil) } - let callFlutterSendMultipleNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterSendMultipleNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { - callFlutterSendMultipleNullableTypesWithoutRecursionChannel.setMessageHandler { - message, reply in + callFlutterSendMultipleNullableTypesWithoutRecursionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let aNullableBoolArg: Bool? = nilOrValue(args[0]) let aNullableIntArg: Int64? = nilOrValue(args[1]) let aNullableStringArg: String? = nilOrValue(args[2]) - api.callFlutterSendMultipleNullableTypesWithoutRecursion( - aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg - ) { result in + api.callFlutterSendMultipleNullableTypesWithoutRecursion(aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -3222,10 +2793,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterSendMultipleNullableTypesWithoutRecursionChannel.setMessageHandler(nil) } - let callFlutterEchoBoolChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoBool\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoBool\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3242,10 +2810,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoBoolChannel.setMessageHandler(nil) } - let callFlutterEchoIntChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoInt\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoInt\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3262,10 +2827,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoIntChannel.setMessageHandler(nil) } - let callFlutterEchoDoubleChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoDouble\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoDouble\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3282,10 +2844,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoDoubleChannel.setMessageHandler(nil) } - let callFlutterEchoStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3302,10 +2861,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoStringChannel.setMessageHandler(nil) } - let callFlutterEchoUint8ListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoUint8List\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoUint8List\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3322,10 +2878,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoUint8ListChannel.setMessageHandler(nil) } - let callFlutterEchoListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3342,10 +2895,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoListChannel.setMessageHandler(nil) } - let callFlutterEchoEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3362,10 +2912,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoEnumListChannel.setMessageHandler(nil) } - let callFlutterEchoClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3382,10 +2929,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoClassListChannel.setMessageHandler(nil) } - let callFlutterEchoNonNullEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNonNullEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNonNullEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3402,10 +2946,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNonNullEnumListChannel.setMessageHandler(nil) } - let callFlutterEchoNonNullClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNonNullClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNonNullClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3422,10 +2963,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNonNullClassListChannel.setMessageHandler(nil) } - let callFlutterEchoMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3442,10 +2980,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoMapChannel.setMessageHandler(nil) } - let callFlutterEchoStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3462,10 +2997,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoStringMapChannel.setMessageHandler(nil) } - let callFlutterEchoIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3482,10 +3014,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoIntMapChannel.setMessageHandler(nil) } - let callFlutterEchoEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3502,10 +3031,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoEnumMapChannel.setMessageHandler(nil) } - let callFlutterEchoClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3522,10 +3048,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoClassMapChannel.setMessageHandler(nil) } - let callFlutterEchoNonNullStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNonNullStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNonNullStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3542,10 +3065,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNonNullStringMapChannel.setMessageHandler(nil) } - let callFlutterEchoNonNullIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNonNullIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNonNullIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3562,10 +3082,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNonNullIntMapChannel.setMessageHandler(nil) } - let callFlutterEchoNonNullEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNonNullEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNonNullEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3582,10 +3099,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNonNullEnumMapChannel.setMessageHandler(nil) } - let callFlutterEchoNonNullClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNonNullClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNonNullClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3602,10 +3116,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNonNullClassMapChannel.setMessageHandler(nil) } - let callFlutterEchoEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3622,10 +3133,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoEnumChannel.setMessageHandler(nil) } - let callFlutterEchoAnotherEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoAnotherEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoAnotherEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3642,10 +3150,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoAnotherEnumChannel.setMessageHandler(nil) } - let callFlutterEchoNullableBoolChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3662,10 +3167,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableBoolChannel.setMessageHandler(nil) } - let callFlutterEchoNullableIntChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableInt\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableInt\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3682,10 +3184,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableIntChannel.setMessageHandler(nil) } - let callFlutterEchoNullableDoubleChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableDouble\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableDouble\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3702,10 +3201,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableDoubleChannel.setMessageHandler(nil) } - let callFlutterEchoNullableStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3722,10 +3218,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableStringChannel.setMessageHandler(nil) } - let callFlutterEchoNullableUint8ListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableUint8List\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableUint8List\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3742,10 +3235,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableUint8ListChannel.setMessageHandler(nil) } - let callFlutterEchoNullableListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3762,10 +3252,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableListChannel.setMessageHandler(nil) } - let callFlutterEchoNullableEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3782,10 +3269,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableEnumListChannel.setMessageHandler(nil) } - let callFlutterEchoNullableClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3802,10 +3286,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableClassListChannel.setMessageHandler(nil) } - let callFlutterEchoNullableNonNullEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableNonNullEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableNonNullEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3822,10 +3303,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableNonNullEnumListChannel.setMessageHandler(nil) } - let callFlutterEchoNullableNonNullClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableNonNullClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableNonNullClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3842,10 +3320,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableNonNullClassListChannel.setMessageHandler(nil) } - let callFlutterEchoNullableMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3862,10 +3337,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3882,10 +3354,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableStringMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3902,10 +3371,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableIntMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3922,10 +3388,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableEnumMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3942,10 +3405,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableClassMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableNonNullStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableNonNullStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableNonNullStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3962,10 +3422,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableNonNullStringMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableNonNullIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableNonNullIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableNonNullIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3982,10 +3439,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableNonNullIntMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableNonNullEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableNonNullEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableNonNullEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4002,10 +3456,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableNonNullEnumMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableNonNullClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableNonNullClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableNonNullClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4022,10 +3473,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableNonNullClassMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4042,10 +3490,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableEnumChannel.setMessageHandler(nil) } - let callFlutterEchoAnotherNullableEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoAnotherNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoAnotherNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4062,10 +3507,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoAnotherNullableEnumChannel.setMessageHandler(nil) } - let callFlutterSmallApiEchoStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterSmallApiEchoStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterSmallApiEchoStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4097,30 +3539,19 @@ protocol FlutterIntegrationCoreApiProtocol { /// Responds with an error from an async void function. func throwErrorFromVoid(completion: @escaping (Result) -> Void) /// Returns the passed object, to test serialization and deserialization. - func echo( - _ everythingArg: AllTypes, completion: @escaping (Result) -> Void) + func echo(_ everythingArg: AllTypes, completion: @escaping (Result) -> Void) /// Returns the passed object, to test serialization and deserialization. - func echoNullable( - _ everythingArg: AllNullableTypes?, - completion: @escaping (Result) -> Void) + func echoNullable(_ everythingArg: AllNullableTypes?, completion: @escaping (Result) -> Void) /// Returns passed in arguments of multiple types. /// /// Tests multiple-arity FlutterApi handling. - func sendMultipleNullableTypes( - aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, - aString aNullableStringArg: String?, - completion: @escaping (Result) -> Void) + func sendMultipleNullableTypes(aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, aString aNullableStringArg: String?, completion: @escaping (Result) -> Void) /// Returns the passed object, to test serialization and deserialization. - func echoNullable( - _ everythingArg: AllNullableTypesWithoutRecursion?, - completion: @escaping (Result) -> Void) + func echoNullable(_ everythingArg: AllNullableTypesWithoutRecursion?, completion: @escaping (Result) -> Void) /// Returns passed in arguments of multiple types. /// /// Tests multiple-arity FlutterApi handling. - func sendMultipleNullableTypesWithoutRecursion( - aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, - aString aNullableStringArg: String?, - completion: @escaping (Result) -> Void) + func sendMultipleNullableTypesWithoutRecursion(aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, aString aNullableStringArg: String?, completion: @escaping (Result) -> Void) /// Returns the passed boolean, to test serialization and deserialization. func echo(_ aBoolArg: Bool, completion: @escaping (Result) -> Void) /// Returns the passed int, to test serialization and deserialization. @@ -4130,141 +3561,81 @@ protocol FlutterIntegrationCoreApiProtocol { /// Returns the passed string, to test serialization and deserialization. func echo(_ aStringArg: String, completion: @escaping (Result) -> Void) /// Returns the passed byte list, to test serialization and deserialization. - func echo( - _ listArg: FlutterStandardTypedData, - completion: @escaping (Result) -> Void) + func echo(_ listArg: FlutterStandardTypedData, completion: @escaping (Result) -> Void) /// Returns the passed list, to test serialization and deserialization. func echo(_ listArg: [Any?], completion: @escaping (Result<[Any?], PigeonError>) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echo( - enumList enumListArg: [AnEnum?], completion: @escaping (Result<[AnEnum?], PigeonError>) -> Void) + func echo(enumList enumListArg: [AnEnum?], completion: @escaping (Result<[AnEnum?], PigeonError>) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echo( - classList classListArg: [AllNullableTypes?], - completion: @escaping (Result<[AllNullableTypes?], PigeonError>) -> Void) + func echo(classList classListArg: [AllNullableTypes?], completion: @escaping (Result<[AllNullableTypes?], PigeonError>) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echoNonNull( - enumList enumListArg: [AnEnum], completion: @escaping (Result<[AnEnum], PigeonError>) -> Void) + func echoNonNull(enumList enumListArg: [AnEnum], completion: @escaping (Result<[AnEnum], PigeonError>) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echoNonNull( - classList classListArg: [AllNullableTypes], - completion: @escaping (Result<[AllNullableTypes], PigeonError>) -> Void) + func echoNonNull(classList classListArg: [AllNullableTypes], completion: @escaping (Result<[AllNullableTypes], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echo( - _ mapArg: [AnyHashable?: Any?], - completion: @escaping (Result<[AnyHashable?: Any?], PigeonError>) -> Void) + func echo(_ mapArg: [AnyHashable?: Any?], completion: @escaping (Result<[AnyHashable?: Any?], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echo( - stringMap stringMapArg: [String?: String?], - completion: @escaping (Result<[String?: String?], PigeonError>) -> Void) + func echo(stringMap stringMapArg: [String?: String?], completion: @escaping (Result<[String?: String?], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echo( - intMap intMapArg: [Int64?: Int64?], - completion: @escaping (Result<[Int64?: Int64?], PigeonError>) -> Void) + func echo(intMap intMapArg: [Int64?: Int64?], completion: @escaping (Result<[Int64?: Int64?], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echo( - enumMap enumMapArg: [AnEnum?: AnEnum?], - completion: @escaping (Result<[AnEnum?: AnEnum?], PigeonError>) -> Void) + func echo(enumMap enumMapArg: [AnEnum?: AnEnum?], completion: @escaping (Result<[AnEnum?: AnEnum?], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echo( - classMap classMapArg: [Int64?: AllNullableTypes?], - completion: @escaping (Result<[Int64?: AllNullableTypes?], PigeonError>) -> Void) + func echo(classMap classMapArg: [Int64?: AllNullableTypes?], completion: @escaping (Result<[Int64?: AllNullableTypes?], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNonNull( - stringMap stringMapArg: [String: String], - completion: @escaping (Result<[String: String], PigeonError>) -> Void) + func echoNonNull(stringMap stringMapArg: [String: String], completion: @escaping (Result<[String: String], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNonNull( - intMap intMapArg: [Int64: Int64], - completion: @escaping (Result<[Int64: Int64], PigeonError>) -> Void) + func echoNonNull(intMap intMapArg: [Int64: Int64], completion: @escaping (Result<[Int64: Int64], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNonNull( - enumMap enumMapArg: [AnEnum: AnEnum], - completion: @escaping (Result<[AnEnum: AnEnum], PigeonError>) -> Void) + func echoNonNull(enumMap enumMapArg: [AnEnum: AnEnum], completion: @escaping (Result<[AnEnum: AnEnum], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNonNull( - classMap classMapArg: [Int64: AllNullableTypes], - completion: @escaping (Result<[Int64: AllNullableTypes], PigeonError>) -> Void) + func echoNonNull(classMap classMapArg: [Int64: AllNullableTypes], completion: @escaping (Result<[Int64: AllNullableTypes], PigeonError>) -> Void) /// Returns the passed enum to test serialization and deserialization. func echo(_ anEnumArg: AnEnum, completion: @escaping (Result) -> Void) /// Returns the passed enum to test serialization and deserialization. - func echo( - _ anotherEnumArg: AnotherEnum, completion: @escaping (Result) -> Void) + func echo(_ anotherEnumArg: AnotherEnum, completion: @escaping (Result) -> Void) /// Returns the passed boolean, to test serialization and deserialization. func echoNullable(_ aBoolArg: Bool?, completion: @escaping (Result) -> Void) /// Returns the passed int, to test serialization and deserialization. func echoNullable(_ anIntArg: Int64?, completion: @escaping (Result) -> Void) /// Returns the passed double, to test serialization and deserialization. - func echoNullable( - _ aDoubleArg: Double?, completion: @escaping (Result) -> Void) + func echoNullable(_ aDoubleArg: Double?, completion: @escaping (Result) -> Void) /// Returns the passed string, to test serialization and deserialization. - func echoNullable( - _ aStringArg: String?, completion: @escaping (Result) -> Void) + func echoNullable(_ aStringArg: String?, completion: @escaping (Result) -> Void) /// Returns the passed byte list, to test serialization and deserialization. - func echoNullable( - _ listArg: FlutterStandardTypedData?, - completion: @escaping (Result) -> Void) + func echoNullable(_ listArg: FlutterStandardTypedData?, completion: @escaping (Result) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echoNullable( - _ listArg: [Any?]?, completion: @escaping (Result<[Any?]?, PigeonError>) -> Void) + func echoNullable(_ listArg: [Any?]?, completion: @escaping (Result<[Any?]?, PigeonError>) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echoNullable( - enumList enumListArg: [AnEnum?]?, - completion: @escaping (Result<[AnEnum?]?, PigeonError>) -> Void) + func echoNullable(enumList enumListArg: [AnEnum?]?, completion: @escaping (Result<[AnEnum?]?, PigeonError>) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echoNullable( - classList classListArg: [AllNullableTypes?]?, - completion: @escaping (Result<[AllNullableTypes?]?, PigeonError>) -> Void) + func echoNullable(classList classListArg: [AllNullableTypes?]?, completion: @escaping (Result<[AllNullableTypes?]?, PigeonError>) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echoNullableNonNull( - enumList enumListArg: [AnEnum]?, completion: @escaping (Result<[AnEnum]?, PigeonError>) -> Void) + func echoNullableNonNull(enumList enumListArg: [AnEnum]?, completion: @escaping (Result<[AnEnum]?, PigeonError>) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echoNullableNonNull( - classList classListArg: [AllNullableTypes]?, - completion: @escaping (Result<[AllNullableTypes]?, PigeonError>) -> Void) + func echoNullableNonNull(classList classListArg: [AllNullableTypes]?, completion: @escaping (Result<[AllNullableTypes]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - _ mapArg: [AnyHashable?: Any?]?, - completion: @escaping (Result<[AnyHashable?: Any?]?, PigeonError>) -> Void) + func echoNullable(_ mapArg: [AnyHashable?: Any?]?, completion: @escaping (Result<[AnyHashable?: Any?]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - stringMap stringMapArg: [String?: String?]?, - completion: @escaping (Result<[String?: String?]?, PigeonError>) -> Void) + func echoNullable(stringMap stringMapArg: [String?: String?]?, completion: @escaping (Result<[String?: String?]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - intMap intMapArg: [Int64?: Int64?]?, - completion: @escaping (Result<[Int64?: Int64?]?, PigeonError>) -> Void) + func echoNullable(intMap intMapArg: [Int64?: Int64?]?, completion: @escaping (Result<[Int64?: Int64?]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - enumMap enumMapArg: [AnEnum?: AnEnum?]?, - completion: @escaping (Result<[AnEnum?: AnEnum?]?, PigeonError>) -> Void) + func echoNullable(enumMap enumMapArg: [AnEnum?: AnEnum?]?, completion: @escaping (Result<[AnEnum?: AnEnum?]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - classMap classMapArg: [Int64?: AllNullableTypes?]?, - completion: @escaping (Result<[Int64?: AllNullableTypes?]?, PigeonError>) -> Void) + func echoNullable(classMap classMapArg: [Int64?: AllNullableTypes?]?, completion: @escaping (Result<[Int64?: AllNullableTypes?]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull( - stringMap stringMapArg: [String: String]?, - completion: @escaping (Result<[String: String]?, PigeonError>) -> Void) + func echoNullableNonNull(stringMap stringMapArg: [String: String]?, completion: @escaping (Result<[String: String]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull( - intMap intMapArg: [Int64: Int64]?, - completion: @escaping (Result<[Int64: Int64]?, PigeonError>) -> Void) + func echoNullableNonNull(intMap intMapArg: [Int64: Int64]?, completion: @escaping (Result<[Int64: Int64]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull( - enumMap enumMapArg: [AnEnum: AnEnum]?, - completion: @escaping (Result<[AnEnum: AnEnum]?, PigeonError>) -> Void) + func echoNullableNonNull(enumMap enumMapArg: [AnEnum: AnEnum]?, completion: @escaping (Result<[AnEnum: AnEnum]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull( - classMap classMapArg: [Int64: AllNullableTypes]?, - completion: @escaping (Result<[Int64: AllNullableTypes]?, PigeonError>) -> Void) + func echoNullableNonNull(classMap classMapArg: [Int64: AllNullableTypes]?, completion: @escaping (Result<[Int64: AllNullableTypes]?, PigeonError>) -> Void) /// Returns the passed enum to test serialization and deserialization. - func echoNullable( - _ anEnumArg: AnEnum?, completion: @escaping (Result) -> Void) + func echoNullable(_ anEnumArg: AnEnum?, completion: @escaping (Result) -> Void) /// Returns the passed enum to test serialization and deserialization. - func echoNullable( - _ anotherEnumArg: AnotherEnum?, - completion: @escaping (Result) -> Void) + func echoNullable(_ anotherEnumArg: AnotherEnum?, completion: @escaping (Result) -> Void) /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. func noopAsync(completion: @escaping (Result) -> Void) @@ -4284,10 +3655,8 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { /// A no-op function taking no arguments and returning no value, to sanity /// test basic calling. func noop(completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noop\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noop\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage(nil) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4305,10 +3674,8 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Responds with an error from an async function returning a value. func throwError(completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwError\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwError\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage(nil) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4327,10 +3694,8 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Responds with an error from an async void function. func throwErrorFromVoid(completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwErrorFromVoid\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwErrorFromVoid\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage(nil) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4347,13 +3712,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed object, to test serialization and deserialization. - func echo( - _ everythingArg: AllTypes, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(_ everythingArg: AllTypes, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([everythingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4365,11 +3726,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! AllTypes completion(.success(result)) @@ -4377,14 +3734,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed object, to test serialization and deserialization. - func echoNullable( - _ everythingArg: AllNullableTypes?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(_ everythingArg: AllNullableTypes?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([everythingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4404,17 +3756,10 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { /// Returns passed in arguments of multiple types. /// /// Tests multiple-arity FlutterApi handling. - func sendMultipleNullableTypes( - aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, - aString aNullableStringArg: String?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([aNullableBoolArg, aNullableIntArg, aNullableStringArg] as [Any?]) { - response in + func sendMultipleNullableTypes(aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, aString aNullableStringArg: String?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([aNullableBoolArg, aNullableIntArg, aNullableStringArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) return @@ -4425,11 +3770,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! AllNullableTypes completion(.success(result)) @@ -4437,14 +3778,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed object, to test serialization and deserialization. - func echoNullable( - _ everythingArg: AllNullableTypesWithoutRecursion?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(_ everythingArg: AllNullableTypesWithoutRecursion?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([everythingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4464,17 +3800,10 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { /// Returns passed in arguments of multiple types. /// /// Tests multiple-arity FlutterApi handling. - func sendMultipleNullableTypesWithoutRecursion( - aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, - aString aNullableStringArg: String?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([aNullableBoolArg, aNullableIntArg, aNullableStringArg] as [Any?]) { - response in + func sendMultipleNullableTypesWithoutRecursion(aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, aString aNullableStringArg: String?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([aNullableBoolArg, aNullableIntArg, aNullableStringArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) return @@ -4485,11 +3814,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! AllNullableTypesWithoutRecursion completion(.success(result)) @@ -4498,10 +3823,8 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Returns the passed boolean, to test serialization and deserialization. func echo(_ aBoolArg: Bool, completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([aBoolArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4513,11 +3836,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! Bool completion(.success(result)) @@ -4526,10 +3845,8 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Returns the passed int, to test serialization and deserialization. func echo(_ anIntArg: Int64, completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([anIntArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4541,11 +3858,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! Int64 completion(.success(result)) @@ -4554,10 +3867,8 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Returns the passed double, to test serialization and deserialization. func echo(_ aDoubleArg: Double, completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([aDoubleArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4569,11 +3880,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! Double completion(.success(result)) @@ -4582,10 +3889,8 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Returns the passed string, to test serialization and deserialization. func echo(_ aStringArg: String, completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([aStringArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4597,11 +3902,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! String completion(.success(result)) @@ -4609,14 +3910,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed byte list, to test serialization and deserialization. - func echo( - _ listArg: FlutterStandardTypedData, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(_ listArg: FlutterStandardTypedData, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([listArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4628,11 +3924,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! FlutterStandardTypedData completion(.success(result)) @@ -4641,10 +3933,8 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Returns the passed list, to test serialization and deserialization. func echo(_ listArg: [Any?], completion: @escaping (Result<[Any?], PigeonError>) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([listArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4656,11 +3946,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [Any?] completion(.success(result)) @@ -4668,13 +3954,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echo( - enumList enumListArg: [AnEnum?], completion: @escaping (Result<[AnEnum?], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(enumList enumListArg: [AnEnum?], completion: @escaping (Result<[AnEnum?], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([enumListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4686,11 +3968,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [AnEnum?] completion(.success(result)) @@ -4698,14 +3976,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echo( - classList classListArg: [AllNullableTypes?], - completion: @escaping (Result<[AllNullableTypes?], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(classList classListArg: [AllNullableTypes?], completion: @escaping (Result<[AllNullableTypes?], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([classListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4717,11 +3990,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [AllNullableTypes?] completion(.success(result)) @@ -4729,13 +3998,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echoNonNull( - enumList enumListArg: [AnEnum], completion: @escaping (Result<[AnEnum], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNonNull(enumList enumListArg: [AnEnum], completion: @escaping (Result<[AnEnum], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([enumListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4747,11 +4012,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [AnEnum] completion(.success(result)) @@ -4759,14 +4020,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echoNonNull( - classList classListArg: [AllNullableTypes], - completion: @escaping (Result<[AllNullableTypes], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNonNull(classList classListArg: [AllNullableTypes], completion: @escaping (Result<[AllNullableTypes], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([classListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4778,11 +4034,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [AllNullableTypes] completion(.success(result)) @@ -4790,14 +4042,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echo( - _ mapArg: [AnyHashable?: Any?], - completion: @escaping (Result<[AnyHashable?: Any?], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(_ mapArg: [AnyHashable?: Any?], completion: @escaping (Result<[AnyHashable?: Any?], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([mapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4809,11 +4056,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [AnyHashable?: Any?] completion(.success(result)) @@ -4821,14 +4064,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echo( - stringMap stringMapArg: [String?: String?], - completion: @escaping (Result<[String?: String?], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(stringMap stringMapArg: [String?: String?], completion: @escaping (Result<[String?: String?], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([stringMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4840,11 +4078,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [String?: String?] completion(.success(result)) @@ -4852,14 +4086,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echo( - intMap intMapArg: [Int64?: Int64?], - completion: @escaping (Result<[Int64?: Int64?], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(intMap intMapArg: [Int64?: Int64?], completion: @escaping (Result<[Int64?: Int64?], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([intMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4871,11 +4100,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [Int64?: Int64?] completion(.success(result)) @@ -4883,14 +4108,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echo( - enumMap enumMapArg: [AnEnum?: AnEnum?], - completion: @escaping (Result<[AnEnum?: AnEnum?], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(enumMap enumMapArg: [AnEnum?: AnEnum?], completion: @escaping (Result<[AnEnum?: AnEnum?], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([enumMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4902,11 +4122,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as? [AnEnum?: AnEnum?] completion(.success(result!)) @@ -4914,14 +4130,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echo( - classMap classMapArg: [Int64?: AllNullableTypes?], - completion: @escaping (Result<[Int64?: AllNullableTypes?], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(classMap classMapArg: [Int64?: AllNullableTypes?], completion: @escaping (Result<[Int64?: AllNullableTypes?], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([classMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4933,11 +4144,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [Int64?: AllNullableTypes?] completion(.success(result)) @@ -4945,14 +4152,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNonNull( - stringMap stringMapArg: [String: String], - completion: @escaping (Result<[String: String], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNonNull(stringMap stringMapArg: [String: String], completion: @escaping (Result<[String: String], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([stringMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4964,11 +4166,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [String: String] completion(.success(result)) @@ -4976,14 +4174,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNonNull( - intMap intMapArg: [Int64: Int64], - completion: @escaping (Result<[Int64: Int64], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNonNull(intMap intMapArg: [Int64: Int64], completion: @escaping (Result<[Int64: Int64], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([intMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4995,11 +4188,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [Int64: Int64] completion(.success(result)) @@ -5007,14 +4196,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNonNull( - enumMap enumMapArg: [AnEnum: AnEnum], - completion: @escaping (Result<[AnEnum: AnEnum], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNonNull(enumMap enumMapArg: [AnEnum: AnEnum], completion: @escaping (Result<[AnEnum: AnEnum], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([enumMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5026,11 +4210,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as? [AnEnum: AnEnum] completion(.success(result!)) @@ -5038,14 +4218,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNonNull( - classMap classMapArg: [Int64: AllNullableTypes], - completion: @escaping (Result<[Int64: AllNullableTypes], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNonNull(classMap classMapArg: [Int64: AllNullableTypes], completion: @escaping (Result<[Int64: AllNullableTypes], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([classMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5057,11 +4232,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [Int64: AllNullableTypes] completion(.success(result)) @@ -5070,10 +4241,8 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Returns the passed enum to test serialization and deserialization. func echo(_ anEnumArg: AnEnum, completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([anEnumArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5085,11 +4254,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! AnEnum completion(.success(result)) @@ -5097,13 +4262,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed enum to test serialization and deserialization. - func echo( - _ anotherEnumArg: AnotherEnum, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(_ anotherEnumArg: AnotherEnum, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([anotherEnumArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5115,11 +4276,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! AnotherEnum completion(.success(result)) @@ -5128,10 +4285,8 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Returns the passed boolean, to test serialization and deserialization. func echoNullable(_ aBoolArg: Bool?, completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([aBoolArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5149,12 +4304,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed int, to test serialization and deserialization. - func echoNullable(_ anIntArg: Int64?, completion: @escaping (Result) -> Void) - { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(_ anIntArg: Int64?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([anIntArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5172,13 +4324,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed double, to test serialization and deserialization. - func echoNullable( - _ aDoubleArg: Double?, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(_ aDoubleArg: Double?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([aDoubleArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5196,13 +4344,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed string, to test serialization and deserialization. - func echoNullable( - _ aStringArg: String?, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(_ aStringArg: String?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([aStringArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5220,14 +4364,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed byte list, to test serialization and deserialization. - func echoNullable( - _ listArg: FlutterStandardTypedData?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(_ listArg: FlutterStandardTypedData?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([listArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5245,13 +4384,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echoNullable( - _ listArg: [Any?]?, completion: @escaping (Result<[Any?]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(_ listArg: [Any?]?, completion: @escaping (Result<[Any?]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([listArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5269,14 +4404,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echoNullable( - enumList enumListArg: [AnEnum?]?, - completion: @escaping (Result<[AnEnum?]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(enumList enumListArg: [AnEnum?]?, completion: @escaping (Result<[AnEnum?]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([enumListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5294,14 +4424,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echoNullable( - classList classListArg: [AllNullableTypes?]?, - completion: @escaping (Result<[AllNullableTypes?]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(classList classListArg: [AllNullableTypes?]?, completion: @escaping (Result<[AllNullableTypes?]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([classListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5319,13 +4444,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echoNullableNonNull( - enumList enumListArg: [AnEnum]?, completion: @escaping (Result<[AnEnum]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullableNonNull(enumList enumListArg: [AnEnum]?, completion: @escaping (Result<[AnEnum]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([enumListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5343,14 +4464,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echoNullableNonNull( - classList classListArg: [AllNullableTypes]?, - completion: @escaping (Result<[AllNullableTypes]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullableNonNull(classList classListArg: [AllNullableTypes]?, completion: @escaping (Result<[AllNullableTypes]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([classListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5368,14 +4484,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - _ mapArg: [AnyHashable?: Any?]?, - completion: @escaping (Result<[AnyHashable?: Any?]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(_ mapArg: [AnyHashable?: Any?]?, completion: @escaping (Result<[AnyHashable?: Any?]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([mapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5393,14 +4504,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - stringMap stringMapArg: [String?: String?]?, - completion: @escaping (Result<[String?: String?]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableStringMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(stringMap stringMapArg: [String?: String?]?, completion: @escaping (Result<[String?: String?]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableStringMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([stringMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5418,14 +4524,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - intMap intMapArg: [Int64?: Int64?]?, - completion: @escaping (Result<[Int64?: Int64?]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableIntMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(intMap intMapArg: [Int64?: Int64?]?, completion: @escaping (Result<[Int64?: Int64?]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableIntMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([intMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5443,14 +4544,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - enumMap enumMapArg: [AnEnum?: AnEnum?]?, - completion: @escaping (Result<[AnEnum?: AnEnum?]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(enumMap enumMapArg: [AnEnum?: AnEnum?]?, completion: @escaping (Result<[AnEnum?: AnEnum?]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([enumMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5468,14 +4564,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - classMap classMapArg: [Int64?: AllNullableTypes?]?, - completion: @escaping (Result<[Int64?: AllNullableTypes?]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(classMap classMapArg: [Int64?: AllNullableTypes?]?, completion: @escaping (Result<[Int64?: AllNullableTypes?]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([classMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5493,14 +4584,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull( - stringMap stringMapArg: [String: String]?, - completion: @escaping (Result<[String: String]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullStringMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullableNonNull(stringMap stringMapArg: [String: String]?, completion: @escaping (Result<[String: String]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullStringMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([stringMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5518,14 +4604,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull( - intMap intMapArg: [Int64: Int64]?, - completion: @escaping (Result<[Int64: Int64]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullIntMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullableNonNull(intMap intMapArg: [Int64: Int64]?, completion: @escaping (Result<[Int64: Int64]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullIntMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([intMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5543,14 +4624,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull( - enumMap enumMapArg: [AnEnum: AnEnum]?, - completion: @escaping (Result<[AnEnum: AnEnum]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullableNonNull(enumMap enumMapArg: [AnEnum: AnEnum]?, completion: @escaping (Result<[AnEnum: AnEnum]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([enumMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5568,14 +4644,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull( - classMap classMapArg: [Int64: AllNullableTypes]?, - completion: @escaping (Result<[Int64: AllNullableTypes]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullableNonNull(classMap classMapArg: [Int64: AllNullableTypes]?, completion: @escaping (Result<[Int64: AllNullableTypes]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([classMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5593,13 +4664,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed enum to test serialization and deserialization. - func echoNullable( - _ anEnumArg: AnEnum?, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(_ anEnumArg: AnEnum?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([anEnumArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5617,14 +4684,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed enum to test serialization and deserialization. - func echoNullable( - _ anotherEnumArg: AnotherEnum?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(_ anotherEnumArg: AnotherEnum?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([anotherEnumArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5644,10 +4706,8 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. func noopAsync(completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noopAsync\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noopAsync\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage(nil) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5664,12 +4724,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed in generic Object asynchronously. - func echoAsync(_ aStringArg: String, completion: @escaping (Result) -> Void) - { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoAsync(_ aStringArg: String, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([aStringArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5681,11 +4738,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! String completion(.success(result)) @@ -5704,13 +4757,9 @@ protocol HostTrivialApi { class HostTrivialApiSetup { static var codec: FlutterStandardMessageCodec { CoreTestsPigeonCodec.shared } /// Sets up an instance of `HostTrivialApi` to handle messages through the `binaryMessenger`. - static func setUp( - binaryMessenger: FlutterBinaryMessenger, api: HostTrivialApi?, messageChannelSuffix: String = "" - ) { + static func setUp(binaryMessenger: FlutterBinaryMessenger, api: HostTrivialApi?, messageChannelSuffix: String = "") { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let noopChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let noopChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { noopChannel.setMessageHandler { _, reply in do { @@ -5737,13 +4786,9 @@ protocol HostSmallApi { class HostSmallApiSetup { static var codec: FlutterStandardMessageCodec { CoreTestsPigeonCodec.shared } /// Sets up an instance of `HostSmallApi` to handle messages through the `binaryMessenger`. - static func setUp( - binaryMessenger: FlutterBinaryMessenger, api: HostSmallApi?, messageChannelSuffix: String = "" - ) { + static func setUp(binaryMessenger: FlutterBinaryMessenger, api: HostSmallApi?, messageChannelSuffix: String = "") { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let echoChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5760,9 +4805,7 @@ class HostSmallApiSetup { } else { echoChannel.setMessageHandler(nil) } - let voidVoidChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let voidVoidChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { voidVoidChannel.setMessageHandler { _, reply in api.voidVoid { result in @@ -5796,12 +4839,9 @@ class FlutterSmallApi: FlutterSmallApiProtocol { var codec: CoreTestsPigeonCodec { return CoreTestsPigeonCodec.shared } - func echo(_ msgArg: TestMessage, completion: @escaping (Result) -> Void) - { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(_ msgArg: TestMessage, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([msgArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5813,23 +4853,16 @@ class FlutterSmallApi: FlutterSmallApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! TestMessage completion(.success(result)) } } } - func echo(string aStringArg: String, completion: @escaping (Result) -> Void) - { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(string aStringArg: String, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([aStringArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5841,11 +4874,7 @@ class FlutterSmallApi: FlutterSmallApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! String completion(.success(result)) diff --git a/packages/pigeon/platform_tests/test_plugin/macos/Classes/EventChannelTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/macos/Classes/EventChannelTests.gen.swift index 09f682ece4b6..1abd6cbae5bc 100644 --- a/packages/pigeon/platform_tests/test_plugin/macos/Classes/EventChannelTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/macos/Classes/EventChannelTests.gen.swift @@ -30,7 +30,7 @@ final class EventChannelTestsError: Error { var localizedDescription: String { return "EventChannelTestsError(code: \(code), message: \(message ?? ""), details: \(details ?? "")" - } + } } private func isNullish(_ value: Any?) -> Bool { @@ -155,6 +155,7 @@ class EventAllNullableTypes { var mapMap: [Int64?: [AnyHashable?: Any?]?]? var recursiveClassMap: [Int64?: EventAllNullableTypes?]? + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> EventAllNullableTypes? { let aNullableBool: Bool? = nilOrValue(pigeonVar_list[0]) @@ -270,6 +271,7 @@ protocol PlatformEvent { struct IntEvent: PlatformEvent { var value: Int64 + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> IntEvent? { let value = pigeonVar_list[0] as! Int64 @@ -289,6 +291,7 @@ struct IntEvent: PlatformEvent { struct StringEvent: PlatformEvent { var value: String + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> StringEvent? { let value = pigeonVar_list[0] as! String @@ -308,6 +311,7 @@ struct StringEvent: PlatformEvent { struct BoolEvent: PlatformEvent { var value: Bool + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> BoolEvent? { let value = pigeonVar_list[0] as! Bool @@ -327,6 +331,7 @@ struct BoolEvent: PlatformEvent { struct DoubleEvent: PlatformEvent { var value: Double + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> DoubleEvent? { let value = pigeonVar_list[0] as! Double @@ -346,6 +351,7 @@ struct DoubleEvent: PlatformEvent { struct ObjectsEvent: PlatformEvent { var value: Any + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> ObjectsEvent? { let value = pigeonVar_list[0]! @@ -365,6 +371,7 @@ struct ObjectsEvent: PlatformEvent { struct EnumEvent: PlatformEvent { var value: EventEnum + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> EnumEvent? { let value = pigeonVar_list[0] as! EventEnum @@ -384,6 +391,7 @@ struct EnumEvent: PlatformEvent { struct ClassEvent: PlatformEvent { var value: EventAllNullableTypes + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> ClassEvent? { let value = pigeonVar_list[0] as! EventAllNullableTypes @@ -485,12 +493,11 @@ private class EventChannelTestsPigeonCodecReaderWriter: FlutterStandardReaderWri } class EventChannelTestsPigeonCodec: FlutterStandardMessageCodec, @unchecked Sendable { - static let shared = EventChannelTestsPigeonCodec( - readerWriter: EventChannelTestsPigeonCodecReaderWriter()) + static let shared = EventChannelTestsPigeonCodec(readerWriter: EventChannelTestsPigeonCodecReaderWriter()) } -var eventChannelTestsPigeonMethodCodec = FlutterStandardMethodCodec( - readerWriter: EventChannelTestsPigeonCodecReaderWriter()) +var eventChannelTestsPigeonMethodCodec = FlutterStandardMethodCodec(readerWriter: EventChannelTestsPigeonCodecReaderWriter()); + private class PigeonStreamHandler: NSObject, FlutterStreamHandler { private let wrapper: PigeonEventChannelWrapper @@ -542,35 +549,30 @@ class PigeonEventSink { } class StreamIntsStreamHandler: PigeonEventChannelWrapper { - static func register( - with messenger: FlutterBinaryMessenger, - instanceName: String = "", - streamHandler: StreamIntsStreamHandler - ) { + static func register(with messenger: FlutterBinaryMessenger, + instanceName: String = "", + streamHandler: StreamIntsStreamHandler) { var channelName = "dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamInts" if !instanceName.isEmpty { channelName += ".\(instanceName)" } let internalStreamHandler = PigeonStreamHandler(wrapper: streamHandler) - let channel = FlutterEventChannel( - name: channelName, binaryMessenger: messenger, codec: eventChannelTestsPigeonMethodCodec) + let channel = FlutterEventChannel(name: channelName, binaryMessenger: messenger, codec: eventChannelTestsPigeonMethodCodec) channel.setStreamHandler(internalStreamHandler) } } - + class StreamEventsStreamHandler: PigeonEventChannelWrapper { - static func register( - with messenger: FlutterBinaryMessenger, - instanceName: String = "", - streamHandler: StreamEventsStreamHandler - ) { + static func register(with messenger: FlutterBinaryMessenger, + instanceName: String = "", + streamHandler: StreamEventsStreamHandler) { var channelName = "dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamEvents" if !instanceName.isEmpty { channelName += ".\(instanceName)" } let internalStreamHandler = PigeonStreamHandler(wrapper: streamHandler) - let channel = FlutterEventChannel( - name: channelName, binaryMessenger: messenger, codec: eventChannelTestsPigeonMethodCodec) + let channel = FlutterEventChannel(name: channelName, binaryMessenger: messenger, codec: eventChannelTestsPigeonMethodCodec) channel.setStreamHandler(internalStreamHandler) } } + diff --git a/packages/pigeon/platform_tests/test_plugin/macos/Classes/ProxyApiTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/macos/Classes/ProxyApiTests.gen.swift index 506565c1dd67..5ae6b20c0d1d 100644 --- a/packages/pigeon/platform_tests/test_plugin/macos/Classes/ProxyApiTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/macos/Classes/ProxyApiTests.gen.swift @@ -30,7 +30,7 @@ final class ProxyApiTestsError: Error { var localizedDescription: String { return "ProxyApiTestsError(code: \(code), message: \(message ?? ""), details: \(details ?? "")" - } + } } private func wrapResult(_ result: Any?) -> [Any?] { @@ -60,9 +60,7 @@ private func wrapError(_ error: Any) -> [Any?] { } private func createConnectionError(withChannelName channelName: String) -> ProxyApiTestsError { - return ProxyApiTestsError( - code: "channel-error", message: "Unable to establish connection on channel: '\(channelName)'.", - details: "") + return ProxyApiTestsError(code: "channel-error", message: "Unable to establish connection on channel: '\(channelName)'.", details: "") } private func isNullish(_ value: Any?) -> Bool { @@ -79,6 +77,7 @@ protocol ProxyApiTestsPigeonInternalFinalizerDelegate: AnyObject { func onDeinit(identifier: Int64) } + // Attaches to an object to receive a callback when the object is deallocated. internal final class ProxyApiTestsPigeonInternalFinalizer { private static let associatedObjectKey = malloc(1)! @@ -94,8 +93,7 @@ internal final class ProxyApiTestsPigeonInternalFinalizer { } internal static func attach( - to instance: AnyObject, identifier: Int64, - delegate: ProxyApiTestsPigeonInternalFinalizerDelegate + to instance: AnyObject, identifier: Int64, delegate: ProxyApiTestsPigeonInternalFinalizerDelegate ) { let finalizer = ProxyApiTestsPigeonInternalFinalizer(identifier: identifier, delegate: delegate) objc_setAssociatedObject(instance, associatedObjectKey, finalizer, .OBJC_ASSOCIATION_RETAIN) @@ -110,6 +108,7 @@ internal final class ProxyApiTestsPigeonInternalFinalizer { } } + /// Maintains instances used to communicate with the corresponding objects in Dart. /// /// Objects stored in this container are represented by an object in Dart that is also stored in @@ -213,8 +212,7 @@ final class ProxyApiTestsPigeonInstanceManager { identifiers.setObject(NSNumber(value: identifier), forKey: instance) weakInstances.setObject(instance, forKey: NSNumber(value: identifier)) strongInstances.setObject(instance, forKey: NSNumber(value: identifier)) - ProxyApiTestsPigeonInternalFinalizer.attach( - to: instance, identifier: identifier, delegate: finalizerDelegate) + ProxyApiTestsPigeonInternalFinalizer.attach(to: instance, identifier: identifier, delegate: finalizerDelegate) } /// Retrieves the identifier paired with an instance. @@ -291,6 +289,7 @@ final class ProxyApiTestsPigeonInstanceManager { } } + private class ProxyApiTestsPigeonInstanceManagerApi { /// The codec used for serializing messages. var codec: FlutterStandardMessageCodec { ProxyApiTestsPigeonCodec.shared } @@ -303,14 +302,9 @@ private class ProxyApiTestsPigeonInstanceManagerApi { } /// Sets up an instance of `ProxyApiTestsPigeonInstanceManagerApi` to handle messages through the `binaryMessenger`. - static func setUpMessageHandlers( - binaryMessenger: FlutterBinaryMessenger, instanceManager: ProxyApiTestsPigeonInstanceManager? - ) { + static func setUpMessageHandlers(binaryMessenger: FlutterBinaryMessenger, instanceManager: ProxyApiTestsPigeonInstanceManager?) { let codec = ProxyApiTestsPigeonCodec.shared - let removeStrongReferenceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference", - binaryMessenger: binaryMessenger, codec: codec) + let removeStrongReferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference", binaryMessenger: binaryMessenger, codec: codec) if let instanceManager = instanceManager { removeStrongReferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -325,9 +319,7 @@ private class ProxyApiTestsPigeonInstanceManagerApi { } else { removeStrongReferenceChannel.setMessageHandler(nil) } - let clearChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.clear", - binaryMessenger: binaryMessenger, codec: codec) + let clearChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.clear", binaryMessenger: binaryMessenger, codec: codec) if let instanceManager = instanceManager { clearChannel.setMessageHandler { _, reply in do { @@ -343,14 +335,9 @@ private class ProxyApiTestsPigeonInstanceManagerApi { } /// Sends a message to the Dart `InstanceManager` to remove the strong reference of the instance associated with `identifier`. - func removeStrongReference( - identifier identifierArg: Int64, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func removeStrongReference(identifier identifierArg: Int64, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([identifierArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -370,28 +357,21 @@ private class ProxyApiTestsPigeonInstanceManagerApi { protocol ProxyApiTestsPigeonProxyApiDelegate { /// An implementation of [PigeonApiProxyApiTestClass] used to add a new Dart instance of /// `ProxyApiTestClass` to the Dart `InstanceManager` and make calls to Dart. - func pigeonApiProxyApiTestClass(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) - -> PigeonApiProxyApiTestClass + func pigeonApiProxyApiTestClass(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) -> PigeonApiProxyApiTestClass /// An implementation of [PigeonApiProxyApiSuperClass] used to add a new Dart instance of /// `ProxyApiSuperClass` to the Dart `InstanceManager` and make calls to Dart. - func pigeonApiProxyApiSuperClass(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) - -> PigeonApiProxyApiSuperClass + func pigeonApiProxyApiSuperClass(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) -> PigeonApiProxyApiSuperClass /// An implementation of [PigeonApiProxyApiInterface] used to add a new Dart instance of /// `ProxyApiInterface` to the Dart `InstanceManager` and make calls to Dart. - func pigeonApiProxyApiInterface(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) - -> PigeonApiProxyApiInterface + func pigeonApiProxyApiInterface(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) -> PigeonApiProxyApiInterface /// An implementation of [PigeonApiClassWithApiRequirement] used to add a new Dart instance of /// `ClassWithApiRequirement` to the Dart `InstanceManager` and make calls to Dart. - func pigeonApiClassWithApiRequirement(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) - -> PigeonApiClassWithApiRequirement + func pigeonApiClassWithApiRequirement(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) -> PigeonApiClassWithApiRequirement } extension ProxyApiTestsPigeonProxyApiDelegate { - func pigeonApiProxyApiInterface(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) - -> PigeonApiProxyApiInterface - { - return PigeonApiProxyApiInterface( - pigeonRegistrar: registrar, delegate: PigeonApiDelegateProxyApiInterface()) + func pigeonApiProxyApiInterface(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) -> PigeonApiProxyApiInterface { + return PigeonApiProxyApiInterface(pigeonRegistrar: registrar, delegate: PigeonApiDelegateProxyApiInterface()) } } @@ -433,22 +413,16 @@ open class ProxyApiTestsPigeonProxyApiRegistrar { } func setUp() { - ProxyApiTestsPigeonInstanceManagerApi.setUpMessageHandlers( - binaryMessenger: binaryMessenger, instanceManager: instanceManager) - PigeonApiProxyApiTestClass.setUpMessageHandlers( - binaryMessenger: binaryMessenger, api: apiDelegate.pigeonApiProxyApiTestClass(self)) - PigeonApiProxyApiSuperClass.setUpMessageHandlers( - binaryMessenger: binaryMessenger, api: apiDelegate.pigeonApiProxyApiSuperClass(self)) - PigeonApiClassWithApiRequirement.setUpMessageHandlers( - binaryMessenger: binaryMessenger, api: apiDelegate.pigeonApiClassWithApiRequirement(self)) + ProxyApiTestsPigeonInstanceManagerApi.setUpMessageHandlers(binaryMessenger: binaryMessenger, instanceManager: instanceManager) + PigeonApiProxyApiTestClass.setUpMessageHandlers(binaryMessenger: binaryMessenger, api: apiDelegate.pigeonApiProxyApiTestClass(self)) + PigeonApiProxyApiSuperClass.setUpMessageHandlers(binaryMessenger: binaryMessenger, api: apiDelegate.pigeonApiProxyApiSuperClass(self)) + PigeonApiClassWithApiRequirement.setUpMessageHandlers(binaryMessenger: binaryMessenger, api: apiDelegate.pigeonApiClassWithApiRequirement(self)) } func tearDown() { - ProxyApiTestsPigeonInstanceManagerApi.setUpMessageHandlers( - binaryMessenger: binaryMessenger, instanceManager: nil) + ProxyApiTestsPigeonInstanceManagerApi.setUpMessageHandlers(binaryMessenger: binaryMessenger, instanceManager: nil) PigeonApiProxyApiTestClass.setUpMessageHandlers(binaryMessenger: binaryMessenger, api: nil) PigeonApiProxyApiSuperClass.setUpMessageHandlers(binaryMessenger: binaryMessenger, api: nil) - PigeonApiClassWithApiRequirement.setUpMessageHandlers( - binaryMessenger: binaryMessenger, api: nil) + PigeonApiClassWithApiRequirement.setUpMessageHandlers(binaryMessenger: binaryMessenger, api: nil) } } private class ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter: FlutterStandardReaderWriter { @@ -484,61 +458,57 @@ private class ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter: FlutterStand } override func writeValue(_ value: Any) { - if value is [Any] || value is Bool || value is Data || value is [AnyHashable: Any] - || value is Double || value is FlutterStandardTypedData || value is Int64 || value is String - || value is ProxyApiTestEnum - { + if value is [Any] || value is Bool || value is Data || value is [AnyHashable: Any] || value is Double || value is FlutterStandardTypedData || value is Int64 || value is String || value is ProxyApiTestEnum { super.writeValue(value) return } + if let instance = value as? ProxyApiTestClass { pigeonRegistrar.apiDelegate.pigeonApiProxyApiTestClass(pigeonRegistrar).pigeonNewInstance( pigeonInstance: instance ) { _ in } super.writeByte(128) super.writeValue( - pigeonRegistrar.instanceManager.identifierWithStrongReference( - forInstance: instance as AnyObject)!) + pigeonRegistrar.instanceManager.identifierWithStrongReference(forInstance: instance as AnyObject)!) return } + if let instance = value as? ProxyApiSuperClass { pigeonRegistrar.apiDelegate.pigeonApiProxyApiSuperClass(pigeonRegistrar).pigeonNewInstance( pigeonInstance: instance ) { _ in } super.writeByte(128) super.writeValue( - pigeonRegistrar.instanceManager.identifierWithStrongReference( - forInstance: instance as AnyObject)!) + pigeonRegistrar.instanceManager.identifierWithStrongReference(forInstance: instance as AnyObject)!) return } + if let instance = value as? ProxyApiInterface { pigeonRegistrar.apiDelegate.pigeonApiProxyApiInterface(pigeonRegistrar).pigeonNewInstance( pigeonInstance: instance ) { _ in } super.writeByte(128) super.writeValue( - pigeonRegistrar.instanceManager.identifierWithStrongReference( - forInstance: instance as AnyObject)!) + pigeonRegistrar.instanceManager.identifierWithStrongReference(forInstance: instance as AnyObject)!) return } + if #available(iOS 15.0.0, macOS 10.0.0, *), let instance = value as? ClassWithApiRequirement { - pigeonRegistrar.apiDelegate.pigeonApiClassWithApiRequirement(pigeonRegistrar) - .pigeonNewInstance( - pigeonInstance: instance - ) { _ in } + pigeonRegistrar.apiDelegate.pigeonApiClassWithApiRequirement(pigeonRegistrar).pigeonNewInstance( + pigeonInstance: instance + ) { _ in } super.writeByte(128) super.writeValue( - pigeonRegistrar.instanceManager.identifierWithStrongReference( - forInstance: instance as AnyObject)!) + pigeonRegistrar.instanceManager.identifierWithStrongReference(forInstance: instance as AnyObject)!) return } - if let instance = value as AnyObject?, - pigeonRegistrar.instanceManager.containsInstance(instance) + + if let instance = value as AnyObject?, pigeonRegistrar.instanceManager.containsInstance(instance) { super.writeByte(128) super.writeValue( @@ -556,13 +526,11 @@ private class ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter: FlutterStand } override func reader(with data: Data) -> FlutterStandardReader { - return ProxyApiTestsPigeonInternalProxyApiCodecReader( - data: data, pigeonRegistrar: pigeonRegistrar) + return ProxyApiTestsPigeonInternalProxyApiCodecReader(data: data, pigeonRegistrar: pigeonRegistrar) } override func writer(with data: NSMutableData) -> FlutterStandardWriter { - return ProxyApiTestsPigeonInternalProxyApiCodecWriter( - data: data, pigeonRegistrar: pigeonRegistrar) + return ProxyApiTestsPigeonInternalProxyApiCodecWriter(data: data, pigeonRegistrar: pigeonRegistrar) } } @@ -613,469 +581,215 @@ class ProxyApiTestsPigeonCodec: FlutterStandardMessageCodec, @unchecked Sendable } protocol PigeonApiDelegateProxyApiTestClass { - func pigeonDefaultConstructor( - pigeonApi: PigeonApiProxyApiTestClass, aBool: Bool, anInt: Int64, aDouble: Double, - aString: String, aUint8List: FlutterStandardTypedData, aList: [Any?], aMap: [String?: Any?], - anEnum: ProxyApiTestEnum, aProxyApi: ProxyApiSuperClass, aNullableBool: Bool?, - aNullableInt: Int64?, aNullableDouble: Double?, aNullableString: String?, - aNullableUint8List: FlutterStandardTypedData?, aNullableList: [Any?]?, - aNullableMap: [String?: Any?]?, aNullableEnum: ProxyApiTestEnum?, - aNullableProxyApi: ProxyApiSuperClass?, boolParam: Bool, intParam: Int64, doubleParam: Double, - stringParam: String, aUint8ListParam: FlutterStandardTypedData, listParam: [Any?], - mapParam: [String?: Any?], enumParam: ProxyApiTestEnum, proxyApiParam: ProxyApiSuperClass, - nullableBoolParam: Bool?, nullableIntParam: Int64?, nullableDoubleParam: Double?, - nullableStringParam: String?, nullableUint8ListParam: FlutterStandardTypedData?, - nullableListParam: [Any?]?, nullableMapParam: [String?: Any?]?, - nullableEnumParam: ProxyApiTestEnum?, nullableProxyApiParam: ProxyApiSuperClass? - ) throws -> ProxyApiTestClass - func namedConstructor( - pigeonApi: PigeonApiProxyApiTestClass, aBool: Bool, anInt: Int64, aDouble: Double, - aString: String, aUint8List: FlutterStandardTypedData, aList: [Any?], aMap: [String?: Any?], - anEnum: ProxyApiTestEnum, aProxyApi: ProxyApiSuperClass, aNullableBool: Bool?, - aNullableInt: Int64?, aNullableDouble: Double?, aNullableString: String?, - aNullableUint8List: FlutterStandardTypedData?, aNullableList: [Any?]?, - aNullableMap: [String?: Any?]?, aNullableEnum: ProxyApiTestEnum?, - aNullableProxyApi: ProxyApiSuperClass? - ) throws -> ProxyApiTestClass - func attachedField(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) - throws -> ProxyApiSuperClass + func pigeonDefaultConstructor(pigeonApi: PigeonApiProxyApiTestClass, aBool: Bool, anInt: Int64, aDouble: Double, aString: String, aUint8List: FlutterStandardTypedData, aList: [Any?], aMap: [String?: Any?], anEnum: ProxyApiTestEnum, aProxyApi: ProxyApiSuperClass, aNullableBool: Bool?, aNullableInt: Int64?, aNullableDouble: Double?, aNullableString: String?, aNullableUint8List: FlutterStandardTypedData?, aNullableList: [Any?]?, aNullableMap: [String?: Any?]?, aNullableEnum: ProxyApiTestEnum?, aNullableProxyApi: ProxyApiSuperClass?, boolParam: Bool, intParam: Int64, doubleParam: Double, stringParam: String, aUint8ListParam: FlutterStandardTypedData, listParam: [Any?], mapParam: [String?: Any?], enumParam: ProxyApiTestEnum, proxyApiParam: ProxyApiSuperClass, nullableBoolParam: Bool?, nullableIntParam: Int64?, nullableDoubleParam: Double?, nullableStringParam: String?, nullableUint8ListParam: FlutterStandardTypedData?, nullableListParam: [Any?]?, nullableMapParam: [String?: Any?]?, nullableEnumParam: ProxyApiTestEnum?, nullableProxyApiParam: ProxyApiSuperClass?) throws -> ProxyApiTestClass + func namedConstructor(pigeonApi: PigeonApiProxyApiTestClass, aBool: Bool, anInt: Int64, aDouble: Double, aString: String, aUint8List: FlutterStandardTypedData, aList: [Any?], aMap: [String?: Any?], anEnum: ProxyApiTestEnum, aProxyApi: ProxyApiSuperClass, aNullableBool: Bool?, aNullableInt: Int64?, aNullableDouble: Double?, aNullableString: String?, aNullableUint8List: FlutterStandardTypedData?, aNullableList: [Any?]?, aNullableMap: [String?: Any?]?, aNullableEnum: ProxyApiTestEnum?, aNullableProxyApi: ProxyApiSuperClass?) throws -> ProxyApiTestClass + func attachedField(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> ProxyApiSuperClass func staticAttachedField(pigeonApi: PigeonApiProxyApiTestClass) throws -> ProxyApiSuperClass - func aBool(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws - -> Bool - func anInt(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws - -> Int64 - func aDouble(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws - -> Double - func aString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws - -> String - func aUint8List(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws - -> FlutterStandardTypedData - func aList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws - -> [Any?] - func aMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws - -> [String?: Any?] - func anEnum(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws - -> ProxyApiTestEnum - func aProxyApi(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws - -> ProxyApiSuperClass - func aNullableBool(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) - throws -> Bool? - func aNullableInt(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws - -> Int64? - func aNullableDouble(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) - throws -> Double? - func aNullableString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) - throws -> String? - func aNullableUint8List(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) - throws -> FlutterStandardTypedData? - func aNullableList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) - throws -> [Any?]? - func aNullableMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws - -> [String?: Any?]? - func aNullableEnum(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) - throws -> ProxyApiTestEnum? - func aNullableProxyApi(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) - throws -> ProxyApiSuperClass? + func aBool(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> Bool + func anInt(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> Int64 + func aDouble(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> Double + func aString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> String + func aUint8List(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> FlutterStandardTypedData + func aList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> [Any?] + func aMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> [String?: Any?] + func anEnum(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> ProxyApiTestEnum + func aProxyApi(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> ProxyApiSuperClass + func aNullableBool(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> Bool? + func aNullableInt(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> Int64? + func aNullableDouble(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> Double? + func aNullableString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> String? + func aNullableUint8List(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> FlutterStandardTypedData? + func aNullableList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> [Any?]? + func aNullableMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> [String?: Any?]? + func aNullableEnum(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> ProxyApiTestEnum? + func aNullableProxyApi(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> ProxyApiSuperClass? /// A no-op function taking no arguments and returning no value, to sanity /// test basic calling. func noop(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws /// Returns an error, to test error handling. - func throwError(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws - -> Any? + func throwError(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> Any? /// Returns an error from a void function, to test error handling. - func throwErrorFromVoid(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) - throws + func throwErrorFromVoid(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws /// Returns a Flutter error, to test error handling. - func throwFlutterError(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) - throws -> Any? + func throwFlutterError(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> Any? /// Returns passed in int. - func echoInt( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64 - ) throws -> Int64 + func echoInt(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64) throws -> Int64 /// Returns passed in double. - func echoDouble( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double - ) throws -> Double + func echoDouble(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double) throws -> Double /// Returns the passed in boolean. - func echoBool( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool - ) throws -> Bool + func echoBool(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool) throws -> Bool /// Returns the passed in string. - func echoString( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String - ) throws -> String + func echoString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String) throws -> String /// Returns the passed in Uint8List. - func echoUint8List( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aUint8List: FlutterStandardTypedData - ) throws -> FlutterStandardTypedData + func echoUint8List(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aUint8List: FlutterStandardTypedData) throws -> FlutterStandardTypedData /// Returns the passed in generic Object. - func echoObject( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anObject: Any - ) throws -> Any + func echoObject(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anObject: Any) throws -> Any /// Returns the passed list, to test serialization and deserialization. - func echoList( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?] - ) throws -> [Any?] + func echoList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?]) throws -> [Any?] /// Returns the passed list with ProxyApis, to test serialization and /// deserialization. - func echoProxyApiList( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aList: [ProxyApiTestClass] - ) throws -> [ProxyApiTestClass] + func echoProxyApiList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [ProxyApiTestClass]) throws -> [ProxyApiTestClass] /// Returns the passed map, to test serialization and deserialization. - func echoMap( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: Any?] - ) throws -> [String?: Any?] + func echoMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: Any?]) throws -> [String?: Any?] /// Returns the passed map with ProxyApis, to test serialization and /// deserialization. - func echoProxyApiMap( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aMap: [String: ProxyApiTestClass] - ) throws -> [String: ProxyApiTestClass] + func echoProxyApiMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String: ProxyApiTestClass]) throws -> [String: ProxyApiTestClass] /// Returns the passed enum to test serialization and deserialization. - func echoEnum( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - anEnum: ProxyApiTestEnum - ) throws -> ProxyApiTestEnum + func echoEnum(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anEnum: ProxyApiTestEnum) throws -> ProxyApiTestEnum /// Returns the passed ProxyApi to test serialization and deserialization. - func echoProxyApi( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aProxyApi: ProxyApiSuperClass - ) throws -> ProxyApiSuperClass + func echoProxyApi(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aProxyApi: ProxyApiSuperClass) throws -> ProxyApiSuperClass /// Returns passed in int. - func echoNullableInt( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableInt: Int64? - ) throws -> Int64? + func echoNullableInt(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableInt: Int64?) throws -> Int64? /// Returns passed in double. - func echoNullableDouble( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aNullableDouble: Double? - ) throws -> Double? + func echoNullableDouble(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableDouble: Double?) throws -> Double? /// Returns the passed in boolean. - func echoNullableBool( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableBool: Bool? - ) throws -> Bool? + func echoNullableBool(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableBool: Bool?) throws -> Bool? /// Returns the passed in string. - func echoNullableString( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aNullableString: String? - ) throws -> String? + func echoNullableString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableString: String?) throws -> String? /// Returns the passed in Uint8List. - func echoNullableUint8List( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aNullableUint8List: FlutterStandardTypedData? - ) throws -> FlutterStandardTypedData? + func echoNullableUint8List(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableUint8List: FlutterStandardTypedData?) throws -> FlutterStandardTypedData? /// Returns the passed in generic Object. - func echoNullableObject( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableObject: Any? - ) throws -> Any? + func echoNullableObject(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableObject: Any?) throws -> Any? /// Returns the passed list, to test serialization and deserialization. - func echoNullableList( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableList: [Any?]? - ) throws -> [Any?]? + func echoNullableList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableList: [Any?]?) throws -> [Any?]? /// Returns the passed map, to test serialization and deserialization. - func echoNullableMap( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aNullableMap: [String?: Any?]? - ) throws -> [String?: Any?]? - func echoNullableEnum( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aNullableEnum: ProxyApiTestEnum? - ) throws -> ProxyApiTestEnum? + func echoNullableMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableMap: [String?: Any?]?) throws -> [String?: Any?]? + func echoNullableEnum(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableEnum: ProxyApiTestEnum?) throws -> ProxyApiTestEnum? /// Returns the passed ProxyApi to test serialization and deserialization. - func echoNullableProxyApi( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aNullableProxyApi: ProxyApiSuperClass? - ) throws -> ProxyApiSuperClass? + func echoNullableProxyApi(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableProxyApi: ProxyApiSuperClass?) throws -> ProxyApiSuperClass? /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. - func noopAsync( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - completion: @escaping (Result) -> Void) + func noopAsync(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) /// Returns passed in int asynchronously. - func echoAsyncInt( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64, - completion: @escaping (Result) -> Void) + func echoAsyncInt(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64, completion: @escaping (Result) -> Void) /// Returns passed in double asynchronously. - func echoAsyncDouble( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double, - completion: @escaping (Result) -> Void) + func echoAsyncDouble(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double, completion: @escaping (Result) -> Void) /// Returns the passed in boolean asynchronously. - func echoAsyncBool( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool, - completion: @escaping (Result) -> Void) + func echoAsyncBool(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool, completion: @escaping (Result) -> Void) /// Returns the passed string asynchronously. - func echoAsyncString( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String, - completion: @escaping (Result) -> Void) + func echoAsyncString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String, completion: @escaping (Result) -> Void) /// Returns the passed in Uint8List asynchronously. - func echoAsyncUint8List( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aUint8List: FlutterStandardTypedData, - completion: @escaping (Result) -> Void) + func echoAsyncUint8List(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aUint8List: FlutterStandardTypedData, completion: @escaping (Result) -> Void) /// Returns the passed in generic Object asynchronously. - func echoAsyncObject( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anObject: Any, - completion: @escaping (Result) -> Void) + func echoAsyncObject(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anObject: Any, completion: @escaping (Result) -> Void) /// Returns the passed list, to test asynchronous serialization and deserialization. - func echoAsyncList( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?], - completion: @escaping (Result<[Any?], Error>) -> Void) + func echoAsyncList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?], completion: @escaping (Result<[Any?], Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsyncMap( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: Any?], - completion: @escaping (Result<[String?: Any?], Error>) -> Void) + func echoAsyncMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: Any?], completion: @escaping (Result<[String?: Any?], Error>) -> Void) /// Returns the passed enum, to test asynchronous serialization and deserialization. - func echoAsyncEnum( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - anEnum: ProxyApiTestEnum, completion: @escaping (Result) -> Void) + func echoAsyncEnum(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anEnum: ProxyApiTestEnum, completion: @escaping (Result) -> Void) /// Responds with an error from an async function returning a value. - func throwAsyncError( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - completion: @escaping (Result) -> Void) + func throwAsyncError(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) /// Responds with an error from an async void function. - func throwAsyncErrorFromVoid( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - completion: @escaping (Result) -> Void) + func throwAsyncErrorFromVoid(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) /// Responds with a Flutter error from an async function returning a value. - func throwAsyncFlutterError( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - completion: @escaping (Result) -> Void) + func throwAsyncFlutterError(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) /// Returns passed in int asynchronously. - func echoAsyncNullableInt( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64?, - completion: @escaping (Result) -> Void) + func echoAsyncNullableInt(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64?, completion: @escaping (Result) -> Void) /// Returns passed in double asynchronously. - func echoAsyncNullableDouble( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double?, - completion: @escaping (Result) -> Void) + func echoAsyncNullableDouble(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double?, completion: @escaping (Result) -> Void) /// Returns the passed in boolean asynchronously. - func echoAsyncNullableBool( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool?, - completion: @escaping (Result) -> Void) + func echoAsyncNullableBool(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool?, completion: @escaping (Result) -> Void) /// Returns the passed string asynchronously. - func echoAsyncNullableString( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String?, - completion: @escaping (Result) -> Void) + func echoAsyncNullableString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String?, completion: @escaping (Result) -> Void) /// Returns the passed in Uint8List asynchronously. - func echoAsyncNullableUint8List( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aUint8List: FlutterStandardTypedData?, - completion: @escaping (Result) -> Void) + func echoAsyncNullableUint8List(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aUint8List: FlutterStandardTypedData?, completion: @escaping (Result) -> Void) /// Returns the passed in generic Object asynchronously. - func echoAsyncNullableObject( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anObject: Any?, - completion: @escaping (Result) -> Void) + func echoAsyncNullableObject(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anObject: Any?, completion: @escaping (Result) -> Void) /// Returns the passed list, to test asynchronous serialization and deserialization. - func echoAsyncNullableList( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?]?, - completion: @escaping (Result<[Any?]?, Error>) -> Void) + func echoAsyncNullableList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?]?, completion: @escaping (Result<[Any?]?, Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsyncNullableMap( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aMap: [String?: Any?]?, completion: @escaping (Result<[String?: Any?]?, Error>) -> Void) + func echoAsyncNullableMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: Any?]?, completion: @escaping (Result<[String?: Any?]?, Error>) -> Void) /// Returns the passed enum, to test asynchronous serialization and deserialization. - func echoAsyncNullableEnum( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - anEnum: ProxyApiTestEnum?, completion: @escaping (Result) -> Void) + func echoAsyncNullableEnum(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anEnum: ProxyApiTestEnum?, completion: @escaping (Result) -> Void) func staticNoop(pigeonApi: PigeonApiProxyApiTestClass) throws func echoStaticString(pigeonApi: PigeonApiProxyApiTestClass, aString: String) throws -> String - func staticAsyncNoop( - pigeonApi: PigeonApiProxyApiTestClass, completion: @escaping (Result) -> Void) - func callFlutterNoop( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - completion: @escaping (Result) -> Void) - func callFlutterThrowError( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - completion: @escaping (Result) -> Void) - func callFlutterThrowErrorFromVoid( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - completion: @escaping (Result) -> Void) - func callFlutterEchoBool( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool, - completion: @escaping (Result) -> Void) - func callFlutterEchoInt( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64, - completion: @escaping (Result) -> Void) - func callFlutterEchoDouble( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double, - completion: @escaping (Result) -> Void) - func callFlutterEchoString( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String, - completion: @escaping (Result) -> Void) - func callFlutterEchoUint8List( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aUint8List: FlutterStandardTypedData, - completion: @escaping (Result) -> Void) - func callFlutterEchoList( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?], - completion: @escaping (Result<[Any?], Error>) -> Void) - func callFlutterEchoProxyApiList( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aList: [ProxyApiTestClass?], completion: @escaping (Result<[ProxyApiTestClass?], Error>) -> Void - ) - func callFlutterEchoMap( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: Any?], - completion: @escaping (Result<[String?: Any?], Error>) -> Void) - func callFlutterEchoProxyApiMap( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aMap: [String?: ProxyApiTestClass?], - completion: @escaping (Result<[String?: ProxyApiTestClass?], Error>) -> Void) - func callFlutterEchoEnum( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - anEnum: ProxyApiTestEnum, completion: @escaping (Result) -> Void) - func callFlutterEchoProxyApi( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aProxyApi: ProxyApiSuperClass, completion: @escaping (Result) -> Void - ) - func callFlutterEchoNullableBool( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool?, - completion: @escaping (Result) -> Void) - func callFlutterEchoNullableInt( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64?, - completion: @escaping (Result) -> Void) - func callFlutterEchoNullableDouble( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double?, - completion: @escaping (Result) -> Void) - func callFlutterEchoNullableString( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String?, - completion: @escaping (Result) -> Void) - func callFlutterEchoNullableUint8List( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aUint8List: FlutterStandardTypedData?, - completion: @escaping (Result) -> Void) - func callFlutterEchoNullableList( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?]?, - completion: @escaping (Result<[Any?]?, Error>) -> Void) - func callFlutterEchoNullableMap( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aMap: [String?: Any?]?, completion: @escaping (Result<[String?: Any?]?, Error>) -> Void) - func callFlutterEchoNullableEnum( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - anEnum: ProxyApiTestEnum?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullableProxyApi( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aProxyApi: ProxyApiSuperClass?, - completion: @escaping (Result) -> Void) - func callFlutterNoopAsync( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - completion: @escaping (Result) -> Void) - func callFlutterEchoAsyncString( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String, - completion: @escaping (Result) -> Void) + func staticAsyncNoop(pigeonApi: PigeonApiProxyApiTestClass, completion: @escaping (Result) -> Void) + func callFlutterNoop(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) + func callFlutterThrowError(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) + func callFlutterThrowErrorFromVoid(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) + func callFlutterEchoBool(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool, completion: @escaping (Result) -> Void) + func callFlutterEchoInt(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64, completion: @escaping (Result) -> Void) + func callFlutterEchoDouble(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double, completion: @escaping (Result) -> Void) + func callFlutterEchoString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String, completion: @escaping (Result) -> Void) + func callFlutterEchoUint8List(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aUint8List: FlutterStandardTypedData, completion: @escaping (Result) -> Void) + func callFlutterEchoList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?], completion: @escaping (Result<[Any?], Error>) -> Void) + func callFlutterEchoProxyApiList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [ProxyApiTestClass?], completion: @escaping (Result<[ProxyApiTestClass?], Error>) -> Void) + func callFlutterEchoMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: Any?], completion: @escaping (Result<[String?: Any?], Error>) -> Void) + func callFlutterEchoProxyApiMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: ProxyApiTestClass?], completion: @escaping (Result<[String?: ProxyApiTestClass?], Error>) -> Void) + func callFlutterEchoEnum(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anEnum: ProxyApiTestEnum, completion: @escaping (Result) -> Void) + func callFlutterEchoProxyApi(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aProxyApi: ProxyApiSuperClass, completion: @escaping (Result) -> Void) + func callFlutterEchoNullableBool(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullableInt(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullableDouble(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullableString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullableUint8List(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aUint8List: FlutterStandardTypedData?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullableList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?]?, completion: @escaping (Result<[Any?]?, Error>) -> Void) + func callFlutterEchoNullableMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: Any?]?, completion: @escaping (Result<[String?: Any?]?, Error>) -> Void) + func callFlutterEchoNullableEnum(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anEnum: ProxyApiTestEnum?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullableProxyApi(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aProxyApi: ProxyApiSuperClass?, completion: @escaping (Result) -> Void) + func callFlutterNoopAsync(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) + func callFlutterEchoAsyncString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String, completion: @escaping (Result) -> Void) } protocol PigeonApiProtocolProxyApiTestClass { /// A no-op function taking no arguments and returning no value, to sanity /// test basic calling. - func flutterNoop( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - completion: @escaping (Result) -> Void) + func flutterNoop(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, completion: @escaping (Result) -> Void) /// Responds with an error from an async function returning a value. - func flutterThrowError( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - completion: @escaping (Result) -> Void) + func flutterThrowError(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, completion: @escaping (Result) -> Void) /// Responds with an error from an async void function. - func flutterThrowErrorFromVoid( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - completion: @escaping (Result) -> Void) + func flutterThrowErrorFromVoid(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, completion: @escaping (Result) -> Void) /// Returns the passed boolean, to test serialization and deserialization. - func flutterEchoBool( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aBool aBoolArg: Bool, - completion: @escaping (Result) -> Void) + func flutterEchoBool(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aBool aBoolArg: Bool, completion: @escaping (Result) -> Void) /// Returns the passed int, to test serialization and deserialization. - func flutterEchoInt( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anInt anIntArg: Int64, - completion: @escaping (Result) -> Void) + func flutterEchoInt(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anInt anIntArg: Int64, completion: @escaping (Result) -> Void) /// Returns the passed double, to test serialization and deserialization. - func flutterEchoDouble( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aDouble aDoubleArg: Double, - completion: @escaping (Result) -> Void) + func flutterEchoDouble(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aDouble aDoubleArg: Double, completion: @escaping (Result) -> Void) /// Returns the passed string, to test serialization and deserialization. - func flutterEchoString( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String, - completion: @escaping (Result) -> Void) + func flutterEchoString(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String, completion: @escaping (Result) -> Void) /// Returns the passed byte list, to test serialization and deserialization. - func flutterEchoUint8List( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: FlutterStandardTypedData, - completion: @escaping (Result) -> Void) + func flutterEchoUint8List(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: FlutterStandardTypedData, completion: @escaping (Result) -> Void) /// Returns the passed list, to test serialization and deserialization. - func flutterEchoList( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [Any?], - completion: @escaping (Result<[Any?], ProxyApiTestsError>) -> Void) + func flutterEchoList(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [Any?], completion: @escaping (Result<[Any?], ProxyApiTestsError>) -> Void) /// Returns the passed list with ProxyApis, to test serialization and /// deserialization. - func flutterEchoProxyApiList( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [ProxyApiTestClass?], - completion: @escaping (Result<[ProxyApiTestClass?], ProxyApiTestsError>) -> Void) + func flutterEchoProxyApiList(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [ProxyApiTestClass?], completion: @escaping (Result<[ProxyApiTestClass?], ProxyApiTestsError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func flutterEchoMap( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: Any?], - completion: @escaping (Result<[String?: Any?], ProxyApiTestsError>) -> Void) + func flutterEchoMap(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: Any?], completion: @escaping (Result<[String?: Any?], ProxyApiTestsError>) -> Void) /// Returns the passed map with ProxyApis, to test serialization and /// deserialization. - func flutterEchoProxyApiMap( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - aMap aMapArg: [String?: ProxyApiTestClass?], - completion: @escaping (Result<[String?: ProxyApiTestClass?], ProxyApiTestsError>) -> Void) + func flutterEchoProxyApiMap(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: ProxyApiTestClass?], completion: @escaping (Result<[String?: ProxyApiTestClass?], ProxyApiTestsError>) -> Void) /// Returns the passed enum to test serialization and deserialization. - func flutterEchoEnum( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anEnum anEnumArg: ProxyApiTestEnum, - completion: @escaping (Result) -> Void) + func flutterEchoEnum(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anEnum anEnumArg: ProxyApiTestEnum, completion: @escaping (Result) -> Void) /// Returns the passed ProxyApi to test serialization and deserialization. - func flutterEchoProxyApi( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aProxyApi aProxyApiArg: ProxyApiSuperClass, - completion: @escaping (Result) -> Void) + func flutterEchoProxyApi(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aProxyApi aProxyApiArg: ProxyApiSuperClass, completion: @escaping (Result) -> Void) /// Returns the passed boolean, to test serialization and deserialization. - func flutterEchoNullableBool( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aBool aBoolArg: Bool?, - completion: @escaping (Result) -> Void) + func flutterEchoNullableBool(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aBool aBoolArg: Bool?, completion: @escaping (Result) -> Void) /// Returns the passed int, to test serialization and deserialization. - func flutterEchoNullableInt( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anInt anIntArg: Int64?, - completion: @escaping (Result) -> Void) + func flutterEchoNullableInt(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anInt anIntArg: Int64?, completion: @escaping (Result) -> Void) /// Returns the passed double, to test serialization and deserialization. - func flutterEchoNullableDouble( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aDouble aDoubleArg: Double?, - completion: @escaping (Result) -> Void) + func flutterEchoNullableDouble(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aDouble aDoubleArg: Double?, completion: @escaping (Result) -> Void) /// Returns the passed string, to test serialization and deserialization. - func flutterEchoNullableString( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String?, - completion: @escaping (Result) -> Void) + func flutterEchoNullableString(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String?, completion: @escaping (Result) -> Void) /// Returns the passed byte list, to test serialization and deserialization. - func flutterEchoNullableUint8List( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: FlutterStandardTypedData?, - completion: @escaping (Result) -> Void) + func flutterEchoNullableUint8List(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: FlutterStandardTypedData?, completion: @escaping (Result) -> Void) /// Returns the passed list, to test serialization and deserialization. - func flutterEchoNullableList( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [Any?]?, - completion: @escaping (Result<[Any?]?, ProxyApiTestsError>) -> Void) + func flutterEchoNullableList(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [Any?]?, completion: @escaping (Result<[Any?]?, ProxyApiTestsError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func flutterEchoNullableMap( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: Any?]?, - completion: @escaping (Result<[String?: Any?]?, ProxyApiTestsError>) -> Void) + func flutterEchoNullableMap(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: Any?]?, completion: @escaping (Result<[String?: Any?]?, ProxyApiTestsError>) -> Void) /// Returns the passed enum to test serialization and deserialization. - func flutterEchoNullableEnum( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anEnum anEnumArg: ProxyApiTestEnum?, - completion: @escaping (Result) -> Void) + func flutterEchoNullableEnum(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anEnum anEnumArg: ProxyApiTestEnum?, completion: @escaping (Result) -> Void) /// Returns the passed ProxyApi to test serialization and deserialization. - func flutterEchoNullableProxyApi( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - aProxyApi aProxyApiArg: ProxyApiSuperClass?, - completion: @escaping (Result) -> Void) + func flutterEchoNullableProxyApi(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aProxyApi aProxyApiArg: ProxyApiSuperClass?, completion: @escaping (Result) -> Void) /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. - func flutterNoopAsync( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - completion: @escaping (Result) -> Void) + func flutterNoopAsync(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, completion: @escaping (Result) -> Void) /// Returns the passed in generic Object asynchronously. - func flutterEchoAsyncString( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String, - completion: @escaping (Result) -> Void) + func flutterEchoAsyncString(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String, completion: @escaping (Result) -> Void) } -final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { +final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { unowned let pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar let pigeonDelegate: PigeonApiDelegateProxyApiTestClass ///An implementation of [ProxyApiSuperClass] used to access callback methods @@ -1088,26 +802,17 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { return pigeonRegistrar.apiDelegate.pigeonApiProxyApiInterface(pigeonRegistrar) } - init( - pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar, - delegate: PigeonApiDelegateProxyApiTestClass - ) { + init(pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar, delegate: PigeonApiDelegateProxyApiTestClass) { self.pigeonRegistrar = pigeonRegistrar self.pigeonDelegate = delegate } - static func setUpMessageHandlers( - binaryMessenger: FlutterBinaryMessenger, api: PigeonApiProxyApiTestClass? - ) { + static func setUpMessageHandlers(binaryMessenger: FlutterBinaryMessenger, api: PigeonApiProxyApiTestClass?) { let codec: FlutterStandardMessageCodec = api != nil ? FlutterStandardMessageCodec( - readerWriter: ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter( - pigeonRegistrar: api!.pigeonRegistrar)) + readerWriter: ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter(pigeonRegistrar: api!.pigeonRegistrar)) : FlutterStandardMessageCodec.sharedInstance() - let pigeonDefaultConstructorChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_defaultConstructor", - binaryMessenger: binaryMessenger, codec: codec) + let pigeonDefaultConstructorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_defaultConstructor", binaryMessenger: binaryMessenger, codec: codec) if let api = api { pigeonDefaultConstructorChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1150,25 +855,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let nullableProxyApiParamArg: ProxyApiSuperClass? = nilOrValue(args[36]) do { api.pigeonRegistrar.instanceManager.addDartCreatedInstance( - try api.pigeonDelegate.pigeonDefaultConstructor( - pigeonApi: api, aBool: aBoolArg, anInt: anIntArg, aDouble: aDoubleArg, - aString: aStringArg, aUint8List: aUint8ListArg, aList: aListArg, aMap: aMapArg, - anEnum: anEnumArg, aProxyApi: aProxyApiArg, aNullableBool: aNullableBoolArg, - aNullableInt: aNullableIntArg, aNullableDouble: aNullableDoubleArg, - aNullableString: aNullableStringArg, aNullableUint8List: aNullableUint8ListArg, - aNullableList: aNullableListArg, aNullableMap: aNullableMapArg, - aNullableEnum: aNullableEnumArg, aNullableProxyApi: aNullableProxyApiArg, - boolParam: boolParamArg, intParam: intParamArg, doubleParam: doubleParamArg, - stringParam: stringParamArg, aUint8ListParam: aUint8ListParamArg, - listParam: listParamArg, mapParam: mapParamArg, enumParam: enumParamArg, - proxyApiParam: proxyApiParamArg, nullableBoolParam: nullableBoolParamArg, - nullableIntParam: nullableIntParamArg, nullableDoubleParam: nullableDoubleParamArg, - nullableStringParam: nullableStringParamArg, - nullableUint8ListParam: nullableUint8ListParamArg, - nullableListParam: nullableListParamArg, nullableMapParam: nullableMapParamArg, - nullableEnumParam: nullableEnumParamArg, - nullableProxyApiParam: nullableProxyApiParamArg), - withIdentifier: pigeonIdentifierArg) +try api.pigeonDelegate.pigeonDefaultConstructor(pigeonApi: api, aBool: aBoolArg, anInt: anIntArg, aDouble: aDoubleArg, aString: aStringArg, aUint8List: aUint8ListArg, aList: aListArg, aMap: aMapArg, anEnum: anEnumArg, aProxyApi: aProxyApiArg, aNullableBool: aNullableBoolArg, aNullableInt: aNullableIntArg, aNullableDouble: aNullableDoubleArg, aNullableString: aNullableStringArg, aNullableUint8List: aNullableUint8ListArg, aNullableList: aNullableListArg, aNullableMap: aNullableMapArg, aNullableEnum: aNullableEnumArg, aNullableProxyApi: aNullableProxyApiArg, boolParam: boolParamArg, intParam: intParamArg, doubleParam: doubleParamArg, stringParam: stringParamArg, aUint8ListParam: aUint8ListParamArg, listParam: listParamArg, mapParam: mapParamArg, enumParam: enumParamArg, proxyApiParam: proxyApiParamArg, nullableBoolParam: nullableBoolParamArg, nullableIntParam: nullableIntParamArg, nullableDoubleParam: nullableDoubleParamArg, nullableStringParam: nullableStringParamArg, nullableUint8ListParam: nullableUint8ListParamArg, nullableListParam: nullableListParamArg, nullableMapParam: nullableMapParamArg, nullableEnumParam: nullableEnumParamArg, nullableProxyApiParam: nullableProxyApiParamArg), +withIdentifier: pigeonIdentifierArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -1177,9 +865,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { pigeonDefaultConstructorChannel.setMessageHandler(nil) } - let namedConstructorChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.namedConstructor", - binaryMessenger: binaryMessenger, codec: codec) + let namedConstructorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.namedConstructor", binaryMessenger: binaryMessenger, codec: codec) if let api = api { namedConstructorChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1204,15 +890,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let aNullableProxyApiArg: ProxyApiSuperClass? = nilOrValue(args[18]) do { api.pigeonRegistrar.instanceManager.addDartCreatedInstance( - try api.pigeonDelegate.namedConstructor( - pigeonApi: api, aBool: aBoolArg, anInt: anIntArg, aDouble: aDoubleArg, - aString: aStringArg, aUint8List: aUint8ListArg, aList: aListArg, aMap: aMapArg, - anEnum: anEnumArg, aProxyApi: aProxyApiArg, aNullableBool: aNullableBoolArg, - aNullableInt: aNullableIntArg, aNullableDouble: aNullableDoubleArg, - aNullableString: aNullableStringArg, aNullableUint8List: aNullableUint8ListArg, - aNullableList: aNullableListArg, aNullableMap: aNullableMapArg, - aNullableEnum: aNullableEnumArg, aNullableProxyApi: aNullableProxyApiArg), - withIdentifier: pigeonIdentifierArg) +try api.pigeonDelegate.namedConstructor(pigeonApi: api, aBool: aBoolArg, anInt: anIntArg, aDouble: aDoubleArg, aString: aStringArg, aUint8List: aUint8ListArg, aList: aListArg, aMap: aMapArg, anEnum: anEnumArg, aProxyApi: aProxyApiArg, aNullableBool: aNullableBoolArg, aNullableInt: aNullableIntArg, aNullableDouble: aNullableDoubleArg, aNullableString: aNullableStringArg, aNullableUint8List: aNullableUint8ListArg, aNullableList: aNullableListArg, aNullableMap: aNullableMapArg, aNullableEnum: aNullableEnumArg, aNullableProxyApi: aNullableProxyApiArg), +withIdentifier: pigeonIdentifierArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -1221,18 +900,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { namedConstructorChannel.setMessageHandler(nil) } - let attachedFieldChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.attachedField", - binaryMessenger: binaryMessenger, codec: codec) + let attachedFieldChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.attachedField", binaryMessenger: binaryMessenger, codec: codec) if let api = api { attachedFieldChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let pigeonIdentifierArg = args[1] as! Int64 do { - api.pigeonRegistrar.instanceManager.addDartCreatedInstance( - try api.pigeonDelegate.attachedField(pigeonApi: api, pigeonInstance: pigeonInstanceArg), - withIdentifier: pigeonIdentifierArg) + api.pigeonRegistrar.instanceManager.addDartCreatedInstance(try api.pigeonDelegate.attachedField(pigeonApi: api, pigeonInstance: pigeonInstanceArg), withIdentifier: pigeonIdentifierArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -1241,17 +916,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { attachedFieldChannel.setMessageHandler(nil) } - let staticAttachedFieldChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticAttachedField", - binaryMessenger: binaryMessenger, codec: codec) + let staticAttachedFieldChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticAttachedField", binaryMessenger: binaryMessenger, codec: codec) if let api = api { staticAttachedFieldChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonIdentifierArg = args[0] as! Int64 do { - api.pigeonRegistrar.instanceManager.addDartCreatedInstance( - try api.pigeonDelegate.staticAttachedField(pigeonApi: api), - withIdentifier: pigeonIdentifierArg) + api.pigeonRegistrar.instanceManager.addDartCreatedInstance(try api.pigeonDelegate.staticAttachedField(pigeonApi: api), withIdentifier: pigeonIdentifierArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -1260,9 +931,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { staticAttachedFieldChannel.setMessageHandler(nil) } - let noopChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.noop", - binaryMessenger: binaryMessenger, codec: codec) + let noopChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.noop", binaryMessenger: binaryMessenger, codec: codec) if let api = api { noopChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1277,16 +946,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { noopChannel.setMessageHandler(nil) } - let throwErrorChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwError", - binaryMessenger: binaryMessenger, codec: codec) + let throwErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwError", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwErrorChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass do { - let result = try api.pigeonDelegate.throwError( - pigeonApi: api, pigeonInstance: pigeonInstanceArg) + let result = try api.pigeonDelegate.throwError(pigeonApi: api, pigeonInstance: pigeonInstanceArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1295,16 +961,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { throwErrorChannel.setMessageHandler(nil) } - let throwErrorFromVoidChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwErrorFromVoid", - binaryMessenger: binaryMessenger, codec: codec) + let throwErrorFromVoidChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwErrorFromVoid", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwErrorFromVoidChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass do { - try api.pigeonDelegate.throwErrorFromVoid( - pigeonApi: api, pigeonInstance: pigeonInstanceArg) + try api.pigeonDelegate.throwErrorFromVoid(pigeonApi: api, pigeonInstance: pigeonInstanceArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -1313,16 +976,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { throwErrorFromVoidChannel.setMessageHandler(nil) } - let throwFlutterErrorChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwFlutterError", - binaryMessenger: binaryMessenger, codec: codec) + let throwFlutterErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwFlutterError", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwFlutterErrorChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass do { - let result = try api.pigeonDelegate.throwFlutterError( - pigeonApi: api, pigeonInstance: pigeonInstanceArg) + let result = try api.pigeonDelegate.throwFlutterError(pigeonApi: api, pigeonInstance: pigeonInstanceArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1331,17 +991,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { throwFlutterErrorChannel.setMessageHandler(nil) } - let echoIntChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoInt", - binaryMessenger: binaryMessenger, codec: codec) + let echoIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoInt", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anIntArg = args[1] as! Int64 do { - let result = try api.pigeonDelegate.echoInt( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg) + let result = try api.pigeonDelegate.echoInt(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1350,17 +1007,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoIntChannel.setMessageHandler(nil) } - let echoDoubleChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoDouble", - binaryMessenger: binaryMessenger, codec: codec) + let echoDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoDouble", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aDoubleArg = args[1] as! Double do { - let result = try api.pigeonDelegate.echoDouble( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg) + let result = try api.pigeonDelegate.echoDouble(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1369,17 +1023,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoDoubleChannel.setMessageHandler(nil) } - let echoBoolChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoBool", - binaryMessenger: binaryMessenger, codec: codec) + let echoBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoBool", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aBoolArg = args[1] as! Bool do { - let result = try api.pigeonDelegate.echoBool( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg) + let result = try api.pigeonDelegate.echoBool(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1388,17 +1039,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoBoolChannel.setMessageHandler(nil) } - let echoStringChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoString", - binaryMessenger: binaryMessenger, codec: codec) + let echoStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoString", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aStringArg = args[1] as! String do { - let result = try api.pigeonDelegate.echoString( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg) + let result = try api.pigeonDelegate.echoString(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1407,17 +1055,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoStringChannel.setMessageHandler(nil) } - let echoUint8ListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoUint8List", - binaryMessenger: binaryMessenger, codec: codec) + let echoUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoUint8List", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aUint8ListArg = args[1] as! FlutterStandardTypedData do { - let result = try api.pigeonDelegate.echoUint8List( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg) + let result = try api.pigeonDelegate.echoUint8List(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1426,17 +1071,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoUint8ListChannel.setMessageHandler(nil) } - let echoObjectChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoObject", - binaryMessenger: binaryMessenger, codec: codec) + let echoObjectChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoObject", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoObjectChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anObjectArg = args[1]! do { - let result = try api.pigeonDelegate.echoObject( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anObject: anObjectArg) + let result = try api.pigeonDelegate.echoObject(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anObject: anObjectArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1445,17 +1087,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoObjectChannel.setMessageHandler(nil) } - let echoListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoList", - binaryMessenger: binaryMessenger, codec: codec) + let echoListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoList", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aListArg = args[1] as! [Any?] do { - let result = try api.pigeonDelegate.echoList( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) + let result = try api.pigeonDelegate.echoList(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1464,17 +1103,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoListChannel.setMessageHandler(nil) } - let echoProxyApiListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApiList", - binaryMessenger: binaryMessenger, codec: codec) + let echoProxyApiListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApiList", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoProxyApiListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aListArg = args[1] as! [ProxyApiTestClass] do { - let result = try api.pigeonDelegate.echoProxyApiList( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) + let result = try api.pigeonDelegate.echoProxyApiList(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1483,17 +1119,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoProxyApiListChannel.setMessageHandler(nil) } - let echoMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoMap", - binaryMessenger: binaryMessenger, codec: codec) + let echoMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoMap", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aMapArg = args[1] as! [String?: Any?] do { - let result = try api.pigeonDelegate.echoMap( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) + let result = try api.pigeonDelegate.echoMap(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1502,17 +1135,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoMapChannel.setMessageHandler(nil) } - let echoProxyApiMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApiMap", - binaryMessenger: binaryMessenger, codec: codec) + let echoProxyApiMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApiMap", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoProxyApiMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aMapArg = args[1] as! [String: ProxyApiTestClass] do { - let result = try api.pigeonDelegate.echoProxyApiMap( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) + let result = try api.pigeonDelegate.echoProxyApiMap(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1521,17 +1151,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoProxyApiMapChannel.setMessageHandler(nil) } - let echoEnumChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoEnum", - binaryMessenger: binaryMessenger, codec: codec) + let echoEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoEnum", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anEnumArg = args[1] as! ProxyApiTestEnum do { - let result = try api.pigeonDelegate.echoEnum( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg) + let result = try api.pigeonDelegate.echoEnum(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1540,17 +1167,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoEnumChannel.setMessageHandler(nil) } - let echoProxyApiChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApi", - binaryMessenger: binaryMessenger, codec: codec) + let echoProxyApiChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApi", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoProxyApiChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aProxyApiArg = args[1] as! ProxyApiSuperClass do { - let result = try api.pigeonDelegate.echoProxyApi( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aProxyApi: aProxyApiArg) + let result = try api.pigeonDelegate.echoProxyApi(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aProxyApi: aProxyApiArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1559,17 +1183,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoProxyApiChannel.setMessageHandler(nil) } - let echoNullableIntChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableInt", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableInt", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableIntArg: Int64? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableInt( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableInt: aNullableIntArg) + let result = try api.pigeonDelegate.echoNullableInt(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableInt: aNullableIntArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1578,17 +1199,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoNullableIntChannel.setMessageHandler(nil) } - let echoNullableDoubleChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableDouble", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableDouble", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableDoubleArg: Double? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableDouble( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableDouble: aNullableDoubleArg) + let result = try api.pigeonDelegate.echoNullableDouble(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableDouble: aNullableDoubleArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1597,17 +1215,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoNullableDoubleChannel.setMessageHandler(nil) } - let echoNullableBoolChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableBool", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableBool", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableBoolArg: Bool? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableBool( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableBool: aNullableBoolArg) + let result = try api.pigeonDelegate.echoNullableBool(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableBool: aNullableBoolArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1616,17 +1231,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoNullableBoolChannel.setMessageHandler(nil) } - let echoNullableStringChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableString", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableString", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableStringArg: String? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableString( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableString: aNullableStringArg) + let result = try api.pigeonDelegate.echoNullableString(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableString: aNullableStringArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1635,18 +1247,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoNullableStringChannel.setMessageHandler(nil) } - let echoNullableUint8ListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableUint8List", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableUint8List", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableUint8ListArg: FlutterStandardTypedData? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableUint8List( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, - aNullableUint8List: aNullableUint8ListArg) + let result = try api.pigeonDelegate.echoNullableUint8List(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableUint8List: aNullableUint8ListArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1655,17 +1263,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoNullableUint8ListChannel.setMessageHandler(nil) } - let echoNullableObjectChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableObject", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableObjectChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableObject", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableObjectChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableObjectArg: Any? = args[1] do { - let result = try api.pigeonDelegate.echoNullableObject( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableObject: aNullableObjectArg) + let result = try api.pigeonDelegate.echoNullableObject(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableObject: aNullableObjectArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1674,17 +1279,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoNullableObjectChannel.setMessageHandler(nil) } - let echoNullableListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableList", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableList", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableListArg: [Any?]? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableList( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableList: aNullableListArg) + let result = try api.pigeonDelegate.echoNullableList(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableList: aNullableListArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1693,17 +1295,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoNullableListChannel.setMessageHandler(nil) } - let echoNullableMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableMap", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableMap", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableMapArg: [String?: Any?]? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableMap( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableMap: aNullableMapArg) + let result = try api.pigeonDelegate.echoNullableMap(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableMap: aNullableMapArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1712,17 +1311,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoNullableMapChannel.setMessageHandler(nil) } - let echoNullableEnumChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableEnum", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableEnum", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableEnumArg: ProxyApiTestEnum? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableEnum( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableEnum: aNullableEnumArg) + let result = try api.pigeonDelegate.echoNullableEnum(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableEnum: aNullableEnumArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1731,18 +1327,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoNullableEnumChannel.setMessageHandler(nil) } - let echoNullableProxyApiChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableProxyApi", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableProxyApiChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableProxyApi", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableProxyApiChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableProxyApiArg: ProxyApiSuperClass? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableProxyApi( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, - aNullableProxyApi: aNullableProxyApiArg) + let result = try api.pigeonDelegate.echoNullableProxyApi(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableProxyApi: aNullableProxyApiArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1751,9 +1343,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoNullableProxyApiChannel.setMessageHandler(nil) } - let noopAsyncChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.noopAsync", - binaryMessenger: binaryMessenger, codec: codec) + let noopAsyncChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.noopAsync", binaryMessenger: binaryMessenger, codec: codec) if let api = api { noopAsyncChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1770,17 +1360,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { noopAsyncChannel.setMessageHandler(nil) } - let echoAsyncIntChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncInt", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncInt", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anIntArg = args[1] as! Int64 - api.pigeonDelegate.echoAsyncInt( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg - ) { result in + api.pigeonDelegate.echoAsyncInt(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1792,17 +1378,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncIntChannel.setMessageHandler(nil) } - let echoAsyncDoubleChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncDouble", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncDouble", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aDoubleArg = args[1] as! Double - api.pigeonDelegate.echoAsyncDouble( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg - ) { result in + api.pigeonDelegate.echoAsyncDouble(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1814,17 +1396,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncDoubleChannel.setMessageHandler(nil) } - let echoAsyncBoolChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncBool", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncBool", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aBoolArg = args[1] as! Bool - api.pigeonDelegate.echoAsyncBool( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg - ) { result in + api.pigeonDelegate.echoAsyncBool(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1836,17 +1414,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncBoolChannel.setMessageHandler(nil) } - let echoAsyncStringChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncString", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncString", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aStringArg = args[1] as! String - api.pigeonDelegate.echoAsyncString( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg - ) { result in + api.pigeonDelegate.echoAsyncString(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1858,17 +1432,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncStringChannel.setMessageHandler(nil) } - let echoAsyncUint8ListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncUint8List", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncUint8List", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aUint8ListArg = args[1] as! FlutterStandardTypedData - api.pigeonDelegate.echoAsyncUint8List( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg - ) { result in + api.pigeonDelegate.echoAsyncUint8List(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1880,17 +1450,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncUint8ListChannel.setMessageHandler(nil) } - let echoAsyncObjectChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncObject", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncObjectChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncObject", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncObjectChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anObjectArg = args[1]! - api.pigeonDelegate.echoAsyncObject( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anObject: anObjectArg - ) { result in + api.pigeonDelegate.echoAsyncObject(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anObject: anObjectArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1902,17 +1468,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncObjectChannel.setMessageHandler(nil) } - let echoAsyncListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncList", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncList", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aListArg = args[1] as! [Any?] - api.pigeonDelegate.echoAsyncList( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg - ) { result in + api.pigeonDelegate.echoAsyncList(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1924,17 +1486,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncListChannel.setMessageHandler(nil) } - let echoAsyncMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncMap", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncMap", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aMapArg = args[1] as! [String?: Any?] - api.pigeonDelegate.echoAsyncMap( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg - ) { result in + api.pigeonDelegate.echoAsyncMap(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1946,17 +1504,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncMapChannel.setMessageHandler(nil) } - let echoAsyncEnumChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncEnum", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncEnum", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anEnumArg = args[1] as! ProxyApiTestEnum - api.pigeonDelegate.echoAsyncEnum( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg - ) { result in + api.pigeonDelegate.echoAsyncEnum(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1968,15 +1522,12 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncEnumChannel.setMessageHandler(nil) } - let throwAsyncErrorChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncError", - binaryMessenger: binaryMessenger, codec: codec) + let throwAsyncErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncError", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwAsyncErrorChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass - api.pigeonDelegate.throwAsyncError(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { - result in + api.pigeonDelegate.throwAsyncError(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1988,16 +1539,12 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { throwAsyncErrorChannel.setMessageHandler(nil) } - let throwAsyncErrorFromVoidChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncErrorFromVoid", - binaryMessenger: binaryMessenger, codec: codec) + let throwAsyncErrorFromVoidChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncErrorFromVoid", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwAsyncErrorFromVoidChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass - api.pigeonDelegate.throwAsyncErrorFromVoid( - pigeonApi: api, pigeonInstance: pigeonInstanceArg - ) { result in + api.pigeonDelegate.throwAsyncErrorFromVoid(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { result in switch result { case .success: reply(wrapResult(nil)) @@ -2009,15 +1556,12 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { throwAsyncErrorFromVoidChannel.setMessageHandler(nil) } - let throwAsyncFlutterErrorChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncFlutterError", - binaryMessenger: binaryMessenger, codec: codec) + let throwAsyncFlutterErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncFlutterError", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwAsyncFlutterErrorChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass - api.pigeonDelegate.throwAsyncFlutterError(pigeonApi: api, pigeonInstance: pigeonInstanceArg) - { result in + api.pigeonDelegate.throwAsyncFlutterError(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2029,17 +1573,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { throwAsyncFlutterErrorChannel.setMessageHandler(nil) } - let echoAsyncNullableIntChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableInt", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableInt", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anIntArg: Int64? = nilOrValue(args[1]) - api.pigeonDelegate.echoAsyncNullableInt( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg - ) { result in + api.pigeonDelegate.echoAsyncNullableInt(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2051,17 +1591,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncNullableIntChannel.setMessageHandler(nil) } - let echoAsyncNullableDoubleChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableDouble", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableDouble", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aDoubleArg: Double? = nilOrValue(args[1]) - api.pigeonDelegate.echoAsyncNullableDouble( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg - ) { result in + api.pigeonDelegate.echoAsyncNullableDouble(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2073,17 +1609,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncNullableDoubleChannel.setMessageHandler(nil) } - let echoAsyncNullableBoolChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableBool", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableBool", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aBoolArg: Bool? = nilOrValue(args[1]) - api.pigeonDelegate.echoAsyncNullableBool( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg - ) { result in + api.pigeonDelegate.echoAsyncNullableBool(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2095,17 +1627,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncNullableBoolChannel.setMessageHandler(nil) } - let echoAsyncNullableStringChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableString", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableString", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aStringArg: String? = nilOrValue(args[1]) - api.pigeonDelegate.echoAsyncNullableString( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg - ) { result in + api.pigeonDelegate.echoAsyncNullableString(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2117,18 +1645,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncNullableStringChannel.setMessageHandler(nil) } - let echoAsyncNullableUint8ListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableUint8List", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableUint8List", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aUint8ListArg: FlutterStandardTypedData? = nilOrValue(args[1]) - api.pigeonDelegate.echoAsyncNullableUint8List( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg - ) { result in + api.pigeonDelegate.echoAsyncNullableUint8List(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2140,17 +1663,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncNullableUint8ListChannel.setMessageHandler(nil) } - let echoAsyncNullableObjectChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableObject", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableObjectChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableObject", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableObjectChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anObjectArg: Any? = args[1] - api.pigeonDelegate.echoAsyncNullableObject( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anObject: anObjectArg - ) { result in + api.pigeonDelegate.echoAsyncNullableObject(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anObject: anObjectArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2162,17 +1681,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncNullableObjectChannel.setMessageHandler(nil) } - let echoAsyncNullableListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableList", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableList", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aListArg: [Any?]? = nilOrValue(args[1]) - api.pigeonDelegate.echoAsyncNullableList( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg - ) { result in + api.pigeonDelegate.echoAsyncNullableList(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2184,17 +1699,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncNullableListChannel.setMessageHandler(nil) } - let echoAsyncNullableMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableMap", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableMap", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aMapArg: [String?: Any?]? = nilOrValue(args[1]) - api.pigeonDelegate.echoAsyncNullableMap( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg - ) { result in + api.pigeonDelegate.echoAsyncNullableMap(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2206,17 +1717,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncNullableMapChannel.setMessageHandler(nil) } - let echoAsyncNullableEnumChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableEnum", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableEnum", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anEnumArg: ProxyApiTestEnum? = nilOrValue(args[1]) - api.pigeonDelegate.echoAsyncNullableEnum( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg - ) { result in + api.pigeonDelegate.echoAsyncNullableEnum(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2228,9 +1735,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncNullableEnumChannel.setMessageHandler(nil) } - let staticNoopChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticNoop", - binaryMessenger: binaryMessenger, codec: codec) + let staticNoopChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticNoop", binaryMessenger: binaryMessenger, codec: codec) if let api = api { staticNoopChannel.setMessageHandler { _, reply in do { @@ -2243,9 +1748,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { staticNoopChannel.setMessageHandler(nil) } - let echoStaticStringChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoStaticString", - binaryMessenger: binaryMessenger, codec: codec) + let echoStaticStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoStaticString", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoStaticStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2260,9 +1763,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoStaticStringChannel.setMessageHandler(nil) } - let staticAsyncNoopChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticAsyncNoop", - binaryMessenger: binaryMessenger, codec: codec) + let staticAsyncNoopChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticAsyncNoop", binaryMessenger: binaryMessenger, codec: codec) if let api = api { staticAsyncNoopChannel.setMessageHandler { _, reply in api.pigeonDelegate.staticAsyncNoop(pigeonApi: api) { result in @@ -2277,15 +1778,12 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { staticAsyncNoopChannel.setMessageHandler(nil) } - let callFlutterNoopChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterNoop", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterNoopChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterNoop", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterNoopChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass - api.pigeonDelegate.callFlutterNoop(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { - result in + api.pigeonDelegate.callFlutterNoop(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { result in switch result { case .success: reply(wrapResult(nil)) @@ -2297,15 +1795,12 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterNoopChannel.setMessageHandler(nil) } - let callFlutterThrowErrorChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterThrowError", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterThrowErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterThrowError", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterThrowErrorChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass - api.pigeonDelegate.callFlutterThrowError(pigeonApi: api, pigeonInstance: pigeonInstanceArg) - { result in + api.pigeonDelegate.callFlutterThrowError(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2317,17 +1812,12 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterThrowErrorChannel.setMessageHandler(nil) } - let callFlutterThrowErrorFromVoidChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterThrowErrorFromVoid", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterThrowErrorFromVoidChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterThrowErrorFromVoid", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterThrowErrorFromVoidChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass - api.pigeonDelegate.callFlutterThrowErrorFromVoid( - pigeonApi: api, pigeonInstance: pigeonInstanceArg - ) { result in + api.pigeonDelegate.callFlutterThrowErrorFromVoid(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { result in switch result { case .success: reply(wrapResult(nil)) @@ -2339,17 +1829,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterThrowErrorFromVoidChannel.setMessageHandler(nil) } - let callFlutterEchoBoolChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoBool", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoBool", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aBoolArg = args[1] as! Bool - api.pigeonDelegate.callFlutterEchoBool( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg - ) { result in + api.pigeonDelegate.callFlutterEchoBool(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2361,17 +1847,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoBoolChannel.setMessageHandler(nil) } - let callFlutterEchoIntChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoInt", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoInt", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anIntArg = args[1] as! Int64 - api.pigeonDelegate.callFlutterEchoInt( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg - ) { result in + api.pigeonDelegate.callFlutterEchoInt(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2383,17 +1865,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoIntChannel.setMessageHandler(nil) } - let callFlutterEchoDoubleChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoDouble", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoDouble", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aDoubleArg = args[1] as! Double - api.pigeonDelegate.callFlutterEchoDouble( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg - ) { result in + api.pigeonDelegate.callFlutterEchoDouble(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2405,17 +1883,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoDoubleChannel.setMessageHandler(nil) } - let callFlutterEchoStringChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoString", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoString", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aStringArg = args[1] as! String - api.pigeonDelegate.callFlutterEchoString( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg - ) { result in + api.pigeonDelegate.callFlutterEchoString(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2427,18 +1901,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoStringChannel.setMessageHandler(nil) } - let callFlutterEchoUint8ListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoUint8List", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoUint8List", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aUint8ListArg = args[1] as! FlutterStandardTypedData - api.pigeonDelegate.callFlutterEchoUint8List( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg - ) { result in + api.pigeonDelegate.callFlutterEchoUint8List(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2450,17 +1919,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoUint8ListChannel.setMessageHandler(nil) } - let callFlutterEchoListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoList", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoList", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aListArg = args[1] as! [Any?] - api.pigeonDelegate.callFlutterEchoList( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg - ) { result in + api.pigeonDelegate.callFlutterEchoList(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2472,18 +1937,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoListChannel.setMessageHandler(nil) } - let callFlutterEchoProxyApiListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApiList", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoProxyApiListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApiList", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoProxyApiListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aListArg = args[1] as! [ProxyApiTestClass?] - api.pigeonDelegate.callFlutterEchoProxyApiList( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg - ) { result in + api.pigeonDelegate.callFlutterEchoProxyApiList(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2495,17 +1955,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoProxyApiListChannel.setMessageHandler(nil) } - let callFlutterEchoMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoMap", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoMap", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aMapArg = args[1] as! [String?: Any?] - api.pigeonDelegate.callFlutterEchoMap( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg - ) { result in + api.pigeonDelegate.callFlutterEchoMap(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2517,18 +1973,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoMapChannel.setMessageHandler(nil) } - let callFlutterEchoProxyApiMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApiMap", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoProxyApiMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApiMap", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoProxyApiMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aMapArg = args[1] as! [String?: ProxyApiTestClass?] - api.pigeonDelegate.callFlutterEchoProxyApiMap( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg - ) { result in + api.pigeonDelegate.callFlutterEchoProxyApiMap(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2540,17 +1991,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoProxyApiMapChannel.setMessageHandler(nil) } - let callFlutterEchoEnumChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoEnum", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoEnum", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anEnumArg = args[1] as! ProxyApiTestEnum - api.pigeonDelegate.callFlutterEchoEnum( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg - ) { result in + api.pigeonDelegate.callFlutterEchoEnum(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2562,17 +2009,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoEnumChannel.setMessageHandler(nil) } - let callFlutterEchoProxyApiChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApi", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoProxyApiChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApi", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoProxyApiChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aProxyApiArg = args[1] as! ProxyApiSuperClass - api.pigeonDelegate.callFlutterEchoProxyApi( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aProxyApi: aProxyApiArg - ) { result in + api.pigeonDelegate.callFlutterEchoProxyApi(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aProxyApi: aProxyApiArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2584,18 +2027,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoProxyApiChannel.setMessageHandler(nil) } - let callFlutterEchoNullableBoolChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableBool", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableBool", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aBoolArg: Bool? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableBool( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg - ) { result in + api.pigeonDelegate.callFlutterEchoNullableBool(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2607,18 +2045,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoNullableBoolChannel.setMessageHandler(nil) } - let callFlutterEchoNullableIntChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableInt", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableInt", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anIntArg: Int64? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableInt( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg - ) { result in + api.pigeonDelegate.callFlutterEchoNullableInt(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2630,18 +2063,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoNullableIntChannel.setMessageHandler(nil) } - let callFlutterEchoNullableDoubleChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableDouble", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableDouble", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aDoubleArg: Double? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableDouble( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg - ) { result in + api.pigeonDelegate.callFlutterEchoNullableDouble(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2653,18 +2081,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoNullableDoubleChannel.setMessageHandler(nil) } - let callFlutterEchoNullableStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableString", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableString", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aStringArg: String? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableString( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg - ) { result in + api.pigeonDelegate.callFlutterEchoNullableString(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2676,18 +2099,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoNullableStringChannel.setMessageHandler(nil) } - let callFlutterEchoNullableUint8ListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableUint8List", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableUint8List", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aUint8ListArg: FlutterStandardTypedData? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableUint8List( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg - ) { result in + api.pigeonDelegate.callFlutterEchoNullableUint8List(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2699,18 +2117,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoNullableUint8ListChannel.setMessageHandler(nil) } - let callFlutterEchoNullableListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableList", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableList", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aListArg: [Any?]? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableList( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg - ) { result in + api.pigeonDelegate.callFlutterEchoNullableList(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2722,18 +2135,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoNullableListChannel.setMessageHandler(nil) } - let callFlutterEchoNullableMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableMap", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableMap", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aMapArg: [String?: Any?]? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableMap( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg - ) { result in + api.pigeonDelegate.callFlutterEchoNullableMap(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2745,18 +2153,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoNullableMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableEnum", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableEnum", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anEnumArg: ProxyApiTestEnum? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableEnum( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg - ) { result in + api.pigeonDelegate.callFlutterEchoNullableEnum(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2768,18 +2171,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoNullableEnumChannel.setMessageHandler(nil) } - let callFlutterEchoNullableProxyApiChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableProxyApi", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableProxyApiChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableProxyApi", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableProxyApiChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aProxyApiArg: ProxyApiSuperClass? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableProxyApi( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aProxyApi: aProxyApiArg - ) { result in + api.pigeonDelegate.callFlutterEchoNullableProxyApi(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aProxyApi: aProxyApiArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2791,15 +2189,12 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoNullableProxyApiChannel.setMessageHandler(nil) } - let callFlutterNoopAsyncChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterNoopAsync", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterNoopAsyncChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterNoopAsync", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterNoopAsyncChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass - api.pigeonDelegate.callFlutterNoopAsync(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { - result in + api.pigeonDelegate.callFlutterNoopAsync(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { result in switch result { case .success: reply(wrapResult(nil)) @@ -2811,18 +2206,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterNoopAsyncChannel.setMessageHandler(nil) } - let callFlutterEchoAsyncStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoAsyncString", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoAsyncStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoAsyncString", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoAsyncStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aStringArg = args[1] as! String - api.pigeonDelegate.callFlutterEchoAsyncString( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg - ) { result in + api.pigeonDelegate.callFlutterEchoAsyncString(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2837,10 +2227,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } ///Creates a Dart instance of ProxyApiTestClass and attaches it to [pigeonInstance]. - func pigeonNewInstance( - pigeonInstance: ProxyApiTestClass, - completion: @escaping (Result) -> Void - ) { + func pigeonNewInstance(pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -2853,51 +2240,30 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { completion(.success(Void())) return } - let pigeonIdentifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance( - pigeonInstance as AnyObject) + let pigeonIdentifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance(pigeonInstance as AnyObject) let aBoolArg = try! pigeonDelegate.aBool(pigeonApi: self, pigeonInstance: pigeonInstance) let anIntArg = try! pigeonDelegate.anInt(pigeonApi: self, pigeonInstance: pigeonInstance) let aDoubleArg = try! pigeonDelegate.aDouble(pigeonApi: self, pigeonInstance: pigeonInstance) let aStringArg = try! pigeonDelegate.aString(pigeonApi: self, pigeonInstance: pigeonInstance) - let aUint8ListArg = try! pigeonDelegate.aUint8List( - pigeonApi: self, pigeonInstance: pigeonInstance) + let aUint8ListArg = try! pigeonDelegate.aUint8List(pigeonApi: self, pigeonInstance: pigeonInstance) let aListArg = try! pigeonDelegate.aList(pigeonApi: self, pigeonInstance: pigeonInstance) let aMapArg = try! pigeonDelegate.aMap(pigeonApi: self, pigeonInstance: pigeonInstance) let anEnumArg = try! pigeonDelegate.anEnum(pigeonApi: self, pigeonInstance: pigeonInstance) - let aProxyApiArg = try! pigeonDelegate.aProxyApi( - pigeonApi: self, pigeonInstance: pigeonInstance) - let aNullableBoolArg = try! pigeonDelegate.aNullableBool( - pigeonApi: self, pigeonInstance: pigeonInstance) - let aNullableIntArg = try! pigeonDelegate.aNullableInt( - pigeonApi: self, pigeonInstance: pigeonInstance) - let aNullableDoubleArg = try! pigeonDelegate.aNullableDouble( - pigeonApi: self, pigeonInstance: pigeonInstance) - let aNullableStringArg = try! pigeonDelegate.aNullableString( - pigeonApi: self, pigeonInstance: pigeonInstance) - let aNullableUint8ListArg = try! pigeonDelegate.aNullableUint8List( - pigeonApi: self, pigeonInstance: pigeonInstance) - let aNullableListArg = try! pigeonDelegate.aNullableList( - pigeonApi: self, pigeonInstance: pigeonInstance) - let aNullableMapArg = try! pigeonDelegate.aNullableMap( - pigeonApi: self, pigeonInstance: pigeonInstance) - let aNullableEnumArg = try! pigeonDelegate.aNullableEnum( - pigeonApi: self, pigeonInstance: pigeonInstance) - let aNullableProxyApiArg = try! pigeonDelegate.aNullableProxyApi( - pigeonApi: self, pigeonInstance: pigeonInstance) + let aProxyApiArg = try! pigeonDelegate.aProxyApi(pigeonApi: self, pigeonInstance: pigeonInstance) + let aNullableBoolArg = try! pigeonDelegate.aNullableBool(pigeonApi: self, pigeonInstance: pigeonInstance) + let aNullableIntArg = try! pigeonDelegate.aNullableInt(pigeonApi: self, pigeonInstance: pigeonInstance) + let aNullableDoubleArg = try! pigeonDelegate.aNullableDouble(pigeonApi: self, pigeonInstance: pigeonInstance) + let aNullableStringArg = try! pigeonDelegate.aNullableString(pigeonApi: self, pigeonInstance: pigeonInstance) + let aNullableUint8ListArg = try! pigeonDelegate.aNullableUint8List(pigeonApi: self, pigeonInstance: pigeonInstance) + let aNullableListArg = try! pigeonDelegate.aNullableList(pigeonApi: self, pigeonInstance: pigeonInstance) + let aNullableMapArg = try! pigeonDelegate.aNullableMap(pigeonApi: self, pigeonInstance: pigeonInstance) + let aNullableEnumArg = try! pigeonDelegate.aNullableEnum(pigeonApi: self, pigeonInstance: pigeonInstance) + let aNullableProxyApiArg = try! pigeonDelegate.aNullableProxyApi(pigeonApi: self, pigeonInstance: pigeonInstance) let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_newInstance" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage( - [ - pigeonIdentifierArg, aBoolArg, anIntArg, aDoubleArg, aStringArg, aUint8ListArg, aListArg, - aMapArg, anEnumArg, aProxyApiArg, aNullableBoolArg, aNullableIntArg, aNullableDoubleArg, - aNullableStringArg, aNullableUint8ListArg, aNullableListArg, aNullableMapArg, - aNullableEnumArg, aNullableProxyApiArg, - ] as [Any?] - ) { response in + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_newInstance" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([pigeonIdentifierArg, aBoolArg, anIntArg, aDoubleArg, aStringArg, aUint8ListArg, aListArg, aMapArg, anEnumArg, aProxyApiArg, aNullableBoolArg, aNullableIntArg, aNullableDoubleArg, aNullableStringArg, aNullableUint8ListArg, aNullableListArg, aNullableMapArg, aNullableEnumArg, aNullableProxyApiArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) return @@ -2914,10 +2280,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// A no-op function taking no arguments and returning no value, to sanity /// test basic calling. - func flutterNoop( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - completion: @escaping (Result) -> Void - ) { + func flutterNoop(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -2928,10 +2291,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoop" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoop" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -2949,10 +2310,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Responds with an error from an async function returning a value. - func flutterThrowError( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - completion: @escaping (Result) -> Void - ) { + func flutterThrowError(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -2963,10 +2321,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowError" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowError" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -2985,10 +2341,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Responds with an error from an async void function. - func flutterThrowErrorFromVoid( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - completion: @escaping (Result) -> Void - ) { + func flutterThrowErrorFromVoid(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -2999,10 +2352,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowErrorFromVoid" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowErrorFromVoid" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3020,10 +2371,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed boolean, to test serialization and deserialization. - func flutterEchoBool( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aBool aBoolArg: Bool, - completion: @escaping (Result) -> Void - ) { + func flutterEchoBool(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aBool aBoolArg: Bool, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3034,10 +2382,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aBoolArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3049,11 +2395,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! Bool completion(.success(result)) @@ -3062,10 +2404,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed int, to test serialization and deserialization. - func flutterEchoInt( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anInt anIntArg: Int64, - completion: @escaping (Result) -> Void - ) { + func flutterEchoInt(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anInt anIntArg: Int64, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3076,10 +2415,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoInt" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoInt" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, anIntArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3091,11 +2428,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! Int64 completion(.success(result)) @@ -3104,10 +2437,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed double, to test serialization and deserialization. - func flutterEchoDouble( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aDouble aDoubleArg: Double, - completion: @escaping (Result) -> Void - ) { + func flutterEchoDouble(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aDouble aDoubleArg: Double, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3118,10 +2448,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aDoubleArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3133,11 +2461,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! Double completion(.success(result)) @@ -3146,10 +2470,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed string, to test serialization and deserialization. - func flutterEchoString( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String, - completion: @escaping (Result) -> Void - ) { + func flutterEchoString(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3160,10 +2481,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aStringArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3175,11 +2494,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! String completion(.success(result)) @@ -3188,10 +2503,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed byte list, to test serialization and deserialization. - func flutterEchoUint8List( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: FlutterStandardTypedData, - completion: @escaping (Result) -> Void - ) { + func flutterEchoUint8List(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: FlutterStandardTypedData, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3202,10 +2514,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3217,11 +2527,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! FlutterStandardTypedData completion(.success(result)) @@ -3230,10 +2536,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed list, to test serialization and deserialization. - func flutterEchoList( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [Any?], - completion: @escaping (Result<[Any?], ProxyApiTestsError>) -> Void - ) { + func flutterEchoList(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [Any?], completion: @escaping (Result<[Any?], ProxyApiTestsError>) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3244,10 +2547,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3259,11 +2560,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [Any?] completion(.success(result)) @@ -3273,10 +2570,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { /// Returns the passed list with ProxyApis, to test serialization and /// deserialization. - func flutterEchoProxyApiList( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [ProxyApiTestClass?], - completion: @escaping (Result<[ProxyApiTestClass?], ProxyApiTestsError>) -> Void - ) { + func flutterEchoProxyApiList(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [ProxyApiTestClass?], completion: @escaping (Result<[ProxyApiTestClass?], ProxyApiTestsError>) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3287,10 +2581,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3302,11 +2594,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [ProxyApiTestClass?] completion(.success(result)) @@ -3315,10 +2603,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed map, to test serialization and deserialization. - func flutterEchoMap( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: Any?], - completion: @escaping (Result<[String?: Any?], ProxyApiTestsError>) -> Void - ) { + func flutterEchoMap(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: Any?], completion: @escaping (Result<[String?: Any?], ProxyApiTestsError>) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3329,10 +2614,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoMap" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoMap" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3344,11 +2627,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [String?: Any?] completion(.success(result)) @@ -3358,11 +2637,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { /// Returns the passed map with ProxyApis, to test serialization and /// deserialization. - func flutterEchoProxyApiMap( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - aMap aMapArg: [String?: ProxyApiTestClass?], - completion: @escaping (Result<[String?: ProxyApiTestClass?], ProxyApiTestsError>) -> Void - ) { + func flutterEchoProxyApiMap(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: ProxyApiTestClass?], completion: @escaping (Result<[String?: ProxyApiTestClass?], ProxyApiTestsError>) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3373,10 +2648,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiMap" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiMap" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3388,11 +2661,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [String?: ProxyApiTestClass?] completion(.success(result)) @@ -3401,10 +2670,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed enum to test serialization and deserialization. - func flutterEchoEnum( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anEnum anEnumArg: ProxyApiTestEnum, - completion: @escaping (Result) -> Void - ) { + func flutterEchoEnum(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anEnum anEnumArg: ProxyApiTestEnum, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3415,10 +2681,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, anEnumArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3430,11 +2694,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! ProxyApiTestEnum completion(.success(result)) @@ -3443,10 +2703,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed ProxyApi to test serialization and deserialization. - func flutterEchoProxyApi( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aProxyApi aProxyApiArg: ProxyApiSuperClass, - completion: @escaping (Result) -> Void - ) { + func flutterEchoProxyApi(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aProxyApi aProxyApiArg: ProxyApiSuperClass, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3457,10 +2714,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aProxyApiArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3472,11 +2727,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! ProxyApiSuperClass completion(.success(result)) @@ -3485,10 +2736,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed boolean, to test serialization and deserialization. - func flutterEchoNullableBool( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aBool aBoolArg: Bool?, - completion: @escaping (Result) -> Void - ) { + func flutterEchoNullableBool(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aBool aBoolArg: Bool?, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3499,10 +2747,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableBool" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableBool" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aBoolArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3521,10 +2767,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed int, to test serialization and deserialization. - func flutterEchoNullableInt( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anInt anIntArg: Int64?, - completion: @escaping (Result) -> Void - ) { + func flutterEchoNullableInt(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anInt anIntArg: Int64?, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3535,10 +2778,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableInt" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableInt" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, anIntArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3557,10 +2798,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed double, to test serialization and deserialization. - func flutterEchoNullableDouble( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aDouble aDoubleArg: Double?, - completion: @escaping (Result) -> Void - ) { + func flutterEchoNullableDouble(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aDouble aDoubleArg: Double?, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3571,10 +2809,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableDouble" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableDouble" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aDoubleArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3593,10 +2829,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed string, to test serialization and deserialization. - func flutterEchoNullableString( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String?, - completion: @escaping (Result) -> Void - ) { + func flutterEchoNullableString(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String?, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3607,10 +2840,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableString" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableString" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aStringArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3629,10 +2860,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed byte list, to test serialization and deserialization. - func flutterEchoNullableUint8List( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: FlutterStandardTypedData?, - completion: @escaping (Result) -> Void - ) { + func flutterEchoNullableUint8List(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: FlutterStandardTypedData?, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3643,10 +2871,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableUint8List" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableUint8List" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3665,10 +2891,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed list, to test serialization and deserialization. - func flutterEchoNullableList( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [Any?]?, - completion: @escaping (Result<[Any?]?, ProxyApiTestsError>) -> Void - ) { + func flutterEchoNullableList(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [Any?]?, completion: @escaping (Result<[Any?]?, ProxyApiTestsError>) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3679,10 +2902,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableList" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableList" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3701,10 +2922,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed map, to test serialization and deserialization. - func flutterEchoNullableMap( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: Any?]?, - completion: @escaping (Result<[String?: Any?]?, ProxyApiTestsError>) -> Void - ) { + func flutterEchoNullableMap(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: Any?]?, completion: @escaping (Result<[String?: Any?]?, ProxyApiTestsError>) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3715,10 +2933,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableMap" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableMap" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3737,10 +2953,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed enum to test serialization and deserialization. - func flutterEchoNullableEnum( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anEnum anEnumArg: ProxyApiTestEnum?, - completion: @escaping (Result) -> Void - ) { + func flutterEchoNullableEnum(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anEnum anEnumArg: ProxyApiTestEnum?, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3751,10 +2964,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableEnum" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableEnum" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, anEnumArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3773,11 +2984,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed ProxyApi to test serialization and deserialization. - func flutterEchoNullableProxyApi( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - aProxyApi aProxyApiArg: ProxyApiSuperClass?, - completion: @escaping (Result) -> Void - ) { + func flutterEchoNullableProxyApi(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aProxyApi aProxyApiArg: ProxyApiSuperClass?, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3788,10 +2995,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableProxyApi" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableProxyApi" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aProxyApiArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3811,10 +3016,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. - func flutterNoopAsync( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - completion: @escaping (Result) -> Void - ) { + func flutterNoopAsync(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3825,10 +3027,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoopAsync" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoopAsync" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3846,10 +3046,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed in generic Object asynchronously. - func flutterEchoAsyncString( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String, - completion: @escaping (Result) -> Void - ) { + func flutterEchoAsyncString(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3860,10 +3057,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aStringArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3875,11 +3070,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! String completion(.success(result)) @@ -3890,44 +3081,34 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } protocol PigeonApiDelegateProxyApiSuperClass { func pigeonDefaultConstructor(pigeonApi: PigeonApiProxyApiSuperClass) throws -> ProxyApiSuperClass - func aSuperMethod(pigeonApi: PigeonApiProxyApiSuperClass, pigeonInstance: ProxyApiSuperClass) - throws + func aSuperMethod(pigeonApi: PigeonApiProxyApiSuperClass, pigeonInstance: ProxyApiSuperClass) throws } protocol PigeonApiProtocolProxyApiSuperClass { } -final class PigeonApiProxyApiSuperClass: PigeonApiProtocolProxyApiSuperClass { +final class PigeonApiProxyApiSuperClass: PigeonApiProtocolProxyApiSuperClass { unowned let pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar let pigeonDelegate: PigeonApiDelegateProxyApiSuperClass - init( - pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar, - delegate: PigeonApiDelegateProxyApiSuperClass - ) { + init(pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar, delegate: PigeonApiDelegateProxyApiSuperClass) { self.pigeonRegistrar = pigeonRegistrar self.pigeonDelegate = delegate } - static func setUpMessageHandlers( - binaryMessenger: FlutterBinaryMessenger, api: PigeonApiProxyApiSuperClass? - ) { + static func setUpMessageHandlers(binaryMessenger: FlutterBinaryMessenger, api: PigeonApiProxyApiSuperClass?) { let codec: FlutterStandardMessageCodec = api != nil ? FlutterStandardMessageCodec( - readerWriter: ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter( - pigeonRegistrar: api!.pigeonRegistrar)) + readerWriter: ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter(pigeonRegistrar: api!.pigeonRegistrar)) : FlutterStandardMessageCodec.sharedInstance() - let pigeonDefaultConstructorChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_defaultConstructor", - binaryMessenger: binaryMessenger, codec: codec) + let pigeonDefaultConstructorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_defaultConstructor", binaryMessenger: binaryMessenger, codec: codec) if let api = api { pigeonDefaultConstructorChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonIdentifierArg = args[0] as! Int64 do { api.pigeonRegistrar.instanceManager.addDartCreatedInstance( - try api.pigeonDelegate.pigeonDefaultConstructor(pigeonApi: api), - withIdentifier: pigeonIdentifierArg) +try api.pigeonDelegate.pigeonDefaultConstructor(pigeonApi: api), +withIdentifier: pigeonIdentifierArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -3936,9 +3117,7 @@ final class PigeonApiProxyApiSuperClass: PigeonApiProtocolProxyApiSuperClass { } else { pigeonDefaultConstructorChannel.setMessageHandler(nil) } - let aSuperMethodChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.aSuperMethod", - binaryMessenger: binaryMessenger, codec: codec) + let aSuperMethodChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.aSuperMethod", binaryMessenger: binaryMessenger, codec: codec) if let api = api { aSuperMethodChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3956,10 +3135,7 @@ final class PigeonApiProxyApiSuperClass: PigeonApiProtocolProxyApiSuperClass { } ///Creates a Dart instance of ProxyApiSuperClass and attaches it to [pigeonInstance]. - func pigeonNewInstance( - pigeonInstance: ProxyApiSuperClass, - completion: @escaping (Result) -> Void - ) { + func pigeonNewInstance(pigeonInstance: ProxyApiSuperClass, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3972,14 +3148,11 @@ final class PigeonApiProxyApiSuperClass: PigeonApiProtocolProxyApiSuperClass { completion(.success(Void())) return } - let pigeonIdentifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance( - pigeonInstance as AnyObject) + let pigeonIdentifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance(pigeonInstance as AnyObject) let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_newInstance" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_newInstance" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonIdentifierArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4000,26 +3173,18 @@ open class PigeonApiDelegateProxyApiInterface { } protocol PigeonApiProtocolProxyApiInterface { - func anInterfaceMethod( - pigeonInstance pigeonInstanceArg: ProxyApiInterface, - completion: @escaping (Result) -> Void) + func anInterfaceMethod(pigeonInstance pigeonInstanceArg: ProxyApiInterface, completion: @escaping (Result) -> Void) } -final class PigeonApiProxyApiInterface: PigeonApiProtocolProxyApiInterface { +final class PigeonApiProxyApiInterface: PigeonApiProtocolProxyApiInterface { unowned let pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar let pigeonDelegate: PigeonApiDelegateProxyApiInterface - init( - pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar, - delegate: PigeonApiDelegateProxyApiInterface - ) { + init(pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar, delegate: PigeonApiDelegateProxyApiInterface) { self.pigeonRegistrar = pigeonRegistrar self.pigeonDelegate = delegate } ///Creates a Dart instance of ProxyApiInterface and attaches it to [pigeonInstance]. - func pigeonNewInstance( - pigeonInstance: ProxyApiInterface, - completion: @escaping (Result) -> Void - ) { + func pigeonNewInstance(pigeonInstance: ProxyApiInterface, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -4032,14 +3197,11 @@ final class PigeonApiProxyApiInterface: PigeonApiProtocolProxyApiInterface { completion(.success(Void())) return } - let pigeonIdentifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance( - pigeonInstance as AnyObject) + let pigeonIdentifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance(pigeonInstance as AnyObject) let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeon_newInstance" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeon_newInstance" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonIdentifierArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4055,10 +3217,7 @@ final class PigeonApiProxyApiInterface: PigeonApiProtocolProxyApiInterface { } } } - func anInterfaceMethod( - pigeonInstance pigeonInstanceArg: ProxyApiInterface, - completion: @escaping (Result) -> Void - ) { + func anInterfaceMethod(pigeonInstance pigeonInstanceArg: ProxyApiInterface, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -4069,10 +3228,8 @@ final class PigeonApiProxyApiInterface: PigeonApiProtocolProxyApiInterface { } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.anInterfaceMethod" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.anInterfaceMethod" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4092,48 +3249,37 @@ final class PigeonApiProxyApiInterface: PigeonApiProtocolProxyApiInterface { } protocol PigeonApiDelegateClassWithApiRequirement { @available(iOS 15.0.0, macOS 10.0.0, *) - func pigeonDefaultConstructor(pigeonApi: PigeonApiClassWithApiRequirement) throws - -> ClassWithApiRequirement + func pigeonDefaultConstructor(pigeonApi: PigeonApiClassWithApiRequirement) throws -> ClassWithApiRequirement @available(iOS 15.0.0, macOS 10.0.0, *) - func aMethod(pigeonApi: PigeonApiClassWithApiRequirement, pigeonInstance: ClassWithApiRequirement) - throws + func aMethod(pigeonApi: PigeonApiClassWithApiRequirement, pigeonInstance: ClassWithApiRequirement) throws } protocol PigeonApiProtocolClassWithApiRequirement { } -final class PigeonApiClassWithApiRequirement: PigeonApiProtocolClassWithApiRequirement { +final class PigeonApiClassWithApiRequirement: PigeonApiProtocolClassWithApiRequirement { unowned let pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar let pigeonDelegate: PigeonApiDelegateClassWithApiRequirement - init( - pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar, - delegate: PigeonApiDelegateClassWithApiRequirement - ) { + init(pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar, delegate: PigeonApiDelegateClassWithApiRequirement) { self.pigeonRegistrar = pigeonRegistrar self.pigeonDelegate = delegate } - static func setUpMessageHandlers( - binaryMessenger: FlutterBinaryMessenger, api: PigeonApiClassWithApiRequirement? - ) { + static func setUpMessageHandlers(binaryMessenger: FlutterBinaryMessenger, api: PigeonApiClassWithApiRequirement?) { let codec: FlutterStandardMessageCodec = api != nil ? FlutterStandardMessageCodec( - readerWriter: ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter( - pigeonRegistrar: api!.pigeonRegistrar)) + readerWriter: ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter(pigeonRegistrar: api!.pigeonRegistrar)) : FlutterStandardMessageCodec.sharedInstance() if #available(iOS 15.0.0, macOS 10.0.0, *) { - let pigeonDefaultConstructorChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_defaultConstructor", - binaryMessenger: binaryMessenger, codec: codec) + let pigeonDefaultConstructorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_defaultConstructor", binaryMessenger: binaryMessenger, codec: codec) if let api = api { pigeonDefaultConstructorChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonIdentifierArg = args[0] as! Int64 do { api.pigeonRegistrar.instanceManager.addDartCreatedInstance( - try api.pigeonDelegate.pigeonDefaultConstructor(pigeonApi: api), - withIdentifier: pigeonIdentifierArg) +try api.pigeonDelegate.pigeonDefaultConstructor(pigeonApi: api), +withIdentifier: pigeonIdentifierArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -4142,30 +3288,23 @@ final class PigeonApiClassWithApiRequirement: PigeonApiProtocolClassWithApiRequi } else { pigeonDefaultConstructorChannel.setMessageHandler(nil) } - } else { + } else { let pigeonDefaultConstructorChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_defaultConstructor", + name: "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_defaultConstructor", binaryMessenger: binaryMessenger, codec: codec) if api != nil { pigeonDefaultConstructorChannel.setMessageHandler { message, reply in - reply( - wrapError( - FlutterError( - code: "PigeonUnsupportedOperationError", - message: - "Call to pigeonDefaultConstructor requires @available(iOS 15.0.0, macOS 10.0.0, *).", - details: nil - ))) + reply(wrapError(FlutterError(code: "PigeonUnsupportedOperationError", + message: "Call to pigeonDefaultConstructor requires @available(iOS 15.0.0, macOS 10.0.0, *).", + details: nil + ))) } } else { pigeonDefaultConstructorChannel.setMessageHandler(nil) } } if #available(iOS 15.0.0, macOS 10.0.0, *) { - let aMethodChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.aMethod", - binaryMessenger: binaryMessenger, codec: codec) + let aMethodChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.aMethod", binaryMessenger: binaryMessenger, codec: codec) if let api = api { aMethodChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4180,19 +3319,16 @@ final class PigeonApiClassWithApiRequirement: PigeonApiProtocolClassWithApiRequi } else { aMethodChannel.setMessageHandler(nil) } - } else { + } else { let aMethodChannel = FlutterBasicMessageChannel( name: "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.aMethod", binaryMessenger: binaryMessenger, codec: codec) if api != nil { aMethodChannel.setMessageHandler { message, reply in - reply( - wrapError( - FlutterError( - code: "PigeonUnsupportedOperationError", - message: "Call to aMethod requires @available(iOS 15.0.0, macOS 10.0.0, *).", - details: nil - ))) + reply(wrapError(FlutterError(code: "PigeonUnsupportedOperationError", + message: "Call to aMethod requires @available(iOS 15.0.0, macOS 10.0.0, *).", + details: nil + ))) } } else { aMethodChannel.setMessageHandler(nil) @@ -4202,10 +3338,7 @@ final class PigeonApiClassWithApiRequirement: PigeonApiProtocolClassWithApiRequi ///Creates a Dart instance of ClassWithApiRequirement and attaches it to [pigeonInstance]. @available(iOS 15.0.0, macOS 10.0.0, *) - func pigeonNewInstance( - pigeonInstance: ClassWithApiRequirement, - completion: @escaping (Result) -> Void - ) { + func pigeonNewInstance(pigeonInstance: ClassWithApiRequirement, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -4218,14 +3351,11 @@ final class PigeonApiClassWithApiRequirement: PigeonApiProtocolClassWithApiRequi completion(.success(Void())) return } - let pigeonIdentifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance( - pigeonInstance as AnyObject) + let pigeonIdentifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance(pigeonInstance as AnyObject) let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_newInstance" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_newInstance" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonIdentifierArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName)))