From c1ba6d8906c86901ea54108fea664c76deedbeee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20V=C3=A4limaa?= Date: Fri, 10 Jul 2026 17:28:25 +0800 Subject: [PATCH 1/3] feat: initial improvements to android notifications handling --- README.md | 19 +++++++ .../GoogleMapsNavigationSessionManager.kt | 54 +++++++++++++++++++ ...ogleMapsNavigationSessionMessageHandler.kt | 12 ++++- .../maps/flutter/navigation/messages.g.kt | 14 ++++- example/lib/pages/navigation.dart | 8 ++- ...eMapsNavigationSessionMessageHandler.swift | 3 ++ .../messages.g.swift | 9 +++- lib/src/method_channel/messages.g.dart | 14 +++-- lib/src/method_channel/session_api.dart | 4 ++ .../google_navigation_flutter_navigator.dart | 4 ++ .../navigation_notification_options.dart | 38 +++++++++++++ lib/src/types/types.dart | 1 + pigeons/messages.dart | 3 ++ test/google_navigation_flutter_test.dart | 16 +++++- .../google_navigation_flutter_test.mocks.dart | 6 +++ test/messages_test.g.dart | 9 ++++ 16 files changed, 206 insertions(+), 8 deletions(-) create mode 100644 lib/src/types/navigation_notification_options.dart diff --git a/README.md b/README.md index bdbf4389..c6cf41cf 100644 --- a/README.md +++ b/README.md @@ -175,6 +175,25 @@ The `taskRemovedBehavior` parameter of navigation session initialization defines This parameter has only an effect on Android. +#### Android navigation notification + +Configure the built-in Android navigation notification when creating the first +navigation session. The options are ignored on iOS. + +```dart +await GoogleMapsNavigator.initializeNavigationSession( + notificationOptions: const NavigationNotificationOptions( + notificationId: 1234, + defaultMessage: 'Navigation is active', + resumeAppOnTap: true, + ), +); +``` + +`resumeAppOnTap` makes a notification tap launch or resume the application. +These options retain the Navigation SDK's turn-by-turn notification content; +custom notification layouts are not supported. + ### Add a map view ```dart diff --git a/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsNavigationSessionManager.kt b/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsNavigationSessionManager.kt index f4bda770..6574fedc 100644 --- a/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsNavigationSessionManager.kt +++ b/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsNavigationSessionManager.kt @@ -18,6 +18,7 @@ package com.google.maps.flutter.navigation import android.app.Activity import android.app.Application +import android.content.Intent import android.content.res.Resources import android.location.Location import androidx.lifecycle.DefaultLifecycleObserver @@ -61,6 +62,7 @@ constructor( ) : DefaultLifecycleObserver { companion object { var navigationReadyListener: NavigationReadyListener? = null + private var foregroundServiceManagerInitialized = false } private var arrivalListener: Navigator.ArrivalListener? = null @@ -131,6 +133,9 @@ constructor( fun createNavigationSession( abnormalTerminationReportingEnabled: Boolean, behavior: TaskRemovedBehaviorDto, + notificationId: Long?, + defaultMessage: String?, + resumeAppOnTap: Boolean?, callback: (Result) -> Unit, ) { val currentState = GoogleMapsNavigatorHolder.getInitializationState() @@ -178,6 +183,13 @@ constructor( return } + try { + initializeForegroundServiceManager(notificationId, defaultMessage, resumeAppOnTap) + } catch (error: Throwable) { + callback(Result.failure(error)) + return + } + // Enable or disable abnormal termination reporting. NavigationApi.setAbnormalTerminationReportingEnabled(abnormalTerminationReportingEnabled) @@ -288,6 +300,7 @@ constructor( // As unregisterListeners() is removing all listeners, we need to re-register them when // navigator is re-initialized. This is done in createNavigationSession() method. GoogleMapsNavigatorHolder.reset() + clearForegroundServiceManager() navigationReadyListener?.onNavigationReady(false) } } @@ -417,6 +430,47 @@ constructor( } } + private fun initializeForegroundServiceManager( + notificationId: Long?, + defaultMessage: String?, + resumeAppOnTap: Boolean?, + ) { + if (resumeAppOnTap == null || foregroundServiceManagerInitialized) return + + val androidNotificationId = + notificationId?.let { + if (it !in Int.MIN_VALUE.toLong()..Int.MAX_VALUE.toLong()) { + throw FlutterError("invalidNotificationId", "notificationId must fit in a 32-bit integer.") + } + it.toInt() + } + + val resumeIntent = + if (resumeAppOnTap) { + application.packageManager + .getLaunchIntentForPackage(application.packageName) + ?.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP or Intent.FLAG_ACTIVITY_SINGLE_TOP) + } else { + null + } + + // This must happen before NavigationApi.getNavigator(), which can create the manager. + NavigationApi.initForegroundServiceManagerMessageAndIntent( + application, + androidNotificationId, + defaultMessage, + resumeIntent, + ) + foregroundServiceManagerInitialized = true + } + + private fun clearForegroundServiceManager() { + if (foregroundServiceManagerInitialized) { + NavigationApi.clearForegroundServiceManager() + foregroundServiceManagerInitialized = false + } + } + /** * Wraps [Navigator.startGuidance]. See * [Google Navigation SDK for Android](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/navigation/Navigator#startGuidance()). diff --git a/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsNavigationSessionMessageHandler.kt b/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsNavigationSessionMessageHandler.kt index 5cbaed13..825409a4 100644 --- a/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsNavigationSessionMessageHandler.kt +++ b/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsNavigationSessionMessageHandler.kt @@ -27,9 +27,19 @@ class GoogleMapsNavigationSessionMessageHandler( override fun createNavigationSession( abnormalTerminationReportingEnabled: Boolean, behavior: TaskRemovedBehaviorDto, + notificationId: Long?, + defaultMessage: String?, + resumeAppOnTap: Boolean?, callback: (Result) -> Unit, ) { - sessionManager.createNavigationSession(abnormalTerminationReportingEnabled, behavior, callback) + sessionManager.createNavigationSession( + abnormalTerminationReportingEnabled, + behavior, + notificationId, + defaultMessage, + resumeAppOnTap, + callback, + ) } override fun isInitialized(): Boolean { diff --git a/android/src/main/kotlin/com/google/maps/flutter/navigation/messages.g.kt b/android/src/main/kotlin/com/google/maps/flutter/navigation/messages.g.kt index 069698f0..315dfcd9 100644 --- a/android/src/main/kotlin/com/google/maps/flutter/navigation/messages.g.kt +++ b/android/src/main/kotlin/com/google/maps/flutter/navigation/messages.g.kt @@ -6889,6 +6889,9 @@ interface NavigationSessionApi { fun createNavigationSession( abnormalTerminationReportingEnabled: Boolean, behavior: TaskRemovedBehaviorDto, + notificationId: Long?, + defaultMessage: String?, + resumeAppOnTap: Boolean?, callback: (Result) -> Unit, ) @@ -7011,7 +7014,16 @@ interface NavigationSessionApi { val args = message as List val abnormalTerminationReportingEnabledArg = args[0] as Boolean val behaviorArg = args[1] as TaskRemovedBehaviorDto - api.createNavigationSession(abnormalTerminationReportingEnabledArg, behaviorArg) { + val notificationIdArg = args[2] as Long? + val defaultMessageArg = args[3] as String? + val resumeAppOnTapArg = args[4] as Boolean? + api.createNavigationSession( + abnormalTerminationReportingEnabledArg, + behaviorArg, + notificationIdArg, + defaultMessageArg, + resumeAppOnTapArg, + ) { result: Result -> val error = result.exceptionOrNull() if (error != null) { diff --git a/example/lib/pages/navigation.dart b/example/lib/pages/navigation.dart index dd844eeb..2df8e784 100644 --- a/example/lib/pages/navigation.dart +++ b/example/lib/pages/navigation.dart @@ -313,7 +313,13 @@ class _NavigationPageState extends ExamplePageState { if (!_navigatorInitialized) { debugPrint('Initializing new navigation session...'); try { - await GoogleMapsNavigator.initializeNavigationSession(); + await GoogleMapsNavigator.initializeNavigationSession( + notificationOptions: const NavigationNotificationOptions( + notificationId: 1234, + defaultMessage: 'Navigation is active', + resumeAppOnTap: true, + ), + ); } on SessionInitializationException catch (e) { switch (e.code) { case SessionInitializationError.termsNotAccepted: diff --git a/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationSessionMessageHandler.swift b/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationSessionMessageHandler.swift index d40d55c7..4fb4d9d0 100644 --- a/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationSessionMessageHandler.swift +++ b/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationSessionMessageHandler.swift @@ -69,6 +69,9 @@ class GoogleMapsNavigationSessionMessageHandler: NavigationSessionApi { // taskRemovedBehaviourValue is Android only value and not used on // iOS. behavior: TaskRemovedBehaviorDto, + notificationId: Int64?, + defaultMessage: String?, + resumeAppOnTap: Bool?, completion: @escaping (Result) -> Void ) { do { diff --git a/ios/google_navigation_flutter/Sources/google_navigation_flutter/messages.g.swift b/ios/google_navigation_flutter/Sources/google_navigation_flutter/messages.g.swift index fc8f5d88..f4bd8d6e 100644 --- a/ios/google_navigation_flutter/Sources/google_navigation_flutter/messages.g.swift +++ b/ios/google_navigation_flutter/Sources/google_navigation_flutter/messages.g.swift @@ -5880,6 +5880,7 @@ class ViewEventApi: ViewEventApiProtocol { protocol NavigationSessionApi { func createNavigationSession( abnormalTerminationReportingEnabled: Bool, behavior: TaskRemovedBehaviorDto, + notificationId: Int64?, defaultMessage: String?, resumeAppOnTap: Bool?, completion: @escaping (Result) -> Void) func isInitialized() throws -> Bool func cleanup(resetSession: Bool) throws @@ -5948,9 +5949,15 @@ class NavigationSessionApiSetup { let args = message as! [Any?] let abnormalTerminationReportingEnabledArg = args[0] as! Bool let behaviorArg = args[1] as! TaskRemovedBehaviorDto + let notificationIdArg: Int64? = nilOrValue(args[2]) + let defaultMessageArg: String? = nilOrValue(args[3]) + let resumeAppOnTapArg: Bool? = nilOrValue(args[4]) api.createNavigationSession( abnormalTerminationReportingEnabled: abnormalTerminationReportingEnabledArg, - behavior: behaviorArg + behavior: behaviorArg, + notificationId: notificationIdArg, + defaultMessage: defaultMessageArg, + resumeAppOnTap: resumeAppOnTapArg ) { result in switch result { case .success: diff --git a/lib/src/method_channel/messages.g.dart b/lib/src/method_channel/messages.g.dart index 7c385156..47e9730d 100644 --- a/lib/src/method_channel/messages.g.dart +++ b/lib/src/method_channel/messages.g.dart @@ -8032,6 +8032,9 @@ class NavigationSessionApi { Future createNavigationSession( bool abnormalTerminationReportingEnabled, TaskRemovedBehaviorDto behavior, + int? notificationId, + String? defaultMessage, + bool? resumeAppOnTap, ) async { final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession$pigeonVar_messageChannelSuffix'; @@ -8041,9 +8044,14 @@ class NavigationSessionApi { pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [abnormalTerminationReportingEnabled, behavior], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel + .send([ + abnormalTerminationReportingEnabled, + behavior, + notificationId, + defaultMessage, + resumeAppOnTap, + ]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { diff --git a/lib/src/method_channel/session_api.dart b/lib/src/method_channel/session_api.dart index d5aeafad..d08caa99 100644 --- a/lib/src/method_channel/session_api.dart +++ b/lib/src/method_channel/session_api.dart @@ -55,6 +55,7 @@ class NavigationSessionAPIImpl { Future createNavigationSession( bool abnormalTerminationReportingEnabled, TaskRemovedBehavior taskRemovedBehavior, + NavigationNotificationOptions? notificationOptions, ) async { // Setup session API streams. ensureSessionAPISetUp(); @@ -63,6 +64,9 @@ class NavigationSessionAPIImpl { await _sessionApi.createNavigationSession( abnormalTerminationReportingEnabled, taskRemovedBehavior.toDto(), + notificationOptions?.notificationId, + notificationOptions?.defaultMessage, + notificationOptions?.resumeAppOnTap, ); } on PlatformException catch (e) { switch (e.code) { diff --git a/lib/src/navigator/google_navigation_flutter_navigator.dart b/lib/src/navigator/google_navigation_flutter_navigator.dart index 3cc37950..a27c5fec 100644 --- a/lib/src/navigator/google_navigation_flutter_navigator.dart +++ b/lib/src/navigator/google_navigation_flutter_navigator.dart @@ -49,15 +49,19 @@ class GoogleMapsNavigator { /// Optional parameter [abnormalTerminationReportingEnabled] can be used enables/disables /// reporting abnormal SDK terminations such as the app crashes while the SDK is still running. /// + /// [notificationOptions] configures Android's built-in navigation notification + /// and is ignored on iOS. static Future initializeNavigationSession({ bool abnormalTerminationReportingEnabled = true, TaskRemovedBehavior taskRemovedBehavior = TaskRemovedBehavior.continueService, + NavigationNotificationOptions? notificationOptions, }) async { await GoogleMapsNavigationPlatform.instance.navigationSessionAPI .createNavigationSession( abnormalTerminationReportingEnabled, taskRemovedBehavior, + notificationOptions, ); // Enable road-snapped location updates if there are subscriptions to them. diff --git a/lib/src/types/navigation_notification_options.dart b/lib/src/types/navigation_notification_options.dart new file mode 100644 index 00000000..54441205 --- /dev/null +++ b/lib/src/types/navigation_notification_options.dart @@ -0,0 +1,38 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/// Configures the Android navigation foreground-service notification. +/// +/// These options preserve the Navigation SDK's built-in turn-by-turn +/// notification. They are ignored on iOS. +/// {@category Navigation} +class NavigationNotificationOptions { + /// Creates Android navigation notification options. + const NavigationNotificationOptions({ + this.notificationId, + this.defaultMessage, + this.resumeAppOnTap = false, + }); + + /// The Android notification ID. The Navigation SDK default is used when null. + final int? notificationId; + + /// Text shown when the SDK is not actively navigating. + /// + /// The Navigation SDK default is used when null. + final String? defaultMessage; + + /// Whether tapping the notification opens or resumes the application. + final bool resumeAppOnTap; +} diff --git a/lib/src/types/types.dart b/lib/src/types/types.dart index 3f2af579..9859c0de 100644 --- a/lib/src/types/types.dart +++ b/lib/src/types/types.dart @@ -22,6 +22,7 @@ export 'navigation.dart'; export 'navigation_destinations.dart'; export 'navigation_header_styling_options.dart'; export 'navigation_initialization_params.dart'; +export 'navigation_notification_options.dart'; export 'navigation_view_types.dart'; export 'navinfo.dart'; export 'polygons.dart'; diff --git a/pigeons/messages.dart b/pigeons/messages.dart index 1a53788a..555844a2 100644 --- a/pigeons/messages.dart +++ b/pigeons/messages.dart @@ -1527,6 +1527,9 @@ abstract class NavigationSessionApi { void createNavigationSession( bool abnormalTerminationReportingEnabled, TaskRemovedBehaviorDto behavior, + int? notificationId, + String? defaultMessage, + bool? resumeAppOnTap, ); bool isInitialized(); void cleanup(bool resetSession); diff --git a/test/google_navigation_flutter_test.dart b/test/google_navigation_flutter_test.dart index 66ac099b..94bf3fc6 100644 --- a/test/google_navigation_flutter_test.dart +++ b/test/google_navigation_flutter_test.dart @@ -1303,11 +1303,25 @@ void main() { // Initialize session and session controller. await GoogleMapsNavigator.initializeNavigationSession( abnormalTerminationReportingEnabled: false, + notificationOptions: const NavigationNotificationOptions( + notificationId: 1234, + defaultMessage: 'Navigation is active', + resumeAppOnTap: true, + ), ); VerificationResult result = verify( - sessionMockApi.createNavigationSession(captureAny, captureAny), + sessionMockApi.createNavigationSession( + captureAny, + captureAny, + captureAny, + captureAny, + captureAny, + ), ); expect(result.captured[0] as bool, false); + expect(result.captured[2], 1234); + expect(result.captured[3], 'Navigation is active'); + expect(result.captured[4], true); // Start/stop guidance. diff --git a/test/google_navigation_flutter_test.mocks.dart b/test/google_navigation_flutter_test.mocks.dart index 31703705..bd95246c 100644 --- a/test/google_navigation_flutter_test.mocks.dart +++ b/test/google_navigation_flutter_test.mocks.dart @@ -93,11 +93,17 @@ class MockTestNavigationSessionApi extends _i1.Mock _i4.Future createNavigationSession( bool? abnormalTerminationReportingEnabled, _i2.TaskRemovedBehaviorDto? behavior, + int? notificationId, + String? defaultMessage, + bool? resumeAppOnTap, ) => (super.noSuchMethod( Invocation.method(#createNavigationSession, [ abnormalTerminationReportingEnabled, behavior, + notificationId, + defaultMessage, + resumeAppOnTap, ]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), diff --git a/test/messages_test.g.dart b/test/messages_test.g.dart index 7a905b66..d3cd1cf1 100644 --- a/test/messages_test.g.dart +++ b/test/messages_test.g.dart @@ -5814,6 +5814,9 @@ abstract class TestNavigationSessionApi { Future createNavigationSession( bool abnormalTerminationReportingEnabled, TaskRemovedBehaviorDto behavior, + int? notificationId, + String? defaultMessage, + bool? resumeAppOnTap, ); bool isInitialized(); @@ -5945,10 +5948,16 @@ abstract class TestNavigationSessionApi { arg_behavior != null, 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession was null, expected non-null TaskRemovedBehaviorDto.', ); + final int? arg_notificationId = args[2] as int?; + final String? arg_defaultMessage = args[3] as String?; + final bool? arg_resumeAppOnTap = args[4] as bool?; try { await api.createNavigationSession( arg_abnormalTerminationReportingEnabled!, arg_behavior!, + arg_notificationId, + arg_defaultMessage, + arg_resumeAppOnTap, ); return wrapResponse(empty: true); } on PlatformException catch (e) { From 8e052f9ff33a2c30bd2eef7f33c7f3d44497b08f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20V=C3=A4limaa?= Date: Fri, 10 Jul 2026 17:55:02 +0800 Subject: [PATCH 2/3] refactor: improve notification properties on pigeon and native layer --- .../GoogleMapsNavigationSessionManager.kt | 18 +- ...ogleMapsNavigationSessionMessageHandler.kt | 8 +- .../maps/flutter/navigation/messages.g.kt | 6970 +++---- ...eMapsNavigationSessionMessageHandler.swift | 4 +- .../messages.g.swift | 2208 +-- .../method_channel/convert/navigation.dart | 11 + lib/src/method_channel/messages.g.dart | 6370 +++---- lib/src/method_channel/session_api.dart | 4 +- .../google_navigation_flutter_navigator.dart | 4 +- .../navigation_notification_options.dart | 3 +- pigeons/messages.dart | 19 +- test/google_navigation_flutter_test.dart | 10 +- .../google_navigation_flutter_test.mocks.dart | 85 +- test/messages_test.g.dart | 15792 ++++++---------- 14 files changed, 11639 insertions(+), 19867 deletions(-) diff --git a/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsNavigationSessionManager.kt b/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsNavigationSessionManager.kt index 6574fedc..38dcf118 100644 --- a/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsNavigationSessionManager.kt +++ b/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsNavigationSessionManager.kt @@ -133,9 +133,7 @@ constructor( fun createNavigationSession( abnormalTerminationReportingEnabled: Boolean, behavior: TaskRemovedBehaviorDto, - notificationId: Long?, - defaultMessage: String?, - resumeAppOnTap: Boolean?, + notificationOptions: NavigationNotificationOptionsDto?, callback: (Result) -> Unit, ) { val currentState = GoogleMapsNavigatorHolder.getInitializationState() @@ -184,7 +182,7 @@ constructor( } try { - initializeForegroundServiceManager(notificationId, defaultMessage, resumeAppOnTap) + initializeForegroundServiceManager(notificationOptions) } catch (error: Throwable) { callback(Result.failure(error)) return @@ -431,14 +429,12 @@ constructor( } private fun initializeForegroundServiceManager( - notificationId: Long?, - defaultMessage: String?, - resumeAppOnTap: Boolean?, + options: NavigationNotificationOptionsDto? ) { - if (resumeAppOnTap == null || foregroundServiceManagerInitialized) return + if (options == null || foregroundServiceManagerInitialized) return val androidNotificationId = - notificationId?.let { + options.notificationId?.let { if (it !in Int.MIN_VALUE.toLong()..Int.MAX_VALUE.toLong()) { throw FlutterError("invalidNotificationId", "notificationId must fit in a 32-bit integer.") } @@ -446,7 +442,7 @@ constructor( } val resumeIntent = - if (resumeAppOnTap) { + if (options.resumeAppOnTap) { application.packageManager .getLaunchIntentForPackage(application.packageName) ?.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP or Intent.FLAG_ACTIVITY_SINGLE_TOP) @@ -458,7 +454,7 @@ constructor( NavigationApi.initForegroundServiceManagerMessageAndIntent( application, androidNotificationId, - defaultMessage, + options.defaultMessage, resumeIntent, ) foregroundServiceManagerInitialized = true diff --git a/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsNavigationSessionMessageHandler.kt b/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsNavigationSessionMessageHandler.kt index 825409a4..cb1d882a 100644 --- a/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsNavigationSessionMessageHandler.kt +++ b/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsNavigationSessionMessageHandler.kt @@ -27,17 +27,13 @@ class GoogleMapsNavigationSessionMessageHandler( override fun createNavigationSession( abnormalTerminationReportingEnabled: Boolean, behavior: TaskRemovedBehaviorDto, - notificationId: Long?, - defaultMessage: String?, - resumeAppOnTap: Boolean?, + notificationOptions: NavigationNotificationOptionsDto?, callback: (Result) -> Unit, ) { sessionManager.createNavigationSession( abnormalTerminationReportingEnabled, behavior, - notificationId, - defaultMessage, - resumeAppOnTap, + notificationOptions, callback, ) } diff --git a/android/src/main/kotlin/com/google/maps/flutter/navigation/messages.g.kt b/android/src/main/kotlin/com/google/maps/flutter/navigation/messages.g.kt index 315dfcd9..d376fe09 100644 --- a/android/src/main/kotlin/com/google/maps/flutter/navigation/messages.g.kt +++ b/android/src/main/kotlin/com/google/maps/flutter/navigation/messages.g.kt @@ -21,20 +21,16 @@ package com.google.maps.flutter.navigation 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 - private object MessagesPigeonUtils { 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'.", "") } fun wrapResult(result: Any?): List { return listOf(result) @@ -42,62 +38,66 @@ private object MessagesPigeonUtils { 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), + "Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception) ) } } - fun deepEquals(a: Any?, b: Any?): Boolean { if (a is ByteArray && b is ByteArray) { - return a.contentEquals(b) + return a.contentEquals(b) } if (a is IntArray && b is IntArray) { - return a.contentEquals(b) + return a.contentEquals(b) } if (a is LongArray && b is LongArray) { - return a.contentEquals(b) + return a.contentEquals(b) } if (a is DoubleArray && b is DoubleArray) { - return a.contentEquals(b) + return a.contentEquals(b) } if (a is Array<*> && b is Array<*>) { - return a.size == b.size && a.indices.all { deepEquals(a[it], b[it]) } + return a.size == b.size && + a.indices.all{ deepEquals(a[it], b[it]) } } if (a is List<*> && b is List<*>) { - return a.size == b.size && a.indices.all { deepEquals(a[it], b[it]) } + return a.size == b.size && + a.indices.all{ deepEquals(a[it], b[it]) } } if (a is Map<*, *> && b is Map<*, *>) { - return a.size == b.size && - a.all { (b as Map).containsKey(it.key) && deepEquals(it.value, b[it.key]) } + return a.size == b.size && a.all { + (b as Map).containsKey(it.key) && + deepEquals(it.value, b[it.key]) + } } return a == b } + } /** * 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( +class FlutterError ( val code: String, override val message: String? = null, - val details: Any? = null, + val details: Any? = null ) : Throwable() /** Describes the type of map to construct. */ enum class MapViewTypeDto(val raw: Int) { - /** - * Navigation view supports navigation overlay, and current navigation session is displayed on the - * map. - */ + /** Navigation view supports navigation overlay, and current navigation session is displayed on the map. */ NAVIGATION(0), /** Classic map view, without navigation overlay. */ MAP(1); @@ -111,7 +111,10 @@ enum class MapViewTypeDto(val raw: Int) { /** Determines the initial visibility of the navigation UI on map initialization. */ enum class NavigationUIEnabledPreferenceDto(val raw: Int) { - /** Navigation UI gets enabled if the navigation session has already been successfully started. */ + /** + * Navigation UI gets enabled if the navigation + * session has already been successfully started. + */ AUTOMATIC(0), /** Navigation UI is disabled. */ DISABLED(1); @@ -433,9 +436,7 @@ enum class ManeuverDto(val raw: Int) { OFF_RAMP_UTURN_COUNTERCLOCKWISE(22), /** Keep to the left side of the road when entering a turnpike or freeway as the road diverges. */ ON_RAMP_KEEP_LEFT(23), - /** - * Keep to the right side of the road when entering a turnpike or freeway as the road diverges. - */ + /** Keep to the right side of the road when entering a turnpike or freeway as the road diverges. */ ON_RAMP_KEEP_RIGHT(24), /** Regular left turn to enter a turnpike or freeway. */ ON_RAMP_LEFT(25), @@ -491,15 +492,9 @@ enum class ManeuverDto(val raw: Int) { ROUNDABOUT_STRAIGHT_CLOCKWISE(50), /** Enter a roundabout in the counterclockwise direction and continue straight. */ ROUNDABOUT_STRAIGHT_COUNTERCLOCKWISE(51), - /** - * Enter a roundabout in the clockwise direction and turn clockwise onto the opposite side of the - * street. - */ + /** Enter a roundabout in the clockwise direction and turn clockwise onto the opposite side of the street. */ ROUNDABOUT_UTURN_CLOCKWISE(52), - /** - * Enter a roundabout in the counterclockwise direction and turn counterclockwise onto the - * opposite side of the street. - */ + /** Enter a roundabout in the counterclockwise direction and turn counterclockwise onto the opposite side of the street. */ ROUNDABOUT_UTURN_COUNTERCLOCKWISE(53), /** Continue straight. */ STRAIGHT(54), @@ -600,14 +595,11 @@ enum class LaneShapeDto(val raw: Int) { /** Determines how application should behave when a application task is removed. */ enum class TaskRemovedBehaviorDto(val raw: Int) { /** - * The default state, indicating that navigation guidance, location updates, and notification - * should persist after user removes the application task. + * The default state, indicating that navigation guidance, + * location updates, and notification should persist after user removes the application task. */ CONTINUE_SERVICE(0), - /** - * Indicates that navigation guidance, location updates, and notification should shut down - * immediately when the user removes the application task. - */ + /** Indicates that navigation guidance, location updates, and notification should shut down immediately when the user removes the application task. */ QUIT_SERVICE(1); companion object { @@ -622,7 +614,7 @@ enum class TaskRemovedBehaviorDto(val raw: Int) { * * Generated class from Pigeon that represents data sent in messages. */ -data class AutoMapOptionsDto( +data class AutoMapOptionsDto ( /** The initial positioning of the camera in the map view. */ val cameraPosition: CameraPositionDto? = null, /** Cloud-based map ID for custom styling. */ @@ -634,8 +626,9 @@ data class AutoMapOptionsDto( /** Forces night mode (dark theme) regardless of system settings. */ val forceNightMode: NavigationForceNightModeDto? = null, /** Determines the initial visibility of the navigation UI on map initialization. */ - val navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto? = null, -) { + val navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto? = null +) + { companion object { fun fromList(pigeonVar_list: List): AutoMapOptionsDto { val cameraPosition = pigeonVar_list[0] as CameraPositionDto? @@ -644,17 +637,9 @@ data class AutoMapOptionsDto( val mapColorScheme = pigeonVar_list[3] as MapColorSchemeDto? val forceNightMode = pigeonVar_list[4] as NavigationForceNightModeDto? val navigationUIEnabledPreference = pigeonVar_list[5] as NavigationUIEnabledPreferenceDto? - return AutoMapOptionsDto( - cameraPosition, - mapId, - mapType, - mapColorScheme, - forceNightMode, - navigationUIEnabledPreference, - ) + return AutoMapOptionsDto(cameraPosition, mapId, mapType, mapColorScheme, forceNightMode, navigationUIEnabledPreference) } } - fun toList(): List { return listOf( cameraPosition, @@ -665,7 +650,6 @@ data class AutoMapOptionsDto( navigationUIEnabledPreference, ) } - override fun equals(other: Any?): Boolean { if (other !is AutoMapOptionsDto) { return false @@ -673,8 +657,7 @@ data class AutoMapOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } @@ -684,7 +667,7 @@ data class AutoMapOptionsDto( * * Generated class from Pigeon that represents data sent in messages. */ -data class MapOptionsDto( +data class MapOptionsDto ( /** The initial positioning of the camera in the map view. */ val cameraPosition: CameraPositionDto, /** The type of map to display (e.g., satellite, terrain, hybrid, etc.). */ @@ -717,13 +700,14 @@ data class MapOptionsDto( /** Specifies the padding for the map. */ val padding: MapPaddingDto? = null, /** - * The map ID for advanced map options eg. cloud-based map styling. This value can only be set on - * map initialization and cannot be changed afterwards. + * The map ID for advanced map options eg. cloud-based map styling. + * This value can only be set on map initialization and cannot be changed afterwards. */ val mapId: String? = null, /** The map color scheme mode for the map view. */ - val mapColorScheme: MapColorSchemeDto, -) { + val mapColorScheme: MapColorSchemeDto +) + { companion object { fun fromList(pigeonVar_list: List): MapOptionsDto { val cameraPosition = pigeonVar_list[0] as CameraPositionDto @@ -742,27 +726,9 @@ data class MapOptionsDto( val padding = pigeonVar_list[13] as MapPaddingDto? val mapId = pigeonVar_list[14] as String? val mapColorScheme = pigeonVar_list[15] as MapColorSchemeDto - return MapOptionsDto( - cameraPosition, - mapType, - compassEnabled, - rotateGesturesEnabled, - scrollGesturesEnabled, - tiltGesturesEnabled, - zoomGesturesEnabled, - scrollGesturesEnabledDuringRotateOrZoom, - mapToolbarEnabled, - minZoomPreference, - maxZoomPreference, - zoomControlsEnabled, - cameraTargetBounds, - padding, - mapId, - mapColorScheme, - ) + return MapOptionsDto(cameraPosition, mapType, compassEnabled, rotateGesturesEnabled, scrollGesturesEnabled, tiltGesturesEnabled, zoomGesturesEnabled, scrollGesturesEnabledDuringRotateOrZoom, mapToolbarEnabled, minZoomPreference, maxZoomPreference, zoomControlsEnabled, cameraTargetBounds, padding, mapId, mapColorScheme) } } - fun toList(): List { return listOf( cameraPosition, @@ -783,7 +749,6 @@ data class MapOptionsDto( mapColorScheme, ) } - override fun equals(other: Any?): Boolean { if (other !is MapOptionsDto) { return false @@ -791,8 +756,7 @@ data class MapOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } @@ -802,31 +766,30 @@ data class MapOptionsDto( * * Generated class from Pigeon that represents data sent in messages. */ -data class NavigationViewOptionsDto( +data class NavigationViewOptionsDto ( /** Determines the initial visibility of the navigation UI on map initialization. */ val navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto, /** Controls the navigation night mode for Navigation UI. */ val forceNightMode: NavigationForceNightModeDto, /** Controls the initial navigation header styling. */ - val headerStylingOptions: NavigationHeaderStylingOptionsDto? = null, -) { + val headerStylingOptions: NavigationHeaderStylingOptionsDto? = null +) + { companion object { fun fromList(pigeonVar_list: List): NavigationViewOptionsDto { val navigationUIEnabledPreference = pigeonVar_list[0] as NavigationUIEnabledPreferenceDto val forceNightMode = pigeonVar_list[1] as NavigationForceNightModeDto val headerStylingOptions = pigeonVar_list[2] as NavigationHeaderStylingOptionsDto? - return NavigationViewOptionsDto( - navigationUIEnabledPreference, - forceNightMode, - headerStylingOptions, - ) + return NavigationViewOptionsDto(navigationUIEnabledPreference, forceNightMode, headerStylingOptions) } } - fun toList(): List { - return listOf(navigationUIEnabledPreference, forceNightMode, headerStylingOptions) + return listOf( + navigationUIEnabledPreference, + forceNightMode, + headerStylingOptions, + ) } - override fun equals(other: Any?): Boolean { if (other !is NavigationViewOptionsDto) { return false @@ -834,8 +797,7 @@ data class NavigationViewOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } @@ -843,15 +805,17 @@ data class NavigationViewOptionsDto( /** * A message for creating a new navigation view. * - * This message is used to initialize a new navigation view with a specified initial parameters. + * This message is used to initialize a new navigation view with a + * specified initial parameters. * * Generated class from Pigeon that represents data sent in messages. */ -data class ViewCreationOptionsDto( +data class ViewCreationOptionsDto ( val mapViewType: MapViewTypeDto, val mapOptions: MapOptionsDto, - val navigationViewOptions: NavigationViewOptionsDto? = null, -) { + val navigationViewOptions: NavigationViewOptionsDto? = null +) + { companion object { fun fromList(pigeonVar_list: List): ViewCreationOptionsDto { val mapViewType = pigeonVar_list[0] as MapViewTypeDto @@ -860,11 +824,13 @@ data class ViewCreationOptionsDto( return ViewCreationOptionsDto(mapViewType, mapOptions, navigationViewOptions) } } - fun toList(): List { - return listOf(mapViewType, mapOptions, navigationViewOptions) + return listOf( + mapViewType, + mapOptions, + navigationViewOptions, + ) } - override fun equals(other: Any?): Boolean { if (other !is ViewCreationOptionsDto) { return false @@ -872,19 +838,19 @@ data class ViewCreationOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class CameraPositionDto( +data class CameraPositionDto ( val bearing: Double, val target: LatLngDto, val tilt: Double, - val zoom: Double, -) { + val zoom: Double +) + { companion object { fun fromList(pigeonVar_list: List): CameraPositionDto { val bearing = pigeonVar_list[0] as Double @@ -894,11 +860,14 @@ data class CameraPositionDto( return CameraPositionDto(bearing, target, tilt, zoom) } } - fun toList(): List { - return listOf(bearing, target, tilt, zoom) + return listOf( + bearing, + target, + tilt, + zoom, + ) } - override fun equals(other: Any?): Boolean { if (other !is CameraPositionDto) { return false @@ -906,19 +875,19 @@ data class CameraPositionDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class MarkerDto( +data class MarkerDto ( /** Identifies marker */ val markerId: String, /** Options for marker */ - val options: MarkerOptionsDto, -) { + val options: MarkerOptionsDto +) + { companion object { fun fromList(pigeonVar_list: List): MarkerDto { val markerId = pigeonVar_list[0] as String @@ -926,11 +895,12 @@ data class MarkerDto( return MarkerDto(markerId, options) } } - fun toList(): List { - return listOf(markerId, options) + return listOf( + markerId, + options, + ) } - override fun equals(other: Any?): Boolean { if (other !is MarkerDto) { return false @@ -938,14 +908,13 @@ data class MarkerDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class MarkerOptionsDto( +data class MarkerOptionsDto ( val alpha: Double, val anchor: MarkerAnchorDto, val draggable: Boolean, @@ -956,8 +925,9 @@ data class MarkerOptionsDto( val infoWindow: InfoWindowDto, val visible: Boolean, val zIndex: Double, - val icon: ImageDescriptorDto, -) { + val icon: ImageDescriptorDto +) + { companion object { fun fromList(pigeonVar_list: List): MarkerOptionsDto { val alpha = pigeonVar_list[0] as Double @@ -971,22 +941,9 @@ data class MarkerOptionsDto( val visible = pigeonVar_list[8] as Boolean val zIndex = pigeonVar_list[9] as Double val icon = pigeonVar_list[10] as ImageDescriptorDto - return MarkerOptionsDto( - alpha, - anchor, - draggable, - flat, - consumeTapEvents, - position, - rotation, - infoWindow, - visible, - zIndex, - icon, - ) + return MarkerOptionsDto(alpha, anchor, draggable, flat, consumeTapEvents, position, rotation, infoWindow, visible, zIndex, icon) } } - fun toList(): List { return listOf( alpha, @@ -1002,7 +959,6 @@ data class MarkerOptionsDto( icon, ) } - override fun equals(other: Any?): Boolean { if (other !is MarkerOptionsDto) { return false @@ -1010,20 +966,20 @@ data class MarkerOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class ImageDescriptorDto( +data class ImageDescriptorDto ( val registeredImageId: String? = null, val imagePixelRatio: Double? = null, val width: Double? = null, val height: Double? = null, - val type: RegisteredImageTypeDto, -) { + val type: RegisteredImageTypeDto +) + { companion object { fun fromList(pigeonVar_list: List): ImageDescriptorDto { val registeredImageId = pigeonVar_list[0] as String? @@ -1034,11 +990,15 @@ data class ImageDescriptorDto( return ImageDescriptorDto(registeredImageId, imagePixelRatio, width, height, type) } } - fun toList(): List { - return listOf(registeredImageId, imagePixelRatio, width, height, type) + return listOf( + registeredImageId, + imagePixelRatio, + width, + height, + type, + ) } - override fun equals(other: Any?): Boolean { if (other !is ImageDescriptorDto) { return false @@ -1046,18 +1006,18 @@ data class ImageDescriptorDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class InfoWindowDto( +data class InfoWindowDto ( val title: String? = null, val snippet: String? = null, - val anchor: MarkerAnchorDto, -) { + val anchor: MarkerAnchorDto +) + { companion object { fun fromList(pigeonVar_list: List): InfoWindowDto { val title = pigeonVar_list[0] as String? @@ -1066,11 +1026,13 @@ data class InfoWindowDto( return InfoWindowDto(title, snippet, anchor) } } - fun toList(): List { - return listOf(title, snippet, anchor) + return listOf( + title, + snippet, + anchor, + ) } - override fun equals(other: Any?): Boolean { if (other !is InfoWindowDto) { return false @@ -1078,14 +1040,17 @@ data class InfoWindowDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class MarkerAnchorDto(val u: Double, val v: Double) { +data class MarkerAnchorDto ( + val u: Double, + val v: Double +) + { companion object { fun fromList(pigeonVar_list: List): MarkerAnchorDto { val u = pigeonVar_list[0] as Double @@ -1093,11 +1058,12 @@ data class MarkerAnchorDto(val u: Double, val v: Double) { return MarkerAnchorDto(u, v) } } - fun toList(): List { - return listOf(u, v) + return listOf( + u, + v, + ) } - override fun equals(other: Any?): Boolean { if (other !is MarkerAnchorDto) { return false @@ -1105,29 +1071,29 @@ data class MarkerAnchorDto(val u: Double, val v: Double) { if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** - * Represents a point of interest (POI) on the map. POIs include parks, schools, government - * buildings, and businesses. + * Represents a point of interest (POI) on the map. + * POIs include parks, schools, government buildings, and businesses. * * Generated class from Pigeon that represents data sent in messages. */ -data class PointOfInterestDto( +data class PointOfInterestDto ( /** - * The Place ID of this POI, as defined in the Places SDK. This can be used to retrieve additional - * information about the place. + * The Place ID of this POI, as defined in the Places SDK. + * This can be used to retrieve additional information about the place. */ val placeID: String, /** The name of the POI (e.g., "Central Park", "City Hall"). */ val name: String, /** The geographical coordinates of the POI. */ - val latLng: LatLngDto, -) { + val latLng: LatLngDto +) + { companion object { fun fromList(pigeonVar_list: List): PointOfInterestDto { val placeID = pigeonVar_list[0] as String @@ -1136,11 +1102,13 @@ data class PointOfInterestDto( return PointOfInterestDto(placeID, name, latLng) } } - fun toList(): List { - return listOf(placeID, name, latLng) + return listOf( + placeID, + name, + latLng, + ) } - override fun equals(other: Any?): Boolean { if (other !is PointOfInterestDto) { return false @@ -1148,8 +1116,7 @@ data class PointOfInterestDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } @@ -1159,12 +1126,13 @@ data class PointOfInterestDto( * * Generated class from Pigeon that represents data sent in messages. */ -data class IndoorLevelDto( +data class IndoorLevelDto ( /** Full display name of the level. */ val name: String? = null, /** Short display name of the level. */ - val shortName: String? = null, -) { + val shortName: String? = null +) + { companion object { fun fromList(pigeonVar_list: List): IndoorLevelDto { val name = pigeonVar_list[0] as String? @@ -1172,11 +1140,12 @@ data class IndoorLevelDto( return IndoorLevelDto(name, shortName) } } - fun toList(): List { - return listOf(name, shortName) + return listOf( + name, + shortName, + ) } - override fun equals(other: Any?): Boolean { if (other !is IndoorLevelDto) { return false @@ -1184,8 +1153,7 @@ data class IndoorLevelDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } @@ -1195,7 +1163,7 @@ data class IndoorLevelDto( * * Generated class from Pigeon that represents data sent in messages. */ -data class IndoorBuildingDto( +data class IndoorBuildingDto ( /** All levels available in the focused building. */ val levels: List, /** Currently active level index in [levels], if known. */ @@ -1203,8 +1171,9 @@ data class IndoorBuildingDto( /** Default level index in [levels], if known. */ val defaultLevelIndex: Long? = null, /** Whether building is mostly underground, if known. */ - val isUnderground: Boolean? = null, -) { + val isUnderground: Boolean? = null +) + { companion object { fun fromList(pigeonVar_list: List): IndoorBuildingDto { val levels = pigeonVar_list[0] as List @@ -1214,11 +1183,14 @@ data class IndoorBuildingDto( return IndoorBuildingDto(levels, activeLevelIndex, defaultLevelIndex, isUnderground) } } - fun toList(): List { - return listOf(levels, activeLevelIndex, defaultLevelIndex, isUnderground) + return listOf( + levels, + activeLevelIndex, + defaultLevelIndex, + isUnderground, + ) } - override fun equals(other: Any?): Boolean { if (other !is IndoorBuildingDto) { return false @@ -1226,14 +1198,17 @@ data class IndoorBuildingDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolygonDto(val polygonId: String, val options: PolygonOptionsDto) { +data class PolygonDto ( + val polygonId: String, + val options: PolygonOptionsDto +) + { companion object { fun fromList(pigeonVar_list: List): PolygonDto { val polygonId = pigeonVar_list[0] as String @@ -1241,11 +1216,12 @@ data class PolygonDto(val polygonId: String, val options: PolygonOptionsDto) { return PolygonDto(polygonId, options) } } - fun toList(): List { - return listOf(polygonId, options) + return listOf( + polygonId, + options, + ) } - override fun equals(other: Any?): Boolean { if (other !is PolygonDto) { return false @@ -1253,14 +1229,13 @@ data class PolygonDto(val polygonId: String, val options: PolygonOptionsDto) { if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolygonOptionsDto( +data class PolygonOptionsDto ( val points: List, val holes: List, val clickable: Boolean, @@ -1269,8 +1244,9 @@ data class PolygonOptionsDto( val strokeColor: Long, val strokeWidth: Double, val visible: Boolean, - val zIndex: Double, -) { + val zIndex: Double +) + { companion object { fun fromList(pigeonVar_list: List): PolygonOptionsDto { val points = pigeonVar_list[0] as List @@ -1282,20 +1258,9 @@ data class PolygonOptionsDto( val strokeWidth = pigeonVar_list[6] as Double val visible = pigeonVar_list[7] as Boolean val zIndex = pigeonVar_list[8] as Double - return PolygonOptionsDto( - points, - holes, - clickable, - fillColor, - geodesic, - strokeColor, - strokeWidth, - visible, - zIndex, - ) + return PolygonOptionsDto(points, holes, clickable, fillColor, geodesic, strokeColor, strokeWidth, visible, zIndex) } } - fun toList(): List { return listOf( points, @@ -1309,7 +1274,6 @@ data class PolygonOptionsDto( zIndex, ) } - override fun equals(other: Any?): Boolean { if (other !is PolygonOptionsDto) { return false @@ -1317,25 +1281,27 @@ data class PolygonOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolygonHoleDto(val points: List) { +data class PolygonHoleDto ( + val points: List +) + { companion object { fun fromList(pigeonVar_list: List): PolygonHoleDto { val points = pigeonVar_list[0] as List return PolygonHoleDto(points) } } - fun toList(): List { - return listOf(points) + return listOf( + points, + ) } - override fun equals(other: Any?): Boolean { if (other !is PolygonHoleDto) { return false @@ -1343,18 +1309,18 @@ data class PolygonHoleDto(val points: List) { if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class StyleSpanStrokeStyleDto( +data class StyleSpanStrokeStyleDto ( val solidColor: Long? = null, val fromColor: Long? = null, - val toColor: Long? = null, -) { + val toColor: Long? = null +) + { companion object { fun fromList(pigeonVar_list: List): StyleSpanStrokeStyleDto { val solidColor = pigeonVar_list[0] as Long? @@ -1363,11 +1329,13 @@ data class StyleSpanStrokeStyleDto( return StyleSpanStrokeStyleDto(solidColor, fromColor, toColor) } } - fun toList(): List { - return listOf(solidColor, fromColor, toColor) + return listOf( + solidColor, + fromColor, + toColor, + ) } - override fun equals(other: Any?): Boolean { if (other !is StyleSpanStrokeStyleDto) { return false @@ -1375,14 +1343,17 @@ data class StyleSpanStrokeStyleDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class StyleSpanDto(val length: Double, val style: StyleSpanStrokeStyleDto) { +data class StyleSpanDto ( + val length: Double, + val style: StyleSpanStrokeStyleDto +) + { companion object { fun fromList(pigeonVar_list: List): StyleSpanDto { val length = pigeonVar_list[0] as Double @@ -1390,11 +1361,12 @@ data class StyleSpanDto(val length: Double, val style: StyleSpanStrokeStyleDto) return StyleSpanDto(length, style) } } - fun toList(): List { - return listOf(length, style) + return listOf( + length, + style, + ) } - override fun equals(other: Any?): Boolean { if (other !is StyleSpanDto) { return false @@ -1402,14 +1374,17 @@ data class StyleSpanDto(val length: Double, val style: StyleSpanStrokeStyleDto) if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolylineDto(val polylineId: String, val options: PolylineOptionsDto) { +data class PolylineDto ( + val polylineId: String, + val options: PolylineOptionsDto +) + { companion object { fun fromList(pigeonVar_list: List): PolylineDto { val polylineId = pigeonVar_list[0] as String @@ -1417,11 +1392,12 @@ data class PolylineDto(val polylineId: String, val options: PolylineOptionsDto) return PolylineDto(polylineId, options) } } - fun toList(): List { - return listOf(polylineId, options) + return listOf( + polylineId, + options, + ) } - override fun equals(other: Any?): Boolean { if (other !is PolylineDto) { return false @@ -1429,14 +1405,17 @@ data class PolylineDto(val polylineId: String, val options: PolylineOptionsDto) if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PatternItemDto(val type: PatternTypeDto, val length: Double? = null) { +data class PatternItemDto ( + val type: PatternTypeDto, + val length: Double? = null +) + { companion object { fun fromList(pigeonVar_list: List): PatternItemDto { val type = pigeonVar_list[0] as PatternTypeDto @@ -1444,11 +1423,12 @@ data class PatternItemDto(val type: PatternTypeDto, val length: Double? = null) return PatternItemDto(type, length) } } - fun toList(): List { - return listOf(type, length) + return listOf( + type, + length, + ) } - override fun equals(other: Any?): Boolean { if (other !is PatternItemDto) { return false @@ -1456,14 +1436,13 @@ data class PatternItemDto(val type: PatternTypeDto, val length: Double? = null) if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolylineOptionsDto( +data class PolylineOptionsDto ( val points: List? = null, val clickable: Boolean? = null, val geodesic: Boolean? = null, @@ -1473,8 +1452,9 @@ data class PolylineOptionsDto( val strokeWidth: Double? = null, val visible: Boolean? = null, val zIndex: Double? = null, - val spans: List, -) { + val spans: List +) + { companion object { fun fromList(pigeonVar_list: List): PolylineOptionsDto { val points = pigeonVar_list[0] as List? @@ -1487,21 +1467,9 @@ data class PolylineOptionsDto( val visible = pigeonVar_list[7] as Boolean? val zIndex = pigeonVar_list[8] as Double? val spans = pigeonVar_list[9] as List - return PolylineOptionsDto( - points, - clickable, - geodesic, - strokeColor, - strokeJointType, - strokePattern, - strokeWidth, - visible, - zIndex, - spans, - ) + return PolylineOptionsDto(points, clickable, geodesic, strokeColor, strokeJointType, strokePattern, strokeWidth, visible, zIndex, spans) } } - fun toList(): List { return listOf( points, @@ -1516,7 +1484,6 @@ data class PolylineOptionsDto( spans, ) } - override fun equals(other: Any?): Boolean { if (other !is PolylineOptionsDto) { return false @@ -1524,19 +1491,19 @@ data class PolylineOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class CircleDto( +data class CircleDto ( /** Identifies circle. */ val circleId: String, /** Options for circle. */ - val options: CircleOptionsDto, -) { + val options: CircleOptionsDto +) + { companion object { fun fromList(pigeonVar_list: List): CircleDto { val circleId = pigeonVar_list[0] as String @@ -1544,11 +1511,12 @@ data class CircleDto( return CircleDto(circleId, options) } } - fun toList(): List { - return listOf(circleId, options) + return listOf( + circleId, + options, + ) } - override fun equals(other: Any?): Boolean { if (other !is CircleDto) { return false @@ -1556,14 +1524,13 @@ data class CircleDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class CircleOptionsDto( +data class CircleOptionsDto ( val position: LatLngDto, val radius: Double, val strokeWidth: Double, @@ -1572,8 +1539,9 @@ data class CircleOptionsDto( val fillColor: Long, val zIndex: Double, val visible: Boolean, - val clickable: Boolean, -) { + val clickable: Boolean +) + { companion object { fun fromList(pigeonVar_list: List): CircleOptionsDto { val position = pigeonVar_list[0] as LatLngDto @@ -1585,20 +1553,9 @@ data class CircleOptionsDto( val zIndex = pigeonVar_list[6] as Double val visible = pigeonVar_list[7] as Boolean val clickable = pigeonVar_list[8] as Boolean - return CircleOptionsDto( - position, - radius, - strokeWidth, - strokeColor, - strokePattern, - fillColor, - zIndex, - visible, - clickable, - ) + return CircleOptionsDto(position, radius, strokeWidth, strokeColor, strokePattern, fillColor, zIndex, visible, clickable) } } - fun toList(): List { return listOf( position, @@ -1612,7 +1569,6 @@ data class CircleOptionsDto( clickable, ) } - override fun equals(other: Any?): Boolean { if (other !is CircleOptionsDto) { return false @@ -1620,14 +1576,19 @@ data class CircleOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class MapPaddingDto(val top: Long, val left: Long, val bottom: Long, val right: Long) { +data class MapPaddingDto ( + val top: Long, + val left: Long, + val bottom: Long, + val right: Long +) + { companion object { fun fromList(pigeonVar_list: List): MapPaddingDto { val top = pigeonVar_list[0] as Long @@ -1637,11 +1598,14 @@ data class MapPaddingDto(val top: Long, val left: Long, val bottom: Long, val ri return MapPaddingDto(top, left, bottom, right) } } - fun toList(): List { - return listOf(top, left, bottom, right) + return listOf( + top, + left, + bottom, + right, + ) } - override fun equals(other: Any?): Boolean { if (other !is MapPaddingDto) { return false @@ -1649,8 +1613,7 @@ data class MapPaddingDto(val top: Long, val left: Long, val bottom: Long, val ri if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } @@ -1658,14 +1621,15 @@ data class MapPaddingDto(val top: Long, val left: Long, val bottom: Long, val ri /** * Navigation header styling options. * - * All color values are 32-bit ARGB integers (format: 0xAARRGGBB). All text size values are logical - * pixels. Any null value resets that specific field to the native SDK default. + * All color values are 32-bit ARGB integers (format: 0xAARRGGBB). + * All text size values are logical pixels. + * Any null value resets that specific field to the native SDK default. * * Text size fields are currently Android only and are ignored on iOS. * * Generated class from Pigeon that represents data sent in messages. */ -data class NavigationHeaderStylingOptionsDto( +data class NavigationHeaderStylingOptionsDto ( val primaryDayModeBackgroundColor: Long? = null, val secondaryDayModeBackgroundColor: Long? = null, val primaryNightModeBackgroundColor: Long? = null, @@ -1681,8 +1645,9 @@ data class NavigationHeaderStylingOptionsDto( val instructionsTextColor: Long? = null, val instructionsFirstRowTextSize: Double? = null, val instructionsSecondRowTextSize: Double? = null, - val guidanceRecommendedLaneColor: Long? = null, -) { + val guidanceRecommendedLaneColor: Long? = null +) + { companion object { fun fromList(pigeonVar_list: List): NavigationHeaderStylingOptionsDto { val primaryDayModeBackgroundColor = pigeonVar_list[0] as Long? @@ -1701,27 +1666,9 @@ data class NavigationHeaderStylingOptionsDto( val instructionsFirstRowTextSize = pigeonVar_list[13] as Double? val instructionsSecondRowTextSize = pigeonVar_list[14] as Double? val guidanceRecommendedLaneColor = pigeonVar_list[15] as Long? - return NavigationHeaderStylingOptionsDto( - primaryDayModeBackgroundColor, - secondaryDayModeBackgroundColor, - primaryNightModeBackgroundColor, - secondaryNightModeBackgroundColor, - largeManeuverIconColor, - smallManeuverIconColor, - nextStepTextColor, - nextStepTextSize, - distanceValueTextColor, - distanceUnitsTextColor, - distanceValueTextSize, - distanceUnitsTextSize, - instructionsTextColor, - instructionsFirstRowTextSize, - instructionsSecondRowTextSize, - guidanceRecommendedLaneColor, - ) + return NavigationHeaderStylingOptionsDto(primaryDayModeBackgroundColor, secondaryDayModeBackgroundColor, primaryNightModeBackgroundColor, secondaryNightModeBackgroundColor, largeManeuverIconColor, smallManeuverIconColor, nextStepTextColor, nextStepTextSize, distanceValueTextColor, distanceUnitsTextColor, distanceValueTextSize, distanceUnitsTextSize, instructionsTextColor, instructionsFirstRowTextSize, instructionsSecondRowTextSize, guidanceRecommendedLaneColor) } } - fun toList(): List { return listOf( primaryDayModeBackgroundColor, @@ -1742,7 +1689,6 @@ data class NavigationHeaderStylingOptionsDto( guidanceRecommendedLaneColor, ) } - override fun equals(other: Any?): Boolean { if (other !is NavigationHeaderStylingOptionsDto) { return false @@ -1750,14 +1696,17 @@ data class NavigationHeaderStylingOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RouteTokenOptionsDto(val routeToken: String, val travelMode: TravelModeDto? = null) { +data class RouteTokenOptionsDto ( + val routeToken: String, + val travelMode: TravelModeDto? = null +) + { companion object { fun fromList(pigeonVar_list: List): RouteTokenOptionsDto { val routeToken = pigeonVar_list[0] as String @@ -1765,11 +1714,12 @@ data class RouteTokenOptionsDto(val routeToken: String, val travelMode: TravelMo return RouteTokenOptionsDto(routeToken, travelMode) } } - fun toList(): List { - return listOf(routeToken, travelMode) + return listOf( + routeToken, + travelMode, + ) } - override fun equals(other: Any?): Boolean { if (other !is RouteTokenOptionsDto) { return false @@ -1777,19 +1727,19 @@ data class RouteTokenOptionsDto(val routeToken: String, val travelMode: TravelMo if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class DestinationsDto( +data class DestinationsDto ( val waypoints: List, val displayOptions: NavigationDisplayOptionsDto, val routingOptions: RoutingOptionsDto? = null, - val routeTokenOptions: RouteTokenOptionsDto? = null, -) { + val routeTokenOptions: RouteTokenOptionsDto? = null +) + { companion object { fun fromList(pigeonVar_list: List): DestinationsDto { val waypoints = pigeonVar_list[0] as List @@ -1799,11 +1749,14 @@ data class DestinationsDto( return DestinationsDto(waypoints, displayOptions, routingOptions, routeTokenOptions) } } - fun toList(): List { - return listOf(waypoints, displayOptions, routingOptions, routeTokenOptions) + return listOf( + waypoints, + displayOptions, + routingOptions, + routeTokenOptions, + ) } - override fun equals(other: Any?): Boolean { if (other !is DestinationsDto) { return false @@ -1811,14 +1764,13 @@ data class DestinationsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RoutingOptionsDto( +data class RoutingOptionsDto ( val alternateRoutesStrategy: AlternateRoutesStrategyDto? = null, val routingStrategy: RoutingStrategyDto? = null, val targetDistanceMeters: List? = null, @@ -1826,8 +1778,9 @@ data class RoutingOptionsDto( val avoidTolls: Boolean? = null, val avoidFerries: Boolean? = null, val avoidHighways: Boolean? = null, - val locationTimeoutMs: Long? = null, -) { + val locationTimeoutMs: Long? = null +) + { companion object { fun fromList(pigeonVar_list: List): RoutingOptionsDto { val alternateRoutesStrategy = pigeonVar_list[0] as AlternateRoutesStrategyDto? @@ -1838,19 +1791,9 @@ data class RoutingOptionsDto( val avoidFerries = pigeonVar_list[5] as Boolean? val avoidHighways = pigeonVar_list[6] as Boolean? val locationTimeoutMs = pigeonVar_list[7] as Long? - return RoutingOptionsDto( - alternateRoutesStrategy, - routingStrategy, - targetDistanceMeters, - travelMode, - avoidTolls, - avoidFerries, - avoidHighways, - locationTimeoutMs, - ) + return RoutingOptionsDto(alternateRoutesStrategy, routingStrategy, targetDistanceMeters, travelMode, avoidTolls, avoidFerries, avoidHighways, locationTimeoutMs) } } - fun toList(): List { return listOf( alternateRoutesStrategy, @@ -1863,7 +1806,6 @@ data class RoutingOptionsDto( locationTimeoutMs, ) } - override fun equals(other: Any?): Boolean { if (other !is RoutingOptionsDto) { return false @@ -1871,20 +1813,20 @@ data class RoutingOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class NavigationDisplayOptionsDto( +data class NavigationDisplayOptionsDto ( val showDestinationMarkers: Boolean? = null, /** Deprecated: This option now defaults to true. */ val showStopSigns: Boolean? = null, /** Deprecated: This option now defaults to true. */ - val showTrafficLights: Boolean? = null, -) { + val showTrafficLights: Boolean? = null +) + { companion object { fun fromList(pigeonVar_list: List): NavigationDisplayOptionsDto { val showDestinationMarkers = pigeonVar_list[0] as Boolean? @@ -1893,11 +1835,13 @@ data class NavigationDisplayOptionsDto( return NavigationDisplayOptionsDto(showDestinationMarkers, showStopSigns, showTrafficLights) } } - fun toList(): List { - return listOf(showDestinationMarkers, showStopSigns, showTrafficLights) + return listOf( + showDestinationMarkers, + showStopSigns, + showTrafficLights, + ) } - override fun equals(other: Any?): Boolean { if (other !is NavigationDisplayOptionsDto) { return false @@ -1905,20 +1849,20 @@ data class NavigationDisplayOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class NavigationWaypointDto( +data class NavigationWaypointDto ( val title: String, val target: LatLngDto? = null, val placeID: String? = null, val preferSameSideOfRoad: Boolean? = null, - val preferredSegmentHeading: Long? = null, -) { + val preferredSegmentHeading: Long? = null +) + { companion object { fun fromList(pigeonVar_list: List): NavigationWaypointDto { val title = pigeonVar_list[0] as String @@ -1926,20 +1870,18 @@ data class NavigationWaypointDto( val placeID = pigeonVar_list[2] as String? val preferSameSideOfRoad = pigeonVar_list[3] as Boolean? val preferredSegmentHeading = pigeonVar_list[4] as Long? - return NavigationWaypointDto( - title, - target, - placeID, - preferSameSideOfRoad, - preferredSegmentHeading, - ) + return NavigationWaypointDto(title, target, placeID, preferSameSideOfRoad, preferredSegmentHeading) } } - fun toList(): List { - return listOf(title, target, placeID, preferSameSideOfRoad, preferredSegmentHeading) + return listOf( + title, + target, + placeID, + preferSameSideOfRoad, + preferredSegmentHeading, + ) } - override fun equals(other: Any?): Boolean { if (other !is NavigationWaypointDto) { return false @@ -1947,17 +1889,17 @@ data class NavigationWaypointDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class ContinueToNextDestinationResponseDto( +data class ContinueToNextDestinationResponseDto ( val waypoint: NavigationWaypointDto? = null, - val routeStatus: RouteStatusDto? = null, -) { + val routeStatus: RouteStatusDto? = null +) + { companion object { fun fromList(pigeonVar_list: List): ContinueToNextDestinationResponseDto { val waypoint = pigeonVar_list[0] as NavigationWaypointDto? @@ -1965,11 +1907,12 @@ data class ContinueToNextDestinationResponseDto( return ContinueToNextDestinationResponseDto(waypoint, routeStatus) } } - fun toList(): List { - return listOf(waypoint, routeStatus) + return listOf( + waypoint, + routeStatus, + ) } - override fun equals(other: Any?): Boolean { if (other !is ContinueToNextDestinationResponseDto) { return false @@ -1977,18 +1920,18 @@ data class ContinueToNextDestinationResponseDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class NavigationTimeAndDistanceDto( +data class NavigationTimeAndDistanceDto ( val time: Double, val distance: Double, - val delaySeverity: TrafficDelaySeverityDto, -) { + val delaySeverity: TrafficDelaySeverityDto +) + { companion object { fun fromList(pigeonVar_list: List): NavigationTimeAndDistanceDto { val time = pigeonVar_list[0] as Double @@ -1997,11 +1940,13 @@ data class NavigationTimeAndDistanceDto( return NavigationTimeAndDistanceDto(time, distance, delaySeverity) } } - fun toList(): List { - return listOf(time, distance, delaySeverity) + return listOf( + time, + distance, + delaySeverity, + ) } - override fun equals(other: Any?): Boolean { if (other !is NavigationTimeAndDistanceDto) { return false @@ -2009,35 +1954,33 @@ data class NavigationTimeAndDistanceDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class NavigationAudioGuidanceSettingsDto( +data class NavigationAudioGuidanceSettingsDto ( val isBluetoothAudioEnabled: Boolean? = null, val isVibrationEnabled: Boolean? = null, - val guidanceType: AudioGuidanceTypeDto? = null, -) { + val guidanceType: AudioGuidanceTypeDto? = null +) + { companion object { fun fromList(pigeonVar_list: List): NavigationAudioGuidanceSettingsDto { val isBluetoothAudioEnabled = pigeonVar_list[0] as Boolean? val isVibrationEnabled = pigeonVar_list[1] as Boolean? val guidanceType = pigeonVar_list[2] as AudioGuidanceTypeDto? - return NavigationAudioGuidanceSettingsDto( - isBluetoothAudioEnabled, - isVibrationEnabled, - guidanceType, - ) + return NavigationAudioGuidanceSettingsDto(isBluetoothAudioEnabled, isVibrationEnabled, guidanceType) } } - fun toList(): List { - return listOf(isBluetoothAudioEnabled, isVibrationEnabled, guidanceType) + return listOf( + isBluetoothAudioEnabled, + isVibrationEnabled, + guidanceType, + ) } - override fun equals(other: Any?): Boolean { if (other !is NavigationAudioGuidanceSettingsDto) { return false @@ -2045,25 +1988,27 @@ data class NavigationAudioGuidanceSettingsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class SimulationOptionsDto(val speedMultiplier: Double) { +data class SimulationOptionsDto ( + val speedMultiplier: Double +) + { companion object { fun fromList(pigeonVar_list: List): SimulationOptionsDto { val speedMultiplier = pigeonVar_list[0] as Double return SimulationOptionsDto(speedMultiplier) } } - fun toList(): List { - return listOf(speedMultiplier) + return listOf( + speedMultiplier, + ) } - override fun equals(other: Any?): Boolean { if (other !is SimulationOptionsDto) { return false @@ -2071,14 +2016,17 @@ data class SimulationOptionsDto(val speedMultiplier: Double) { if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class LatLngDto(val latitude: Double, val longitude: Double) { +data class LatLngDto ( + val latitude: Double, + val longitude: Double +) + { companion object { fun fromList(pigeonVar_list: List): LatLngDto { val latitude = pigeonVar_list[0] as Double @@ -2086,11 +2034,12 @@ data class LatLngDto(val latitude: Double, val longitude: Double) { return LatLngDto(latitude, longitude) } } - fun toList(): List { - return listOf(latitude, longitude) + return listOf( + latitude, + longitude, + ) } - override fun equals(other: Any?): Boolean { if (other !is LatLngDto) { return false @@ -2098,14 +2047,17 @@ data class LatLngDto(val latitude: Double, val longitude: Double) { if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class LatLngBoundsDto(val southwest: LatLngDto, val northeast: LatLngDto) { +data class LatLngBoundsDto ( + val southwest: LatLngDto, + val northeast: LatLngDto +) + { companion object { fun fromList(pigeonVar_list: List): LatLngBoundsDto { val southwest = pigeonVar_list[0] as LatLngDto @@ -2113,11 +2065,12 @@ data class LatLngBoundsDto(val southwest: LatLngDto, val northeast: LatLngDto) { return LatLngBoundsDto(southwest, northeast) } } - fun toList(): List { - return listOf(southwest, northeast) + return listOf( + southwest, + northeast, + ) } - override fun equals(other: Any?): Boolean { if (other !is LatLngBoundsDto) { return false @@ -2125,17 +2078,17 @@ data class LatLngBoundsDto(val southwest: LatLngDto, val northeast: LatLngDto) { if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class SpeedingUpdatedEventDto( +data class SpeedingUpdatedEventDto ( val percentageAboveLimit: Double, - val severity: SpeedAlertSeverityDto, -) { + val severity: SpeedAlertSeverityDto +) + { companion object { fun fromList(pigeonVar_list: List): SpeedingUpdatedEventDto { val percentageAboveLimit = pigeonVar_list[0] as Double @@ -2143,11 +2096,12 @@ data class SpeedingUpdatedEventDto( return SpeedingUpdatedEventDto(percentageAboveLimit, severity) } } - fun toList(): List { - return listOf(percentageAboveLimit, severity) + return listOf( + percentageAboveLimit, + severity, + ) } - override fun equals(other: Any?): Boolean { if (other !is SpeedingUpdatedEventDto) { return false @@ -2155,17 +2109,17 @@ data class SpeedingUpdatedEventDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class GpsAvailabilityChangeEventDto( +data class GpsAvailabilityChangeEventDto ( val isGpsLost: Boolean, - val isGpsValidForNavigation: Boolean, -) { + val isGpsValidForNavigation: Boolean +) + { companion object { fun fromList(pigeonVar_list: List): GpsAvailabilityChangeEventDto { val isGpsLost = pigeonVar_list[0] as Boolean @@ -2173,11 +2127,12 @@ data class GpsAvailabilityChangeEventDto( return GpsAvailabilityChangeEventDto(isGpsLost, isGpsValidForNavigation) } } - fun toList(): List { - return listOf(isGpsLost, isGpsValidForNavigation) + return listOf( + isGpsLost, + isGpsValidForNavigation, + ) } - override fun equals(other: Any?): Boolean { if (other !is GpsAvailabilityChangeEventDto) { return false @@ -2185,17 +2140,17 @@ data class GpsAvailabilityChangeEventDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class SpeedAlertOptionsThresholdPercentageDto( +data class SpeedAlertOptionsThresholdPercentageDto ( val percentage: Double, - val severity: SpeedAlertSeverityDto, -) { + val severity: SpeedAlertSeverityDto +) + { companion object { fun fromList(pigeonVar_list: List): SpeedAlertOptionsThresholdPercentageDto { val percentage = pigeonVar_list[0] as Double @@ -2203,11 +2158,12 @@ data class SpeedAlertOptionsThresholdPercentageDto( return SpeedAlertOptionsThresholdPercentageDto(percentage, severity) } } - fun toList(): List { - return listOf(percentage, severity) + return listOf( + percentage, + severity, + ) } - override fun equals(other: Any?): Boolean { if (other !is SpeedAlertOptionsThresholdPercentageDto) { return false @@ -2215,31 +2171,26 @@ data class SpeedAlertOptionsThresholdPercentageDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class SpeedAlertOptionsDto( +data class SpeedAlertOptionsDto ( val severityUpgradeDurationSeconds: Double, val minorSpeedAlertThresholdPercentage: Double, - val majorSpeedAlertThresholdPercentage: Double, -) { + val majorSpeedAlertThresholdPercentage: Double +) + { companion object { fun fromList(pigeonVar_list: List): SpeedAlertOptionsDto { val severityUpgradeDurationSeconds = pigeonVar_list[0] as Double val minorSpeedAlertThresholdPercentage = pigeonVar_list[1] as Double val majorSpeedAlertThresholdPercentage = pigeonVar_list[2] as Double - return SpeedAlertOptionsDto( - severityUpgradeDurationSeconds, - minorSpeedAlertThresholdPercentage, - majorSpeedAlertThresholdPercentage, - ) + return SpeedAlertOptionsDto(severityUpgradeDurationSeconds, minorSpeedAlertThresholdPercentage, majorSpeedAlertThresholdPercentage) } } - fun toList(): List { return listOf( severityUpgradeDurationSeconds, @@ -2247,7 +2198,6 @@ data class SpeedAlertOptionsDto( majorSpeedAlertThresholdPercentage, ) } - override fun equals(other: Any?): Boolean { if (other !is SpeedAlertOptionsDto) { return false @@ -2255,18 +2205,18 @@ data class SpeedAlertOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RouteSegmentTrafficDataRoadStretchRenderingDataDto( +data class RouteSegmentTrafficDataRoadStretchRenderingDataDto ( val style: RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto, val lengthMeters: Long, - val offsetMeters: Long, -) { + val offsetMeters: Long +) + { companion object { fun fromList(pigeonVar_list: List): RouteSegmentTrafficDataRoadStretchRenderingDataDto { val style = pigeonVar_list[0] as RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto @@ -2275,11 +2225,13 @@ data class RouteSegmentTrafficDataRoadStretchRenderingDataDto( return RouteSegmentTrafficDataRoadStretchRenderingDataDto(style, lengthMeters, offsetMeters) } } - fun toList(): List { - return listOf(style, lengthMeters, offsetMeters) + return listOf( + style, + lengthMeters, + offsetMeters, + ) } - override fun equals(other: Any?): Boolean { if (other !is RouteSegmentTrafficDataRoadStretchRenderingDataDto) { return false @@ -2287,30 +2239,30 @@ data class RouteSegmentTrafficDataRoadStretchRenderingDataDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RouteSegmentTrafficDataDto( +data class RouteSegmentTrafficDataDto ( val status: RouteSegmentTrafficDataStatusDto, - val roadStretchRenderingDataList: List, -) { + val roadStretchRenderingDataList: List +) + { companion object { fun fromList(pigeonVar_list: List): RouteSegmentTrafficDataDto { val status = pigeonVar_list[0] as RouteSegmentTrafficDataStatusDto - val roadStretchRenderingDataList = - pigeonVar_list[1] as List + val roadStretchRenderingDataList = pigeonVar_list[1] as List return RouteSegmentTrafficDataDto(status, roadStretchRenderingDataList) } } - fun toList(): List { - return listOf(status, roadStretchRenderingDataList) + return listOf( + status, + roadStretchRenderingDataList, + ) } - override fun equals(other: Any?): Boolean { if (other !is RouteSegmentTrafficDataDto) { return false @@ -2318,19 +2270,19 @@ data class RouteSegmentTrafficDataDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RouteSegmentDto( +data class RouteSegmentDto ( val trafficData: RouteSegmentTrafficDataDto? = null, val destinationLatLng: LatLngDto, val latLngs: List? = null, - val destinationWaypoint: NavigationWaypointDto? = null, -) { + val destinationWaypoint: NavigationWaypointDto? = null +) + { companion object { fun fromList(pigeonVar_list: List): RouteSegmentDto { val trafficData = pigeonVar_list[0] as RouteSegmentTrafficDataDto? @@ -2340,11 +2292,14 @@ data class RouteSegmentDto( return RouteSegmentDto(trafficData, destinationLatLng, latLngs, destinationWaypoint) } } - fun toList(): List { - return listOf(trafficData, destinationLatLng, latLngs, destinationWaypoint) + return listOf( + trafficData, + destinationLatLng, + latLngs, + destinationWaypoint, + ) } - override fun equals(other: Any?): Boolean { if (other !is RouteSegmentDto) { return false @@ -2352,24 +2307,23 @@ data class RouteSegmentDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** - * One of the possible directions from a lane at the end of a route step, and whether it is on the - * recommended route. + * One of the possible directions from a lane at the end of a route step, and whether it is on the recommended route. * * Generated class from Pigeon that represents data sent in messages. */ -data class LaneDirectionDto( +data class LaneDirectionDto ( /** Shape for this lane direction. */ val laneShape: LaneShapeDto, /** Whether this lane is recommended. */ - val isRecommended: Boolean, -) { + val isRecommended: Boolean +) + { companion object { fun fromList(pigeonVar_list: List): LaneDirectionDto { val laneShape = pigeonVar_list[0] as LaneShapeDto @@ -2377,11 +2331,12 @@ data class LaneDirectionDto( return LaneDirectionDto(laneShape, isRecommended) } } - fun toList(): List { - return listOf(laneShape, isRecommended) + return listOf( + laneShape, + isRecommended, + ) } - override fun equals(other: Any?): Boolean { if (other !is LaneDirectionDto) { return false @@ -2389,8 +2344,7 @@ data class LaneDirectionDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } @@ -2400,24 +2354,22 @@ data class LaneDirectionDto( * * Generated class from Pigeon that represents data sent in messages. */ -data class LaneDto( - /** - * List of possible directions a driver can follow when using this lane at the end of the - * respective route step - */ +data class LaneDto ( + /** List of possible directions a driver can follow when using this lane at the end of the respective route step */ val laneDirections: List -) { +) + { companion object { fun fromList(pigeonVar_list: List): LaneDto { val laneDirections = pigeonVar_list[0] as List return LaneDto(laneDirections) } } - fun toList(): List { - return listOf(laneDirections) + return listOf( + laneDirections, + ) } - override fun equals(other: Any?): Boolean { if (other !is LaneDto) { return false @@ -2425,8 +2377,7 @@ data class LaneDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } @@ -2436,7 +2387,7 @@ data class LaneDto( * * Generated class from Pigeon that represents data sent in messages. */ -data class StepInfoDto( +data class StepInfoDto ( /** Distance in meters from the previous step to this step if available, otherwise null. */ val distanceFromPrevStepMeters: Long? = null, /** Time in seconds from the previous step to this step if available, otherwise null. */ @@ -2452,8 +2403,8 @@ data class StepInfoDto( /** The simplified version of the road name if available, otherwise null. */ val simpleRoadName: String? = null, /** - * The counted number of the exit to take relative to the location where the roundabout was - * entered if available, otherwise null. + * The counted number of the exit to take relative to the location where the + * roundabout was entered if available, otherwise null. */ val roundaboutTurnNumber: Long? = null, /** The list of available lanes at the end of this route step if available, otherwise null. */ @@ -2463,17 +2414,17 @@ data class StepInfoDto( /** The index of the step in the list of all steps in the route if available, otherwise null. */ val stepNumber: Long? = null, /** - * Image descriptor for the generated maneuver image for the current step if available, otherwise - * null. This image is generated only if step image generation option includes maneuver images. + * Image descriptor for the generated maneuver image for the current step if available, otherwise null. + * This image is generated only if step image generation option includes maneuver images. */ val maneuverImage: ImageDescriptorDto? = null, /** - * Image descriptor for the generated lane guidance image for the current step if available, - * otherwise null. This image is generated only if step image generation option includes lane - * images. + * Image descriptor for the generated lane guidance image for the current step if available, otherwise null. + * This image is generated only if step image generation option includes lane images. */ - val lanesImage: ImageDescriptorDto? = null, -) { + val lanesImage: ImageDescriptorDto? = null +) + { companion object { fun fromList(pigeonVar_list: List): StepInfoDto { val distanceFromPrevStepMeters = pigeonVar_list[0] as Long? @@ -2489,24 +2440,9 @@ data class StepInfoDto( val stepNumber = pigeonVar_list[10] as Long? val maneuverImage = pigeonVar_list[11] as ImageDescriptorDto? val lanesImage = pigeonVar_list[12] as ImageDescriptorDto? - return StepInfoDto( - distanceFromPrevStepMeters, - timeFromPrevStepSeconds, - drivingSide, - exitNumber, - fullInstructions, - fullRoadName, - simpleRoadName, - roundaboutTurnNumber, - lanes, - maneuver, - stepNumber, - maneuverImage, - lanesImage, - ) + return StepInfoDto(distanceFromPrevStepMeters, timeFromPrevStepSeconds, drivingSide, exitNumber, fullInstructions, fullRoadName, simpleRoadName, roundaboutTurnNumber, lanes, maneuver, stepNumber, maneuverImage, lanesImage) } } - fun toList(): List { return listOf( distanceFromPrevStepMeters, @@ -2524,7 +2460,6 @@ data class StepInfoDto( lanesImage, ) } - override fun equals(other: Any?): Boolean { if (other !is StepInfoDto) { return false @@ -2532,19 +2467,18 @@ data class StepInfoDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** - * Contains information about the state of navigation, the current nav step if available, and - * remaining steps if available. + * Contains information about the state of navigation, the current nav step if + * available, and remaining steps if available. * * Generated class from Pigeon that represents data sent in messages. */ -data class NavInfoDto( +data class NavInfoDto ( /** The current state of navigation. */ val navState: NavStateDto, /** Information about the upcoming maneuver step. */ @@ -2553,11 +2487,14 @@ data class NavInfoDto( val remainingSteps: List, /** Whether the route has changed since the last sent message. */ val routeChanged: Boolean, - /** Estimated remaining distance in meters along the route to the current step. */ + /** + * Estimated remaining distance in meters along the route to the + * current step. + */ val distanceToCurrentStepMeters: Long? = null, /** - * The estimated remaining distance in meters to the final destination which is the last - * destination in a multi-destination trip. + * The estimated remaining distance in meters to the final destination which + * is the last destination in a multi-destination trip. */ val distanceToFinalDestinationMeters: Long? = null, /** @@ -2566,11 +2503,14 @@ data class NavInfoDto( * Android only. */ val distanceToNextDestinationMeters: Long? = null, - /** The estimated remaining time in seconds along the route to the current step. */ + /** + * The estimated remaining time in seconds along the route to the + * current step. + */ val timeToCurrentStepSeconds: Long? = null, /** - * The estimated remaining time in seconds to the final destination which is the last destination - * in a multi-destination trip. + * The estimated remaining time in seconds to the final destination which is + * the last destination in a multi-destination trip. */ val timeToFinalDestinationSeconds: Long? = null, /** @@ -2578,8 +2518,9 @@ data class NavInfoDto( * * Android only. */ - val timeToNextDestinationSeconds: Long? = null, -) { + val timeToNextDestinationSeconds: Long? = null +) + { companion object { fun fromList(pigeonVar_list: List): NavInfoDto { val navState = pigeonVar_list[0] as NavStateDto @@ -2592,21 +2533,9 @@ data class NavInfoDto( val timeToCurrentStepSeconds = pigeonVar_list[7] as Long? val timeToFinalDestinationSeconds = pigeonVar_list[8] as Long? val timeToNextDestinationSeconds = pigeonVar_list[9] as Long? - return NavInfoDto( - navState, - currentStep, - remainingSteps, - routeChanged, - distanceToCurrentStepMeters, - distanceToFinalDestinationMeters, - distanceToNextDestinationMeters, - timeToCurrentStepSeconds, - timeToFinalDestinationSeconds, - timeToNextDestinationSeconds, - ) + return NavInfoDto(navState, currentStep, remainingSteps, routeChanged, distanceToCurrentStepMeters, distanceToFinalDestinationMeters, distanceToNextDestinationMeters, timeToCurrentStepSeconds, timeToFinalDestinationSeconds, timeToNextDestinationSeconds) } } - fun toList(): List { return listOf( navState, @@ -2621,7 +2550,6 @@ data class NavInfoDto( timeToNextDestinationSeconds, ) } - override fun equals(other: Any?): Boolean { if (other !is NavInfoDto) { return false @@ -2629,8 +2557,7 @@ data class NavInfoDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } @@ -2638,12 +2565,12 @@ data class NavInfoDto( /** * UI customization parameters for the Terms and Conditions dialog. * - * All color values are 32-bit ARGB integers (format: 0xAARRGGBB). All parameters are optional - if - * not provided, platform defaults will be used. + * All color values are 32-bit ARGB integers (format: 0xAARRGGBB). + * All parameters are optional - if not provided, platform defaults will be used. * * Generated class from Pigeon that represents data sent in messages. */ -data class TermsAndConditionsUIParamsDto( +data class TermsAndConditionsUIParamsDto ( /** Background color of the dialog box. */ val backgroundColor: Long? = null, /** Text color for the dialog title. */ @@ -2653,8 +2580,9 @@ data class TermsAndConditionsUIParamsDto( /** Text color for the accept button. */ val acceptButtonTextColor: Long? = null, /** Text color for the cancel button. */ - val cancelButtonTextColor: Long? = null, -) { + val cancelButtonTextColor: Long? = null +) + { companion object { fun fromList(pigeonVar_list: List): TermsAndConditionsUIParamsDto { val backgroundColor = pigeonVar_list[0] as Long? @@ -2662,16 +2590,9 @@ data class TermsAndConditionsUIParamsDto( val mainTextColor = pigeonVar_list[2] as Long? val acceptButtonTextColor = pigeonVar_list[3] as Long? val cancelButtonTextColor = pigeonVar_list[4] as Long? - return TermsAndConditionsUIParamsDto( - backgroundColor, - titleColor, - mainTextColor, - acceptButtonTextColor, - cancelButtonTextColor, - ) + return TermsAndConditionsUIParamsDto(backgroundColor, titleColor, mainTextColor, acceptButtonTextColor, cancelButtonTextColor) } } - fun toList(): List { return listOf( backgroundColor, @@ -2681,7 +2602,6 @@ data class TermsAndConditionsUIParamsDto( cancelButtonTextColor, ) } - override fun equals(other: Any?): Boolean { if (other !is TermsAndConditionsUIParamsDto) { return false @@ -2689,8 +2609,47 @@ data class TermsAndConditionsUIParamsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + + override fun hashCode(): Int = toList().hashCode() +} + +/** + * Android foreground-service notification configuration. + * + * This preserves the Navigation SDK's built-in turn-by-turn notification. + * + * Generated class from Pigeon that represents data sent in messages. + */ +data class NavigationNotificationOptionsDto ( + val notificationId: Long? = null, + val defaultMessage: String? = null, + val resumeAppOnTap: Boolean +) + { + companion object { + fun fromList(pigeonVar_list: List): NavigationNotificationOptionsDto { + val notificationId = pigeonVar_list[0] as Long? + val defaultMessage = pigeonVar_list[1] as String? + val resumeAppOnTap = pigeonVar_list[2] as Boolean + return NavigationNotificationOptionsDto(notificationId, defaultMessage, resumeAppOnTap) + } + } + fun toList(): List { + return listOf( + notificationId, + defaultMessage, + resumeAppOnTap, + ) } + override fun equals(other: Any?): Boolean { + if (other !is NavigationNotificationOptionsDto) { + return false + } + if (this === other) { + return true + } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } @@ -2700,14 +2659,19 @@ data class TermsAndConditionsUIParamsDto( * * Generated class from Pigeon that represents data sent in messages. */ -data class StepImageGenerationOptionsDto( +data class StepImageGenerationOptionsDto ( /** - * Whether to generate maneuver images for navigation steps. Defaults to false if not specified. + * Whether to generate maneuver images for navigation steps. + * Defaults to false if not specified. */ val generateManeuverImages: Boolean? = null, - /** Whether to generate lane images for navigation steps. Defaults to false if not specified. */ - val generateLaneImages: Boolean? = null, -) { + /** + * Whether to generate lane images for navigation steps. + * Defaults to false if not specified. + */ + val generateLaneImages: Boolean? = null +) + { companion object { fun fromList(pigeonVar_list: List): StepImageGenerationOptionsDto { val generateManeuverImages = pigeonVar_list[0] as Boolean? @@ -2715,11 +2679,12 @@ data class StepImageGenerationOptionsDto( return StepImageGenerationOptionsDto(generateManeuverImages, generateLaneImages) } } - fun toList(): List { - return listOf(generateManeuverImages, generateLaneImages) + return listOf( + generateManeuverImages, + generateLaneImages, + ) } - override fun equals(other: Any?): Boolean { if (other !is StepImageGenerationOptionsDto) { return false @@ -2727,17 +2692,17 @@ data class StepImageGenerationOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } - private open class messagesPigeonCodec : StandardMessageCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { 129.toByte() -> { - return (readValue(buffer) as Long?)?.let { MapViewTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + MapViewTypeDto.ofRaw(it.toInt()) + } } 130.toByte() -> { return (readValue(buffer) as Long?)?.let { @@ -2745,55 +2710,89 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 131.toByte() -> { - return (readValue(buffer) as Long?)?.let { MapTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + MapTypeDto.ofRaw(it.toInt()) + } } 132.toByte() -> { - return (readValue(buffer) as Long?)?.let { MapColorSchemeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + MapColorSchemeDto.ofRaw(it.toInt()) + } } 133.toByte() -> { - return (readValue(buffer) as Long?)?.let { NavigationForceNightModeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + NavigationForceNightModeDto.ofRaw(it.toInt()) + } } 134.toByte() -> { - return (readValue(buffer) as Long?)?.let { CameraPerspectiveDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + CameraPerspectiveDto.ofRaw(it.toInt()) + } } 135.toByte() -> { - return (readValue(buffer) as Long?)?.let { RegisteredImageTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + RegisteredImageTypeDto.ofRaw(it.toInt()) + } } 136.toByte() -> { - return (readValue(buffer) as Long?)?.let { MarkerEventTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + MarkerEventTypeDto.ofRaw(it.toInt()) + } } 137.toByte() -> { - return (readValue(buffer) as Long?)?.let { MarkerDragEventTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + MarkerDragEventTypeDto.ofRaw(it.toInt()) + } } 138.toByte() -> { - return (readValue(buffer) as Long?)?.let { StrokeJointTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + StrokeJointTypeDto.ofRaw(it.toInt()) + } } 139.toByte() -> { - return (readValue(buffer) as Long?)?.let { PatternTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + PatternTypeDto.ofRaw(it.toInt()) + } } 140.toByte() -> { - return (readValue(buffer) as Long?)?.let { CameraEventTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + CameraEventTypeDto.ofRaw(it.toInt()) + } } 141.toByte() -> { - return (readValue(buffer) as Long?)?.let { AlternateRoutesStrategyDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + AlternateRoutesStrategyDto.ofRaw(it.toInt()) + } } 142.toByte() -> { - return (readValue(buffer) as Long?)?.let { RoutingStrategyDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + RoutingStrategyDto.ofRaw(it.toInt()) + } } 143.toByte() -> { - return (readValue(buffer) as Long?)?.let { TravelModeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + TravelModeDto.ofRaw(it.toInt()) + } } 144.toByte() -> { - return (readValue(buffer) as Long?)?.let { RouteStatusDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + RouteStatusDto.ofRaw(it.toInt()) + } } 145.toByte() -> { - return (readValue(buffer) as Long?)?.let { TrafficDelaySeverityDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + TrafficDelaySeverityDto.ofRaw(it.toInt()) + } } 146.toByte() -> { - return (readValue(buffer) as Long?)?.let { AudioGuidanceTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + AudioGuidanceTypeDto.ofRaw(it.toInt()) + } } 147.toByte() -> { - return (readValue(buffer) as Long?)?.let { SpeedAlertSeverityDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + SpeedAlertSeverityDto.ofRaw(it.toInt()) + } } 148.toByte() -> { return (readValue(buffer) as Long?)?.let { @@ -2806,91 +2805,149 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 150.toByte() -> { - return (readValue(buffer) as Long?)?.let { ManeuverDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + ManeuverDto.ofRaw(it.toInt()) + } } 151.toByte() -> { - return (readValue(buffer) as Long?)?.let { DrivingSideDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + DrivingSideDto.ofRaw(it.toInt()) + } } 152.toByte() -> { - return (readValue(buffer) as Long?)?.let { NavStateDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + NavStateDto.ofRaw(it.toInt()) + } } 153.toByte() -> { - return (readValue(buffer) as Long?)?.let { LaneShapeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + LaneShapeDto.ofRaw(it.toInt()) + } } 154.toByte() -> { - return (readValue(buffer) as Long?)?.let { TaskRemovedBehaviorDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + TaskRemovedBehaviorDto.ofRaw(it.toInt()) + } } 155.toByte() -> { - return (readValue(buffer) as? List)?.let { AutoMapOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + AutoMapOptionsDto.fromList(it) + } } 156.toByte() -> { - return (readValue(buffer) as? List)?.let { MapOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MapOptionsDto.fromList(it) + } } 157.toByte() -> { - return (readValue(buffer) as? List)?.let { NavigationViewOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + NavigationViewOptionsDto.fromList(it) + } } 158.toByte() -> { - return (readValue(buffer) as? List)?.let { ViewCreationOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + ViewCreationOptionsDto.fromList(it) + } } 159.toByte() -> { - return (readValue(buffer) as? List)?.let { CameraPositionDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + CameraPositionDto.fromList(it) + } } 160.toByte() -> { - return (readValue(buffer) as? List)?.let { MarkerDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MarkerDto.fromList(it) + } } 161.toByte() -> { - return (readValue(buffer) as? List)?.let { MarkerOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MarkerOptionsDto.fromList(it) + } } 162.toByte() -> { - return (readValue(buffer) as? List)?.let { ImageDescriptorDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + ImageDescriptorDto.fromList(it) + } } 163.toByte() -> { - return (readValue(buffer) as? List)?.let { InfoWindowDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + InfoWindowDto.fromList(it) + } } 164.toByte() -> { - return (readValue(buffer) as? List)?.let { MarkerAnchorDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MarkerAnchorDto.fromList(it) + } } 165.toByte() -> { - return (readValue(buffer) as? List)?.let { PointOfInterestDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PointOfInterestDto.fromList(it) + } } 166.toByte() -> { - return (readValue(buffer) as? List)?.let { IndoorLevelDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + IndoorLevelDto.fromList(it) + } } 167.toByte() -> { - return (readValue(buffer) as? List)?.let { IndoorBuildingDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + IndoorBuildingDto.fromList(it) + } } 168.toByte() -> { - return (readValue(buffer) as? List)?.let { PolygonDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolygonDto.fromList(it) + } } 169.toByte() -> { - return (readValue(buffer) as? List)?.let { PolygonOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolygonOptionsDto.fromList(it) + } } 170.toByte() -> { - return (readValue(buffer) as? List)?.let { PolygonHoleDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolygonHoleDto.fromList(it) + } } 171.toByte() -> { - return (readValue(buffer) as? List)?.let { StyleSpanStrokeStyleDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + StyleSpanStrokeStyleDto.fromList(it) + } } 172.toByte() -> { - return (readValue(buffer) as? List)?.let { StyleSpanDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + StyleSpanDto.fromList(it) + } } 173.toByte() -> { - return (readValue(buffer) as? List)?.let { PolylineDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolylineDto.fromList(it) + } } 174.toByte() -> { - return (readValue(buffer) as? List)?.let { PatternItemDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PatternItemDto.fromList(it) + } } 175.toByte() -> { - return (readValue(buffer) as? List)?.let { PolylineOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolylineOptionsDto.fromList(it) + } } 176.toByte() -> { - return (readValue(buffer) as? List)?.let { CircleDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + CircleDto.fromList(it) + } } 177.toByte() -> { - return (readValue(buffer) as? List)?.let { CircleOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + CircleOptionsDto.fromList(it) + } } 178.toByte() -> { - return (readValue(buffer) as? List)?.let { MapPaddingDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MapPaddingDto.fromList(it) + } } 179.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -2898,19 +2955,29 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 180.toByte() -> { - return (readValue(buffer) as? List)?.let { RouteTokenOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + RouteTokenOptionsDto.fromList(it) + } } 181.toByte() -> { - return (readValue(buffer) as? List)?.let { DestinationsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + DestinationsDto.fromList(it) + } } 182.toByte() -> { - return (readValue(buffer) as? List)?.let { RoutingOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + RoutingOptionsDto.fromList(it) + } } 183.toByte() -> { - return (readValue(buffer) as? List)?.let { NavigationDisplayOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + NavigationDisplayOptionsDto.fromList(it) + } } 184.toByte() -> { - return (readValue(buffer) as? List)?.let { NavigationWaypointDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + NavigationWaypointDto.fromList(it) + } } 185.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -2918,7 +2985,9 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 186.toByte() -> { - return (readValue(buffer) as? List)?.let { NavigationTimeAndDistanceDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + NavigationTimeAndDistanceDto.fromList(it) + } } 187.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -2926,16 +2995,24 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 188.toByte() -> { - return (readValue(buffer) as? List)?.let { SimulationOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + SimulationOptionsDto.fromList(it) + } } 189.toByte() -> { - return (readValue(buffer) as? List)?.let { LatLngDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + LatLngDto.fromList(it) + } } 190.toByte() -> { - return (readValue(buffer) as? List)?.let { LatLngBoundsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + LatLngBoundsDto.fromList(it) + } } 191.toByte() -> { - return (readValue(buffer) as? List)?.let { SpeedingUpdatedEventDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + SpeedingUpdatedEventDto.fromList(it) + } } 192.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -2948,7 +3025,9 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 194.toByte() -> { - return (readValue(buffer) as? List)?.let { SpeedAlertOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + SpeedAlertOptionsDto.fromList(it) + } } 195.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -2956,22 +3035,34 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 196.toByte() -> { - return (readValue(buffer) as? List)?.let { RouteSegmentTrafficDataDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + RouteSegmentTrafficDataDto.fromList(it) + } } 197.toByte() -> { - return (readValue(buffer) as? List)?.let { RouteSegmentDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + RouteSegmentDto.fromList(it) + } } 198.toByte() -> { - return (readValue(buffer) as? List)?.let { LaneDirectionDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + LaneDirectionDto.fromList(it) + } } 199.toByte() -> { - return (readValue(buffer) as? List)?.let { LaneDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + LaneDto.fromList(it) + } } 200.toByte() -> { - return (readValue(buffer) as? List)?.let { StepInfoDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + StepInfoDto.fromList(it) + } } 201.toByte() -> { - return (readValue(buffer) as? List)?.let { NavInfoDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + NavInfoDto.fromList(it) + } } 202.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -2979,6 +3070,11 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 203.toByte() -> { + return (readValue(buffer) as? List)?.let { + NavigationNotificationOptionsDto.fromList(it) + } + } + 204.toByte() -> { return (readValue(buffer) as? List)?.let { StepImageGenerationOptionsDto.fromList(it) } @@ -2986,8 +3082,7 @@ private open class messagesPigeonCodec : StandardMessageCodec() { else -> super.readValueOfType(type, buffer) } } - - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { when (value) { is MapViewTypeDto -> { stream.write(129) @@ -3285,19 +3380,25 @@ private open class messagesPigeonCodec : StandardMessageCodec() { stream.write(202) writeValue(stream, value.toList()) } - is StepImageGenerationOptionsDto -> { + is NavigationNotificationOptionsDto -> { stream.write(203) writeValue(stream, value.toList()) } + is StepImageGenerationOptionsDto -> { + stream.write(204) + writeValue(stream, value.toList()) + } else -> super.writeValue(stream, value) } } } + /** - * Dummy interface to force generation of the platform view creation params. Pigeon only generates - * messages if the messages are used in API. [ViewCreationOptionsDto] is encoded and decoded - * directly to generate a PlatformView creation message. + * Dummy interface to force generation of the platform view creation params. + * Pigeon only generates messages if the messages are used in API. + * [ViewCreationOptionsDto] is encoded and decoded directly to generate a + * PlatformView creation message. * * This API should never be used directly. * @@ -3308,37 +3409,25 @@ interface ViewCreationApi { companion object { /** The codec used by ViewCreationApi. */ - val codec: MessageCodec by lazy { messagesPigeonCodec() } - - /** - * Sets up an instance of `ViewCreationApi` to handle messages through the `binaryMessenger`. - */ + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } + /** Sets up an instance of `ViewCreationApi` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp( - binaryMessenger: BinaryMessenger, - api: ViewCreationApi?, - messageChannelSuffix: String = "", - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp(binaryMessenger: BinaryMessenger, api: ViewCreationApi?, messageChannelSuffix: String = "") { + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.ViewCreationApi.create$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ViewCreationApi.create$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val msgArg = args[0] as ViewCreationOptionsDto - val wrapped: List = - try { - api.create(msgArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.create(msgArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3348,300 +3437,137 @@ interface ViewCreationApi { } } } - /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface MapViewApi { fun awaitMapReady(viewId: Long, callback: (Result) -> Unit) - fun isMyLocationEnabled(viewId: Long): Boolean - fun setMyLocationEnabled(viewId: Long, enabled: Boolean) - fun getMyLocation(viewId: Long): LatLngDto? - fun getMapType(viewId: Long): MapTypeDto - fun setMapType(viewId: Long, mapType: MapTypeDto) - fun setMapStyle(viewId: Long, styleJson: String) - fun isNavigationTripProgressBarEnabled(viewId: Long): Boolean - fun setNavigationTripProgressBarEnabled(viewId: Long, enabled: Boolean) - fun isNavigationHeaderEnabled(viewId: Long): Boolean - fun setNavigationHeaderEnabled(viewId: Long, enabled: Boolean) - fun getNavigationHeaderStylingOptions(viewId: Long): NavigationHeaderStylingOptionsDto - - fun setNavigationHeaderStylingOptions( - viewId: Long, - stylingOptions: NavigationHeaderStylingOptionsDto, - ) - + fun setNavigationHeaderStylingOptions(viewId: Long, stylingOptions: NavigationHeaderStylingOptionsDto) fun isNavigationFooterEnabled(viewId: Long): Boolean - fun setNavigationFooterEnabled(viewId: Long, enabled: Boolean) - fun isRecenterButtonEnabled(viewId: Long): Boolean - fun setRecenterButtonEnabled(viewId: Long, enabled: Boolean) - fun isSpeedLimitIconEnabled(viewId: Long): Boolean - fun setSpeedLimitIconEnabled(viewId: Long, enabled: Boolean) - fun isSpeedometerEnabled(viewId: Long): Boolean - fun setSpeedometerEnabled(viewId: Long, enabled: Boolean) - fun isNavigationUIEnabled(viewId: Long): Boolean - fun setNavigationUIEnabled(viewId: Long, enabled: Boolean) - fun isMyLocationButtonEnabled(viewId: Long): Boolean - fun setMyLocationButtonEnabled(viewId: Long, enabled: Boolean) - fun isConsumeMyLocationButtonClickEventsEnabled(viewId: Long): Boolean - fun setConsumeMyLocationButtonClickEventsEnabled(viewId: Long, enabled: Boolean) - fun isZoomGesturesEnabled(viewId: Long): Boolean - fun setZoomGesturesEnabled(viewId: Long, enabled: Boolean) - fun isZoomControlsEnabled(viewId: Long): Boolean - fun setZoomControlsEnabled(viewId: Long, enabled: Boolean) - fun isCompassEnabled(viewId: Long): Boolean - fun setCompassEnabled(viewId: Long, enabled: Boolean) - fun isRotateGesturesEnabled(viewId: Long): Boolean - fun setRotateGesturesEnabled(viewId: Long, enabled: Boolean) - fun isScrollGesturesEnabled(viewId: Long): Boolean - fun setScrollGesturesEnabled(viewId: Long, enabled: Boolean) - fun isScrollGesturesEnabledDuringRotateOrZoom(viewId: Long): Boolean - fun setScrollGesturesDuringRotateOrZoomEnabled(viewId: Long, enabled: Boolean) - fun isTiltGesturesEnabled(viewId: Long): Boolean - fun setTiltGesturesEnabled(viewId: Long, enabled: Boolean) - fun isMapToolbarEnabled(viewId: Long): Boolean - fun setMapToolbarEnabled(viewId: Long, enabled: Boolean) - fun isTrafficEnabled(viewId: Long): Boolean - fun setTrafficEnabled(viewId: Long, enabled: Boolean) - fun isTrafficIncidentCardsEnabled(viewId: Long): Boolean - fun setTrafficIncidentCardsEnabled(viewId: Long, enabled: Boolean) - fun isTrafficPromptsEnabled(viewId: Long): Boolean - fun setTrafficPromptsEnabled(viewId: Long, enabled: Boolean) - fun isReportIncidentButtonEnabled(viewId: Long): Boolean - fun setReportIncidentButtonEnabled(viewId: Long, enabled: Boolean) - fun isIncidentReportingAvailable(viewId: Long): Boolean - fun showReportIncidentsPanel(viewId: Long) - fun isBuildingsEnabled(viewId: Long): Boolean - fun setBuildingsEnabled(viewId: Long, enabled: Boolean) - fun isIndoorEnabled(viewId: Long): Boolean - fun setIndoorEnabled(viewId: Long, enabled: Boolean) - fun isIndoorLevelPickerEnabled(viewId: Long): Boolean - fun setIndoorLevelPickerEnabled(viewId: Long, enabled: Boolean) - fun getFocusedIndoorBuilding(viewId: Long): IndoorBuildingDto? - /** - * Activates the indoor level at [levelIndex] within the currently focused indoor building. Throws - * if no building is focused or the index is out of range. + * Activates the indoor level at [levelIndex] within the currently focused + * indoor building. Throws if no building is focused or the index is out of + * range. */ fun activateIndoorLevel(viewId: Long, levelIndex: Long) - fun getCameraPosition(viewId: Long): CameraPositionDto - fun getVisibleRegion(viewId: Long): LatLngBoundsDto - fun followMyLocation(viewId: Long, perspective: CameraPerspectiveDto, zoomLevel: Double?) - - fun animateCameraToCameraPosition( - viewId: Long, - cameraPosition: CameraPositionDto, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraToLatLng( - viewId: Long, - point: LatLngDto, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraToLatLngBounds( - viewId: Long, - bounds: LatLngBoundsDto, - padding: Double, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraToLatLngZoom( - viewId: Long, - point: LatLngDto, - zoom: Double, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraByScroll( - viewId: Long, - scrollByDx: Double, - scrollByDy: Double, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraByZoom( - viewId: Long, - zoomBy: Double, - focusDx: Double?, - focusDy: Double?, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraToZoom( - viewId: Long, - zoom: Double, - duration: Long?, - callback: (Result) -> Unit, - ) - + fun animateCameraToCameraPosition(viewId: Long, cameraPosition: CameraPositionDto, duration: Long?, callback: (Result) -> Unit) + fun animateCameraToLatLng(viewId: Long, point: LatLngDto, duration: Long?, callback: (Result) -> Unit) + fun animateCameraToLatLngBounds(viewId: Long, bounds: LatLngBoundsDto, padding: Double, duration: Long?, callback: (Result) -> Unit) + fun animateCameraToLatLngZoom(viewId: Long, point: LatLngDto, zoom: Double, duration: Long?, callback: (Result) -> Unit) + fun animateCameraByScroll(viewId: Long, scrollByDx: Double, scrollByDy: Double, duration: Long?, callback: (Result) -> Unit) + fun animateCameraByZoom(viewId: Long, zoomBy: Double, focusDx: Double?, focusDy: Double?, duration: Long?, callback: (Result) -> Unit) + fun animateCameraToZoom(viewId: Long, zoom: Double, duration: Long?, callback: (Result) -> Unit) fun moveCameraToCameraPosition(viewId: Long, cameraPosition: CameraPositionDto) - fun moveCameraToLatLng(viewId: Long, point: LatLngDto) - fun moveCameraToLatLngBounds(viewId: Long, bounds: LatLngBoundsDto, padding: Double) - fun moveCameraToLatLngZoom(viewId: Long, point: LatLngDto, zoom: Double) - fun moveCameraByScroll(viewId: Long, scrollByDx: Double, scrollByDy: Double) - fun moveCameraByZoom(viewId: Long, zoomBy: Double, focusDx: Double?, focusDy: Double?) - fun moveCameraToZoom(viewId: Long, zoom: Double) - fun showRouteOverview(viewId: Long) - fun getMinZoomPreference(viewId: Long): Double - fun getMaxZoomPreference(viewId: Long): Double - fun resetMinMaxZoomPreference(viewId: Long) - fun setMinZoomPreference(viewId: Long, minZoomPreference: Double) - fun setMaxZoomPreference(viewId: Long, maxZoomPreference: Double) - fun getMarkers(viewId: Long): List - fun addMarkers(viewId: Long, markers: List): List - fun updateMarkers(viewId: Long, markers: List): List - fun removeMarkers(viewId: Long, markers: List) - fun clearMarkers(viewId: Long) - fun clear(viewId: Long) - fun getPolygons(viewId: Long): List - fun addPolygons(viewId: Long, polygons: List): List - fun updatePolygons(viewId: Long, polygons: List): List - fun removePolygons(viewId: Long, polygons: List) - fun clearPolygons(viewId: Long) - fun getPolylines(viewId: Long): List - fun addPolylines(viewId: Long, polylines: List): List - fun updatePolylines(viewId: Long, polylines: List): List - fun removePolylines(viewId: Long, polylines: List) - fun clearPolylines(viewId: Long) - fun getCircles(viewId: Long): List - fun addCircles(viewId: Long, circles: List): List - fun updateCircles(viewId: Long, circles: List): List - fun removeCircles(viewId: Long, circles: List) - fun clearCircles(viewId: Long) - fun enableOnCameraChangedEvents(viewId: Long) - fun setPadding(viewId: Long, padding: MapPaddingDto) - fun getPadding(viewId: Long): MapPaddingDto - fun getMapColorScheme(viewId: Long): MapColorSchemeDto - fun setMapColorScheme(viewId: Long, mapColorScheme: MapColorSchemeDto) - fun getForceNightMode(viewId: Long): NavigationForceNightModeDto - fun setForceNightMode(viewId: Long, forceNightMode: NavigationForceNightModeDto) companion object { /** The codec used by MapViewApi. */ - val codec: MessageCodec by lazy { messagesPigeonCodec() } - + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } /** Sets up an instance of `MapViewApi` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp( - binaryMessenger: BinaryMessenger, - api: MapViewApi?, - messageChannelSuffix: String = "", - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp(binaryMessenger: BinaryMessenger, api: MapViewApi?, messageChannelSuffix: String = "") { + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3660,22 +3586,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isMyLocationEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isMyLocationEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3683,24 +3603,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setMyLocationEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMyLocationEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3708,22 +3622,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getMyLocation(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMyLocation(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3731,22 +3639,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getMapType(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMapType(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3754,24 +3656,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val mapTypeArg = args[1] as MapTypeDto - val wrapped: List = - try { - api.setMapType(viewIdArg, mapTypeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMapType(viewIdArg, mapTypeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3779,24 +3675,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val styleJsonArg = args[1] as String - val wrapped: List = - try { - api.setMapStyle(viewIdArg, styleJsonArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMapStyle(viewIdArg, styleJsonArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3804,22 +3694,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isNavigationTripProgressBarEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isNavigationTripProgressBarEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3827,24 +3711,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setNavigationTripProgressBarEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setNavigationTripProgressBarEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3852,22 +3730,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isNavigationHeaderEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isNavigationHeaderEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3875,24 +3747,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setNavigationHeaderEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setNavigationHeaderEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3900,22 +3766,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getNavigationHeaderStylingOptions(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getNavigationHeaderStylingOptions(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3923,24 +3783,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val stylingOptionsArg = args[1] as NavigationHeaderStylingOptionsDto - val wrapped: List = - try { - api.setNavigationHeaderStylingOptions(viewIdArg, stylingOptionsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setNavigationHeaderStylingOptions(viewIdArg, stylingOptionsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3948,22 +3802,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isNavigationFooterEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isNavigationFooterEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3971,24 +3819,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setNavigationFooterEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setNavigationFooterEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3996,22 +3838,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isRecenterButtonEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isRecenterButtonEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4019,24 +3855,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setRecenterButtonEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setRecenterButtonEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4044,22 +3874,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isSpeedLimitIconEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isSpeedLimitIconEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4067,24 +3891,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setSpeedLimitIconEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setSpeedLimitIconEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4092,22 +3910,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isSpeedometerEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isSpeedometerEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4115,24 +3927,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setSpeedometerEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setSpeedometerEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4140,22 +3946,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isNavigationUIEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isNavigationUIEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4163,24 +3963,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setNavigationUIEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setNavigationUIEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4188,22 +3982,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isMyLocationButtonEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isMyLocationButtonEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4211,24 +3999,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setMyLocationButtonEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMyLocationButtonEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4236,22 +4018,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isConsumeMyLocationButtonClickEventsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isConsumeMyLocationButtonClickEventsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4259,24 +4035,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setConsumeMyLocationButtonClickEventsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setConsumeMyLocationButtonClickEventsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4284,22 +4054,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isZoomGesturesEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isZoomGesturesEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4307,24 +4071,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setZoomGesturesEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setZoomGesturesEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4332,22 +4090,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isZoomControlsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isZoomControlsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4355,24 +4107,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setZoomControlsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setZoomControlsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4380,22 +4126,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isCompassEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isCompassEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4403,24 +4143,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setCompassEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setCompassEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4428,22 +4162,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isRotateGesturesEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isRotateGesturesEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4451,24 +4179,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setRotateGesturesEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setRotateGesturesEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4476,22 +4198,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isScrollGesturesEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isScrollGesturesEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4499,24 +4215,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setScrollGesturesEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setScrollGesturesEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4524,22 +4234,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isScrollGesturesEnabledDuringRotateOrZoom(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isScrollGesturesEnabledDuringRotateOrZoom(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4547,24 +4251,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setScrollGesturesDuringRotateOrZoomEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setScrollGesturesDuringRotateOrZoomEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4572,22 +4270,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isTiltGesturesEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isTiltGesturesEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4595,24 +4287,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setTiltGesturesEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setTiltGesturesEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4620,22 +4306,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isMapToolbarEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isMapToolbarEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4643,24 +4323,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setMapToolbarEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMapToolbarEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4668,22 +4342,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isTrafficEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isTrafficEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4691,24 +4359,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setTrafficEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setTrafficEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4716,22 +4378,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isTrafficIncidentCardsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isTrafficIncidentCardsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4739,24 +4395,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setTrafficIncidentCardsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setTrafficIncidentCardsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4764,22 +4414,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isTrafficPromptsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isTrafficPromptsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4787,24 +4431,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setTrafficPromptsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setTrafficPromptsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4812,22 +4450,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isReportIncidentButtonEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isReportIncidentButtonEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4835,24 +4467,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setReportIncidentButtonEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setReportIncidentButtonEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4860,22 +4486,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isIncidentReportingAvailable(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isIncidentReportingAvailable(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4883,23 +4503,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.showReportIncidentsPanel(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.showReportIncidentsPanel(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4907,22 +4521,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isBuildingsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isBuildingsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4930,24 +4538,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setBuildingsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setBuildingsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4955,22 +4557,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isIndoorEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isIndoorEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4978,24 +4574,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setIndoorEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setIndoorEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5003,22 +4593,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isIndoorLevelPickerEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isIndoorLevelPickerEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5026,24 +4610,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setIndoorLevelPickerEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setIndoorLevelPickerEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5051,22 +4629,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getFocusedIndoorBuilding(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getFocusedIndoorBuilding(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5074,24 +4646,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val levelIndexArg = args[1] as Long - val wrapped: List = - try { - api.activateIndoorLevel(viewIdArg, levelIndexArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.activateIndoorLevel(viewIdArg, levelIndexArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5099,22 +4665,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getCameraPosition(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getCameraPosition(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5122,22 +4682,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getVisibleRegion(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getVisibleRegion(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5145,25 +4699,19 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val perspectiveArg = args[1] as CameraPerspectiveDto val zoomLevelArg = args[2] as Double? - val wrapped: List = - try { - api.followMyLocation(viewIdArg, perspectiveArg, zoomLevelArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.followMyLocation(viewIdArg, perspectiveArg, zoomLevelArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5171,20 +4719,14 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val cameraPositionArg = args[1] as CameraPositionDto val durationArg = args[2] as Long? - api.animateCameraToCameraPosition(viewIdArg, cameraPositionArg, durationArg) { - result: Result -> + api.animateCameraToCameraPosition(viewIdArg, cameraPositionArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -5199,12 +4741,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5226,12 +4763,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5239,8 +4771,7 @@ interface MapViewApi { val boundsArg = args[1] as LatLngBoundsDto val paddingArg = args[2] as Double val durationArg = args[3] as Long? - api.animateCameraToLatLngBounds(viewIdArg, boundsArg, paddingArg, durationArg) { - result: Result -> + api.animateCameraToLatLngBounds(viewIdArg, boundsArg, paddingArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -5255,12 +4786,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5268,8 +4794,7 @@ interface MapViewApi { val pointArg = args[1] as LatLngDto val zoomArg = args[2] as Double val durationArg = args[3] as Long? - api.animateCameraToLatLngZoom(viewIdArg, pointArg, zoomArg, durationArg) { - result: Result -> + api.animateCameraToLatLngZoom(viewIdArg, pointArg, zoomArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -5284,12 +4809,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5297,8 +4817,7 @@ interface MapViewApi { val scrollByDxArg = args[1] as Double val scrollByDyArg = args[2] as Double val durationArg = args[3] as Long? - api.animateCameraByScroll(viewIdArg, scrollByDxArg, scrollByDyArg, durationArg) { - result: Result -> + api.animateCameraByScroll(viewIdArg, scrollByDxArg, scrollByDyArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -5313,12 +4832,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5327,8 +4841,7 @@ interface MapViewApi { val focusDxArg = args[2] as Double? val focusDyArg = args[3] as Double? val durationArg = args[4] as Long? - api.animateCameraByZoom(viewIdArg, zoomByArg, focusDxArg, focusDyArg, durationArg) { - result: Result -> + api.animateCameraByZoom(viewIdArg, zoomByArg, focusDxArg, focusDyArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -5343,12 +4856,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5370,24 +4878,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val cameraPositionArg = args[1] as CameraPositionDto - val wrapped: List = - try { - api.moveCameraToCameraPosition(viewIdArg, cameraPositionArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToCameraPosition(viewIdArg, cameraPositionArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5395,24 +4897,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val pointArg = args[1] as LatLngDto - val wrapped: List = - try { - api.moveCameraToLatLng(viewIdArg, pointArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToLatLng(viewIdArg, pointArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5420,25 +4916,19 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val boundsArg = args[1] as LatLngBoundsDto val paddingArg = args[2] as Double - val wrapped: List = - try { - api.moveCameraToLatLngBounds(viewIdArg, boundsArg, paddingArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToLatLngBounds(viewIdArg, boundsArg, paddingArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5446,25 +4936,19 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val pointArg = args[1] as LatLngDto val zoomArg = args[2] as Double - val wrapped: List = - try { - api.moveCameraToLatLngZoom(viewIdArg, pointArg, zoomArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToLatLngZoom(viewIdArg, pointArg, zoomArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5472,25 +4956,19 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val scrollByDxArg = args[1] as Double val scrollByDyArg = args[2] as Double - val wrapped: List = - try { - api.moveCameraByScroll(viewIdArg, scrollByDxArg, scrollByDyArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraByScroll(viewIdArg, scrollByDxArg, scrollByDyArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5498,12 +4976,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5511,13 +4984,12 @@ interface MapViewApi { val zoomByArg = args[1] as Double val focusDxArg = args[2] as Double? val focusDyArg = args[3] as Double? - val wrapped: List = - try { - api.moveCameraByZoom(viewIdArg, zoomByArg, focusDxArg, focusDyArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraByZoom(viewIdArg, zoomByArg, focusDxArg, focusDyArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5525,24 +4997,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val zoomArg = args[1] as Double - val wrapped: List = - try { - api.moveCameraToZoom(viewIdArg, zoomArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToZoom(viewIdArg, zoomArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5550,23 +5016,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.showRouteOverview(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.showRouteOverview(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5574,22 +5034,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getMinZoomPreference(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMinZoomPreference(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5597,22 +5051,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getMaxZoomPreference(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMaxZoomPreference(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5620,23 +5068,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.resetMinMaxZoomPreference(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.resetMinMaxZoomPreference(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5644,24 +5086,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val minZoomPreferenceArg = args[1] as Double - val wrapped: List = - try { - api.setMinZoomPreference(viewIdArg, minZoomPreferenceArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMinZoomPreference(viewIdArg, minZoomPreferenceArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5669,24 +5105,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val maxZoomPreferenceArg = args[1] as Double - val wrapped: List = - try { - api.setMaxZoomPreference(viewIdArg, maxZoomPreferenceArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMaxZoomPreference(viewIdArg, maxZoomPreferenceArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5694,22 +5124,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getMarkers(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMarkers(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5717,23 +5141,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val markersArg = args[1] as List - val wrapped: List = - try { - listOf(api.addMarkers(viewIdArg, markersArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.addMarkers(viewIdArg, markersArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5741,23 +5159,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val markersArg = args[1] as List - val wrapped: List = - try { - listOf(api.updateMarkers(viewIdArg, markersArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.updateMarkers(viewIdArg, markersArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5765,24 +5177,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val markersArg = args[1] as List - val wrapped: List = - try { - api.removeMarkers(viewIdArg, markersArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removeMarkers(viewIdArg, markersArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5790,23 +5196,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.clearMarkers(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearMarkers(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5814,23 +5214,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.clear(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clear(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5838,22 +5232,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getPolygons(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getPolygons(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5861,23 +5249,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polygonsArg = args[1] as List - val wrapped: List = - try { - listOf(api.addPolygons(viewIdArg, polygonsArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.addPolygons(viewIdArg, polygonsArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5885,23 +5267,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polygonsArg = args[1] as List - val wrapped: List = - try { - listOf(api.updatePolygons(viewIdArg, polygonsArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.updatePolygons(viewIdArg, polygonsArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5909,24 +5285,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polygonsArg = args[1] as List - val wrapped: List = - try { - api.removePolygons(viewIdArg, polygonsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removePolygons(viewIdArg, polygonsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5934,23 +5304,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.clearPolygons(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearPolygons(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5958,22 +5322,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getPolylines(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getPolylines(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5981,23 +5339,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polylinesArg = args[1] as List - val wrapped: List = - try { - listOf(api.addPolylines(viewIdArg, polylinesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.addPolylines(viewIdArg, polylinesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6005,23 +5357,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polylinesArg = args[1] as List - val wrapped: List = - try { - listOf(api.updatePolylines(viewIdArg, polylinesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.updatePolylines(viewIdArg, polylinesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6029,24 +5375,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polylinesArg = args[1] as List - val wrapped: List = - try { - api.removePolylines(viewIdArg, polylinesArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removePolylines(viewIdArg, polylinesArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6054,23 +5394,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.clearPolylines(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearPolylines(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6078,22 +5412,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getCircles(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getCircles(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6101,23 +5429,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val circlesArg = args[1] as List - val wrapped: List = - try { - listOf(api.addCircles(viewIdArg, circlesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.addCircles(viewIdArg, circlesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6125,23 +5447,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val circlesArg = args[1] as List - val wrapped: List = - try { - listOf(api.updateCircles(viewIdArg, circlesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.updateCircles(viewIdArg, circlesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6149,24 +5465,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val circlesArg = args[1] as List - val wrapped: List = - try { - api.removeCircles(viewIdArg, circlesArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removeCircles(viewIdArg, circlesArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6174,23 +5484,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.clearCircles(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearCircles(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6198,23 +5502,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.enableOnCameraChangedEvents(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.enableOnCameraChangedEvents(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6222,24 +5520,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val paddingArg = args[1] as MapPaddingDto - val wrapped: List = - try { - api.setPadding(viewIdArg, paddingArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setPadding(viewIdArg, paddingArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6247,22 +5539,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getPadding(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getPadding(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6270,22 +5556,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getMapColorScheme(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMapColorScheme(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6293,24 +5573,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val mapColorSchemeArg = args[1] as MapColorSchemeDto - val wrapped: List = - try { - api.setMapColorScheme(viewIdArg, mapColorSchemeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMapColorScheme(viewIdArg, mapColorSchemeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6318,22 +5592,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getForceNightMode(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getForceNightMode(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6341,24 +5609,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val forceNightModeArg = args[1] as NavigationForceNightModeDto - val wrapped: List = - try { - api.setForceNightMode(viewIdArg, forceNightModeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setForceNightMode(viewIdArg, forceNightModeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6368,47 +5630,25 @@ interface MapViewApi { } } } - /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface ImageRegistryApi { - fun registerBitmapImage( - imageId: String, - bytes: ByteArray, - imagePixelRatio: Double, - width: Double?, - height: Double?, - ): ImageDescriptorDto - + fun registerBitmapImage(imageId: String, bytes: ByteArray, imagePixelRatio: Double, width: Double?, height: Double?): ImageDescriptorDto fun unregisterImage(imageDescriptor: ImageDescriptorDto) - fun getRegisteredImages(): List - fun clearRegisteredImages(filter: RegisteredImageTypeDto?) - fun getRegisteredImageData(imageDescriptor: ImageDescriptorDto): ByteArray? companion object { /** The codec used by ImageRegistryApi. */ - val codec: MessageCodec by lazy { messagesPigeonCodec() } - - /** - * Sets up an instance of `ImageRegistryApi` to handle messages through the `binaryMessenger`. - */ + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } + /** Sets up an instance of `ImageRegistryApi` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp( - binaryMessenger: BinaryMessenger, - api: ImageRegistryApi?, - messageChannelSuffix: String = "", - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp(binaryMessenger: BinaryMessenger, api: ImageRegistryApi?, messageChannelSuffix: String = "") { + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6417,20 +5657,11 @@ interface ImageRegistryApi { val imagePixelRatioArg = args[2] as Double val widthArg = args[3] as Double? val heightArg = args[4] as Double? - val wrapped: List = - try { - listOf( - api.registerBitmapImage( - imageIdArg, - bytesArg, - imagePixelRatioArg, - widthArg, - heightArg, - ) - ) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.registerBitmapImage(imageIdArg, bytesArg, imagePixelRatioArg, widthArg, heightArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6438,23 +5669,17 @@ interface ImageRegistryApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val imageDescriptorArg = args[0] as ImageDescriptorDto - val wrapped: List = - try { - api.unregisterImage(imageDescriptorArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.unregisterImage(imageDescriptorArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6462,20 +5687,14 @@ interface ImageRegistryApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getRegisteredImages()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getRegisteredImages()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6483,23 +5702,17 @@ interface ImageRegistryApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val filterArg = args[0] as RegisteredImageTypeDto? - val wrapped: List = - try { - api.clearRegisteredImages(filterArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearRegisteredImages(filterArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6507,22 +5720,16 @@ interface ImageRegistryApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val imageDescriptorArg = args[0] as ImageDescriptorDto - val wrapped: List = - try { - listOf(api.getRegisteredImageData(imageDescriptorArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getRegisteredImageData(imageDescriptorArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6532,22 +5739,18 @@ interface ImageRegistryApi { } } } - /** Generated class from Pigeon that represents Flutter messages that can be called from Kotlin. */ -class ViewEventApi( - private val binaryMessenger: BinaryMessenger, - private val messageChannelSuffix: String = "", -) { +class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val messageChannelSuffix: String = "") { companion object { /** The codec used by ViewEventApi. */ - val codec: MessageCodec by lazy { messagesPigeonCodec() } + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } } - - fun onMapClickEvent(viewIdArg: Long, latLngArg: LatLngDto, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent$separatedMessageChannelSuffix" + fun onMapClickEvent(viewIdArg: Long, latLngArg: LatLngDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, latLngArg)) { if (it is List<*>) { @@ -6561,12 +5764,10 @@ class ViewEventApi( } } } - - fun onMapLongClickEvent(viewIdArg: Long, latLngArg: LatLngDto, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent$separatedMessageChannelSuffix" + fun onMapLongClickEvent(viewIdArg: Long, latLngArg: LatLngDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, latLngArg)) { if (it is List<*>) { @@ -6580,12 +5781,10 @@ class ViewEventApi( } } } - - fun onRecenterButtonClicked(viewIdArg: Long, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked$separatedMessageChannelSuffix" + fun onRecenterButtonClicked(viewIdArg: Long, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg)) { if (it is List<*>) { @@ -6599,17 +5798,10 @@ class ViewEventApi( } } } - - fun onMarkerEvent( - viewIdArg: Long, - markerIdArg: String, - eventTypeArg: MarkerEventTypeDto, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent$separatedMessageChannelSuffix" + fun onMarkerEvent(viewIdArg: Long, markerIdArg: String, eventTypeArg: MarkerEventTypeDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, markerIdArg, eventTypeArg)) { if (it is List<*>) { @@ -6623,18 +5815,10 @@ class ViewEventApi( } } } - - fun onMarkerDragEvent( - viewIdArg: Long, - markerIdArg: String, - eventTypeArg: MarkerDragEventTypeDto, - positionArg: LatLngDto, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent$separatedMessageChannelSuffix" + fun onMarkerDragEvent(viewIdArg: Long, markerIdArg: String, eventTypeArg: MarkerDragEventTypeDto, positionArg: LatLngDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, markerIdArg, eventTypeArg, positionArg)) { if (it is List<*>) { @@ -6648,12 +5832,10 @@ class ViewEventApi( } } } - - fun onPolygonClicked(viewIdArg: Long, polygonIdArg: String, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked$separatedMessageChannelSuffix" + fun onPolygonClicked(viewIdArg: Long, polygonIdArg: String, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, polygonIdArg)) { if (it is List<*>) { @@ -6667,12 +5849,10 @@ class ViewEventApi( } } } - - fun onPolylineClicked(viewIdArg: Long, polylineIdArg: String, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked$separatedMessageChannelSuffix" + fun onPolylineClicked(viewIdArg: Long, polylineIdArg: String, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, polylineIdArg)) { if (it is List<*>) { @@ -6686,12 +5866,10 @@ class ViewEventApi( } } } - - fun onCircleClicked(viewIdArg: Long, circleIdArg: String, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked$separatedMessageChannelSuffix" + fun onCircleClicked(viewIdArg: Long, circleIdArg: String, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, circleIdArg)) { if (it is List<*>) { @@ -6705,16 +5883,10 @@ class ViewEventApi( } } } - - fun onPoiClick( - viewIdArg: Long, - pointOfInterestArg: PointOfInterestDto, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick$separatedMessageChannelSuffix" + fun onPoiClick(viewIdArg: Long, pointOfInterestArg: PointOfInterestDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, pointOfInterestArg)) { if (it is List<*>) { @@ -6728,16 +5900,10 @@ class ViewEventApi( } } } - - fun onNavigationUIEnabledChanged( - viewIdArg: Long, - navigationUIEnabledArg: Boolean, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged$separatedMessageChannelSuffix" + fun onNavigationUIEnabledChanged(viewIdArg: Long, navigationUIEnabledArg: Boolean, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, navigationUIEnabledArg)) { if (it is List<*>) { @@ -6751,16 +5917,10 @@ class ViewEventApi( } } } - - fun onPromptVisibilityChanged( - viewIdArg: Long, - promptVisibleArg: Boolean, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged$separatedMessageChannelSuffix" + fun onPromptVisibilityChanged(viewIdArg: Long, promptVisibleArg: Boolean, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, promptVisibleArg)) { if (it is List<*>) { @@ -6774,12 +5934,10 @@ class ViewEventApi( } } } - - fun onMyLocationClicked(viewIdArg: Long, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked$separatedMessageChannelSuffix" + fun onMyLocationClicked(viewIdArg: Long, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg)) { if (it is List<*>) { @@ -6793,12 +5951,10 @@ class ViewEventApi( } } } - - fun onMyLocationButtonClicked(viewIdArg: Long, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked$separatedMessageChannelSuffix" + fun onMyLocationButtonClicked(viewIdArg: Long, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg)) { if (it is List<*>) { @@ -6812,16 +5968,10 @@ class ViewEventApi( } } } - - fun onIndoorFocusedBuildingChanged( - viewIdArg: Long, - buildingArg: IndoorBuildingDto?, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged$separatedMessageChannelSuffix" + fun onIndoorFocusedBuildingChanged(viewIdArg: Long, buildingArg: IndoorBuildingDto?, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, buildingArg)) { if (it is List<*>) { @@ -6835,16 +5985,10 @@ class ViewEventApi( } } } - - fun onIndoorActiveLevelChanged( - viewIdArg: Long, - buildingArg: IndoorBuildingDto?, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged$separatedMessageChannelSuffix" + fun onIndoorActiveLevelChanged(viewIdArg: Long, buildingArg: IndoorBuildingDto?, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, buildingArg)) { if (it is List<*>) { @@ -6858,17 +6002,10 @@ class ViewEventApi( } } } - - fun onCameraChanged( - viewIdArg: Long, - eventTypeArg: CameraEventTypeDto, - positionArg: CameraPositionDto, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged$separatedMessageChannelSuffix" + fun onCameraChanged(viewIdArg: Long, eventTypeArg: CameraEventTypeDto, positionArg: CameraPositionDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, eventTypeArg, positionArg)) { if (it is List<*>) { @@ -6883,148 +6020,62 @@ class ViewEventApi( } } } - /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface NavigationSessionApi { - fun createNavigationSession( - abnormalTerminationReportingEnabled: Boolean, - behavior: TaskRemovedBehaviorDto, - notificationId: Long?, - defaultMessage: String?, - resumeAppOnTap: Boolean?, - callback: (Result) -> Unit, - ) - + fun createNavigationSession(abnormalTerminationReportingEnabled: Boolean, behavior: TaskRemovedBehaviorDto, notificationOptions: NavigationNotificationOptionsDto?, callback: (Result) -> Unit) fun isInitialized(): Boolean - fun cleanup(resetSession: Boolean) - - fun showTermsAndConditionsDialog( - title: String, - companyName: String, - shouldOnlyShowDriverAwarenessDisclaimer: Boolean, - uiParams: TermsAndConditionsUIParamsDto?, - callback: (Result) -> Unit, - ) - + fun showTermsAndConditionsDialog(title: String, companyName: String, shouldOnlyShowDriverAwarenessDisclaimer: Boolean, uiParams: TermsAndConditionsUIParamsDto?, callback: (Result) -> Unit) fun areTermsAccepted(): Boolean - fun resetTermsAccepted() - fun getNavSDKVersion(): String - fun isGuidanceRunning(): Boolean - fun startGuidance() - fun stopGuidance() - fun setDestinations(destinations: DestinationsDto, callback: (Result) -> Unit) - fun clearDestinations() - fun continueToNextDestination(callback: (Result) -> Unit) - fun getCurrentTimeAndDistance(): NavigationTimeAndDistanceDto - fun setAudioGuidance(settings: NavigationAudioGuidanceSettingsDto) - fun setSpeedAlertOptions(options: SpeedAlertOptionsDto) - fun getRouteSegments(): List - fun getTraveledRoute(): List - fun getCurrentRouteSegment(): RouteSegmentDto? - fun setUserLocation(location: LatLngDto) - fun removeUserLocation() - fun simulateLocationsAlongExistingRoute() - fun simulateLocationsAlongExistingRouteWithOptions(options: SimulationOptionsDto) - - fun simulateLocationsAlongNewRoute( - waypoints: List, - callback: (Result) -> Unit, - ) - - fun simulateLocationsAlongNewRouteWithRoutingOptions( - waypoints: List, - routingOptions: RoutingOptionsDto, - callback: (Result) -> Unit, - ) - - fun simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( - waypoints: List, - routingOptions: RoutingOptionsDto, - simulationOptions: SimulationOptionsDto, - callback: (Result) -> Unit, - ) - + fun simulateLocationsAlongNewRoute(waypoints: List, callback: (Result) -> Unit) + fun simulateLocationsAlongNewRouteWithRoutingOptions(waypoints: List, routingOptions: RoutingOptionsDto, callback: (Result) -> Unit) + fun simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(waypoints: List, routingOptions: RoutingOptionsDto, simulationOptions: SimulationOptionsDto, callback: (Result) -> Unit) fun pauseSimulation() - fun resumeSimulation() - /** iOS-only method. */ fun allowBackgroundLocationUpdates(allow: Boolean) - fun enableRoadSnappedLocationUpdates() - fun disableRoadSnappedLocationUpdates() - - fun enableTurnByTurnNavigationEvents( - numNextStepsToPreview: Long?, - options: StepImageGenerationOptionsDto?, - ) - + fun enableTurnByTurnNavigationEvents(numNextStepsToPreview: Long?, options: StepImageGenerationOptionsDto?) fun disableTurnByTurnNavigationEvents() - - fun registerRemainingTimeOrDistanceChangedListener( - remainingTimeThresholdSeconds: Long, - remainingDistanceThresholdMeters: Long, - ) + fun registerRemainingTimeOrDistanceChangedListener(remainingTimeThresholdSeconds: Long, remainingDistanceThresholdMeters: Long) companion object { /** The codec used by NavigationSessionApi. */ - val codec: MessageCodec by lazy { messagesPigeonCodec() } - - /** - * Sets up an instance of `NavigationSessionApi` to handle messages through the - * `binaryMessenger`. - */ + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } + /** Sets up an instance of `NavigationSessionApi` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp( - binaryMessenger: BinaryMessenger, - api: NavigationSessionApi?, - messageChannelSuffix: String = "", - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp(binaryMessenger: BinaryMessenger, api: NavigationSessionApi?, messageChannelSuffix: String = "") { + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val abnormalTerminationReportingEnabledArg = args[0] as Boolean val behaviorArg = args[1] as TaskRemovedBehaviorDto - val notificationIdArg = args[2] as Long? - val defaultMessageArg = args[3] as String? - val resumeAppOnTapArg = args[4] as Boolean? - api.createNavigationSession( - abnormalTerminationReportingEnabledArg, - behaviorArg, - notificationIdArg, - defaultMessageArg, - resumeAppOnTapArg, - ) { - result: Result -> + val notificationOptionsArg = args[2] as NavigationNotificationOptionsDto? + api.createNavigationSession(abnormalTerminationReportingEnabledArg, behaviorArg, notificationOptionsArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -7038,20 +6089,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isInitialized()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isInitialized()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7059,23 +6104,17 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val resetSessionArg = args[0] as Boolean - val wrapped: List = - try { - api.cleanup(resetSessionArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.cleanup(resetSessionArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7083,12 +6122,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7096,12 +6130,7 @@ interface NavigationSessionApi { val companyNameArg = args[1] as String val shouldOnlyShowDriverAwarenessDisclaimerArg = args[2] as Boolean val uiParamsArg = args[3] as TermsAndConditionsUIParamsDto? - api.showTermsAndConditionsDialog( - titleArg, - companyNameArg, - shouldOnlyShowDriverAwarenessDisclaimerArg, - uiParamsArg, - ) { result: Result -> + api.showTermsAndConditionsDialog(titleArg, companyNameArg, shouldOnlyShowDriverAwarenessDisclaimerArg, uiParamsArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -7116,20 +6145,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.areTermsAccepted()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.areTermsAccepted()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7137,21 +6160,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.resetTermsAccepted() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.resetTermsAccepted() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7159,20 +6176,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getNavSDKVersion()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getNavSDKVersion()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7180,20 +6191,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isGuidanceRunning()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isGuidanceRunning()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7201,21 +6206,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.startGuidance() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.startGuidance() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7223,21 +6222,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.stopGuidance() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.stopGuidance() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7245,12 +6238,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7270,21 +6258,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.clearDestinations() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearDestinations() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7292,15 +6274,10 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - api.continueToNextDestination { result: Result -> + api.continueToNextDestination{ result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -7315,20 +6292,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getCurrentTimeAndDistance()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getCurrentTimeAndDistance()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7336,23 +6307,17 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val settingsArg = args[0] as NavigationAudioGuidanceSettingsDto - val wrapped: List = - try { - api.setAudioGuidance(settingsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setAudioGuidance(settingsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7360,23 +6325,17 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val optionsArg = args[0] as SpeedAlertOptionsDto - val wrapped: List = - try { - api.setSpeedAlertOptions(optionsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setSpeedAlertOptions(optionsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7384,20 +6343,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getRouteSegments()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getRouteSegments()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7405,20 +6358,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getTraveledRoute()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getTraveledRoute()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7426,20 +6373,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getCurrentRouteSegment()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getCurrentRouteSegment()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7447,23 +6388,17 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val locationArg = args[0] as LatLngDto - val wrapped: List = - try { - api.setUserLocation(locationArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setUserLocation(locationArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7471,21 +6406,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.removeUserLocation() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removeUserLocation() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7493,21 +6422,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.simulateLocationsAlongExistingRoute() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.simulateLocationsAlongExistingRoute() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7515,23 +6438,17 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val optionsArg = args[0] as SimulationOptionsDto - val wrapped: List = - try { - api.simulateLocationsAlongExistingRouteWithOptions(optionsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.simulateLocationsAlongExistingRouteWithOptions(optionsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7539,12 +6456,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7564,19 +6476,13 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val waypointsArg = args[0] as List val routingOptionsArg = args[1] as RoutingOptionsDto - api.simulateLocationsAlongNewRouteWithRoutingOptions(waypointsArg, routingOptionsArg) { - result: Result -> + api.simulateLocationsAlongNewRouteWithRoutingOptions(waypointsArg, routingOptionsArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -7591,23 +6497,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val waypointsArg = args[0] as List val routingOptionsArg = args[1] as RoutingOptionsDto val simulationOptionsArg = args[2] as SimulationOptionsDto - api.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( - waypointsArg, - routingOptionsArg, - simulationOptionsArg, - ) { result: Result -> + api.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(waypointsArg, routingOptionsArg, simulationOptionsArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -7622,21 +6519,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.pauseSimulation() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.pauseSimulation() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7644,21 +6535,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.resumeSimulation() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.resumeSimulation() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7666,23 +6551,17 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val allowArg = args[0] as Boolean - val wrapped: List = - try { - api.allowBackgroundLocationUpdates(allowArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.allowBackgroundLocationUpdates(allowArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7690,21 +6569,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.enableRoadSnappedLocationUpdates() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.enableRoadSnappedLocationUpdates() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7712,21 +6585,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.disableRoadSnappedLocationUpdates() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.disableRoadSnappedLocationUpdates() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7734,24 +6601,18 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val numNextStepsToPreviewArg = args[0] as Long? val optionsArg = args[1] as StepImageGenerationOptionsDto? - val wrapped: List = - try { - api.enableTurnByTurnNavigationEvents(numNextStepsToPreviewArg, optionsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.enableTurnByTurnNavigationEvents(numNextStepsToPreviewArg, optionsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7759,21 +6620,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.disableTurnByTurnNavigationEvents() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.disableTurnByTurnNavigationEvents() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7781,27 +6636,18 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val remainingTimeThresholdSecondsArg = args[0] as Long val remainingDistanceThresholdMetersArg = args[1] as Long - val wrapped: List = - try { - api.registerRemainingTimeOrDistanceChangedListener( - remainingTimeThresholdSecondsArg, - remainingDistanceThresholdMetersArg, - ) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.registerRemainingTimeOrDistanceChangedListener(remainingTimeThresholdSecondsArg, remainingDistanceThresholdMetersArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7811,22 +6657,18 @@ interface NavigationSessionApi { } } } - /** Generated class from Pigeon that represents Flutter messages that can be called from Kotlin. */ -class NavigationSessionEventApi( - private val binaryMessenger: BinaryMessenger, - private val messageChannelSuffix: String = "", -) { +class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, private val messageChannelSuffix: String = "") { companion object { /** The codec used by NavigationSessionEventApi. */ - val codec: MessageCodec by lazy { messagesPigeonCodec() } + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } } - - fun onSpeedingUpdated(msgArg: SpeedingUpdatedEventDto, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated$separatedMessageChannelSuffix" + fun onSpeedingUpdated(msgArg: SpeedingUpdatedEventDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(msgArg)) { if (it is List<*>) { @@ -7840,12 +6682,10 @@ class NavigationSessionEventApi( } } } - - fun onRoadSnappedLocationUpdated(locationArg: LatLngDto, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated$separatedMessageChannelSuffix" + fun onRoadSnappedLocationUpdated(locationArg: LatLngDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(locationArg)) { if (it is List<*>) { @@ -7859,12 +6699,10 @@ class NavigationSessionEventApi( } } } - - fun onRoadSnappedRawLocationUpdated(locationArg: LatLngDto, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated$separatedMessageChannelSuffix" + fun onRoadSnappedRawLocationUpdated(locationArg: LatLngDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(locationArg)) { if (it is List<*>) { @@ -7878,12 +6716,10 @@ class NavigationSessionEventApi( } } } - - fun onArrival(waypointArg: NavigationWaypointDto, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival$separatedMessageChannelSuffix" + fun onArrival(waypointArg: NavigationWaypointDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(waypointArg)) { if (it is List<*>) { @@ -7897,12 +6733,10 @@ class NavigationSessionEventApi( } } } - - fun onRouteChanged(callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged$separatedMessageChannelSuffix" + fun onRouteChanged(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -7916,17 +6750,10 @@ class NavigationSessionEventApi( } } } - - fun onRemainingTimeOrDistanceChanged( - remainingTimeArg: Double, - remainingDistanceArg: Double, - delaySeverityArg: TrafficDelaySeverityDto, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged$separatedMessageChannelSuffix" + fun onRemainingTimeOrDistanceChanged(remainingTimeArg: Double, remainingDistanceArg: Double, delaySeverityArg: TrafficDelaySeverityDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(remainingTimeArg, remainingDistanceArg, delaySeverityArg)) { if (it is List<*>) { @@ -7940,13 +6767,11 @@ class NavigationSessionEventApi( } } } - /** Android-only event. */ - fun onTrafficUpdated(callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated$separatedMessageChannelSuffix" + fun onTrafficUpdated(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -7960,13 +6785,11 @@ class NavigationSessionEventApi( } } } - /** Android-only event. */ - fun onRerouting(callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting$separatedMessageChannelSuffix" + fun onRerouting(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -7980,13 +6803,11 @@ class NavigationSessionEventApi( } } } - /** Android-only event. */ - fun onGpsAvailabilityUpdate(availableArg: Boolean, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate$separatedMessageChannelSuffix" + fun onGpsAvailabilityUpdate(availableArg: Boolean, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(availableArg)) { if (it is List<*>) { @@ -8000,16 +6821,11 @@ class NavigationSessionEventApi( } } } - /** Android-only event. */ - fun onGpsAvailabilityChange( - eventArg: GpsAvailabilityChangeEventDto, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange$separatedMessageChannelSuffix" + fun onGpsAvailabilityChange(eventArg: GpsAvailabilityChangeEventDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(eventArg)) { if (it is List<*>) { @@ -8023,13 +6839,11 @@ class NavigationSessionEventApi( } } } - /** Turn-by-Turn navigation events. */ - fun onNavInfo(navInfoArg: NavInfoDto, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo$separatedMessageChannelSuffix" + fun onNavInfo(navInfoArg: NavInfoDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(navInfoArg)) { if (it is List<*>) { @@ -8043,13 +6857,14 @@ class NavigationSessionEventApi( } } } - - /** Navigation session event. Called when a new navigation session starts with active guidance. */ - fun onNewNavigationSession(callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNewNavigationSession$separatedMessageChannelSuffix" + /** + * Navigation session event. Called when a new navigation + * session starts with active guidance. + */ + fun onNewNavigationSession(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNewNavigationSession$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -8064,265 +6879,133 @@ class NavigationSessionEventApi( } } } - /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface AutoMapViewApi { /** - * Sets the map options to be used for Android Auto and CarPlay views. Should be called before the - * Auto/CarPlay screen is created. This allows customization of mapId and basic map settings. + * Sets the map options to be used for Android Auto and CarPlay views. + * Should be called before the Auto/CarPlay screen is created. + * This allows customization of mapId and basic map settings. */ fun setAutoMapOptions(mapOptions: AutoMapOptionsDto) - fun isMyLocationEnabled(): Boolean - fun setMyLocationEnabled(enabled: Boolean) - fun getMyLocation(): LatLngDto? - fun getMapType(): MapTypeDto - fun setMapType(mapType: MapTypeDto) - fun setMapStyle(styleJson: String) - fun getCameraPosition(): CameraPositionDto - fun getVisibleRegion(): LatLngBoundsDto - fun followMyLocation(perspective: CameraPerspectiveDto, zoomLevel: Double?) - - fun animateCameraToCameraPosition( - cameraPosition: CameraPositionDto, - duration: Long?, - callback: (Result) -> Unit, - ) - + fun animateCameraToCameraPosition(cameraPosition: CameraPositionDto, duration: Long?, callback: (Result) -> Unit) fun animateCameraToLatLng(point: LatLngDto, duration: Long?, callback: (Result) -> Unit) - - fun animateCameraToLatLngBounds( - bounds: LatLngBoundsDto, - padding: Double, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraToLatLngZoom( - point: LatLngDto, - zoom: Double, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraByScroll( - scrollByDx: Double, - scrollByDy: Double, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraByZoom( - zoomBy: Double, - focusDx: Double?, - focusDy: Double?, - duration: Long?, - callback: (Result) -> Unit, - ) - + fun animateCameraToLatLngBounds(bounds: LatLngBoundsDto, padding: Double, duration: Long?, callback: (Result) -> Unit) + fun animateCameraToLatLngZoom(point: LatLngDto, zoom: Double, duration: Long?, callback: (Result) -> Unit) + fun animateCameraByScroll(scrollByDx: Double, scrollByDy: Double, duration: Long?, callback: (Result) -> Unit) + fun animateCameraByZoom(zoomBy: Double, focusDx: Double?, focusDy: Double?, duration: Long?, callback: (Result) -> Unit) fun animateCameraToZoom(zoom: Double, duration: Long?, callback: (Result) -> Unit) - fun moveCameraToCameraPosition(cameraPosition: CameraPositionDto) - fun moveCameraToLatLng(point: LatLngDto) - fun moveCameraToLatLngBounds(bounds: LatLngBoundsDto, padding: Double) - fun moveCameraToLatLngZoom(point: LatLngDto, zoom: Double) - fun moveCameraByScroll(scrollByDx: Double, scrollByDy: Double) - fun moveCameraByZoom(zoomBy: Double, focusDx: Double?, focusDy: Double?) - fun moveCameraToZoom(zoom: Double) - fun getMinZoomPreference(): Double - fun getMaxZoomPreference(): Double - fun resetMinMaxZoomPreference() - fun setMinZoomPreference(minZoomPreference: Double) - fun setMaxZoomPreference(maxZoomPreference: Double) - fun setMyLocationButtonEnabled(enabled: Boolean) - fun setConsumeMyLocationButtonClickEventsEnabled(enabled: Boolean) - fun setZoomGesturesEnabled(enabled: Boolean) - fun setZoomControlsEnabled(enabled: Boolean) - fun setCompassEnabled(enabled: Boolean) - fun setRotateGesturesEnabled(enabled: Boolean) - fun setScrollGesturesEnabled(enabled: Boolean) - fun setScrollGesturesDuringRotateOrZoomEnabled(enabled: Boolean) - fun setTiltGesturesEnabled(enabled: Boolean) - fun setMapToolbarEnabled(enabled: Boolean) - fun setTrafficEnabled(enabled: Boolean) - fun setTrafficPromptsEnabled(enabled: Boolean) - fun setTrafficIncidentCardsEnabled(enabled: Boolean) - fun setNavigationTripProgressBarEnabled(enabled: Boolean) - fun setSpeedLimitIconEnabled(enabled: Boolean) - fun setSpeedometerEnabled(enabled: Boolean) - fun setNavigationUIEnabled(enabled: Boolean) - fun isMyLocationButtonEnabled(): Boolean - fun isConsumeMyLocationButtonClickEventsEnabled(): Boolean - fun isZoomGesturesEnabled(): Boolean - fun isZoomControlsEnabled(): Boolean - fun isCompassEnabled(): Boolean - fun isRotateGesturesEnabled(): Boolean - fun isScrollGesturesEnabled(): Boolean - fun isScrollGesturesEnabledDuringRotateOrZoom(): Boolean - fun isTiltGesturesEnabled(): Boolean - fun isMapToolbarEnabled(): Boolean - fun isTrafficEnabled(): Boolean - fun isTrafficPromptsEnabled(): Boolean - fun isTrafficIncidentCardsEnabled(): Boolean - fun isNavigationTripProgressBarEnabled(): Boolean - fun isSpeedLimitIconEnabled(): Boolean - fun isSpeedometerEnabled(): Boolean - fun isNavigationUIEnabled(): Boolean - fun isIndoorEnabled(): Boolean - fun setIndoorEnabled(enabled: Boolean) - fun getFocusedIndoorBuilding(): IndoorBuildingDto? - fun activateIndoorLevel(levelIndex: Long) - fun showRouteOverview() - fun getMarkers(): List - fun addMarkers(markers: List): List - fun updateMarkers(markers: List): List - fun removeMarkers(markers: List) - fun clearMarkers() - fun clear() - fun getPolygons(): List - fun addPolygons(polygons: List): List - fun updatePolygons(polygons: List): List - fun removePolygons(polygons: List) - fun clearPolygons() - fun getPolylines(): List - fun addPolylines(polylines: List): List - fun updatePolylines(polylines: List): List - fun removePolylines(polylines: List) - fun clearPolylines() - fun getCircles(): List - fun addCircles(circles: List): List - fun updateCircles(circles: List): List - fun removeCircles(circles: List) - fun clearCircles() - fun enableOnCameraChangedEvents() - fun isAutoScreenAvailable(): Boolean - fun setPadding(padding: MapPaddingDto) - fun getPadding(): MapPaddingDto - fun getMapColorScheme(): MapColorSchemeDto - fun setMapColorScheme(mapColorScheme: MapColorSchemeDto) - fun getForceNightMode(): NavigationForceNightModeDto - fun setForceNightMode(forceNightMode: NavigationForceNightModeDto) - fun sendCustomNavigationAutoEvent(event: String, data: Any) companion object { /** The codec used by AutoMapViewApi. */ - val codec: MessageCodec by lazy { messagesPigeonCodec() } - + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } /** Sets up an instance of `AutoMapViewApi` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp( - binaryMessenger: BinaryMessenger, - api: AutoMapViewApi?, - messageChannelSuffix: String = "", - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp(binaryMessenger: BinaryMessenger, api: AutoMapViewApi?, messageChannelSuffix: String = "") { + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val mapOptionsArg = args[0] as AutoMapOptionsDto - val wrapped: List = - try { - api.setAutoMapOptions(mapOptionsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setAutoMapOptions(mapOptionsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8330,20 +7013,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isMyLocationEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isMyLocationEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8351,23 +7028,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setMyLocationEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMyLocationEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8375,20 +7046,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getMyLocation()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMyLocation()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8396,20 +7061,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getMapType()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMapType()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8417,23 +7076,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val mapTypeArg = args[0] as MapTypeDto - val wrapped: List = - try { - api.setMapType(mapTypeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMapType(mapTypeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8441,23 +7094,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val styleJsonArg = args[0] as String - val wrapped: List = - try { - api.setMapStyle(styleJsonArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMapStyle(styleJsonArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8465,20 +7112,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getCameraPosition()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getCameraPosition()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8486,20 +7127,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getVisibleRegion()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getVisibleRegion()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8507,24 +7142,18 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val perspectiveArg = args[0] as CameraPerspectiveDto val zoomLevelArg = args[1] as Double? - val wrapped: List = - try { - api.followMyLocation(perspectiveArg, zoomLevelArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.followMyLocation(perspectiveArg, zoomLevelArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8532,19 +7161,13 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val cameraPositionArg = args[0] as CameraPositionDto val durationArg = args[1] as Long? - api.animateCameraToCameraPosition(cameraPositionArg, durationArg) { - result: Result -> + api.animateCameraToCameraPosition(cameraPositionArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -8559,12 +7182,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -8585,20 +7203,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val boundsArg = args[0] as LatLngBoundsDto val paddingArg = args[1] as Double val durationArg = args[2] as Long? - api.animateCameraToLatLngBounds(boundsArg, paddingArg, durationArg) { - result: Result -> + api.animateCameraToLatLngBounds(boundsArg, paddingArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -8613,20 +7225,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pointArg = args[0] as LatLngDto val zoomArg = args[1] as Double val durationArg = args[2] as Long? - api.animateCameraToLatLngZoom(pointArg, zoomArg, durationArg) { result: Result - -> + api.animateCameraToLatLngZoom(pointArg, zoomArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -8641,20 +7247,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val scrollByDxArg = args[0] as Double val scrollByDyArg = args[1] as Double val durationArg = args[2] as Long? - api.animateCameraByScroll(scrollByDxArg, scrollByDyArg, durationArg) { - result: Result -> + api.animateCameraByScroll(scrollByDxArg, scrollByDyArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -8669,12 +7269,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -8682,8 +7277,7 @@ interface AutoMapViewApi { val focusDxArg = args[1] as Double? val focusDyArg = args[2] as Double? val durationArg = args[3] as Long? - api.animateCameraByZoom(zoomByArg, focusDxArg, focusDyArg, durationArg) { - result: Result -> + api.animateCameraByZoom(zoomByArg, focusDxArg, focusDyArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -8698,12 +7292,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -8724,23 +7313,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val cameraPositionArg = args[0] as CameraPositionDto - val wrapped: List = - try { - api.moveCameraToCameraPosition(cameraPositionArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToCameraPosition(cameraPositionArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8748,23 +7331,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pointArg = args[0] as LatLngDto - val wrapped: List = - try { - api.moveCameraToLatLng(pointArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToLatLng(pointArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8772,24 +7349,18 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val boundsArg = args[0] as LatLngBoundsDto val paddingArg = args[1] as Double - val wrapped: List = - try { - api.moveCameraToLatLngBounds(boundsArg, paddingArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToLatLngBounds(boundsArg, paddingArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8797,24 +7368,18 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pointArg = args[0] as LatLngDto val zoomArg = args[1] as Double - val wrapped: List = - try { - api.moveCameraToLatLngZoom(pointArg, zoomArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToLatLngZoom(pointArg, zoomArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8822,24 +7387,18 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val scrollByDxArg = args[0] as Double val scrollByDyArg = args[1] as Double - val wrapped: List = - try { - api.moveCameraByScroll(scrollByDxArg, scrollByDyArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraByScroll(scrollByDxArg, scrollByDyArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8847,25 +7406,19 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val zoomByArg = args[0] as Double val focusDxArg = args[1] as Double? val focusDyArg = args[2] as Double? - val wrapped: List = - try { - api.moveCameraByZoom(zoomByArg, focusDxArg, focusDyArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraByZoom(zoomByArg, focusDxArg, focusDyArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8873,23 +7426,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val zoomArg = args[0] as Double - val wrapped: List = - try { - api.moveCameraToZoom(zoomArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToZoom(zoomArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8897,20 +7444,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getMinZoomPreference()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMinZoomPreference()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8918,20 +7459,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getMaxZoomPreference()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMaxZoomPreference()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8939,21 +7474,15 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.resetMinMaxZoomPreference() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.resetMinMaxZoomPreference() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8961,23 +7490,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val minZoomPreferenceArg = args[0] as Double - val wrapped: List = - try { - api.setMinZoomPreference(minZoomPreferenceArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMinZoomPreference(minZoomPreferenceArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8985,23 +7508,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val maxZoomPreferenceArg = args[0] as Double - val wrapped: List = - try { - api.setMaxZoomPreference(maxZoomPreferenceArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMaxZoomPreference(maxZoomPreferenceArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9009,23 +7526,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setMyLocationButtonEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMyLocationButtonEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9033,23 +7544,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setConsumeMyLocationButtonClickEventsEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setConsumeMyLocationButtonClickEventsEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9057,23 +7562,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setZoomGesturesEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setZoomGesturesEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9081,23 +7580,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setZoomControlsEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setZoomControlsEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9105,23 +7598,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setCompassEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setCompassEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9129,23 +7616,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setRotateGesturesEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setRotateGesturesEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9153,23 +7634,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setScrollGesturesEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setScrollGesturesEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9177,23 +7652,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setScrollGesturesDuringRotateOrZoomEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setScrollGesturesDuringRotateOrZoomEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9201,23 +7670,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setTiltGesturesEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setTiltGesturesEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9225,23 +7688,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setMapToolbarEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMapToolbarEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9249,23 +7706,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setTrafficEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setTrafficEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9273,23 +7724,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setTrafficPromptsEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setTrafficPromptsEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9297,23 +7742,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setTrafficIncidentCardsEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setTrafficIncidentCardsEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9321,23 +7760,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setNavigationTripProgressBarEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setNavigationTripProgressBarEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9345,23 +7778,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setSpeedLimitIconEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setSpeedLimitIconEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9369,23 +7796,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setSpeedometerEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setSpeedometerEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9393,23 +7814,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setNavigationUIEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setNavigationUIEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9417,20 +7832,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isMyLocationButtonEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isMyLocationButtonEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9438,20 +7847,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isConsumeMyLocationButtonClickEventsEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isConsumeMyLocationButtonClickEventsEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9459,20 +7862,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isZoomGesturesEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isZoomGesturesEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9480,20 +7877,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isZoomControlsEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isZoomControlsEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9501,20 +7892,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isCompassEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isCompassEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9522,20 +7907,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isRotateGesturesEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isRotateGesturesEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9543,20 +7922,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isScrollGesturesEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isScrollGesturesEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9564,20 +7937,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isScrollGesturesEnabledDuringRotateOrZoom()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isScrollGesturesEnabledDuringRotateOrZoom()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9585,20 +7952,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isTiltGesturesEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isTiltGesturesEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9606,20 +7967,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isMapToolbarEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isMapToolbarEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9627,20 +7982,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isTrafficEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isTrafficEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9648,20 +7997,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isTrafficPromptsEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isTrafficPromptsEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9669,20 +8012,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isTrafficIncidentCardsEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isTrafficIncidentCardsEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9690,20 +8027,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isNavigationTripProgressBarEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isNavigationTripProgressBarEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9711,20 +8042,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isSpeedLimitIconEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isSpeedLimitIconEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9732,20 +8057,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isSpeedometerEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isSpeedometerEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9753,20 +8072,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isNavigationUIEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isNavigationUIEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9774,20 +8087,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isIndoorEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isIndoorEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9795,23 +8102,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setIndoorEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setIndoorEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9819,20 +8120,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getFocusedIndoorBuilding()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getFocusedIndoorBuilding()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9840,23 +8135,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val levelIndexArg = args[0] as Long - val wrapped: List = - try { - api.activateIndoorLevel(levelIndexArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.activateIndoorLevel(levelIndexArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9864,21 +8153,15 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.showRouteOverview() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.showRouteOverview() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9886,20 +8169,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getMarkers()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMarkers()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9907,22 +8184,16 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val markersArg = args[0] as List - val wrapped: List = - try { - listOf(api.addMarkers(markersArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.addMarkers(markersArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9930,22 +8201,16 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val markersArg = args[0] as List - val wrapped: List = - try { - listOf(api.updateMarkers(markersArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.updateMarkers(markersArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9953,23 +8218,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val markersArg = args[0] as List - val wrapped: List = - try { - api.removeMarkers(markersArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removeMarkers(markersArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9977,21 +8236,15 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.clearMarkers() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearMarkers() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9999,21 +8252,15 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.clear() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clear() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10021,20 +8268,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getPolygons()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getPolygons()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10042,22 +8283,16 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polygonsArg = args[0] as List - val wrapped: List = - try { - listOf(api.addPolygons(polygonsArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.addPolygons(polygonsArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10065,22 +8300,16 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polygonsArg = args[0] as List - val wrapped: List = - try { - listOf(api.updatePolygons(polygonsArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.updatePolygons(polygonsArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10088,23 +8317,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polygonsArg = args[0] as List - val wrapped: List = - try { - api.removePolygons(polygonsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removePolygons(polygonsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10112,21 +8335,15 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.clearPolygons() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearPolygons() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10134,20 +8351,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getPolylines()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getPolylines()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10155,22 +8366,16 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polylinesArg = args[0] as List - val wrapped: List = - try { - listOf(api.addPolylines(polylinesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.addPolylines(polylinesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10178,22 +8383,16 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polylinesArg = args[0] as List - val wrapped: List = - try { - listOf(api.updatePolylines(polylinesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.updatePolylines(polylinesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10201,23 +8400,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polylinesArg = args[0] as List - val wrapped: List = - try { - api.removePolylines(polylinesArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removePolylines(polylinesArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10225,21 +8418,15 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.clearPolylines() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearPolylines() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10247,20 +8434,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getCircles()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getCircles()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10268,22 +8449,16 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val circlesArg = args[0] as List - val wrapped: List = - try { - listOf(api.addCircles(circlesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.addCircles(circlesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10291,22 +8466,16 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val circlesArg = args[0] as List - val wrapped: List = - try { - listOf(api.updateCircles(circlesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.updateCircles(circlesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10314,23 +8483,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val circlesArg = args[0] as List - val wrapped: List = - try { - api.removeCircles(circlesArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removeCircles(circlesArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10338,21 +8501,15 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.clearCircles() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearCircles() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10360,21 +8517,15 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.enableOnCameraChangedEvents() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.enableOnCameraChangedEvents() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10382,20 +8533,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isAutoScreenAvailable()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isAutoScreenAvailable()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10403,23 +8548,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val paddingArg = args[0] as MapPaddingDto - val wrapped: List = - try { - api.setPadding(paddingArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setPadding(paddingArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10427,20 +8566,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getPadding()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getPadding()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10448,20 +8581,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getMapColorScheme()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMapColorScheme()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10469,23 +8596,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val mapColorSchemeArg = args[0] as MapColorSchemeDto - val wrapped: List = - try { - api.setMapColorScheme(mapColorSchemeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMapColorScheme(mapColorSchemeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10493,20 +8614,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getForceNightMode()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getForceNightMode()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10514,23 +8629,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val forceNightModeArg = args[0] as NavigationForceNightModeDto - val wrapped: List = - try { - api.setForceNightMode(forceNightModeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setForceNightMode(forceNightModeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10538,24 +8647,18 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val eventArg = args[0] as String val dataArg = args[1] as Any - val wrapped: List = - try { - api.sendCustomNavigationAutoEvent(eventArg, dataArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.sendCustomNavigationAutoEvent(eventArg, dataArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10565,26 +8668,18 @@ interface AutoMapViewApi { } } } - /** Generated class from Pigeon that represents Flutter messages that can be called from Kotlin. */ -class AutoViewEventApi( - private val binaryMessenger: BinaryMessenger, - private val messageChannelSuffix: String = "", -) { +class AutoViewEventApi(private val binaryMessenger: BinaryMessenger, private val messageChannelSuffix: String = "") { companion object { /** The codec used by AutoViewEventApi. */ - val codec: MessageCodec by lazy { messagesPigeonCodec() } - } - - fun onCustomNavigationAutoEvent( - eventArg: String, - dataArg: Any, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent$separatedMessageChannelSuffix" + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } + } + fun onCustomNavigationAutoEvent(eventArg: String, dataArg: Any, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(eventArg, dataArg)) { if (it is List<*>) { @@ -10598,12 +8693,10 @@ class AutoViewEventApi( } } } - - fun onAutoScreenAvailabilityChanged(isAvailableArg: Boolean, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged$separatedMessageChannelSuffix" + fun onAutoScreenAvailabilityChanged(isAvailableArg: Boolean, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(isAvailableArg)) { if (it is List<*>) { @@ -10617,12 +8710,10 @@ class AutoViewEventApi( } } } - - fun onPromptVisibilityChanged(promptVisibleArg: Boolean, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged$separatedMessageChannelSuffix" + fun onPromptVisibilityChanged(promptVisibleArg: Boolean, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(promptVisibleArg)) { if (it is List<*>) { @@ -10636,15 +8727,10 @@ class AutoViewEventApi( } } } - - fun onNavigationUIEnabledChanged( - navigationUIEnabledArg: Boolean, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged$separatedMessageChannelSuffix" + fun onNavigationUIEnabledChanged(navigationUIEnabledArg: Boolean, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(navigationUIEnabledArg)) { if (it is List<*>) { @@ -10658,15 +8744,10 @@ class AutoViewEventApi( } } } - - fun onIndoorFocusedBuildingChanged( - buildingArg: IndoorBuildingDto?, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged$separatedMessageChannelSuffix" + fun onIndoorFocusedBuildingChanged(buildingArg: IndoorBuildingDto?, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(buildingArg)) { if (it is List<*>) { @@ -10680,15 +8761,10 @@ class AutoViewEventApi( } } } - - fun onIndoorActiveLevelChanged( - buildingArg: IndoorBuildingDto?, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged$separatedMessageChannelSuffix" + fun onIndoorActiveLevelChanged(buildingArg: IndoorBuildingDto?, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(buildingArg)) { if (it is List<*>) { @@ -10703,44 +8779,30 @@ class AutoViewEventApi( } } } - /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface NavigationInspector { fun isViewAttachedToSession(viewId: Long): Boolean companion object { /** The codec used by NavigationInspector. */ - val codec: MessageCodec by lazy { messagesPigeonCodec() } - - /** - * Sets up an instance of `NavigationInspector` to handle messages through the - * `binaryMessenger`. - */ + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } + /** Sets up an instance of `NavigationInspector` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp( - binaryMessenger: BinaryMessenger, - api: NavigationInspector?, - messageChannelSuffix: String = "", - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp(binaryMessenger: BinaryMessenger, api: NavigationInspector?, messageChannelSuffix: String = "") { + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isViewAttachedToSession(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isViewAttachedToSession(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { diff --git a/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationSessionMessageHandler.swift b/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationSessionMessageHandler.swift index 4fb4d9d0..077c67aa 100644 --- a/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationSessionMessageHandler.swift +++ b/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationSessionMessageHandler.swift @@ -69,9 +69,7 @@ class GoogleMapsNavigationSessionMessageHandler: NavigationSessionApi { // taskRemovedBehaviourValue is Android only value and not used on // iOS. behavior: TaskRemovedBehaviorDto, - notificationId: Int64?, - defaultMessage: String?, - resumeAppOnTap: Bool?, + notificationOptions: NavigationNotificationOptionsDto?, completion: @escaping (Result) -> Void ) { do { diff --git a/ios/google_navigation_flutter/Sources/google_navigation_flutter/messages.g.swift b/ios/google_navigation_flutter/Sources/google_navigation_flutter/messages.g.swift index f4bd8d6e..58b82c04 100644 --- a/ios/google_navigation_flutter/Sources/google_navigation_flutter/messages.g.swift +++ b/ios/google_navigation_flutter/Sources/google_navigation_flutter/messages.g.swift @@ -70,9 +70,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 { @@ -127,8 +125,8 @@ func deepEqualsmessages(_ lhs: Any?, _ rhs: Any?) -> Bool { func deepHashmessages(value: Any?, hasher: inout Hasher) { if let valueList = value as? [AnyHashable] { - for item in valueList { deepHashmessages(value: item, hasher: &hasher) } - return + for item in valueList { deepHashmessages(value: item, hasher: &hasher) } + return } if let valueDict = value as? [AnyHashable: AnyHashable] { @@ -146,6 +144,8 @@ func deepHashmessages(value: Any?, hasher: inout Hasher) { return hasher.combine(String(describing: value)) } + + /// Describes the type of map to construct. enum MapViewTypeDto: Int { /// Navigation view supports navigation overlay, and current navigation session is displayed on the map. @@ -517,6 +517,7 @@ struct AutoMapOptionsDto: Hashable { /// Determines the initial visibility of the navigation UI on map initialization. var navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> AutoMapOptionsDto? { let cameraPosition: CameraPositionDto? = nilOrValue(pigeonVar_list[0]) @@ -524,8 +525,7 @@ struct AutoMapOptionsDto: Hashable { let mapType: MapTypeDto? = nilOrValue(pigeonVar_list[2]) let mapColorScheme: MapColorSchemeDto? = nilOrValue(pigeonVar_list[3]) let forceNightMode: NavigationForceNightModeDto? = nilOrValue(pigeonVar_list[4]) - let navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto? = nilOrValue( - pigeonVar_list[5]) + let navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto? = nilOrValue(pigeonVar_list[5]) return AutoMapOptionsDto( cameraPosition: cameraPosition, @@ -547,8 +547,7 @@ struct AutoMapOptionsDto: Hashable { ] } static func == (lhs: AutoMapOptionsDto, rhs: AutoMapOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -593,6 +592,7 @@ struct MapOptionsDto: Hashable { /// The map color scheme mode for the map view. var mapColorScheme: MapColorSchemeDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> MapOptionsDto? { let cameraPosition = pigeonVar_list[0] as! CameraPositionDto @@ -652,8 +652,7 @@ struct MapOptionsDto: Hashable { ] } static func == (lhs: MapOptionsDto, rhs: MapOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -670,6 +669,7 @@ struct NavigationViewOptionsDto: Hashable { /// Controls the initial navigation header styling. var headerStylingOptions: NavigationHeaderStylingOptionsDto? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationViewOptionsDto? { let navigationUIEnabledPreference = pigeonVar_list[0] as! NavigationUIEnabledPreferenceDto @@ -690,8 +690,7 @@ struct NavigationViewOptionsDto: Hashable { ] } static func == (lhs: NavigationViewOptionsDto, rhs: NavigationViewOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -708,6 +707,7 @@ struct ViewCreationOptionsDto: Hashable { var mapOptions: MapOptionsDto var navigationViewOptions: NavigationViewOptionsDto? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> ViewCreationOptionsDto? { let mapViewType = pigeonVar_list[0] as! MapViewTypeDto @@ -728,8 +728,7 @@ struct ViewCreationOptionsDto: Hashable { ] } static func == (lhs: ViewCreationOptionsDto, rhs: ViewCreationOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -742,6 +741,7 @@ struct CameraPositionDto: Hashable { var tilt: Double var zoom: Double + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> CameraPositionDto? { let bearing = pigeonVar_list[0] as! Double @@ -765,8 +765,7 @@ struct CameraPositionDto: Hashable { ] } static func == (lhs: CameraPositionDto, rhs: CameraPositionDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -779,6 +778,7 @@ struct MarkerDto: Hashable { /// Options for marker var options: MarkerOptionsDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> MarkerDto? { let markerId = pigeonVar_list[0] as! String @@ -796,8 +796,7 @@ struct MarkerDto: Hashable { ] } static func == (lhs: MarkerDto, rhs: MarkerDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -817,6 +816,7 @@ struct MarkerOptionsDto: Hashable { var zIndex: Double var icon: ImageDescriptorDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> MarkerOptionsDto? { let alpha = pigeonVar_list[0] as! Double @@ -861,8 +861,7 @@ struct MarkerOptionsDto: Hashable { ] } static func == (lhs: MarkerOptionsDto, rhs: MarkerOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -876,6 +875,7 @@ struct ImageDescriptorDto: Hashable { var height: Double? = nil var type: RegisteredImageTypeDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> ImageDescriptorDto? { let registeredImageId: String? = nilOrValue(pigeonVar_list[0]) @@ -902,8 +902,7 @@ struct ImageDescriptorDto: Hashable { ] } static func == (lhs: ImageDescriptorDto, rhs: ImageDescriptorDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -915,6 +914,7 @@ struct InfoWindowDto: Hashable { var snippet: String? = nil var anchor: MarkerAnchorDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> InfoWindowDto? { let title: String? = nilOrValue(pigeonVar_list[0]) @@ -935,8 +935,7 @@ struct InfoWindowDto: Hashable { ] } static func == (lhs: InfoWindowDto, rhs: InfoWindowDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -947,6 +946,7 @@ struct MarkerAnchorDto: Hashable { var u: Double var v: Double + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> MarkerAnchorDto? { let u = pigeonVar_list[0] as! Double @@ -964,8 +964,7 @@ struct MarkerAnchorDto: Hashable { ] } static func == (lhs: MarkerAnchorDto, rhs: MarkerAnchorDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -984,6 +983,7 @@ struct PointOfInterestDto: Hashable { /// The geographical coordinates of the POI. var latLng: LatLngDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PointOfInterestDto? { let placeID = pigeonVar_list[0] as! String @@ -1004,8 +1004,7 @@ struct PointOfInterestDto: Hashable { ] } static func == (lhs: PointOfInterestDto, rhs: PointOfInterestDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1020,6 +1019,7 @@ struct IndoorLevelDto: Hashable { /// Short display name of the level. var shortName: String? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> IndoorLevelDto? { let name: String? = nilOrValue(pigeonVar_list[0]) @@ -1037,8 +1037,7 @@ struct IndoorLevelDto: Hashable { ] } static func == (lhs: IndoorLevelDto, rhs: IndoorLevelDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1057,6 +1056,7 @@ struct IndoorBuildingDto: Hashable { /// Whether building is mostly underground, if known. var isUnderground: Bool? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> IndoorBuildingDto? { let levels = pigeonVar_list[0] as! [IndoorLevelDto?] @@ -1080,8 +1080,7 @@ struct IndoorBuildingDto: Hashable { ] } static func == (lhs: IndoorBuildingDto, rhs: IndoorBuildingDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1092,6 +1091,7 @@ struct PolygonDto: Hashable { var polygonId: String var options: PolygonOptionsDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PolygonDto? { let polygonId = pigeonVar_list[0] as! String @@ -1109,8 +1109,7 @@ struct PolygonDto: Hashable { ] } static func == (lhs: PolygonDto, rhs: PolygonDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1128,6 +1127,7 @@ struct PolygonOptionsDto: Hashable { var visible: Bool var zIndex: Double + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PolygonOptionsDto? { let points = pigeonVar_list[0] as! [LatLngDto?] @@ -1166,8 +1166,7 @@ struct PolygonOptionsDto: Hashable { ] } static func == (lhs: PolygonOptionsDto, rhs: PolygonOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1177,6 +1176,7 @@ struct PolygonOptionsDto: Hashable { struct PolygonHoleDto: Hashable { var points: [LatLngDto?] + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PolygonHoleDto? { let points = pigeonVar_list[0] as! [LatLngDto?] @@ -1191,8 +1191,7 @@ struct PolygonHoleDto: Hashable { ] } static func == (lhs: PolygonHoleDto, rhs: PolygonHoleDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1204,6 +1203,7 @@ struct StyleSpanStrokeStyleDto: Hashable { var fromColor: Int64? = nil var toColor: Int64? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> StyleSpanStrokeStyleDto? { let solidColor: Int64? = nilOrValue(pigeonVar_list[0]) @@ -1224,8 +1224,7 @@ struct StyleSpanStrokeStyleDto: Hashable { ] } static func == (lhs: StyleSpanStrokeStyleDto, rhs: StyleSpanStrokeStyleDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1236,6 +1235,7 @@ struct StyleSpanDto: Hashable { var length: Double var style: StyleSpanStrokeStyleDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> StyleSpanDto? { let length = pigeonVar_list[0] as! Double @@ -1253,8 +1253,7 @@ struct StyleSpanDto: Hashable { ] } static func == (lhs: StyleSpanDto, rhs: StyleSpanDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1265,6 +1264,7 @@ struct PolylineDto: Hashable { var polylineId: String var options: PolylineOptionsDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PolylineDto? { let polylineId = pigeonVar_list[0] as! String @@ -1282,8 +1282,7 @@ struct PolylineDto: Hashable { ] } static func == (lhs: PolylineDto, rhs: PolylineDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1294,6 +1293,7 @@ struct PatternItemDto: Hashable { var type: PatternTypeDto var length: Double? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PatternItemDto? { let type = pigeonVar_list[0] as! PatternTypeDto @@ -1311,8 +1311,7 @@ struct PatternItemDto: Hashable { ] } static func == (lhs: PatternItemDto, rhs: PatternItemDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1331,6 +1330,7 @@ struct PolylineOptionsDto: Hashable { var zIndex: Double? = nil var spans: [StyleSpanDto?] + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PolylineOptionsDto? { let points: [LatLngDto?]? = nilOrValue(pigeonVar_list[0]) @@ -1372,8 +1372,7 @@ struct PolylineOptionsDto: Hashable { ] } static func == (lhs: PolylineOptionsDto, rhs: PolylineOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1386,6 +1385,7 @@ struct CircleDto: Hashable { /// Options for circle. var options: CircleOptionsDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> CircleDto? { let circleId = pigeonVar_list[0] as! String @@ -1403,8 +1403,7 @@ struct CircleDto: Hashable { ] } static func == (lhs: CircleDto, rhs: CircleDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1422,6 +1421,7 @@ struct CircleOptionsDto: Hashable { var visible: Bool var clickable: Bool + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> CircleOptionsDto? { let position = pigeonVar_list[0] as! LatLngDto @@ -1460,8 +1460,7 @@ struct CircleOptionsDto: Hashable { ] } static func == (lhs: CircleOptionsDto, rhs: CircleOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1474,6 +1473,7 @@ struct MapPaddingDto: Hashable { var bottom: Int64 var right: Int64 + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> MapPaddingDto? { let top = pigeonVar_list[0] as! Int64 @@ -1497,8 +1497,7 @@ struct MapPaddingDto: Hashable { ] } static func == (lhs: MapPaddingDto, rhs: MapPaddingDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1531,6 +1530,7 @@ struct NavigationHeaderStylingOptionsDto: Hashable { var instructionsSecondRowTextSize: Double? = nil var guidanceRecommendedLaneColor: Int64? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationHeaderStylingOptionsDto? { let primaryDayModeBackgroundColor: Int64? = nilOrValue(pigeonVar_list[0]) @@ -1589,11 +1589,8 @@ struct NavigationHeaderStylingOptionsDto: Hashable { guidanceRecommendedLaneColor, ] } - static func == (lhs: NavigationHeaderStylingOptionsDto, rhs: NavigationHeaderStylingOptionsDto) - -> Bool - { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + static func == (lhs: NavigationHeaderStylingOptionsDto, rhs: NavigationHeaderStylingOptionsDto) -> Bool { + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1604,6 +1601,7 @@ struct RouteTokenOptionsDto: Hashable { var routeToken: String var travelMode: TravelModeDto? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> RouteTokenOptionsDto? { let routeToken = pigeonVar_list[0] as! String @@ -1621,8 +1619,7 @@ struct RouteTokenOptionsDto: Hashable { ] } static func == (lhs: RouteTokenOptionsDto, rhs: RouteTokenOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1635,6 +1632,7 @@ struct DestinationsDto: Hashable { var routingOptions: RoutingOptionsDto? = nil var routeTokenOptions: RouteTokenOptionsDto? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> DestinationsDto? { let waypoints = pigeonVar_list[0] as! [NavigationWaypointDto?] @@ -1658,8 +1656,7 @@ struct DestinationsDto: Hashable { ] } static func == (lhs: DestinationsDto, rhs: DestinationsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1676,6 +1673,7 @@ struct RoutingOptionsDto: Hashable { var avoidHighways: Bool? = nil var locationTimeoutMs: Int64? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> RoutingOptionsDto? { let alternateRoutesStrategy: AlternateRoutesStrategyDto? = nilOrValue(pigeonVar_list[0]) @@ -1711,8 +1709,7 @@ struct RoutingOptionsDto: Hashable { ] } static func == (lhs: RoutingOptionsDto, rhs: RoutingOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1726,6 +1723,7 @@ struct NavigationDisplayOptionsDto: Hashable { /// Deprecated: This option now defaults to true. var showTrafficLights: Bool? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationDisplayOptionsDto? { let showDestinationMarkers: Bool? = nilOrValue(pigeonVar_list[0]) @@ -1746,8 +1744,7 @@ struct NavigationDisplayOptionsDto: Hashable { ] } static func == (lhs: NavigationDisplayOptionsDto, rhs: NavigationDisplayOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1761,6 +1758,7 @@ struct NavigationWaypointDto: Hashable { var preferSameSideOfRoad: Bool? = nil var preferredSegmentHeading: Int64? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationWaypointDto? { let title = pigeonVar_list[0] as! String @@ -1787,8 +1785,7 @@ struct NavigationWaypointDto: Hashable { ] } static func == (lhs: NavigationWaypointDto, rhs: NavigationWaypointDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1799,6 +1796,7 @@ struct ContinueToNextDestinationResponseDto: Hashable { var waypoint: NavigationWaypointDto? = nil var routeStatus: RouteStatusDto? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> ContinueToNextDestinationResponseDto? { let waypoint: NavigationWaypointDto? = nilOrValue(pigeonVar_list[0]) @@ -1815,11 +1813,8 @@ struct ContinueToNextDestinationResponseDto: Hashable { routeStatus, ] } - static func == ( - lhs: ContinueToNextDestinationResponseDto, rhs: ContinueToNextDestinationResponseDto - ) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + static func == (lhs: ContinueToNextDestinationResponseDto, rhs: ContinueToNextDestinationResponseDto) -> Bool { + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1831,6 +1826,7 @@ struct NavigationTimeAndDistanceDto: Hashable { var distance: Double var delaySeverity: TrafficDelaySeverityDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationTimeAndDistanceDto? { let time = pigeonVar_list[0] as! Double @@ -1851,8 +1847,7 @@ struct NavigationTimeAndDistanceDto: Hashable { ] } static func == (lhs: NavigationTimeAndDistanceDto, rhs: NavigationTimeAndDistanceDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1864,6 +1859,7 @@ struct NavigationAudioGuidanceSettingsDto: Hashable { var isVibrationEnabled: Bool? = nil var guidanceType: AudioGuidanceTypeDto? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationAudioGuidanceSettingsDto? { let isBluetoothAudioEnabled: Bool? = nilOrValue(pigeonVar_list[0]) @@ -1883,11 +1879,8 @@ struct NavigationAudioGuidanceSettingsDto: Hashable { guidanceType, ] } - static func == (lhs: NavigationAudioGuidanceSettingsDto, rhs: NavigationAudioGuidanceSettingsDto) - -> Bool - { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + static func == (lhs: NavigationAudioGuidanceSettingsDto, rhs: NavigationAudioGuidanceSettingsDto) -> Bool { + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1897,6 +1890,7 @@ struct NavigationAudioGuidanceSettingsDto: Hashable { struct SimulationOptionsDto: Hashable { var speedMultiplier: Double + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> SimulationOptionsDto? { let speedMultiplier = pigeonVar_list[0] as! Double @@ -1911,8 +1905,7 @@ struct SimulationOptionsDto: Hashable { ] } static func == (lhs: SimulationOptionsDto, rhs: SimulationOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1923,6 +1916,7 @@ struct LatLngDto: Hashable { var latitude: Double var longitude: Double + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> LatLngDto? { let latitude = pigeonVar_list[0] as! Double @@ -1940,8 +1934,7 @@ struct LatLngDto: Hashable { ] } static func == (lhs: LatLngDto, rhs: LatLngDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1952,6 +1945,7 @@ struct LatLngBoundsDto: Hashable { var southwest: LatLngDto var northeast: LatLngDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> LatLngBoundsDto? { let southwest = pigeonVar_list[0] as! LatLngDto @@ -1969,8 +1963,7 @@ struct LatLngBoundsDto: Hashable { ] } static func == (lhs: LatLngBoundsDto, rhs: LatLngBoundsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1981,6 +1974,7 @@ struct SpeedingUpdatedEventDto: Hashable { var percentageAboveLimit: Double var severity: SpeedAlertSeverityDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> SpeedingUpdatedEventDto? { let percentageAboveLimit = pigeonVar_list[0] as! Double @@ -1998,8 +1992,7 @@ struct SpeedingUpdatedEventDto: Hashable { ] } static func == (lhs: SpeedingUpdatedEventDto, rhs: SpeedingUpdatedEventDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2010,6 +2003,7 @@ struct GpsAvailabilityChangeEventDto: Hashable { var isGpsLost: Bool var isGpsValidForNavigation: Bool + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> GpsAvailabilityChangeEventDto? { let isGpsLost = pigeonVar_list[0] as! Bool @@ -2027,8 +2021,7 @@ struct GpsAvailabilityChangeEventDto: Hashable { ] } static func == (lhs: GpsAvailabilityChangeEventDto, rhs: GpsAvailabilityChangeEventDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2039,6 +2032,7 @@ struct SpeedAlertOptionsThresholdPercentageDto: Hashable { var percentage: Double var severity: SpeedAlertSeverityDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> SpeedAlertOptionsThresholdPercentageDto? { let percentage = pigeonVar_list[0] as! Double @@ -2055,11 +2049,8 @@ struct SpeedAlertOptionsThresholdPercentageDto: Hashable { severity, ] } - static func == ( - lhs: SpeedAlertOptionsThresholdPercentageDto, rhs: SpeedAlertOptionsThresholdPercentageDto - ) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + static func == (lhs: SpeedAlertOptionsThresholdPercentageDto, rhs: SpeedAlertOptionsThresholdPercentageDto) -> Bool { + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2071,6 +2062,7 @@ struct SpeedAlertOptionsDto: Hashable { var minorSpeedAlertThresholdPercentage: Double var majorSpeedAlertThresholdPercentage: Double + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> SpeedAlertOptionsDto? { let severityUpgradeDurationSeconds = pigeonVar_list[0] as! Double @@ -2091,8 +2083,7 @@ struct SpeedAlertOptionsDto: Hashable { ] } static func == (lhs: SpeedAlertOptionsDto, rhs: SpeedAlertOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2104,10 +2095,9 @@ struct RouteSegmentTrafficDataRoadStretchRenderingDataDto: Hashable { var lengthMeters: Int64 var offsetMeters: Int64 + // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ pigeonVar_list: [Any?]) - -> RouteSegmentTrafficDataRoadStretchRenderingDataDto? - { + static func fromList(_ pigeonVar_list: [Any?]) -> RouteSegmentTrafficDataRoadStretchRenderingDataDto? { let style = pigeonVar_list[0] as! RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto let lengthMeters = pigeonVar_list[1] as! Int64 let offsetMeters = pigeonVar_list[2] as! Int64 @@ -2125,12 +2115,8 @@ struct RouteSegmentTrafficDataRoadStretchRenderingDataDto: Hashable { offsetMeters, ] } - static func == ( - lhs: RouteSegmentTrafficDataRoadStretchRenderingDataDto, - rhs: RouteSegmentTrafficDataRoadStretchRenderingDataDto - ) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + static func == (lhs: RouteSegmentTrafficDataRoadStretchRenderingDataDto, rhs: RouteSegmentTrafficDataRoadStretchRenderingDataDto) -> Bool { + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2141,11 +2127,11 @@ struct RouteSegmentTrafficDataDto: Hashable { var status: RouteSegmentTrafficDataStatusDto var roadStretchRenderingDataList: [RouteSegmentTrafficDataRoadStretchRenderingDataDto?] + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> RouteSegmentTrafficDataDto? { let status = pigeonVar_list[0] as! RouteSegmentTrafficDataStatusDto - let roadStretchRenderingDataList = - pigeonVar_list[1] as! [RouteSegmentTrafficDataRoadStretchRenderingDataDto?] + let roadStretchRenderingDataList = pigeonVar_list[1] as! [RouteSegmentTrafficDataRoadStretchRenderingDataDto?] return RouteSegmentTrafficDataDto( status: status, @@ -2159,8 +2145,7 @@ struct RouteSegmentTrafficDataDto: Hashable { ] } static func == (lhs: RouteSegmentTrafficDataDto, rhs: RouteSegmentTrafficDataDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2173,6 +2158,7 @@ struct RouteSegmentDto: Hashable { var latLngs: [LatLngDto?]? = nil var destinationWaypoint: NavigationWaypointDto? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> RouteSegmentDto? { let trafficData: RouteSegmentTrafficDataDto? = nilOrValue(pigeonVar_list[0]) @@ -2196,8 +2182,7 @@ struct RouteSegmentDto: Hashable { ] } static func == (lhs: RouteSegmentDto, rhs: RouteSegmentDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2212,6 +2197,7 @@ struct LaneDirectionDto: Hashable { /// Whether this lane is recommended. var isRecommended: Bool + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> LaneDirectionDto? { let laneShape = pigeonVar_list[0] as! LaneShapeDto @@ -2229,8 +2215,7 @@ struct LaneDirectionDto: Hashable { ] } static func == (lhs: LaneDirectionDto, rhs: LaneDirectionDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2243,6 +2228,7 @@ struct LaneDto: Hashable { /// List of possible directions a driver can follow when using this lane at the end of the respective route step var laneDirections: [LaneDirectionDto?] + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> LaneDto? { let laneDirections = pigeonVar_list[0] as! [LaneDirectionDto?] @@ -2257,8 +2243,7 @@ struct LaneDto: Hashable { ] } static func == (lhs: LaneDto, rhs: LaneDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2298,6 +2283,7 @@ struct StepInfoDto: Hashable { /// This image is generated only if step image generation option includes lane images. var lanesImage: ImageDescriptorDto? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> StepInfoDto? { let distanceFromPrevStepMeters: Int64? = nilOrValue(pigeonVar_list[0]) @@ -2348,8 +2334,7 @@ struct StepInfoDto: Hashable { ] } static func == (lhs: StepInfoDto, rhs: StepInfoDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2389,6 +2374,7 @@ struct NavInfoDto: Hashable { /// Android only. var timeToNextDestinationSeconds: Int64? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavInfoDto? { let navState = pigeonVar_list[0] as! NavStateDto @@ -2430,8 +2416,7 @@ struct NavInfoDto: Hashable { ] } static func == (lhs: NavInfoDto, rhs: NavInfoDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2455,6 +2440,7 @@ struct TermsAndConditionsUIParamsDto: Hashable { /// Text color for the cancel button. var cancelButtonTextColor: Int64? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> TermsAndConditionsUIParamsDto? { let backgroundColor: Int64? = nilOrValue(pigeonVar_list[0]) @@ -2481,8 +2467,44 @@ struct TermsAndConditionsUIParamsDto: Hashable { ] } static func == (lhs: TermsAndConditionsUIParamsDto, rhs: TermsAndConditionsUIParamsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) + return deepEqualsmessages(lhs.toList(), rhs.toList()) } + func hash(into hasher: inout Hasher) { + deepHashmessages(value: toList(), hasher: &hasher) + } +} + +/// Android foreground-service notification configuration. +/// +/// This preserves the Navigation SDK's built-in turn-by-turn notification. +/// +/// Generated class from Pigeon that represents data sent in messages. +struct NavigationNotificationOptionsDto: Hashable { + var notificationId: Int64? = nil + var defaultMessage: String? = nil + var resumeAppOnTap: Bool + + + // swift-format-ignore: AlwaysUseLowerCamelCase + static func fromList(_ pigeonVar_list: [Any?]) -> NavigationNotificationOptionsDto? { + let notificationId: Int64? = nilOrValue(pigeonVar_list[0]) + let defaultMessage: String? = nilOrValue(pigeonVar_list[1]) + let resumeAppOnTap = pigeonVar_list[2] as! Bool + + return NavigationNotificationOptionsDto( + notificationId: notificationId, + defaultMessage: defaultMessage, + resumeAppOnTap: resumeAppOnTap + ) } + func toList() -> [Any?] { + return [ + notificationId, + defaultMessage, + resumeAppOnTap, + ] + } + static func == (lhs: NavigationNotificationOptionsDto, rhs: NavigationNotificationOptionsDto) -> Bool { + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2499,6 +2521,7 @@ struct StepImageGenerationOptionsDto: Hashable { /// Defaults to false if not specified. var generateLaneImages: Bool? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> StepImageGenerationOptionsDto? { let generateManeuverImages: Bool? = nilOrValue(pigeonVar_list[0]) @@ -2516,8 +2539,7 @@ struct StepImageGenerationOptionsDto: Hashable { ] } static func == (lhs: StepImageGenerationOptionsDto, rhs: StepImageGenerationOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2763,8 +2785,7 @@ private class MessagesPigeonCodecReader: FlutterStandardReader { case 194: return SpeedAlertOptionsDto.fromList(self.readValue() as! [Any?]) case 195: - return RouteSegmentTrafficDataRoadStretchRenderingDataDto.fromList( - self.readValue() as! [Any?]) + return RouteSegmentTrafficDataRoadStretchRenderingDataDto.fromList(self.readValue() as! [Any?]) case 196: return RouteSegmentTrafficDataDto.fromList(self.readValue() as! [Any?]) case 197: @@ -2780,6 +2801,8 @@ private class MessagesPigeonCodecReader: FlutterStandardReader { case 202: return TermsAndConditionsUIParamsDto.fromList(self.readValue() as! [Any?]) case 203: + return NavigationNotificationOptionsDto.fromList(self.readValue() as! [Any?]) + case 204: return StepImageGenerationOptionsDto.fromList(self.readValue() as! [Any?]) default: return super.readValue(ofType: type) @@ -3011,9 +3034,12 @@ private class MessagesPigeonCodecWriter: FlutterStandardWriter { } else if let value = value as? TermsAndConditionsUIParamsDto { super.writeByte(202) super.writeValue(value.toList()) - } else if let value = value as? StepImageGenerationOptionsDto { + } else if let value = value as? NavigationNotificationOptionsDto { super.writeByte(203) super.writeValue(value.toList()) + } else if let value = value as? StepImageGenerationOptionsDto { + super.writeByte(204) + super.writeValue(value.toList()) } else { super.writeValue(value) } @@ -3034,6 +3060,7 @@ class MessagesPigeonCodec: FlutterStandardMessageCodec, @unchecked Sendable { static let shared = MessagesPigeonCodec(readerWriter: MessagesPigeonCodecReaderWriter()) } + /// Dummy interface to force generation of the platform view creation params. /// Pigeon only generates messages if the messages are used in API. /// [ViewCreationOptionsDto] is encoded and decoded directly to generate a @@ -3050,14 +3077,9 @@ protocol ViewCreationApi { class ViewCreationApiSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `ViewCreationApi` to handle messages through the `binaryMessenger`. - static func setUp( - binaryMessenger: FlutterBinaryMessenger, api: ViewCreationApi?, - messageChannelSuffix: String = "" - ) { + static func setUp(binaryMessenger: FlutterBinaryMessenger, api: ViewCreationApi?, messageChannelSuffix: String = "") { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let createChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.ViewCreationApi.create\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let createChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ViewCreationApi.create\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { createChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3088,8 +3110,7 @@ protocol MapViewApi { func isNavigationHeaderEnabled(viewId: Int64) throws -> Bool func setNavigationHeaderEnabled(viewId: Int64, enabled: Bool) throws func getNavigationHeaderStylingOptions(viewId: Int64) throws -> NavigationHeaderStylingOptionsDto - func setNavigationHeaderStylingOptions( - viewId: Int64, stylingOptions: NavigationHeaderStylingOptionsDto) throws + func setNavigationHeaderStylingOptions(viewId: Int64, stylingOptions: NavigationHeaderStylingOptionsDto) throws func isNavigationFooterEnabled(viewId: Int64) throws -> Bool func setNavigationFooterEnabled(viewId: Int64, enabled: Bool) throws func isRecenterButtonEnabled(viewId: Int64) throws -> Bool @@ -3144,27 +3165,13 @@ protocol MapViewApi { func getCameraPosition(viewId: Int64) throws -> CameraPositionDto func getVisibleRegion(viewId: Int64) throws -> LatLngBoundsDto func followMyLocation(viewId: Int64, perspective: CameraPerspectiveDto, zoomLevel: Double?) throws - func animateCameraToCameraPosition( - viewId: Int64, cameraPosition: CameraPositionDto, duration: Int64?, - completion: @escaping (Result) -> Void) - func animateCameraToLatLng( - viewId: Int64, point: LatLngDto, duration: Int64?, - completion: @escaping (Result) -> Void) - func animateCameraToLatLngBounds( - viewId: Int64, bounds: LatLngBoundsDto, padding: Double, duration: Int64?, - completion: @escaping (Result) -> Void) - func animateCameraToLatLngZoom( - viewId: Int64, point: LatLngDto, zoom: Double, duration: Int64?, - completion: @escaping (Result) -> Void) - func animateCameraByScroll( - viewId: Int64, scrollByDx: Double, scrollByDy: Double, duration: Int64?, - completion: @escaping (Result) -> Void) - func animateCameraByZoom( - viewId: Int64, zoomBy: Double, focusDx: Double?, focusDy: Double?, duration: Int64?, - completion: @escaping (Result) -> Void) - func animateCameraToZoom( - viewId: Int64, zoom: Double, duration: Int64?, - completion: @escaping (Result) -> Void) + func animateCameraToCameraPosition(viewId: Int64, cameraPosition: CameraPositionDto, duration: Int64?, completion: @escaping (Result) -> Void) + func animateCameraToLatLng(viewId: Int64, point: LatLngDto, duration: Int64?, completion: @escaping (Result) -> Void) + func animateCameraToLatLngBounds(viewId: Int64, bounds: LatLngBoundsDto, padding: Double, duration: Int64?, completion: @escaping (Result) -> Void) + func animateCameraToLatLngZoom(viewId: Int64, point: LatLngDto, zoom: Double, duration: Int64?, completion: @escaping (Result) -> Void) + func animateCameraByScroll(viewId: Int64, scrollByDx: Double, scrollByDy: Double, duration: Int64?, completion: @escaping (Result) -> Void) + func animateCameraByZoom(viewId: Int64, zoomBy: Double, focusDx: Double?, focusDy: Double?, duration: Int64?, completion: @escaping (Result) -> Void) + func animateCameraToZoom(viewId: Int64, zoom: Double, duration: Int64?, completion: @escaping (Result) -> Void) func moveCameraToCameraPosition(viewId: Int64, cameraPosition: CameraPositionDto) throws func moveCameraToLatLng(viewId: Int64, point: LatLngDto) throws func moveCameraToLatLngBounds(viewId: Int64, bounds: LatLngBoundsDto, padding: Double) throws @@ -3212,13 +3219,9 @@ protocol MapViewApi { class MapViewApiSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `MapViewApi` to handle messages through the `binaryMessenger`. - static func setUp( - binaryMessenger: FlutterBinaryMessenger, api: MapViewApi?, messageChannelSuffix: String = "" - ) { + static func setUp(binaryMessenger: FlutterBinaryMessenger, api: MapViewApi?, messageChannelSuffix: String = "") { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let awaitMapReadyChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let awaitMapReadyChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { awaitMapReadyChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3235,10 +3238,7 @@ class MapViewApiSetup { } else { awaitMapReadyChannel.setMessageHandler(nil) } - let isMyLocationEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isMyLocationEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMyLocationEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3253,10 +3253,7 @@ class MapViewApiSetup { } else { isMyLocationEnabledChannel.setMessageHandler(nil) } - let setMyLocationEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMyLocationEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMyLocationEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3272,9 +3269,7 @@ class MapViewApiSetup { } else { setMyLocationEnabledChannel.setMessageHandler(nil) } - let getMyLocationChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMyLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMyLocationChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3289,9 +3284,7 @@ class MapViewApiSetup { } else { getMyLocationChannel.setMessageHandler(nil) } - let getMapTypeChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMapTypeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMapTypeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3306,9 +3299,7 @@ class MapViewApiSetup { } else { getMapTypeChannel.setMessageHandler(nil) } - let setMapTypeChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMapTypeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapTypeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3324,9 +3315,7 @@ class MapViewApiSetup { } else { setMapTypeChannel.setMessageHandler(nil) } - let setMapStyleChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMapStyleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapStyleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3342,10 +3331,7 @@ class MapViewApiSetup { } else { setMapStyleChannel.setMessageHandler(nil) } - let isNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationTripProgressBarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3360,10 +3346,7 @@ class MapViewApiSetup { } else { isNavigationTripProgressBarEnabledChannel.setMessageHandler(nil) } - let setNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationTripProgressBarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3379,10 +3362,7 @@ class MapViewApiSetup { } else { setNavigationTripProgressBarEnabledChannel.setMessageHandler(nil) } - let isNavigationHeaderEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isNavigationHeaderEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationHeaderEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3397,10 +3377,7 @@ class MapViewApiSetup { } else { isNavigationHeaderEnabledChannel.setMessageHandler(nil) } - let setNavigationHeaderEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setNavigationHeaderEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationHeaderEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3416,10 +3393,7 @@ class MapViewApiSetup { } else { setNavigationHeaderEnabledChannel.setMessageHandler(nil) } - let getNavigationHeaderStylingOptionsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getNavigationHeaderStylingOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getNavigationHeaderStylingOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3434,18 +3408,14 @@ class MapViewApiSetup { } else { getNavigationHeaderStylingOptionsChannel.setMessageHandler(nil) } - let setNavigationHeaderStylingOptionsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setNavigationHeaderStylingOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationHeaderStylingOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] as! Int64 let stylingOptionsArg = args[1] as! NavigationHeaderStylingOptionsDto do { - try api.setNavigationHeaderStylingOptions( - viewId: viewIdArg, stylingOptions: stylingOptionsArg) + try api.setNavigationHeaderStylingOptions(viewId: viewIdArg, stylingOptions: stylingOptionsArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -3454,10 +3424,7 @@ class MapViewApiSetup { } else { setNavigationHeaderStylingOptionsChannel.setMessageHandler(nil) } - let isNavigationFooterEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isNavigationFooterEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationFooterEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3472,10 +3439,7 @@ class MapViewApiSetup { } else { isNavigationFooterEnabledChannel.setMessageHandler(nil) } - let setNavigationFooterEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setNavigationFooterEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationFooterEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3491,10 +3455,7 @@ class MapViewApiSetup { } else { setNavigationFooterEnabledChannel.setMessageHandler(nil) } - let isRecenterButtonEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isRecenterButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isRecenterButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3509,10 +3470,7 @@ class MapViewApiSetup { } else { isRecenterButtonEnabledChannel.setMessageHandler(nil) } - let setRecenterButtonEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setRecenterButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setRecenterButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3528,10 +3486,7 @@ class MapViewApiSetup { } else { setRecenterButtonEnabledChannel.setMessageHandler(nil) } - let isSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isSpeedLimitIconEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3546,10 +3501,7 @@ class MapViewApiSetup { } else { isSpeedLimitIconEnabledChannel.setMessageHandler(nil) } - let setSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setSpeedLimitIconEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3565,10 +3517,7 @@ class MapViewApiSetup { } else { setSpeedLimitIconEnabledChannel.setMessageHandler(nil) } - let isSpeedometerEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isSpeedometerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isSpeedometerEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3583,10 +3532,7 @@ class MapViewApiSetup { } else { isSpeedometerEnabledChannel.setMessageHandler(nil) } - let setSpeedometerEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setSpeedometerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setSpeedometerEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3602,10 +3548,7 @@ class MapViewApiSetup { } else { setSpeedometerEnabledChannel.setMessageHandler(nil) } - let isNavigationUIEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isNavigationUIEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationUIEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3620,10 +3563,7 @@ class MapViewApiSetup { } else { isNavigationUIEnabledChannel.setMessageHandler(nil) } - let setNavigationUIEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setNavigationUIEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationUIEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3639,10 +3579,7 @@ class MapViewApiSetup { } else { setNavigationUIEnabledChannel.setMessageHandler(nil) } - let isMyLocationButtonEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isMyLocationButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMyLocationButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3657,10 +3594,7 @@ class MapViewApiSetup { } else { isMyLocationButtonEnabledChannel.setMessageHandler(nil) } - let setMyLocationButtonEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMyLocationButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMyLocationButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3676,10 +3610,7 @@ class MapViewApiSetup { } else { setMyLocationButtonEnabledChannel.setMessageHandler(nil) } - let isConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3694,18 +3625,14 @@ class MapViewApiSetup { } else { isConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler(nil) } - let setConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] as! Int64 let enabledArg = args[1] as! Bool do { - try api.setConsumeMyLocationButtonClickEventsEnabled( - viewId: viewIdArg, enabled: enabledArg) + try api.setConsumeMyLocationButtonClickEventsEnabled(viewId: viewIdArg, enabled: enabledArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -3714,10 +3641,7 @@ class MapViewApiSetup { } else { setConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler(nil) } - let isZoomGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isZoomGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isZoomGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3732,10 +3656,7 @@ class MapViewApiSetup { } else { isZoomGesturesEnabledChannel.setMessageHandler(nil) } - let setZoomGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setZoomGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setZoomGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3751,10 +3672,7 @@ class MapViewApiSetup { } else { setZoomGesturesEnabledChannel.setMessageHandler(nil) } - let isZoomControlsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isZoomControlsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isZoomControlsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3769,10 +3687,7 @@ class MapViewApiSetup { } else { isZoomControlsEnabledChannel.setMessageHandler(nil) } - let setZoomControlsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setZoomControlsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setZoomControlsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3788,10 +3703,7 @@ class MapViewApiSetup { } else { setZoomControlsEnabledChannel.setMessageHandler(nil) } - let isCompassEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isCompassEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isCompassEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3806,10 +3718,7 @@ class MapViewApiSetup { } else { isCompassEnabledChannel.setMessageHandler(nil) } - let setCompassEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setCompassEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setCompassEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3825,10 +3734,7 @@ class MapViewApiSetup { } else { setCompassEnabledChannel.setMessageHandler(nil) } - let isRotateGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isRotateGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isRotateGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3843,10 +3749,7 @@ class MapViewApiSetup { } else { isRotateGesturesEnabledChannel.setMessageHandler(nil) } - let setRotateGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setRotateGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setRotateGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3862,10 +3765,7 @@ class MapViewApiSetup { } else { setRotateGesturesEnabledChannel.setMessageHandler(nil) } - let isScrollGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isScrollGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isScrollGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3880,10 +3780,7 @@ class MapViewApiSetup { } else { isScrollGesturesEnabledChannel.setMessageHandler(nil) } - let setScrollGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setScrollGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setScrollGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3899,10 +3796,7 @@ class MapViewApiSetup { } else { setScrollGesturesEnabledChannel.setMessageHandler(nil) } - let isScrollGesturesEnabledDuringRotateOrZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isScrollGesturesEnabledDuringRotateOrZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isScrollGesturesEnabledDuringRotateOrZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3917,10 +3811,7 @@ class MapViewApiSetup { } else { isScrollGesturesEnabledDuringRotateOrZoomChannel.setMessageHandler(nil) } - let setScrollGesturesDuringRotateOrZoomEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setScrollGesturesDuringRotateOrZoomEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setScrollGesturesDuringRotateOrZoomEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3936,10 +3827,7 @@ class MapViewApiSetup { } else { setScrollGesturesDuringRotateOrZoomEnabledChannel.setMessageHandler(nil) } - let isTiltGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isTiltGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTiltGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3954,10 +3842,7 @@ class MapViewApiSetup { } else { isTiltGesturesEnabledChannel.setMessageHandler(nil) } - let setTiltGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setTiltGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTiltGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3973,10 +3858,7 @@ class MapViewApiSetup { } else { setTiltGesturesEnabledChannel.setMessageHandler(nil) } - let isMapToolbarEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isMapToolbarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMapToolbarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3991,10 +3873,7 @@ class MapViewApiSetup { } else { isMapToolbarEnabledChannel.setMessageHandler(nil) } - let setMapToolbarEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMapToolbarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapToolbarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4010,10 +3889,7 @@ class MapViewApiSetup { } else { setMapToolbarEnabledChannel.setMessageHandler(nil) } - let isTrafficEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isTrafficEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4028,10 +3904,7 @@ class MapViewApiSetup { } else { isTrafficEnabledChannel.setMessageHandler(nil) } - let setTrafficEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setTrafficEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4047,10 +3920,7 @@ class MapViewApiSetup { } else { setTrafficEnabledChannel.setMessageHandler(nil) } - let isTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficIncidentCardsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4065,10 +3935,7 @@ class MapViewApiSetup { } else { isTrafficIncidentCardsEnabledChannel.setMessageHandler(nil) } - let setTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficIncidentCardsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4084,10 +3951,7 @@ class MapViewApiSetup { } else { setTrafficIncidentCardsEnabledChannel.setMessageHandler(nil) } - let isTrafficPromptsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isTrafficPromptsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficPromptsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4102,10 +3966,7 @@ class MapViewApiSetup { } else { isTrafficPromptsEnabledChannel.setMessageHandler(nil) } - let setTrafficPromptsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setTrafficPromptsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficPromptsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4121,10 +3982,7 @@ class MapViewApiSetup { } else { setTrafficPromptsEnabledChannel.setMessageHandler(nil) } - let isReportIncidentButtonEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isReportIncidentButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isReportIncidentButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4139,10 +3997,7 @@ class MapViewApiSetup { } else { isReportIncidentButtonEnabledChannel.setMessageHandler(nil) } - let setReportIncidentButtonEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setReportIncidentButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setReportIncidentButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4158,10 +4013,7 @@ class MapViewApiSetup { } else { setReportIncidentButtonEnabledChannel.setMessageHandler(nil) } - let isIncidentReportingAvailableChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isIncidentReportingAvailableChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isIncidentReportingAvailableChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4176,10 +4028,7 @@ class MapViewApiSetup { } else { isIncidentReportingAvailableChannel.setMessageHandler(nil) } - let showReportIncidentsPanelChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let showReportIncidentsPanelChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { showReportIncidentsPanelChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4194,10 +4043,7 @@ class MapViewApiSetup { } else { showReportIncidentsPanelChannel.setMessageHandler(nil) } - let isBuildingsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isBuildingsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isBuildingsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4212,10 +4058,7 @@ class MapViewApiSetup { } else { isBuildingsEnabledChannel.setMessageHandler(nil) } - let setBuildingsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setBuildingsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setBuildingsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4231,10 +4074,7 @@ class MapViewApiSetup { } else { setBuildingsEnabledChannel.setMessageHandler(nil) } - let isIndoorEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isIndoorEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isIndoorEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4249,10 +4089,7 @@ class MapViewApiSetup { } else { isIndoorEnabledChannel.setMessageHandler(nil) } - let setIndoorEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setIndoorEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setIndoorEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4268,10 +4105,7 @@ class MapViewApiSetup { } else { setIndoorEnabledChannel.setMessageHandler(nil) } - let isIndoorLevelPickerEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isIndoorLevelPickerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isIndoorLevelPickerEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4286,10 +4120,7 @@ class MapViewApiSetup { } else { isIndoorLevelPickerEnabledChannel.setMessageHandler(nil) } - let setIndoorLevelPickerEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setIndoorLevelPickerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setIndoorLevelPickerEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4305,10 +4136,7 @@ class MapViewApiSetup { } else { setIndoorLevelPickerEnabledChannel.setMessageHandler(nil) } - let getFocusedIndoorBuildingChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getFocusedIndoorBuildingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getFocusedIndoorBuildingChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4326,10 +4154,7 @@ class MapViewApiSetup { /// Activates the indoor level at [levelIndex] within the currently focused /// indoor building. Throws if no building is focused or the index is out of /// range. - let activateIndoorLevelChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let activateIndoorLevelChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { activateIndoorLevelChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4345,10 +4170,7 @@ class MapViewApiSetup { } else { activateIndoorLevelChannel.setMessageHandler(nil) } - let getCameraPositionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4363,10 +4185,7 @@ class MapViewApiSetup { } else { getCameraPositionChannel.setMessageHandler(nil) } - let getVisibleRegionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getVisibleRegionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getVisibleRegionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4381,10 +4200,7 @@ class MapViewApiSetup { } else { getVisibleRegionChannel.setMessageHandler(nil) } - let followMyLocationChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let followMyLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { followMyLocationChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4392,8 +4208,7 @@ class MapViewApiSetup { let perspectiveArg = args[1] as! CameraPerspectiveDto let zoomLevelArg: Double? = nilOrValue(args[2]) do { - try api.followMyLocation( - viewId: viewIdArg, perspective: perspectiveArg, zoomLevel: zoomLevelArg) + try api.followMyLocation(viewId: viewIdArg, perspective: perspectiveArg, zoomLevel: zoomLevelArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -4402,19 +4217,14 @@ class MapViewApiSetup { } else { followMyLocationChannel.setMessageHandler(nil) } - let animateCameraToCameraPositionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] as! Int64 let cameraPositionArg = args[1] as! CameraPositionDto let durationArg: Int64? = nilOrValue(args[2]) - api.animateCameraToCameraPosition( - viewId: viewIdArg, cameraPosition: cameraPositionArg, duration: durationArg - ) { result in + api.animateCameraToCameraPosition(viewId: viewIdArg, cameraPosition: cameraPositionArg, duration: durationArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4426,18 +4236,14 @@ class MapViewApiSetup { } else { animateCameraToCameraPositionChannel.setMessageHandler(nil) } - let animateCameraToLatLngChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] as! Int64 let pointArg = args[1] as! LatLngDto let durationArg: Int64? = nilOrValue(args[2]) - api.animateCameraToLatLng(viewId: viewIdArg, point: pointArg, duration: durationArg) { - result in + api.animateCameraToLatLng(viewId: viewIdArg, point: pointArg, duration: durationArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4449,10 +4255,7 @@ class MapViewApiSetup { } else { animateCameraToLatLngChannel.setMessageHandler(nil) } - let animateCameraToLatLngBoundsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngBoundsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngBoundsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4460,9 +4263,7 @@ class MapViewApiSetup { let boundsArg = args[1] as! LatLngBoundsDto let paddingArg = args[2] as! Double let durationArg: Int64? = nilOrValue(args[3]) - api.animateCameraToLatLngBounds( - viewId: viewIdArg, bounds: boundsArg, padding: paddingArg, duration: durationArg - ) { result in + api.animateCameraToLatLngBounds(viewId: viewIdArg, bounds: boundsArg, padding: paddingArg, duration: durationArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4474,10 +4275,7 @@ class MapViewApiSetup { } else { animateCameraToLatLngBoundsChannel.setMessageHandler(nil) } - let animateCameraToLatLngZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4485,9 +4283,7 @@ class MapViewApiSetup { let pointArg = args[1] as! LatLngDto let zoomArg = args[2] as! Double let durationArg: Int64? = nilOrValue(args[3]) - api.animateCameraToLatLngZoom( - viewId: viewIdArg, point: pointArg, zoom: zoomArg, duration: durationArg - ) { result in + api.animateCameraToLatLngZoom(viewId: viewIdArg, point: pointArg, zoom: zoomArg, duration: durationArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4499,10 +4295,7 @@ class MapViewApiSetup { } else { animateCameraToLatLngZoomChannel.setMessageHandler(nil) } - let animateCameraByScrollChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraByScrollChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraByScrollChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4510,10 +4303,7 @@ class MapViewApiSetup { let scrollByDxArg = args[1] as! Double let scrollByDyArg = args[2] as! Double let durationArg: Int64? = nilOrValue(args[3]) - api.animateCameraByScroll( - viewId: viewIdArg, scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg, - duration: durationArg - ) { result in + api.animateCameraByScroll(viewId: viewIdArg, scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg, duration: durationArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4525,10 +4315,7 @@ class MapViewApiSetup { } else { animateCameraByScrollChannel.setMessageHandler(nil) } - let animateCameraByZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraByZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraByZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4537,10 +4324,7 @@ class MapViewApiSetup { let focusDxArg: Double? = nilOrValue(args[2]) let focusDyArg: Double? = nilOrValue(args[3]) let durationArg: Int64? = nilOrValue(args[4]) - api.animateCameraByZoom( - viewId: viewIdArg, zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg, - duration: durationArg - ) { result in + api.animateCameraByZoom(viewId: viewIdArg, zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg, duration: durationArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4552,10 +4336,7 @@ class MapViewApiSetup { } else { animateCameraByZoomChannel.setMessageHandler(nil) } - let animateCameraToZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4574,10 +4355,7 @@ class MapViewApiSetup { } else { animateCameraToZoomChannel.setMessageHandler(nil) } - let moveCameraToCameraPositionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4593,10 +4371,7 @@ class MapViewApiSetup { } else { moveCameraToCameraPositionChannel.setMessageHandler(nil) } - let moveCameraToLatLngChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4612,10 +4387,7 @@ class MapViewApiSetup { } else { moveCameraToLatLngChannel.setMessageHandler(nil) } - let moveCameraToLatLngBoundsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngBoundsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngBoundsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4623,8 +4395,7 @@ class MapViewApiSetup { let boundsArg = args[1] as! LatLngBoundsDto let paddingArg = args[2] as! Double do { - try api.moveCameraToLatLngBounds( - viewId: viewIdArg, bounds: boundsArg, padding: paddingArg) + try api.moveCameraToLatLngBounds(viewId: viewIdArg, bounds: boundsArg, padding: paddingArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -4633,10 +4404,7 @@ class MapViewApiSetup { } else { moveCameraToLatLngBoundsChannel.setMessageHandler(nil) } - let moveCameraToLatLngZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4653,10 +4421,7 @@ class MapViewApiSetup { } else { moveCameraToLatLngZoomChannel.setMessageHandler(nil) } - let moveCameraByScrollChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraByScrollChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraByScrollChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4664,8 +4429,7 @@ class MapViewApiSetup { let scrollByDxArg = args[1] as! Double let scrollByDyArg = args[2] as! Double do { - try api.moveCameraByScroll( - viewId: viewIdArg, scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg) + try api.moveCameraByScroll(viewId: viewIdArg, scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -4674,10 +4438,7 @@ class MapViewApiSetup { } else { moveCameraByScrollChannel.setMessageHandler(nil) } - let moveCameraByZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraByZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraByZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4686,8 +4447,7 @@ class MapViewApiSetup { let focusDxArg: Double? = nilOrValue(args[2]) let focusDyArg: Double? = nilOrValue(args[3]) do { - try api.moveCameraByZoom( - viewId: viewIdArg, zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg) + try api.moveCameraByZoom(viewId: viewIdArg, zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -4696,10 +4456,7 @@ class MapViewApiSetup { } else { moveCameraByZoomChannel.setMessageHandler(nil) } - let moveCameraToZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4715,10 +4472,7 @@ class MapViewApiSetup { } else { moveCameraToZoomChannel.setMessageHandler(nil) } - let showRouteOverviewChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let showRouteOverviewChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { showRouteOverviewChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4733,10 +4487,7 @@ class MapViewApiSetup { } else { showRouteOverviewChannel.setMessageHandler(nil) } - let getMinZoomPreferenceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMinZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMinZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4751,10 +4502,7 @@ class MapViewApiSetup { } else { getMinZoomPreferenceChannel.setMessageHandler(nil) } - let getMaxZoomPreferenceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMaxZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4769,10 +4517,7 @@ class MapViewApiSetup { } else { getMaxZoomPreferenceChannel.setMessageHandler(nil) } - let resetMinMaxZoomPreferenceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let resetMinMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { resetMinMaxZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4787,10 +4532,7 @@ class MapViewApiSetup { } else { resetMinMaxZoomPreferenceChannel.setMessageHandler(nil) } - let setMinZoomPreferenceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMinZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMinZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4806,10 +4548,7 @@ class MapViewApiSetup { } else { setMinZoomPreferenceChannel.setMessageHandler(nil) } - let setMaxZoomPreferenceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMaxZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4825,9 +4564,7 @@ class MapViewApiSetup { } else { setMaxZoomPreferenceChannel.setMessageHandler(nil) } - let getMarkersChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4842,9 +4579,7 @@ class MapViewApiSetup { } else { getMarkersChannel.setMessageHandler(nil) } - let addMarkersChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let addMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { addMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4860,9 +4595,7 @@ class MapViewApiSetup { } else { addMarkersChannel.setMessageHandler(nil) } - let updateMarkersChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let updateMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { updateMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4878,9 +4611,7 @@ class MapViewApiSetup { } else { updateMarkersChannel.setMessageHandler(nil) } - let removeMarkersChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let removeMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { removeMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4896,9 +4627,7 @@ class MapViewApiSetup { } else { removeMarkersChannel.setMessageHandler(nil) } - let clearMarkersChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4913,9 +4642,7 @@ class MapViewApiSetup { } else { clearMarkersChannel.setMessageHandler(nil) } - let clearChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4930,9 +4657,7 @@ class MapViewApiSetup { } else { clearChannel.setMessageHandler(nil) } - let getPolygonsChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4947,9 +4672,7 @@ class MapViewApiSetup { } else { getPolygonsChannel.setMessageHandler(nil) } - let addPolygonsChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let addPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { addPolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4965,10 +4688,7 @@ class MapViewApiSetup { } else { addPolygonsChannel.setMessageHandler(nil) } - let updatePolygonsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let updatePolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { updatePolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4984,10 +4704,7 @@ class MapViewApiSetup { } else { updatePolygonsChannel.setMessageHandler(nil) } - let removePolygonsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let removePolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { removePolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5003,9 +4720,7 @@ class MapViewApiSetup { } else { removePolygonsChannel.setMessageHandler(nil) } - let clearPolygonsChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearPolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5020,9 +4735,7 @@ class MapViewApiSetup { } else { clearPolygonsChannel.setMessageHandler(nil) } - let getPolylinesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5037,9 +4750,7 @@ class MapViewApiSetup { } else { getPolylinesChannel.setMessageHandler(nil) } - let addPolylinesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let addPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { addPolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5055,10 +4766,7 @@ class MapViewApiSetup { } else { addPolylinesChannel.setMessageHandler(nil) } - let updatePolylinesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let updatePolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { updatePolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5074,10 +4782,7 @@ class MapViewApiSetup { } else { updatePolylinesChannel.setMessageHandler(nil) } - let removePolylinesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let removePolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { removePolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5093,10 +4798,7 @@ class MapViewApiSetup { } else { removePolylinesChannel.setMessageHandler(nil) } - let clearPolylinesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearPolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5111,9 +4813,7 @@ class MapViewApiSetup { } else { clearPolylinesChannel.setMessageHandler(nil) } - let getCirclesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5128,9 +4828,7 @@ class MapViewApiSetup { } else { getCirclesChannel.setMessageHandler(nil) } - let addCirclesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let addCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { addCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5146,9 +4844,7 @@ class MapViewApiSetup { } else { addCirclesChannel.setMessageHandler(nil) } - let updateCirclesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let updateCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { updateCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5164,9 +4860,7 @@ class MapViewApiSetup { } else { updateCirclesChannel.setMessageHandler(nil) } - let removeCirclesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let removeCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { removeCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5182,9 +4876,7 @@ class MapViewApiSetup { } else { removeCirclesChannel.setMessageHandler(nil) } - let clearCirclesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5199,10 +4891,7 @@ class MapViewApiSetup { } else { clearCirclesChannel.setMessageHandler(nil) } - let enableOnCameraChangedEventsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let enableOnCameraChangedEventsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { enableOnCameraChangedEventsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5217,9 +4906,7 @@ class MapViewApiSetup { } else { enableOnCameraChangedEventsChannel.setMessageHandler(nil) } - let setPaddingChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setPaddingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setPaddingChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5235,9 +4922,7 @@ class MapViewApiSetup { } else { setPaddingChannel.setMessageHandler(nil) } - let getPaddingChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getPaddingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPaddingChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5252,10 +4937,7 @@ class MapViewApiSetup { } else { getPaddingChannel.setMessageHandler(nil) } - let getMapColorSchemeChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMapColorSchemeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMapColorSchemeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5270,10 +4952,7 @@ class MapViewApiSetup { } else { getMapColorSchemeChannel.setMessageHandler(nil) } - let setMapColorSchemeChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMapColorSchemeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapColorSchemeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5289,10 +4968,7 @@ class MapViewApiSetup { } else { setMapColorSchemeChannel.setMessageHandler(nil) } - let getForceNightModeChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getForceNightModeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getForceNightModeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5307,10 +4983,7 @@ class MapViewApiSetup { } else { getForceNightModeChannel.setMessageHandler(nil) } - let setForceNightModeChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setForceNightModeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setForceNightModeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5330,30 +5003,20 @@ class MapViewApiSetup { } /// Generated protocol from Pigeon that represents a handler of messages from Flutter. protocol ImageRegistryApi { - func registerBitmapImage( - imageId: String, bytes: FlutterStandardTypedData, imagePixelRatio: Double, width: Double?, - height: Double? - ) throws -> ImageDescriptorDto + func registerBitmapImage(imageId: String, bytes: FlutterStandardTypedData, imagePixelRatio: Double, width: Double?, height: Double?) throws -> ImageDescriptorDto func unregisterImage(imageDescriptor: ImageDescriptorDto) throws func getRegisteredImages() throws -> [ImageDescriptorDto] func clearRegisteredImages(filter: RegisteredImageTypeDto?) throws - func getRegisteredImageData(imageDescriptor: ImageDescriptorDto) throws - -> FlutterStandardTypedData? + func getRegisteredImageData(imageDescriptor: ImageDescriptorDto) throws -> FlutterStandardTypedData? } /// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. class ImageRegistryApiSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `ImageRegistryApi` to handle messages through the `binaryMessenger`. - static func setUp( - binaryMessenger: FlutterBinaryMessenger, api: ImageRegistryApi?, - messageChannelSuffix: String = "" - ) { + static func setUp(binaryMessenger: FlutterBinaryMessenger, api: ImageRegistryApi?, messageChannelSuffix: String = "") { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let registerBitmapImageChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let registerBitmapImageChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { registerBitmapImageChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5363,9 +5026,7 @@ class ImageRegistryApiSetup { let widthArg: Double? = nilOrValue(args[3]) let heightArg: Double? = nilOrValue(args[4]) do { - let result = try api.registerBitmapImage( - imageId: imageIdArg, bytes: bytesArg, imagePixelRatio: imagePixelRatioArg, - width: widthArg, height: heightArg) + let result = try api.registerBitmapImage(imageId: imageIdArg, bytes: bytesArg, imagePixelRatio: imagePixelRatioArg, width: widthArg, height: heightArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -5374,10 +5035,7 @@ class ImageRegistryApiSetup { } else { registerBitmapImageChannel.setMessageHandler(nil) } - let unregisterImageChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let unregisterImageChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { unregisterImageChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5392,10 +5050,7 @@ class ImageRegistryApiSetup { } else { unregisterImageChannel.setMessageHandler(nil) } - let getRegisteredImagesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getRegisteredImagesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getRegisteredImagesChannel.setMessageHandler { _, reply in do { @@ -5408,10 +5063,7 @@ class ImageRegistryApiSetup { } else { getRegisteredImagesChannel.setMessageHandler(nil) } - let clearRegisteredImagesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearRegisteredImagesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearRegisteredImagesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5426,10 +5078,7 @@ class ImageRegistryApiSetup { } else { clearRegisteredImagesChannel.setMessageHandler(nil) } - let getRegisteredImageDataChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getRegisteredImageDataChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getRegisteredImageDataChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5448,54 +5097,22 @@ class ImageRegistryApiSetup { } /// Generated protocol from Pigeon that represents Flutter messages that can be called from Swift. protocol ViewEventApiProtocol { - func onMapClickEvent( - viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, - completion: @escaping (Result) -> Void) - func onMapLongClickEvent( - viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, - completion: @escaping (Result) -> Void) - func onRecenterButtonClicked( - viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) - func onMarkerEvent( - viewId viewIdArg: Int64, markerId markerIdArg: String, - eventType eventTypeArg: MarkerEventTypeDto, - completion: @escaping (Result) -> Void) - func onMarkerDragEvent( - viewId viewIdArg: Int64, markerId markerIdArg: String, - eventType eventTypeArg: MarkerDragEventTypeDto, position positionArg: LatLngDto, - completion: @escaping (Result) -> Void) - func onPolygonClicked( - viewId viewIdArg: Int64, polygonId polygonIdArg: String, - completion: @escaping (Result) -> Void) - func onPolylineClicked( - viewId viewIdArg: Int64, polylineId polylineIdArg: String, - completion: @escaping (Result) -> Void) - func onCircleClicked( - viewId viewIdArg: Int64, circleId circleIdArg: String, - completion: @escaping (Result) -> Void) - func onPoiClick( - viewId viewIdArg: Int64, pointOfInterest pointOfInterestArg: PointOfInterestDto, - completion: @escaping (Result) -> Void) - func onNavigationUIEnabledChanged( - viewId viewIdArg: Int64, navigationUIEnabled navigationUIEnabledArg: Bool, - completion: @escaping (Result) -> Void) - func onPromptVisibilityChanged( - viewId viewIdArg: Int64, promptVisible promptVisibleArg: Bool, - completion: @escaping (Result) -> Void) - func onMyLocationClicked( - viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) - func onMyLocationButtonClicked( - viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) - func onIndoorFocusedBuildingChanged( - viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, - completion: @escaping (Result) -> Void) - func onIndoorActiveLevelChanged( - viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, - completion: @escaping (Result) -> Void) - func onCameraChanged( - viewId viewIdArg: Int64, eventType eventTypeArg: CameraEventTypeDto, - position positionArg: CameraPositionDto, - completion: @escaping (Result) -> Void) + func onMapClickEvent(viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, completion: @escaping (Result) -> Void) + func onMapLongClickEvent(viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, completion: @escaping (Result) -> Void) + func onRecenterButtonClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) + func onMarkerEvent(viewId viewIdArg: Int64, markerId markerIdArg: String, eventType eventTypeArg: MarkerEventTypeDto, completion: @escaping (Result) -> Void) + func onMarkerDragEvent(viewId viewIdArg: Int64, markerId markerIdArg: String, eventType eventTypeArg: MarkerDragEventTypeDto, position positionArg: LatLngDto, completion: @escaping (Result) -> Void) + func onPolygonClicked(viewId viewIdArg: Int64, polygonId polygonIdArg: String, completion: @escaping (Result) -> Void) + func onPolylineClicked(viewId viewIdArg: Int64, polylineId polylineIdArg: String, completion: @escaping (Result) -> Void) + func onCircleClicked(viewId viewIdArg: Int64, circleId circleIdArg: String, completion: @escaping (Result) -> Void) + func onPoiClick(viewId viewIdArg: Int64, pointOfInterest pointOfInterestArg: PointOfInterestDto, completion: @escaping (Result) -> Void) + func onNavigationUIEnabledChanged(viewId viewIdArg: Int64, navigationUIEnabled navigationUIEnabledArg: Bool, completion: @escaping (Result) -> Void) + func onPromptVisibilityChanged(viewId viewIdArg: Int64, promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void) + func onMyLocationClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) + func onMyLocationButtonClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) + func onIndoorFocusedBuildingChanged(viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) + func onIndoorActiveLevelChanged(viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) + func onCameraChanged(viewId viewIdArg: Int64, eventType eventTypeArg: CameraEventTypeDto, position positionArg: CameraPositionDto, completion: @escaping (Result) -> Void) } class ViewEventApi: ViewEventApiProtocol { private let binaryMessenger: FlutterBinaryMessenger @@ -5507,14 +5124,9 @@ class ViewEventApi: ViewEventApiProtocol { var codec: MessagesPigeonCodec { return MessagesPigeonCodec.shared } - func onMapClickEvent( - viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMapClickEvent(viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, latLngArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5530,14 +5142,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onMapLongClickEvent( - viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMapLongClickEvent(viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, latLngArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5553,13 +5160,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onRecenterButtonClicked( - viewId viewIdArg: Int64, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onRecenterButtonClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5575,15 +5178,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onMarkerEvent( - viewId viewIdArg: Int64, markerId markerIdArg: String, - eventType eventTypeArg: MarkerEventTypeDto, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMarkerEvent(viewId viewIdArg: Int64, markerId markerIdArg: String, eventType eventTypeArg: MarkerEventTypeDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, markerIdArg, eventTypeArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5599,15 +5196,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onMarkerDragEvent( - viewId viewIdArg: Int64, markerId markerIdArg: String, - eventType eventTypeArg: MarkerDragEventTypeDto, position positionArg: LatLngDto, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMarkerDragEvent(viewId viewIdArg: Int64, markerId markerIdArg: String, eventType eventTypeArg: MarkerDragEventTypeDto, position positionArg: LatLngDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, markerIdArg, eventTypeArg, positionArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5623,14 +5214,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onPolygonClicked( - viewId viewIdArg: Int64, polygonId polygonIdArg: String, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onPolygonClicked(viewId viewIdArg: Int64, polygonId polygonIdArg: String, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, polygonIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5646,14 +5232,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onPolylineClicked( - viewId viewIdArg: Int64, polylineId polylineIdArg: String, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onPolylineClicked(viewId viewIdArg: Int64, polylineId polylineIdArg: String, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, polylineIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5669,14 +5250,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onCircleClicked( - viewId viewIdArg: Int64, circleId circleIdArg: String, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onCircleClicked(viewId viewIdArg: Int64, circleId circleIdArg: String, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, circleIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5692,14 +5268,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onPoiClick( - viewId viewIdArg: Int64, pointOfInterest pointOfInterestArg: PointOfInterestDto, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onPoiClick(viewId viewIdArg: Int64, pointOfInterest pointOfInterestArg: PointOfInterestDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, pointOfInterestArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5715,14 +5286,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onNavigationUIEnabledChanged( - viewId viewIdArg: Int64, navigationUIEnabled navigationUIEnabledArg: Bool, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onNavigationUIEnabledChanged(viewId viewIdArg: Int64, navigationUIEnabled navigationUIEnabledArg: Bool, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, navigationUIEnabledArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5738,14 +5304,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onPromptVisibilityChanged( - viewId viewIdArg: Int64, promptVisible promptVisibleArg: Bool, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onPromptVisibilityChanged(viewId viewIdArg: Int64, promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, promptVisibleArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5761,13 +5322,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onMyLocationClicked( - viewId viewIdArg: Int64, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMyLocationClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5783,13 +5340,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onMyLocationButtonClicked( - viewId viewIdArg: Int64, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMyLocationButtonClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5805,14 +5358,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onIndoorFocusedBuildingChanged( - viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onIndoorFocusedBuildingChanged(viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, buildingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5828,14 +5376,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onIndoorActiveLevelChanged( - viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onIndoorActiveLevelChanged(viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, buildingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5851,15 +5394,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onCameraChanged( - viewId viewIdArg: Int64, eventType eventTypeArg: CameraEventTypeDto, - position positionArg: CameraPositionDto, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onCameraChanged(viewId viewIdArg: Int64, eventType eventTypeArg: CameraEventTypeDto, position positionArg: CameraPositionDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, eventTypeArg, positionArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5878,26 +5415,19 @@ class ViewEventApi: ViewEventApiProtocol { } /// Generated protocol from Pigeon that represents a handler of messages from Flutter. protocol NavigationSessionApi { - func createNavigationSession( - abnormalTerminationReportingEnabled: Bool, behavior: TaskRemovedBehaviorDto, - notificationId: Int64?, defaultMessage: String?, resumeAppOnTap: Bool?, - completion: @escaping (Result) -> Void) + func createNavigationSession(abnormalTerminationReportingEnabled: Bool, behavior: TaskRemovedBehaviorDto, notificationOptions: NavigationNotificationOptionsDto?, completion: @escaping (Result) -> Void) func isInitialized() throws -> Bool func cleanup(resetSession: Bool) throws - func showTermsAndConditionsDialog( - title: String, companyName: String, shouldOnlyShowDriverAwarenessDisclaimer: Bool, - uiParams: TermsAndConditionsUIParamsDto?, completion: @escaping (Result) -> Void) + func showTermsAndConditionsDialog(title: String, companyName: String, shouldOnlyShowDriverAwarenessDisclaimer: Bool, uiParams: TermsAndConditionsUIParamsDto?, completion: @escaping (Result) -> Void) func areTermsAccepted() throws -> Bool func resetTermsAccepted() throws func getNavSDKVersion() throws -> String func isGuidanceRunning() throws -> Bool func startGuidance() throws func stopGuidance() throws - func setDestinations( - destinations: DestinationsDto, completion: @escaping (Result) -> Void) + func setDestinations(destinations: DestinationsDto, completion: @escaping (Result) -> Void) func clearDestinations() throws - func continueToNextDestination( - completion: @escaping (Result) -> Void) + func continueToNextDestination(completion: @escaping (Result) -> Void) func getCurrentTimeAndDistance() throws -> NavigationTimeAndDistanceDto func setAudioGuidance(settings: NavigationAudioGuidanceSettingsDto) throws func setSpeedAlertOptions(options: SpeedAlertOptionsDto) throws @@ -5908,57 +5438,34 @@ protocol NavigationSessionApi { func removeUserLocation() throws func simulateLocationsAlongExistingRoute() throws func simulateLocationsAlongExistingRouteWithOptions(options: SimulationOptionsDto) throws - func simulateLocationsAlongNewRoute( - waypoints: [NavigationWaypointDto], - completion: @escaping (Result) -> Void) - func simulateLocationsAlongNewRouteWithRoutingOptions( - waypoints: [NavigationWaypointDto], routingOptions: RoutingOptionsDto, - completion: @escaping (Result) -> Void) - func simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( - waypoints: [NavigationWaypointDto], routingOptions: RoutingOptionsDto, - simulationOptions: SimulationOptionsDto, - completion: @escaping (Result) -> Void) + func simulateLocationsAlongNewRoute(waypoints: [NavigationWaypointDto], completion: @escaping (Result) -> Void) + func simulateLocationsAlongNewRouteWithRoutingOptions(waypoints: [NavigationWaypointDto], routingOptions: RoutingOptionsDto, completion: @escaping (Result) -> Void) + func simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(waypoints: [NavigationWaypointDto], routingOptions: RoutingOptionsDto, simulationOptions: SimulationOptionsDto, completion: @escaping (Result) -> Void) func pauseSimulation() throws func resumeSimulation() throws /// iOS-only method. func allowBackgroundLocationUpdates(allow: Bool) throws func enableRoadSnappedLocationUpdates() throws func disableRoadSnappedLocationUpdates() throws - func enableTurnByTurnNavigationEvents( - numNextStepsToPreview: Int64?, options: StepImageGenerationOptionsDto?) throws + func enableTurnByTurnNavigationEvents(numNextStepsToPreview: Int64?, options: StepImageGenerationOptionsDto?) throws func disableTurnByTurnNavigationEvents() throws - func registerRemainingTimeOrDistanceChangedListener( - remainingTimeThresholdSeconds: Int64, remainingDistanceThresholdMeters: Int64) throws + func registerRemainingTimeOrDistanceChangedListener(remainingTimeThresholdSeconds: Int64, remainingDistanceThresholdMeters: Int64) throws } /// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. class NavigationSessionApiSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `NavigationSessionApi` to handle messages through the `binaryMessenger`. - static func setUp( - binaryMessenger: FlutterBinaryMessenger, api: NavigationSessionApi?, - messageChannelSuffix: String = "" - ) { + static func setUp(binaryMessenger: FlutterBinaryMessenger, api: NavigationSessionApi?, messageChannelSuffix: String = "") { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let createNavigationSessionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let createNavigationSessionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { createNavigationSessionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let abnormalTerminationReportingEnabledArg = args[0] as! Bool let behaviorArg = args[1] as! TaskRemovedBehaviorDto - let notificationIdArg: Int64? = nilOrValue(args[2]) - let defaultMessageArg: String? = nilOrValue(args[3]) - let resumeAppOnTapArg: Bool? = nilOrValue(args[4]) - api.createNavigationSession( - abnormalTerminationReportingEnabled: abnormalTerminationReportingEnabledArg, - behavior: behaviorArg, - notificationId: notificationIdArg, - defaultMessage: defaultMessageArg, - resumeAppOnTap: resumeAppOnTapArg - ) { result in + let notificationOptionsArg: NavigationNotificationOptionsDto? = nilOrValue(args[2]) + api.createNavigationSession(abnormalTerminationReportingEnabled: abnormalTerminationReportingEnabledArg, behavior: behaviorArg, notificationOptions: notificationOptionsArg) { result in switch result { case .success: reply(wrapResult(nil)) @@ -5970,10 +5477,7 @@ class NavigationSessionApiSetup { } else { createNavigationSessionChannel.setMessageHandler(nil) } - let isInitializedChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isInitializedChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isInitializedChannel.setMessageHandler { _, reply in do { @@ -5986,10 +5490,7 @@ class NavigationSessionApiSetup { } else { isInitializedChannel.setMessageHandler(nil) } - let cleanupChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let cleanupChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { cleanupChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6004,10 +5505,7 @@ class NavigationSessionApiSetup { } else { cleanupChannel.setMessageHandler(nil) } - let showTermsAndConditionsDialogChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let showTermsAndConditionsDialogChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { showTermsAndConditionsDialogChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6015,11 +5513,7 @@ class NavigationSessionApiSetup { let companyNameArg = args[1] as! String let shouldOnlyShowDriverAwarenessDisclaimerArg = args[2] as! Bool let uiParamsArg: TermsAndConditionsUIParamsDto? = nilOrValue(args[3]) - api.showTermsAndConditionsDialog( - title: titleArg, companyName: companyNameArg, - shouldOnlyShowDriverAwarenessDisclaimer: shouldOnlyShowDriverAwarenessDisclaimerArg, - uiParams: uiParamsArg - ) { result in + api.showTermsAndConditionsDialog(title: titleArg, companyName: companyNameArg, shouldOnlyShowDriverAwarenessDisclaimer: shouldOnlyShowDriverAwarenessDisclaimerArg, uiParams: uiParamsArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -6031,10 +5525,7 @@ class NavigationSessionApiSetup { } else { showTermsAndConditionsDialogChannel.setMessageHandler(nil) } - let areTermsAcceptedChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let areTermsAcceptedChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { areTermsAcceptedChannel.setMessageHandler { _, reply in do { @@ -6047,10 +5538,7 @@ class NavigationSessionApiSetup { } else { areTermsAcceptedChannel.setMessageHandler(nil) } - let resetTermsAcceptedChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let resetTermsAcceptedChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { resetTermsAcceptedChannel.setMessageHandler { _, reply in do { @@ -6063,10 +5551,7 @@ class NavigationSessionApiSetup { } else { resetTermsAcceptedChannel.setMessageHandler(nil) } - let getNavSDKVersionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getNavSDKVersionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getNavSDKVersionChannel.setMessageHandler { _, reply in do { @@ -6079,10 +5564,7 @@ class NavigationSessionApiSetup { } else { getNavSDKVersionChannel.setMessageHandler(nil) } - let isGuidanceRunningChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isGuidanceRunningChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isGuidanceRunningChannel.setMessageHandler { _, reply in do { @@ -6095,10 +5577,7 @@ class NavigationSessionApiSetup { } else { isGuidanceRunningChannel.setMessageHandler(nil) } - let startGuidanceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let startGuidanceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { startGuidanceChannel.setMessageHandler { _, reply in do { @@ -6111,10 +5590,7 @@ class NavigationSessionApiSetup { } else { startGuidanceChannel.setMessageHandler(nil) } - let stopGuidanceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let stopGuidanceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { stopGuidanceChannel.setMessageHandler { _, reply in do { @@ -6127,10 +5603,7 @@ class NavigationSessionApiSetup { } else { stopGuidanceChannel.setMessageHandler(nil) } - let setDestinationsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setDestinationsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setDestinationsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6147,10 +5620,7 @@ class NavigationSessionApiSetup { } else { setDestinationsChannel.setMessageHandler(nil) } - let clearDestinationsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearDestinationsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearDestinationsChannel.setMessageHandler { _, reply in do { @@ -6163,10 +5633,7 @@ class NavigationSessionApiSetup { } else { clearDestinationsChannel.setMessageHandler(nil) } - let continueToNextDestinationChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let continueToNextDestinationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { continueToNextDestinationChannel.setMessageHandler { _, reply in api.continueToNextDestination { result in @@ -6181,10 +5648,7 @@ class NavigationSessionApiSetup { } else { continueToNextDestinationChannel.setMessageHandler(nil) } - let getCurrentTimeAndDistanceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getCurrentTimeAndDistanceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCurrentTimeAndDistanceChannel.setMessageHandler { _, reply in do { @@ -6197,10 +5661,7 @@ class NavigationSessionApiSetup { } else { getCurrentTimeAndDistanceChannel.setMessageHandler(nil) } - let setAudioGuidanceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setAudioGuidanceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setAudioGuidanceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6215,10 +5676,7 @@ class NavigationSessionApiSetup { } else { setAudioGuidanceChannel.setMessageHandler(nil) } - let setSpeedAlertOptionsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setSpeedAlertOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setSpeedAlertOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6233,10 +5691,7 @@ class NavigationSessionApiSetup { } else { setSpeedAlertOptionsChannel.setMessageHandler(nil) } - let getRouteSegmentsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getRouteSegmentsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getRouteSegmentsChannel.setMessageHandler { _, reply in do { @@ -6249,10 +5704,7 @@ class NavigationSessionApiSetup { } else { getRouteSegmentsChannel.setMessageHandler(nil) } - let getTraveledRouteChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getTraveledRouteChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getTraveledRouteChannel.setMessageHandler { _, reply in do { @@ -6265,10 +5717,7 @@ class NavigationSessionApiSetup { } else { getTraveledRouteChannel.setMessageHandler(nil) } - let getCurrentRouteSegmentChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getCurrentRouteSegmentChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCurrentRouteSegmentChannel.setMessageHandler { _, reply in do { @@ -6281,10 +5730,7 @@ class NavigationSessionApiSetup { } else { getCurrentRouteSegmentChannel.setMessageHandler(nil) } - let setUserLocationChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setUserLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setUserLocationChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6299,10 +5745,7 @@ class NavigationSessionApiSetup { } else { setUserLocationChannel.setMessageHandler(nil) } - let removeUserLocationChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let removeUserLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { removeUserLocationChannel.setMessageHandler { _, reply in do { @@ -6315,10 +5758,7 @@ class NavigationSessionApiSetup { } else { removeUserLocationChannel.setMessageHandler(nil) } - let simulateLocationsAlongExistingRouteChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let simulateLocationsAlongExistingRouteChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { simulateLocationsAlongExistingRouteChannel.setMessageHandler { _, reply in do { @@ -6331,10 +5771,7 @@ class NavigationSessionApiSetup { } else { simulateLocationsAlongExistingRouteChannel.setMessageHandler(nil) } - let simulateLocationsAlongExistingRouteWithOptionsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let simulateLocationsAlongExistingRouteWithOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { simulateLocationsAlongExistingRouteWithOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6349,10 +5786,7 @@ class NavigationSessionApiSetup { } else { simulateLocationsAlongExistingRouteWithOptionsChannel.setMessageHandler(nil) } - let simulateLocationsAlongNewRouteChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let simulateLocationsAlongNewRouteChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { simulateLocationsAlongNewRouteChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6369,18 +5803,13 @@ class NavigationSessionApiSetup { } else { simulateLocationsAlongNewRouteChannel.setMessageHandler(nil) } - let simulateLocationsAlongNewRouteWithRoutingOptionsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let simulateLocationsAlongNewRouteWithRoutingOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { simulateLocationsAlongNewRouteWithRoutingOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let waypointsArg = args[0] as! [NavigationWaypointDto] let routingOptionsArg = args[1] as! RoutingOptionsDto - api.simulateLocationsAlongNewRouteWithRoutingOptions( - waypoints: waypointsArg, routingOptions: routingOptionsArg - ) { result in + api.simulateLocationsAlongNewRouteWithRoutingOptions(waypoints: waypointsArg, routingOptions: routingOptionsArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -6392,22 +5821,14 @@ class NavigationSessionApiSetup { } else { simulateLocationsAlongNewRouteWithRoutingOptionsChannel.setMessageHandler(nil) } - let simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel = - FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { - simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel.setMessageHandler { - message, reply in + simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let waypointsArg = args[0] as! [NavigationWaypointDto] let routingOptionsArg = args[1] as! RoutingOptionsDto let simulationOptionsArg = args[2] as! SimulationOptionsDto - api.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( - waypoints: waypointsArg, routingOptions: routingOptionsArg, - simulationOptions: simulationOptionsArg - ) { result in + api.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(waypoints: waypointsArg, routingOptions: routingOptionsArg, simulationOptions: simulationOptionsArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -6419,10 +5840,7 @@ class NavigationSessionApiSetup { } else { simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel.setMessageHandler(nil) } - let pauseSimulationChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let pauseSimulationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { pauseSimulationChannel.setMessageHandler { _, reply in do { @@ -6435,10 +5853,7 @@ class NavigationSessionApiSetup { } else { pauseSimulationChannel.setMessageHandler(nil) } - let resumeSimulationChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let resumeSimulationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { resumeSimulationChannel.setMessageHandler { _, reply in do { @@ -6452,10 +5867,7 @@ class NavigationSessionApiSetup { resumeSimulationChannel.setMessageHandler(nil) } /// iOS-only method. - let allowBackgroundLocationUpdatesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let allowBackgroundLocationUpdatesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { allowBackgroundLocationUpdatesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6470,10 +5882,7 @@ class NavigationSessionApiSetup { } else { allowBackgroundLocationUpdatesChannel.setMessageHandler(nil) } - let enableRoadSnappedLocationUpdatesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let enableRoadSnappedLocationUpdatesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { enableRoadSnappedLocationUpdatesChannel.setMessageHandler { _, reply in do { @@ -6486,10 +5895,7 @@ class NavigationSessionApiSetup { } else { enableRoadSnappedLocationUpdatesChannel.setMessageHandler(nil) } - let disableRoadSnappedLocationUpdatesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let disableRoadSnappedLocationUpdatesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { disableRoadSnappedLocationUpdatesChannel.setMessageHandler { _, reply in do { @@ -6502,18 +5908,14 @@ class NavigationSessionApiSetup { } else { disableRoadSnappedLocationUpdatesChannel.setMessageHandler(nil) } - let enableTurnByTurnNavigationEventsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let enableTurnByTurnNavigationEventsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { enableTurnByTurnNavigationEventsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let numNextStepsToPreviewArg: Int64? = nilOrValue(args[0]) let optionsArg: StepImageGenerationOptionsDto? = nilOrValue(args[1]) do { - try api.enableTurnByTurnNavigationEvents( - numNextStepsToPreview: numNextStepsToPreviewArg, options: optionsArg) + try api.enableTurnByTurnNavigationEvents(numNextStepsToPreview: numNextStepsToPreviewArg, options: optionsArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -6522,10 +5924,7 @@ class NavigationSessionApiSetup { } else { enableTurnByTurnNavigationEventsChannel.setMessageHandler(nil) } - let disableTurnByTurnNavigationEventsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let disableTurnByTurnNavigationEventsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { disableTurnByTurnNavigationEventsChannel.setMessageHandler { _, reply in do { @@ -6538,19 +5937,14 @@ class NavigationSessionApiSetup { } else { disableTurnByTurnNavigationEventsChannel.setMessageHandler(nil) } - let registerRemainingTimeOrDistanceChangedListenerChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let registerRemainingTimeOrDistanceChangedListenerChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { registerRemainingTimeOrDistanceChangedListenerChannel.setMessageHandler { message, reply in let args = message as! [Any?] let remainingTimeThresholdSecondsArg = args[0] as! Int64 let remainingDistanceThresholdMetersArg = args[1] as! Int64 do { - try api.registerRemainingTimeOrDistanceChangedListener( - remainingTimeThresholdSeconds: remainingTimeThresholdSecondsArg, - remainingDistanceThresholdMeters: remainingDistanceThresholdMetersArg) + try api.registerRemainingTimeOrDistanceChangedListener(remainingTimeThresholdSeconds: remainingTimeThresholdSecondsArg, remainingDistanceThresholdMeters: remainingDistanceThresholdMetersArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -6563,34 +5957,22 @@ class NavigationSessionApiSetup { } /// Generated protocol from Pigeon that represents Flutter messages that can be called from Swift. protocol NavigationSessionEventApiProtocol { - func onSpeedingUpdated( - msg msgArg: SpeedingUpdatedEventDto, completion: @escaping (Result) -> Void) - func onRoadSnappedLocationUpdated( - location locationArg: LatLngDto, completion: @escaping (Result) -> Void) - func onRoadSnappedRawLocationUpdated( - location locationArg: LatLngDto, completion: @escaping (Result) -> Void) - func onArrival( - waypoint waypointArg: NavigationWaypointDto, - completion: @escaping (Result) -> Void) + func onSpeedingUpdated(msg msgArg: SpeedingUpdatedEventDto, completion: @escaping (Result) -> Void) + func onRoadSnappedLocationUpdated(location locationArg: LatLngDto, completion: @escaping (Result) -> Void) + func onRoadSnappedRawLocationUpdated(location locationArg: LatLngDto, completion: @escaping (Result) -> Void) + func onArrival(waypoint waypointArg: NavigationWaypointDto, completion: @escaping (Result) -> Void) func onRouteChanged(completion: @escaping (Result) -> Void) - func onRemainingTimeOrDistanceChanged( - remainingTime remainingTimeArg: Double, remainingDistance remainingDistanceArg: Double, - delaySeverity delaySeverityArg: TrafficDelaySeverityDto, - completion: @escaping (Result) -> Void) + func onRemainingTimeOrDistanceChanged(remainingTime remainingTimeArg: Double, remainingDistance remainingDistanceArg: Double, delaySeverity delaySeverityArg: TrafficDelaySeverityDto, completion: @escaping (Result) -> Void) /// Android-only event. func onTrafficUpdated(completion: @escaping (Result) -> Void) /// Android-only event. func onRerouting(completion: @escaping (Result) -> Void) /// Android-only event. - func onGpsAvailabilityUpdate( - available availableArg: Bool, completion: @escaping (Result) -> Void) + func onGpsAvailabilityUpdate(available availableArg: Bool, completion: @escaping (Result) -> Void) /// Android-only event. - func onGpsAvailabilityChange( - event eventArg: GpsAvailabilityChangeEventDto, - completion: @escaping (Result) -> Void) + func onGpsAvailabilityChange(event eventArg: GpsAvailabilityChangeEventDto, completion: @escaping (Result) -> Void) /// Turn-by-Turn navigation events. - func onNavInfo( - navInfo navInfoArg: NavInfoDto, completion: @escaping (Result) -> Void) + func onNavInfo(navInfo navInfoArg: NavInfoDto, completion: @escaping (Result) -> Void) /// Navigation session event. Called when a new navigation /// session starts with active guidance. func onNewNavigationSession(completion: @escaping (Result) -> Void) @@ -6605,13 +5987,9 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { var codec: MessagesPigeonCodec { return MessagesPigeonCodec.shared } - func onSpeedingUpdated( - msg msgArg: SpeedingUpdatedEventDto, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onSpeedingUpdated(msg msgArg: SpeedingUpdatedEventDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated\(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))) @@ -6627,13 +6005,9 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } } - func onRoadSnappedLocationUpdated( - location locationArg: LatLngDto, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onRoadSnappedLocationUpdated(location locationArg: LatLngDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([locationArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6649,13 +6023,9 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } } - func onRoadSnappedRawLocationUpdated( - location locationArg: LatLngDto, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onRoadSnappedRawLocationUpdated(location locationArg: LatLngDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([locationArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6671,14 +6041,9 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } } - func onArrival( - waypoint waypointArg: NavigationWaypointDto, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onArrival(waypoint waypointArg: NavigationWaypointDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([waypointArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6695,10 +6060,8 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } func onRouteChanged(completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged\(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))) @@ -6714,17 +6077,10 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } } - func onRemainingTimeOrDistanceChanged( - remainingTime remainingTimeArg: Double, remainingDistance remainingDistanceArg: Double, - delaySeverity delaySeverityArg: TrafficDelaySeverityDto, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([remainingTimeArg, remainingDistanceArg, delaySeverityArg] as [Any?]) { - response in + func onRemainingTimeOrDistanceChanged(remainingTime remainingTimeArg: Double, remainingDistance remainingDistanceArg: Double, delaySeverity delaySeverityArg: TrafficDelaySeverityDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([remainingTimeArg, remainingDistanceArg, delaySeverityArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) return @@ -6741,10 +6097,8 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } /// Android-only event. func onTrafficUpdated(completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated\(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))) @@ -6762,10 +6116,8 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } /// Android-only event. func onRerouting(completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting\(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))) @@ -6782,13 +6134,9 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } /// Android-only event. - func onGpsAvailabilityUpdate( - available availableArg: Bool, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onGpsAvailabilityUpdate(available availableArg: Bool, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([availableArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6805,14 +6153,9 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } /// Android-only event. - func onGpsAvailabilityChange( - event eventArg: GpsAvailabilityChangeEventDto, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onGpsAvailabilityChange(event eventArg: GpsAvailabilityChangeEventDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([eventArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6829,13 +6172,9 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } /// Turn-by-Turn navigation events. - func onNavInfo( - navInfo navInfoArg: NavInfoDto, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onNavInfo(navInfo navInfoArg: NavInfoDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([navInfoArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6854,10 +6193,8 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { /// Navigation session event. Called when a new navigation /// session starts with active guidance. func onNewNavigationSession(completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNewNavigationSession\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNewNavigationSession\(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))) @@ -6889,25 +6226,13 @@ protocol AutoMapViewApi { func getCameraPosition() throws -> CameraPositionDto func getVisibleRegion() throws -> LatLngBoundsDto func followMyLocation(perspective: CameraPerspectiveDto, zoomLevel: Double?) throws - func animateCameraToCameraPosition( - cameraPosition: CameraPositionDto, duration: Int64?, - completion: @escaping (Result) -> Void) - func animateCameraToLatLng( - point: LatLngDto, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraToLatLngBounds( - bounds: LatLngBoundsDto, padding: Double, duration: Int64?, - completion: @escaping (Result) -> Void) - func animateCameraToLatLngZoom( - point: LatLngDto, zoom: Double, duration: Int64?, - completion: @escaping (Result) -> Void) - func animateCameraByScroll( - scrollByDx: Double, scrollByDy: Double, duration: Int64?, - completion: @escaping (Result) -> Void) - func animateCameraByZoom( - zoomBy: Double, focusDx: Double?, focusDy: Double?, duration: Int64?, - completion: @escaping (Result) -> Void) - func animateCameraToZoom( - zoom: Double, duration: Int64?, completion: @escaping (Result) -> Void) + func animateCameraToCameraPosition(cameraPosition: CameraPositionDto, duration: Int64?, completion: @escaping (Result) -> Void) + func animateCameraToLatLng(point: LatLngDto, duration: Int64?, completion: @escaping (Result) -> Void) + func animateCameraToLatLngBounds(bounds: LatLngBoundsDto, padding: Double, duration: Int64?, completion: @escaping (Result) -> Void) + func animateCameraToLatLngZoom(point: LatLngDto, zoom: Double, duration: Int64?, completion: @escaping (Result) -> Void) + func animateCameraByScroll(scrollByDx: Double, scrollByDy: Double, duration: Int64?, completion: @escaping (Result) -> Void) + func animateCameraByZoom(zoomBy: Double, focusDx: Double?, focusDy: Double?, duration: Int64?, completion: @escaping (Result) -> Void) + func animateCameraToZoom(zoom: Double, duration: Int64?, completion: @escaping (Result) -> Void) func moveCameraToCameraPosition(cameraPosition: CameraPositionDto) throws func moveCameraToLatLng(point: LatLngDto) throws func moveCameraToLatLngBounds(bounds: LatLngBoundsDto, padding: Double) throws @@ -6995,17 +6320,12 @@ protocol AutoMapViewApi { class AutoMapViewApiSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `AutoMapViewApi` to handle messages through the `binaryMessenger`. - static func setUp( - binaryMessenger: FlutterBinaryMessenger, api: AutoMapViewApi?, messageChannelSuffix: String = "" - ) { + static func setUp(binaryMessenger: FlutterBinaryMessenger, api: AutoMapViewApi?, messageChannelSuffix: String = "") { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" /// Sets the map options to be used for Android Auto and CarPlay views. /// Should be called before the Auto/CarPlay screen is created. /// This allows customization of mapId and basic map settings. - let setAutoMapOptionsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setAutoMapOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setAutoMapOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7020,10 +6340,7 @@ class AutoMapViewApiSetup { } else { setAutoMapOptionsChannel.setMessageHandler(nil) } - let isMyLocationEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isMyLocationEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMyLocationEnabledChannel.setMessageHandler { _, reply in do { @@ -7036,10 +6353,7 @@ class AutoMapViewApiSetup { } else { isMyLocationEnabledChannel.setMessageHandler(nil) } - let setMyLocationEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMyLocationEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMyLocationEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7054,10 +6368,7 @@ class AutoMapViewApiSetup { } else { setMyLocationEnabledChannel.setMessageHandler(nil) } - let getMyLocationChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMyLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMyLocationChannel.setMessageHandler { _, reply in do { @@ -7070,10 +6381,7 @@ class AutoMapViewApiSetup { } else { getMyLocationChannel.setMessageHandler(nil) } - let getMapTypeChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMapTypeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMapTypeChannel.setMessageHandler { _, reply in do { @@ -7086,10 +6394,7 @@ class AutoMapViewApiSetup { } else { getMapTypeChannel.setMessageHandler(nil) } - let setMapTypeChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMapTypeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapTypeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7104,10 +6409,7 @@ class AutoMapViewApiSetup { } else { setMapTypeChannel.setMessageHandler(nil) } - let setMapStyleChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMapStyleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapStyleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7122,10 +6424,7 @@ class AutoMapViewApiSetup { } else { setMapStyleChannel.setMessageHandler(nil) } - let getCameraPositionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCameraPositionChannel.setMessageHandler { _, reply in do { @@ -7138,10 +6437,7 @@ class AutoMapViewApiSetup { } else { getCameraPositionChannel.setMessageHandler(nil) } - let getVisibleRegionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getVisibleRegionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getVisibleRegionChannel.setMessageHandler { _, reply in do { @@ -7154,10 +6450,7 @@ class AutoMapViewApiSetup { } else { getVisibleRegionChannel.setMessageHandler(nil) } - let followMyLocationChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let followMyLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { followMyLocationChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7173,17 +6466,13 @@ class AutoMapViewApiSetup { } else { followMyLocationChannel.setMessageHandler(nil) } - let animateCameraToCameraPositionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let cameraPositionArg = args[0] as! CameraPositionDto let durationArg: Int64? = nilOrValue(args[1]) - api.animateCameraToCameraPosition(cameraPosition: cameraPositionArg, duration: durationArg) - { result in + api.animateCameraToCameraPosition(cameraPosition: cameraPositionArg, duration: durationArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -7195,10 +6484,7 @@ class AutoMapViewApiSetup { } else { animateCameraToCameraPositionChannel.setMessageHandler(nil) } - let animateCameraToLatLngChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7216,19 +6502,14 @@ class AutoMapViewApiSetup { } else { animateCameraToLatLngChannel.setMessageHandler(nil) } - let animateCameraToLatLngBoundsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngBoundsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngBoundsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let boundsArg = args[0] as! LatLngBoundsDto let paddingArg = args[1] as! Double let durationArg: Int64? = nilOrValue(args[2]) - api.animateCameraToLatLngBounds( - bounds: boundsArg, padding: paddingArg, duration: durationArg - ) { result in + api.animateCameraToLatLngBounds(bounds: boundsArg, padding: paddingArg, duration: durationArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -7240,18 +6521,14 @@ class AutoMapViewApiSetup { } else { animateCameraToLatLngBoundsChannel.setMessageHandler(nil) } - let animateCameraToLatLngZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pointArg = args[0] as! LatLngDto let zoomArg = args[1] as! Double let durationArg: Int64? = nilOrValue(args[2]) - api.animateCameraToLatLngZoom(point: pointArg, zoom: zoomArg, duration: durationArg) { - result in + api.animateCameraToLatLngZoom(point: pointArg, zoom: zoomArg, duration: durationArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -7263,19 +6540,14 @@ class AutoMapViewApiSetup { } else { animateCameraToLatLngZoomChannel.setMessageHandler(nil) } - let animateCameraByScrollChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraByScrollChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraByScrollChannel.setMessageHandler { message, reply in let args = message as! [Any?] let scrollByDxArg = args[0] as! Double let scrollByDyArg = args[1] as! Double let durationArg: Int64? = nilOrValue(args[2]) - api.animateCameraByScroll( - scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg, duration: durationArg - ) { result in + api.animateCameraByScroll(scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg, duration: durationArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -7287,10 +6559,7 @@ class AutoMapViewApiSetup { } else { animateCameraByScrollChannel.setMessageHandler(nil) } - let animateCameraByZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraByZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraByZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7298,9 +6567,7 @@ class AutoMapViewApiSetup { let focusDxArg: Double? = nilOrValue(args[1]) let focusDyArg: Double? = nilOrValue(args[2]) let durationArg: Int64? = nilOrValue(args[3]) - api.animateCameraByZoom( - zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg, duration: durationArg - ) { result in + api.animateCameraByZoom(zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg, duration: durationArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -7312,10 +6579,7 @@ class AutoMapViewApiSetup { } else { animateCameraByZoomChannel.setMessageHandler(nil) } - let animateCameraToZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7333,10 +6597,7 @@ class AutoMapViewApiSetup { } else { animateCameraToZoomChannel.setMessageHandler(nil) } - let moveCameraToCameraPositionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7351,10 +6612,7 @@ class AutoMapViewApiSetup { } else { moveCameraToCameraPositionChannel.setMessageHandler(nil) } - let moveCameraToLatLngChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7369,10 +6627,7 @@ class AutoMapViewApiSetup { } else { moveCameraToLatLngChannel.setMessageHandler(nil) } - let moveCameraToLatLngBoundsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngBoundsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngBoundsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7388,10 +6643,7 @@ class AutoMapViewApiSetup { } else { moveCameraToLatLngBoundsChannel.setMessageHandler(nil) } - let moveCameraToLatLngZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7407,10 +6659,7 @@ class AutoMapViewApiSetup { } else { moveCameraToLatLngZoomChannel.setMessageHandler(nil) } - let moveCameraByScrollChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraByScrollChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraByScrollChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7426,10 +6675,7 @@ class AutoMapViewApiSetup { } else { moveCameraByScrollChannel.setMessageHandler(nil) } - let moveCameraByZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraByZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraByZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7446,10 +6692,7 @@ class AutoMapViewApiSetup { } else { moveCameraByZoomChannel.setMessageHandler(nil) } - let moveCameraToZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7464,10 +6707,7 @@ class AutoMapViewApiSetup { } else { moveCameraToZoomChannel.setMessageHandler(nil) } - let getMinZoomPreferenceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMinZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMinZoomPreferenceChannel.setMessageHandler { _, reply in do { @@ -7480,10 +6720,7 @@ class AutoMapViewApiSetup { } else { getMinZoomPreferenceChannel.setMessageHandler(nil) } - let getMaxZoomPreferenceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMaxZoomPreferenceChannel.setMessageHandler { _, reply in do { @@ -7496,10 +6733,7 @@ class AutoMapViewApiSetup { } else { getMaxZoomPreferenceChannel.setMessageHandler(nil) } - let resetMinMaxZoomPreferenceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let resetMinMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { resetMinMaxZoomPreferenceChannel.setMessageHandler { _, reply in do { @@ -7512,10 +6746,7 @@ class AutoMapViewApiSetup { } else { resetMinMaxZoomPreferenceChannel.setMessageHandler(nil) } - let setMinZoomPreferenceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMinZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMinZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7530,10 +6761,7 @@ class AutoMapViewApiSetup { } else { setMinZoomPreferenceChannel.setMessageHandler(nil) } - let setMaxZoomPreferenceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMaxZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7548,10 +6776,7 @@ class AutoMapViewApiSetup { } else { setMaxZoomPreferenceChannel.setMessageHandler(nil) } - let setMyLocationButtonEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMyLocationButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMyLocationButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7566,10 +6791,7 @@ class AutoMapViewApiSetup { } else { setMyLocationButtonEnabledChannel.setMessageHandler(nil) } - let setConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7584,10 +6806,7 @@ class AutoMapViewApiSetup { } else { setConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler(nil) } - let setZoomGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setZoomGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setZoomGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7602,10 +6821,7 @@ class AutoMapViewApiSetup { } else { setZoomGesturesEnabledChannel.setMessageHandler(nil) } - let setZoomControlsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setZoomControlsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setZoomControlsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7620,10 +6836,7 @@ class AutoMapViewApiSetup { } else { setZoomControlsEnabledChannel.setMessageHandler(nil) } - let setCompassEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setCompassEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setCompassEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7638,10 +6851,7 @@ class AutoMapViewApiSetup { } else { setCompassEnabledChannel.setMessageHandler(nil) } - let setRotateGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setRotateGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setRotateGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7656,10 +6866,7 @@ class AutoMapViewApiSetup { } else { setRotateGesturesEnabledChannel.setMessageHandler(nil) } - let setScrollGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setScrollGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setScrollGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7674,10 +6881,7 @@ class AutoMapViewApiSetup { } else { setScrollGesturesEnabledChannel.setMessageHandler(nil) } - let setScrollGesturesDuringRotateOrZoomEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setScrollGesturesDuringRotateOrZoomEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setScrollGesturesDuringRotateOrZoomEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7692,10 +6896,7 @@ class AutoMapViewApiSetup { } else { setScrollGesturesDuringRotateOrZoomEnabledChannel.setMessageHandler(nil) } - let setTiltGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setTiltGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTiltGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7710,10 +6911,7 @@ class AutoMapViewApiSetup { } else { setTiltGesturesEnabledChannel.setMessageHandler(nil) } - let setMapToolbarEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMapToolbarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapToolbarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7728,10 +6926,7 @@ class AutoMapViewApiSetup { } else { setMapToolbarEnabledChannel.setMessageHandler(nil) } - let setTrafficEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setTrafficEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7746,10 +6941,7 @@ class AutoMapViewApiSetup { } else { setTrafficEnabledChannel.setMessageHandler(nil) } - let setTrafficPromptsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setTrafficPromptsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficPromptsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7764,10 +6956,7 @@ class AutoMapViewApiSetup { } else { setTrafficPromptsEnabledChannel.setMessageHandler(nil) } - let setTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficIncidentCardsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7782,10 +6971,7 @@ class AutoMapViewApiSetup { } else { setTrafficIncidentCardsEnabledChannel.setMessageHandler(nil) } - let setNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationTripProgressBarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7800,10 +6986,7 @@ class AutoMapViewApiSetup { } else { setNavigationTripProgressBarEnabledChannel.setMessageHandler(nil) } - let setSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setSpeedLimitIconEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7818,10 +7001,7 @@ class AutoMapViewApiSetup { } else { setSpeedLimitIconEnabledChannel.setMessageHandler(nil) } - let setSpeedometerEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setSpeedometerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setSpeedometerEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7836,10 +7016,7 @@ class AutoMapViewApiSetup { } else { setSpeedometerEnabledChannel.setMessageHandler(nil) } - let setNavigationUIEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setNavigationUIEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationUIEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7854,10 +7031,7 @@ class AutoMapViewApiSetup { } else { setNavigationUIEnabledChannel.setMessageHandler(nil) } - let isMyLocationButtonEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isMyLocationButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMyLocationButtonEnabledChannel.setMessageHandler { _, reply in do { @@ -7870,10 +7044,7 @@ class AutoMapViewApiSetup { } else { isMyLocationButtonEnabledChannel.setMessageHandler(nil) } - let isConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler { _, reply in do { @@ -7886,10 +7057,7 @@ class AutoMapViewApiSetup { } else { isConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler(nil) } - let isZoomGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isZoomGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isZoomGesturesEnabledChannel.setMessageHandler { _, reply in do { @@ -7902,10 +7070,7 @@ class AutoMapViewApiSetup { } else { isZoomGesturesEnabledChannel.setMessageHandler(nil) } - let isZoomControlsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isZoomControlsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isZoomControlsEnabledChannel.setMessageHandler { _, reply in do { @@ -7918,10 +7083,7 @@ class AutoMapViewApiSetup { } else { isZoomControlsEnabledChannel.setMessageHandler(nil) } - let isCompassEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isCompassEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isCompassEnabledChannel.setMessageHandler { _, reply in do { @@ -7934,10 +7096,7 @@ class AutoMapViewApiSetup { } else { isCompassEnabledChannel.setMessageHandler(nil) } - let isRotateGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isRotateGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isRotateGesturesEnabledChannel.setMessageHandler { _, reply in do { @@ -7950,10 +7109,7 @@ class AutoMapViewApiSetup { } else { isRotateGesturesEnabledChannel.setMessageHandler(nil) } - let isScrollGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isScrollGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isScrollGesturesEnabledChannel.setMessageHandler { _, reply in do { @@ -7966,10 +7122,7 @@ class AutoMapViewApiSetup { } else { isScrollGesturesEnabledChannel.setMessageHandler(nil) } - let isScrollGesturesEnabledDuringRotateOrZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isScrollGesturesEnabledDuringRotateOrZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isScrollGesturesEnabledDuringRotateOrZoomChannel.setMessageHandler { _, reply in do { @@ -7982,10 +7135,7 @@ class AutoMapViewApiSetup { } else { isScrollGesturesEnabledDuringRotateOrZoomChannel.setMessageHandler(nil) } - let isTiltGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isTiltGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTiltGesturesEnabledChannel.setMessageHandler { _, reply in do { @@ -7998,10 +7148,7 @@ class AutoMapViewApiSetup { } else { isTiltGesturesEnabledChannel.setMessageHandler(nil) } - let isMapToolbarEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isMapToolbarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMapToolbarEnabledChannel.setMessageHandler { _, reply in do { @@ -8014,10 +7161,7 @@ class AutoMapViewApiSetup { } else { isMapToolbarEnabledChannel.setMessageHandler(nil) } - let isTrafficEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isTrafficEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficEnabledChannel.setMessageHandler { _, reply in do { @@ -8030,10 +7174,7 @@ class AutoMapViewApiSetup { } else { isTrafficEnabledChannel.setMessageHandler(nil) } - let isTrafficPromptsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isTrafficPromptsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficPromptsEnabledChannel.setMessageHandler { _, reply in do { @@ -8046,10 +7187,7 @@ class AutoMapViewApiSetup { } else { isTrafficPromptsEnabledChannel.setMessageHandler(nil) } - let isTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficIncidentCardsEnabledChannel.setMessageHandler { _, reply in do { @@ -8062,10 +7200,7 @@ class AutoMapViewApiSetup { } else { isTrafficIncidentCardsEnabledChannel.setMessageHandler(nil) } - let isNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationTripProgressBarEnabledChannel.setMessageHandler { _, reply in do { @@ -8078,10 +7213,7 @@ class AutoMapViewApiSetup { } else { isNavigationTripProgressBarEnabledChannel.setMessageHandler(nil) } - let isSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isSpeedLimitIconEnabledChannel.setMessageHandler { _, reply in do { @@ -8094,10 +7226,7 @@ class AutoMapViewApiSetup { } else { isSpeedLimitIconEnabledChannel.setMessageHandler(nil) } - let isSpeedometerEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isSpeedometerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isSpeedometerEnabledChannel.setMessageHandler { _, reply in do { @@ -8110,10 +7239,7 @@ class AutoMapViewApiSetup { } else { isSpeedometerEnabledChannel.setMessageHandler(nil) } - let isNavigationUIEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isNavigationUIEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationUIEnabledChannel.setMessageHandler { _, reply in do { @@ -8126,10 +7252,7 @@ class AutoMapViewApiSetup { } else { isNavigationUIEnabledChannel.setMessageHandler(nil) } - let isIndoorEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isIndoorEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isIndoorEnabledChannel.setMessageHandler { _, reply in do { @@ -8142,10 +7265,7 @@ class AutoMapViewApiSetup { } else { isIndoorEnabledChannel.setMessageHandler(nil) } - let setIndoorEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setIndoorEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setIndoorEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8160,10 +7280,7 @@ class AutoMapViewApiSetup { } else { setIndoorEnabledChannel.setMessageHandler(nil) } - let getFocusedIndoorBuildingChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getFocusedIndoorBuildingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getFocusedIndoorBuildingChannel.setMessageHandler { _, reply in do { @@ -8176,10 +7293,7 @@ class AutoMapViewApiSetup { } else { getFocusedIndoorBuildingChannel.setMessageHandler(nil) } - let activateIndoorLevelChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let activateIndoorLevelChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { activateIndoorLevelChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8194,10 +7308,7 @@ class AutoMapViewApiSetup { } else { activateIndoorLevelChannel.setMessageHandler(nil) } - let showRouteOverviewChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let showRouteOverviewChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { showRouteOverviewChannel.setMessageHandler { _, reply in do { @@ -8210,10 +7321,7 @@ class AutoMapViewApiSetup { } else { showRouteOverviewChannel.setMessageHandler(nil) } - let getMarkersChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMarkersChannel.setMessageHandler { _, reply in do { @@ -8226,10 +7334,7 @@ class AutoMapViewApiSetup { } else { getMarkersChannel.setMessageHandler(nil) } - let addMarkersChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let addMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { addMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8244,10 +7349,7 @@ class AutoMapViewApiSetup { } else { addMarkersChannel.setMessageHandler(nil) } - let updateMarkersChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let updateMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { updateMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8262,10 +7364,7 @@ class AutoMapViewApiSetup { } else { updateMarkersChannel.setMessageHandler(nil) } - let removeMarkersChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let removeMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { removeMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8280,10 +7379,7 @@ class AutoMapViewApiSetup { } else { removeMarkersChannel.setMessageHandler(nil) } - let clearMarkersChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearMarkersChannel.setMessageHandler { _, reply in do { @@ -8296,9 +7392,7 @@ class AutoMapViewApiSetup { } else { clearMarkersChannel.setMessageHandler(nil) } - let clearChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearChannel.setMessageHandler { _, reply in do { @@ -8311,10 +7405,7 @@ class AutoMapViewApiSetup { } else { clearChannel.setMessageHandler(nil) } - let getPolygonsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPolygonsChannel.setMessageHandler { _, reply in do { @@ -8327,10 +7418,7 @@ class AutoMapViewApiSetup { } else { getPolygonsChannel.setMessageHandler(nil) } - let addPolygonsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let addPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { addPolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8345,10 +7433,7 @@ class AutoMapViewApiSetup { } else { addPolygonsChannel.setMessageHandler(nil) } - let updatePolygonsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let updatePolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { updatePolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8363,10 +7448,7 @@ class AutoMapViewApiSetup { } else { updatePolygonsChannel.setMessageHandler(nil) } - let removePolygonsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let removePolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { removePolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8381,10 +7463,7 @@ class AutoMapViewApiSetup { } else { removePolygonsChannel.setMessageHandler(nil) } - let clearPolygonsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearPolygonsChannel.setMessageHandler { _, reply in do { @@ -8397,10 +7476,7 @@ class AutoMapViewApiSetup { } else { clearPolygonsChannel.setMessageHandler(nil) } - let getPolylinesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPolylinesChannel.setMessageHandler { _, reply in do { @@ -8413,10 +7489,7 @@ class AutoMapViewApiSetup { } else { getPolylinesChannel.setMessageHandler(nil) } - let addPolylinesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let addPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { addPolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8431,10 +7504,7 @@ class AutoMapViewApiSetup { } else { addPolylinesChannel.setMessageHandler(nil) } - let updatePolylinesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let updatePolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { updatePolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8449,10 +7519,7 @@ class AutoMapViewApiSetup { } else { updatePolylinesChannel.setMessageHandler(nil) } - let removePolylinesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let removePolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { removePolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8467,10 +7534,7 @@ class AutoMapViewApiSetup { } else { removePolylinesChannel.setMessageHandler(nil) } - let clearPolylinesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearPolylinesChannel.setMessageHandler { _, reply in do { @@ -8483,10 +7547,7 @@ class AutoMapViewApiSetup { } else { clearPolylinesChannel.setMessageHandler(nil) } - let getCirclesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCirclesChannel.setMessageHandler { _, reply in do { @@ -8499,10 +7560,7 @@ class AutoMapViewApiSetup { } else { getCirclesChannel.setMessageHandler(nil) } - let addCirclesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let addCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { addCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8517,10 +7575,7 @@ class AutoMapViewApiSetup { } else { addCirclesChannel.setMessageHandler(nil) } - let updateCirclesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let updateCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { updateCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8535,10 +7590,7 @@ class AutoMapViewApiSetup { } else { updateCirclesChannel.setMessageHandler(nil) } - let removeCirclesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let removeCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { removeCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8553,10 +7605,7 @@ class AutoMapViewApiSetup { } else { removeCirclesChannel.setMessageHandler(nil) } - let clearCirclesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearCirclesChannel.setMessageHandler { _, reply in do { @@ -8569,10 +7618,7 @@ class AutoMapViewApiSetup { } else { clearCirclesChannel.setMessageHandler(nil) } - let enableOnCameraChangedEventsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let enableOnCameraChangedEventsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { enableOnCameraChangedEventsChannel.setMessageHandler { _, reply in do { @@ -8585,10 +7631,7 @@ class AutoMapViewApiSetup { } else { enableOnCameraChangedEventsChannel.setMessageHandler(nil) } - let isAutoScreenAvailableChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isAutoScreenAvailableChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isAutoScreenAvailableChannel.setMessageHandler { _, reply in do { @@ -8601,10 +7644,7 @@ class AutoMapViewApiSetup { } else { isAutoScreenAvailableChannel.setMessageHandler(nil) } - let setPaddingChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setPaddingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setPaddingChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8619,10 +7659,7 @@ class AutoMapViewApiSetup { } else { setPaddingChannel.setMessageHandler(nil) } - let getPaddingChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getPaddingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPaddingChannel.setMessageHandler { _, reply in do { @@ -8635,10 +7672,7 @@ class AutoMapViewApiSetup { } else { getPaddingChannel.setMessageHandler(nil) } - let getMapColorSchemeChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMapColorSchemeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMapColorSchemeChannel.setMessageHandler { _, reply in do { @@ -8651,10 +7685,7 @@ class AutoMapViewApiSetup { } else { getMapColorSchemeChannel.setMessageHandler(nil) } - let setMapColorSchemeChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMapColorSchemeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapColorSchemeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8669,10 +7700,7 @@ class AutoMapViewApiSetup { } else { setMapColorSchemeChannel.setMessageHandler(nil) } - let getForceNightModeChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getForceNightModeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getForceNightModeChannel.setMessageHandler { _, reply in do { @@ -8685,10 +7713,7 @@ class AutoMapViewApiSetup { } else { getForceNightModeChannel.setMessageHandler(nil) } - let setForceNightModeChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setForceNightModeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setForceNightModeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8703,10 +7728,7 @@ class AutoMapViewApiSetup { } else { setForceNightModeChannel.setMessageHandler(nil) } - let sendCustomNavigationAutoEventChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let sendCustomNavigationAutoEventChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { sendCustomNavigationAutoEventChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8726,22 +7748,12 @@ class AutoMapViewApiSetup { } /// Generated protocol from Pigeon that represents Flutter messages that can be called from Swift. protocol AutoViewEventApiProtocol { - func onCustomNavigationAutoEvent( - event eventArg: String, data dataArg: Any, - completion: @escaping (Result) -> Void) - func onAutoScreenAvailabilityChanged( - isAvailable isAvailableArg: Bool, completion: @escaping (Result) -> Void) - func onPromptVisibilityChanged( - promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void) - func onNavigationUIEnabledChanged( - navigationUIEnabled navigationUIEnabledArg: Bool, - completion: @escaping (Result) -> Void) - func onIndoorFocusedBuildingChanged( - building buildingArg: IndoorBuildingDto?, - completion: @escaping (Result) -> Void) - func onIndoorActiveLevelChanged( - building buildingArg: IndoorBuildingDto?, - completion: @escaping (Result) -> Void) + func onCustomNavigationAutoEvent(event eventArg: String, data dataArg: Any, completion: @escaping (Result) -> Void) + func onAutoScreenAvailabilityChanged(isAvailable isAvailableArg: Bool, completion: @escaping (Result) -> Void) + func onPromptVisibilityChanged(promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void) + func onNavigationUIEnabledChanged(navigationUIEnabled navigationUIEnabledArg: Bool, completion: @escaping (Result) -> Void) + func onIndoorFocusedBuildingChanged(building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) + func onIndoorActiveLevelChanged(building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) } class AutoViewEventApi: AutoViewEventApiProtocol { private let binaryMessenger: FlutterBinaryMessenger @@ -8753,14 +7765,9 @@ class AutoViewEventApi: AutoViewEventApiProtocol { var codec: MessagesPigeonCodec { return MessagesPigeonCodec.shared } - func onCustomNavigationAutoEvent( - event eventArg: String, data dataArg: Any, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onCustomNavigationAutoEvent(event eventArg: String, data dataArg: Any, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([eventArg, dataArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -8776,13 +7783,9 @@ class AutoViewEventApi: AutoViewEventApiProtocol { } } } - func onAutoScreenAvailabilityChanged( - isAvailable isAvailableArg: Bool, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onAutoScreenAvailabilityChanged(isAvailable isAvailableArg: Bool, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([isAvailableArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -8798,13 +7801,9 @@ class AutoViewEventApi: AutoViewEventApiProtocol { } } } - func onPromptVisibilityChanged( - promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onPromptVisibilityChanged(promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([promptVisibleArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -8820,14 +7819,9 @@ class AutoViewEventApi: AutoViewEventApiProtocol { } } } - func onNavigationUIEnabledChanged( - navigationUIEnabled navigationUIEnabledArg: Bool, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onNavigationUIEnabledChanged(navigationUIEnabled navigationUIEnabledArg: Bool, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([navigationUIEnabledArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -8843,14 +7837,9 @@ class AutoViewEventApi: AutoViewEventApiProtocol { } } } - func onIndoorFocusedBuildingChanged( - building buildingArg: IndoorBuildingDto?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onIndoorFocusedBuildingChanged(building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([buildingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -8866,14 +7855,9 @@ class AutoViewEventApi: AutoViewEventApiProtocol { } } } - func onIndoorActiveLevelChanged( - building buildingArg: IndoorBuildingDto?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onIndoorActiveLevelChanged(building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([buildingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -8899,15 +7883,9 @@ protocol NavigationInspector { class NavigationInspectorSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `NavigationInspector` to handle messages through the `binaryMessenger`. - static func setUp( - binaryMessenger: FlutterBinaryMessenger, api: NavigationInspector?, - messageChannelSuffix: String = "" - ) { + static func setUp(binaryMessenger: FlutterBinaryMessenger, api: NavigationInspector?, messageChannelSuffix: String = "") { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let isViewAttachedToSessionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isViewAttachedToSessionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isViewAttachedToSessionChannel.setMessageHandler { message, reply in let args = message as! [Any?] diff --git a/lib/src/method_channel/convert/navigation.dart b/lib/src/method_channel/convert/navigation.dart index 12a9a9bf..f41d1b9e 100644 --- a/lib/src/method_channel/convert/navigation.dart +++ b/lib/src/method_channel/convert/navigation.dart @@ -17,6 +17,17 @@ import 'dart:ui'; import '../../../google_navigation_flutter.dart'; import '../method_channel.dart'; +/// [NavigationNotificationOptions] convert extension. +/// @nodoc +extension ConvertNavigationNotificationOptions on NavigationNotificationOptions { + /// Converts [NavigationNotificationOptions] to its platform representation. + NavigationNotificationOptionsDto toDto() => NavigationNotificationOptionsDto( + notificationId: notificationId, + defaultMessage: defaultMessage, + resumeAppOnTap: resumeAppOnTap, + ); +} + /// [SpeedAlertSeverityDto] convert extension. /// @nodoc extension ConvertSpeedAlertSeverityDto on SpeedAlertSeverityDto { diff --git a/lib/src/method_channel/messages.g.dart b/lib/src/method_channel/messages.g.dart index 47e9730d..554a7867 100644 --- a/lib/src/method_channel/messages.g.dart +++ b/lib/src/method_channel/messages.g.dart @@ -29,11 +29,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 []; } @@ -42,30 +38,25 @@ List wrapResponse({ } return [error.code, error.message, error.details]; } - bool _deepEquals(Object? a, Object? b) { if (a is List && b is List) { return a.length == b.length && - a.indexed.every( - ((int, dynamic) item) => _deepEquals(item.$2, b[item.$1]), - ); + a.indexed + .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); } if (a is Map && b is Map) { - return a.length == b.length && - a.entries.every( - (MapEntry entry) => - (b as Map).containsKey(entry.key) && - _deepEquals(entry.value, b[entry.key]), - ); + return a.length == b.length && a.entries.every((MapEntry entry) => + (b as Map).containsKey(entry.key) && + _deepEquals(entry.value, b[entry.key])); } return a == b; } + /// Describes the type of map to construct. enum MapViewTypeDto { /// Navigation view supports navigation overlay, and current navigation session is displayed on the map. navigation, - /// Classic map view, without navigation overlay. map, } @@ -75,21 +66,24 @@ enum NavigationUIEnabledPreferenceDto { /// Navigation UI gets enabled if the navigation /// session has already been successfully started. automatic, - /// Navigation UI is disabled. disabled, } -enum MapTypeDto { none, normal, satellite, terrain, hybrid } +enum MapTypeDto { + none, + normal, + satellite, + terrain, + hybrid, +} /// Map color scheme mode. enum MapColorSchemeDto { /// Follow system or SDK default (automatic). followSystem, - /// Force light color scheme. light, - /// Force dark color scheme. dark, } @@ -98,23 +92,23 @@ enum MapColorSchemeDto { enum NavigationForceNightModeDto { /// Let the SDK automatically determine day or night. auto, - /// Force day mode regardless of time or location. forceDay, - /// Force night mode regardless of time or location. forceNight, } -enum CameraPerspectiveDto { tilted, topDownHeadingUp, topDownNorthUp } +enum CameraPerspectiveDto { + tilted, + topDownHeadingUp, + topDownNorthUp, +} enum RegisteredImageTypeDto { /// Default type used when custom bitmaps are uploaded to registry regular, - /// Maneuver image generated from StepInfo data maneuver, - /// Lanes guidance image generated from StepInfo data lanes, } @@ -126,11 +120,23 @@ enum MarkerEventTypeDto { infoWindowLongClicked, } -enum MarkerDragEventTypeDto { drag, dragStart, dragEnd } +enum MarkerDragEventTypeDto { + drag, + dragStart, + dragEnd, +} -enum StrokeJointTypeDto { bevel, defaultJoint, round } +enum StrokeJointTypeDto { + bevel, + defaultJoint, + round, +} -enum PatternTypeDto { dash, dot, gap } +enum PatternTypeDto { + dash, + dot, + gap, +} enum CameraEventTypeDto { moveStartedByApi, @@ -141,11 +147,25 @@ enum CameraEventTypeDto { onCameraStoppedFollowingLocation, } -enum AlternateRoutesStrategyDto { all, none, one } +enum AlternateRoutesStrategyDto { + all, + none, + one, +} -enum RoutingStrategyDto { defaultBest, deltaToTargetDistance, shorter } +enum RoutingStrategyDto { + defaultBest, + deltaToTargetDistance, + shorter, +} -enum TravelModeDto { driving, cycling, walking, twoWheeler, taxi } +enum TravelModeDto { + driving, + cycling, + walking, + twoWheeler, + taxi, +} enum RouteStatusDto { internalError, @@ -165,13 +185,30 @@ enum RouteStatusDto { unknown, } -enum TrafficDelaySeverityDto { light, medium, heavy, noData } +enum TrafficDelaySeverityDto { + light, + medium, + heavy, + noData, +} -enum AudioGuidanceTypeDto { silent, alertsOnly, alertsAndGuidance } +enum AudioGuidanceTypeDto { + silent, + alertsOnly, + alertsAndGuidance, +} -enum SpeedAlertSeverityDto { unknown, notSpeeding, minor, major } +enum SpeedAlertSeverityDto { + unknown, + notSpeeding, + minor, + major, +} -enum RouteSegmentTrafficDataStatusDto { ok, unavailable } +enum RouteSegmentTrafficDataStatusDto { + ok, + unavailable, +} enum RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto { unknown, @@ -183,199 +220,134 @@ enum RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto { enum ManeuverDto { /// Arrival at a destination. destination, - /// Starting point of the maneuver. depart, - /// Arrival at a destination located on the left side of the road. destinationLeft, - /// Arrival at a destination located on the right side of the road. destinationRight, - /// Take the boat ferry. ferryBoat, - /// Take the train ferry. ferryTrain, - /// Current road joins another road slightly on the left. forkLeft, - /// Current road joins another road slightly on the right. forkRight, - /// Current road joins another on the left. mergeLeft, - /// Current road joins another on the right. mergeRight, - /// Current road joins another. mergeUnspecified, - /// The street name changes. nameChange, - /// Keep to the left side of the road when exiting a turnpike or freeway as the road diverges. offRampKeepLeft, - /// Keep to the right side of the road when exiting a turnpike or freeway as the road diverges. offRampKeepRight, - /// Regular left turn to exit a turnpike or freeway. offRampLeft, - /// Regular right turn to exit a turnpike or freeway. offRampRight, - /// Sharp left turn to exit a turnpike or freeway. offRampSharpLeft, - /// Sharp right turn to exit a turnpike or freeway. offRampSharpRight, - /// Slight left turn to exit a turnpike or freeway. offRampSlightLeft, - /// Slight right turn to exit a turnpike or freeway. offRampSlightRight, - /// Exit a turnpike or freeway. offRampUnspecified, - /// Clockwise turn onto the opposite side of the street to exit a turnpike or freeway. offRampUTurnClockwise, - /// Counterclockwise turn onto the opposite side of the street to exit a turnpike or freeway. offRampUTurnCounterclockwise, - /// Keep to the left side of the road when entering a turnpike or freeway as the road diverges. onRampKeepLeft, - /// Keep to the right side of the road when entering a turnpike or freeway as the road diverges. onRampKeepRight, - /// Regular left turn to enter a turnpike or freeway. onRampLeft, - /// Regular right turn to enter a turnpike or freeway. onRampRight, - /// Sharp left turn to enter a turnpike or freeway. onRampSharpLeft, - /// Sharp right turn to enter a turnpike or freeway. onRampSharpRight, - /// Slight left turn to enter a turnpike or freeway. onRampSlightLeft, - /// Slight right turn to enter a turnpike or freeway. onRampSlightRight, - /// Enter a turnpike or freeway. onRampUnspecified, - /// Clockwise turn onto the opposite side of the street to enter a turnpike or freeway. onRampUTurnClockwise, - /// Counterclockwise turn onto the opposite side of the street to enter a turnpike or freeway. onRampUTurnCounterclockwise, - /// Enter a roundabout in the clockwise direction. roundaboutClockwise, - /// Enter a roundabout in the counterclockwise direction. roundaboutCounterclockwise, - /// Exit a roundabout in the clockwise direction. roundaboutExitClockwise, - /// Exit a roundabout in the counterclockwise direction. roundaboutExitCounterclockwise, - /// Enter a roundabout in the clockwise direction and turn left. roundaboutLeftClockwise, - /// Enter a roundabout in the counterclockwise direction and turn left. roundaboutLeftCounterclockwise, - /// Enter a roundabout in the clockwise direction and turn right. roundaboutRightClockwise, - /// Enter a roundabout in the counterclockwise direction and turn right. roundaboutRightCounterclockwise, - /// Enter a roundabout in the clockwise direction and turn sharply to the left. roundaboutSharpLeftClockwise, - /// Enter a roundabout in the counterclockwise direction and turn sharply to the left. roundaboutSharpLeftCounterclockwise, - /// Enter a roundabout in the clockwise direction and turn sharply to the right. roundaboutSharpRightClockwise, - /// Enter a roundabout in the counterclockwise direction and turn sharply to the right. roundaboutSharpRightCounterclockwise, - /// Enter a roundabout in the clockwise direction and turn slightly left. roundaboutSlightLeftClockwise, - /// Enter a roundabout in the counterclockwise direction and turn slightly to the left. roundaboutSlightLeftCounterclockwise, - /// Enter a roundabout in the clockwise direction and turn slightly to the right. roundaboutSlightRightClockwise, - /// Enter a roundabout in the counterclockwise direction and turn slightly to the right. roundaboutSlightRightCounterclockwise, - /// Enter a roundabout in the clockwise direction and continue straight. roundaboutStraightClockwise, - /// Enter a roundabout in the counterclockwise direction and continue straight. roundaboutStraightCounterclockwise, - /// Enter a roundabout in the clockwise direction and turn clockwise onto the opposite side of the street. roundaboutUTurnClockwise, - /// Enter a roundabout in the counterclockwise direction and turn counterclockwise onto the opposite side of the street. roundaboutUTurnCounterclockwise, - /// Continue straight. straight, - /// Keep left as the road diverges. turnKeepLeft, - /// Keep right as the road diverges. turnKeepRight, - /// Regular left turn at an intersection. turnLeft, - /// Regular right turn at an intersection. turnRight, - /// Sharp left turn at an intersection. turnSharpLeft, - /// Sharp right turn at an intersection. turnSharpRight, - /// Slight left turn at an intersection. turnSlightLeft, - /// Slight right turn at an intersection. turnSlightRight, - /// Clockwise turn onto the opposite side of the street. turnUTurnClockwise, - /// Counterclockwise turn onto the opposite side of the street. turnUTurnCounterclockwise, - /// Unknown maneuver. unknown, } @@ -384,10 +356,8 @@ enum ManeuverDto { enum DrivingSideDto { /// Drive-on-left side. left, - /// Unspecified side. none, - /// Drive-on-right side. right, } @@ -396,13 +366,10 @@ enum DrivingSideDto { enum NavStateDto { /// Actively navigating. enroute, - /// Actively navigating but searching for a new route. rerouting, - /// Navigation has ended. stopped, - /// Error or unspecified state. unknown, } @@ -411,31 +378,22 @@ enum NavStateDto { enum LaneShapeDto { /// Normal left turn (45-135 degrees). normalLeft, - /// Normal right turn (45-135 degrees). normalRight, - /// Sharp left turn (135-175 degrees). sharpLeft, - /// Sharp right turn (135-175 degrees). sharpRight, - /// Slight left turn (10-45 degrees). slightLeft, - /// Slight right turn (10-45 degrees). slightRight, - /// No turn. straight, - /// Shape is unknown. unknown, - /// A left turn onto the opposite side of the same street (175-180 degrees). uTurnLeft, - /// A right turn onto the opposite side of the same street (175-180 degrees). uTurnRight, } @@ -445,7 +403,6 @@ enum TaskRemovedBehaviorDto { /// The default state, indicating that navigation guidance, /// location updates, and notification should persist after user removes the application task. continueService, - /// Indicates that navigation guidance, location updates, and notification should shut down immediately when the user removes the application task. quitService, } @@ -491,8 +448,7 @@ class AutoMapOptionsDto { } Object encode() { - return _toList(); - } + return _toList(); } static AutoMapOptionsDto decode(Object result) { result as List; @@ -502,8 +458,7 @@ class AutoMapOptionsDto { mapType: result[2] as MapTypeDto?, mapColorScheme: result[3] as MapColorSchemeDto?, forceNightMode: result[4] as NavigationForceNightModeDto?, - navigationUIEnabledPreference: - result[5] as NavigationUIEnabledPreferenceDto?, + navigationUIEnabledPreference: result[5] as NavigationUIEnabledPreferenceDto?, ); } @@ -521,7 +476,8 @@ class AutoMapOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } /// Object containing map options used to initialize Google Map view. @@ -617,8 +573,7 @@ class MapOptionsDto { } Object encode() { - return _toList(); - } + return _toList(); } static MapOptionsDto decode(Object result) { result as List; @@ -656,7 +611,8 @@ class MapOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } /// Object containing navigation options used to initialize Google Navigation view. @@ -685,14 +641,12 @@ class NavigationViewOptionsDto { } Object encode() { - return _toList(); - } + return _toList(); } static NavigationViewOptionsDto decode(Object result) { result as List; return NavigationViewOptionsDto( - navigationUIEnabledPreference: - result[0]! as NavigationUIEnabledPreferenceDto, + navigationUIEnabledPreference: result[0]! as NavigationUIEnabledPreferenceDto, forceNightMode: result[1]! as NavigationForceNightModeDto, headerStylingOptions: result[2] as NavigationHeaderStylingOptionsDto?, ); @@ -701,8 +655,7 @@ class NavigationViewOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! NavigationViewOptionsDto || - other.runtimeType != runtimeType) { + if (other is! NavigationViewOptionsDto || other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -713,7 +666,8 @@ class NavigationViewOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } /// A message for creating a new navigation view. @@ -734,12 +688,15 @@ class ViewCreationOptionsDto { NavigationViewOptionsDto? navigationViewOptions; List _toList() { - return [mapViewType, mapOptions, navigationViewOptions]; + return [ + mapViewType, + mapOptions, + navigationViewOptions, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static ViewCreationOptionsDto decode(Object result) { result as List; @@ -764,7 +721,8 @@ class ViewCreationOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class CameraPositionDto { @@ -784,12 +742,16 @@ class CameraPositionDto { double zoom; List _toList() { - return [bearing, target, tilt, zoom]; + return [ + bearing, + target, + tilt, + zoom, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static CameraPositionDto decode(Object result) { result as List; @@ -815,11 +777,15 @@ class CameraPositionDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class MarkerDto { - MarkerDto({required this.markerId, required this.options}); + MarkerDto({ + required this.markerId, + required this.options, + }); /// Identifies marker String markerId; @@ -828,12 +794,14 @@ class MarkerDto { MarkerOptionsDto options; List _toList() { - return [markerId, options]; + return [ + markerId, + options, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static MarkerDto decode(Object result) { result as List; @@ -857,7 +825,8 @@ class MarkerDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class MarkerOptionsDto { @@ -914,8 +883,7 @@ class MarkerOptionsDto { } Object encode() { - return _toList(); - } + return _toList(); } static MarkerOptionsDto decode(Object result) { result as List; @@ -948,7 +916,8 @@ class MarkerOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class ImageDescriptorDto { @@ -971,12 +940,17 @@ class ImageDescriptorDto { RegisteredImageTypeDto type; List _toList() { - return [registeredImageId, imagePixelRatio, width, height, type]; + return [ + registeredImageId, + imagePixelRatio, + width, + height, + type, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static ImageDescriptorDto decode(Object result) { result as List; @@ -1003,11 +977,16 @@ class ImageDescriptorDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class InfoWindowDto { - InfoWindowDto({this.title, this.snippet, required this.anchor}); + InfoWindowDto({ + this.title, + this.snippet, + required this.anchor, + }); String? title; @@ -1016,12 +995,15 @@ class InfoWindowDto { MarkerAnchorDto anchor; List _toList() { - return [title, snippet, anchor]; + return [ + title, + snippet, + anchor, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static InfoWindowDto decode(Object result) { result as List; @@ -1046,27 +1028,36 @@ class InfoWindowDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class MarkerAnchorDto { - MarkerAnchorDto({required this.u, required this.v}); + MarkerAnchorDto({ + required this.u, + required this.v, + }); double u; double v; List _toList() { - return [u, v]; + return [ + u, + v, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static MarkerAnchorDto decode(Object result) { result as List; - return MarkerAnchorDto(u: result[0]! as double, v: result[1]! as double); + return MarkerAnchorDto( + u: result[0]! as double, + v: result[1]! as double, + ); } @override @@ -1083,7 +1074,8 @@ class MarkerAnchorDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } /// Represents a point of interest (POI) on the map. @@ -1106,12 +1098,15 @@ class PointOfInterestDto { LatLngDto latLng; List _toList() { - return [placeID, name, latLng]; + return [ + placeID, + name, + latLng, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static PointOfInterestDto decode(Object result) { result as List; @@ -1136,12 +1131,16 @@ class PointOfInterestDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } /// Represents one indoor level of a focused indoor building. class IndoorLevelDto { - IndoorLevelDto({this.name, this.shortName}); + IndoorLevelDto({ + this.name, + this.shortName, + }); /// Full display name of the level. String? name; @@ -1150,12 +1149,14 @@ class IndoorLevelDto { String? shortName; List _toList() { - return [name, shortName]; + return [ + name, + shortName, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static IndoorLevelDto decode(Object result) { result as List; @@ -1179,7 +1180,8 @@ class IndoorLevelDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } /// Represents focused indoor building metadata. @@ -1213,8 +1215,7 @@ class IndoorBuildingDto { } Object encode() { - return _toList(); - } + return _toList(); } static IndoorBuildingDto decode(Object result) { result as List; @@ -1240,23 +1241,29 @@ class IndoorBuildingDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class PolygonDto { - PolygonDto({required this.polygonId, required this.options}); + PolygonDto({ + required this.polygonId, + required this.options, + }); String polygonId; PolygonOptionsDto options; List _toList() { - return [polygonId, options]; + return [ + polygonId, + options, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static PolygonDto decode(Object result) { result as List; @@ -1280,7 +1287,8 @@ class PolygonDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class PolygonOptionsDto { @@ -1329,8 +1337,7 @@ class PolygonOptionsDto { } Object encode() { - return _toList(); - } + return _toList(); } static PolygonOptionsDto decode(Object result) { result as List; @@ -1361,21 +1368,25 @@ class PolygonOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class PolygonHoleDto { - PolygonHoleDto({required this.points}); + PolygonHoleDto({ + required this.points, + }); List points; List _toList() { - return [points]; + return [ + points, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static PolygonHoleDto decode(Object result) { result as List; @@ -1398,11 +1409,16 @@ class PolygonHoleDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class StyleSpanStrokeStyleDto { - StyleSpanStrokeStyleDto({this.solidColor, this.fromColor, this.toColor}); + StyleSpanStrokeStyleDto({ + this.solidColor, + this.fromColor, + this.toColor, + }); int? solidColor; @@ -1411,12 +1427,15 @@ class StyleSpanStrokeStyleDto { int? toColor; List _toList() { - return [solidColor, fromColor, toColor]; + return [ + solidColor, + fromColor, + toColor, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static StyleSpanStrokeStyleDto decode(Object result) { result as List; @@ -1441,23 +1460,29 @@ class StyleSpanStrokeStyleDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class StyleSpanDto { - StyleSpanDto({required this.length, required this.style}); + StyleSpanDto({ + required this.length, + required this.style, + }); double length; StyleSpanStrokeStyleDto style; List _toList() { - return [length, style]; + return [ + length, + style, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static StyleSpanDto decode(Object result) { result as List; @@ -1481,23 +1506,29 @@ class StyleSpanDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class PolylineDto { - PolylineDto({required this.polylineId, required this.options}); + PolylineDto({ + required this.polylineId, + required this.options, + }); String polylineId; PolylineOptionsDto options; List _toList() { - return [polylineId, options]; + return [ + polylineId, + options, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static PolylineDto decode(Object result) { result as List; @@ -1521,23 +1552,29 @@ class PolylineDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class PatternItemDto { - PatternItemDto({required this.type, this.length}); + PatternItemDto({ + required this.type, + this.length, + }); PatternTypeDto type; double? length; List _toList() { - return [type, length]; + return [ + type, + length, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static PatternItemDto decode(Object result) { result as List; @@ -1561,7 +1598,8 @@ class PatternItemDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class PolylineOptionsDto { @@ -1614,8 +1652,7 @@ class PolylineOptionsDto { } Object encode() { - return _toList(); - } + return _toList(); } static PolylineOptionsDto decode(Object result) { result as List; @@ -1647,11 +1684,15 @@ class PolylineOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class CircleDto { - CircleDto({required this.circleId, required this.options}); + CircleDto({ + required this.circleId, + required this.options, + }); /// Identifies circle. String circleId; @@ -1660,12 +1701,14 @@ class CircleDto { CircleOptionsDto options; List _toList() { - return [circleId, options]; + return [ + circleId, + options, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static CircleDto decode(Object result) { result as List; @@ -1689,7 +1732,8 @@ class CircleDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class CircleOptionsDto { @@ -1738,8 +1782,7 @@ class CircleOptionsDto { } Object encode() { - return _toList(); - } + return _toList(); } static CircleOptionsDto decode(Object result) { result as List; @@ -1770,7 +1813,8 @@ class CircleOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class MapPaddingDto { @@ -1790,12 +1834,16 @@ class MapPaddingDto { int right; List _toList() { - return [top, left, bottom, right]; + return [ + top, + left, + bottom, + right, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static MapPaddingDto decode(Object result) { result as List; @@ -1821,7 +1869,8 @@ class MapPaddingDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } /// Navigation header styling options. @@ -1905,8 +1954,7 @@ class NavigationHeaderStylingOptionsDto { } Object encode() { - return _toList(); - } + return _toList(); } static NavigationHeaderStylingOptionsDto decode(Object result) { result as List; @@ -1933,8 +1981,7 @@ class NavigationHeaderStylingOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! NavigationHeaderStylingOptionsDto || - other.runtimeType != runtimeType) { + if (other is! NavigationHeaderStylingOptionsDto || other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -1945,23 +1992,29 @@ class NavigationHeaderStylingOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class RouteTokenOptionsDto { - RouteTokenOptionsDto({required this.routeToken, this.travelMode}); + RouteTokenOptionsDto({ + required this.routeToken, + this.travelMode, + }); String routeToken; TravelModeDto? travelMode; List _toList() { - return [routeToken, travelMode]; + return [ + routeToken, + travelMode, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static RouteTokenOptionsDto decode(Object result) { result as List; @@ -1985,7 +2038,8 @@ class RouteTokenOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class DestinationsDto { @@ -2014,8 +2068,7 @@ class DestinationsDto { } Object encode() { - return _toList(); - } + return _toList(); } static DestinationsDto decode(Object result) { result as List; @@ -2041,7 +2094,8 @@ class DestinationsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class RoutingOptionsDto { @@ -2086,8 +2140,7 @@ class RoutingOptionsDto { } Object encode() { - return _toList(); - } + return _toList(); } static RoutingOptionsDto decode(Object result) { result as List; @@ -2117,7 +2170,8 @@ class RoutingOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class NavigationDisplayOptionsDto { @@ -2136,12 +2190,15 @@ class NavigationDisplayOptionsDto { bool? showTrafficLights; List _toList() { - return [showDestinationMarkers, showStopSigns, showTrafficLights]; + return [ + showDestinationMarkers, + showStopSigns, + showTrafficLights, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static NavigationDisplayOptionsDto decode(Object result) { result as List; @@ -2155,8 +2212,7 @@ class NavigationDisplayOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! NavigationDisplayOptionsDto || - other.runtimeType != runtimeType) { + if (other is! NavigationDisplayOptionsDto || other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -2167,7 +2223,8 @@ class NavigationDisplayOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class NavigationWaypointDto { @@ -2200,8 +2257,7 @@ class NavigationWaypointDto { } Object encode() { - return _toList(); - } + return _toList(); } static NavigationWaypointDto decode(Object result) { result as List; @@ -2228,23 +2284,29 @@ class NavigationWaypointDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class ContinueToNextDestinationResponseDto { - ContinueToNextDestinationResponseDto({this.waypoint, this.routeStatus}); + ContinueToNextDestinationResponseDto({ + this.waypoint, + this.routeStatus, + }); NavigationWaypointDto? waypoint; RouteStatusDto? routeStatus; List _toList() { - return [waypoint, routeStatus]; + return [ + waypoint, + routeStatus, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static ContinueToNextDestinationResponseDto decode(Object result) { result as List; @@ -2257,8 +2319,7 @@ class ContinueToNextDestinationResponseDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! ContinueToNextDestinationResponseDto || - other.runtimeType != runtimeType) { + if (other is! ContinueToNextDestinationResponseDto || other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -2269,7 +2330,8 @@ class ContinueToNextDestinationResponseDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class NavigationTimeAndDistanceDto { @@ -2286,12 +2348,15 @@ class NavigationTimeAndDistanceDto { TrafficDelaySeverityDto delaySeverity; List _toList() { - return [time, distance, delaySeverity]; + return [ + time, + distance, + delaySeverity, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static NavigationTimeAndDistanceDto decode(Object result) { result as List; @@ -2305,8 +2370,7 @@ class NavigationTimeAndDistanceDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! NavigationTimeAndDistanceDto || - other.runtimeType != runtimeType) { + if (other is! NavigationTimeAndDistanceDto || other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -2317,7 +2381,8 @@ class NavigationTimeAndDistanceDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class NavigationAudioGuidanceSettingsDto { @@ -2334,12 +2399,15 @@ class NavigationAudioGuidanceSettingsDto { AudioGuidanceTypeDto? guidanceType; List _toList() { - return [isBluetoothAudioEnabled, isVibrationEnabled, guidanceType]; + return [ + isBluetoothAudioEnabled, + isVibrationEnabled, + guidanceType, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static NavigationAudioGuidanceSettingsDto decode(Object result) { result as List; @@ -2353,8 +2421,7 @@ class NavigationAudioGuidanceSettingsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! NavigationAudioGuidanceSettingsDto || - other.runtimeType != runtimeType) { + if (other is! NavigationAudioGuidanceSettingsDto || other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -2365,25 +2432,31 @@ class NavigationAudioGuidanceSettingsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class SimulationOptionsDto { - SimulationOptionsDto({required this.speedMultiplier}); + SimulationOptionsDto({ + required this.speedMultiplier, + }); double speedMultiplier; List _toList() { - return [speedMultiplier]; + return [ + speedMultiplier, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static SimulationOptionsDto decode(Object result) { result as List; - return SimulationOptionsDto(speedMultiplier: result[0]! as double); + return SimulationOptionsDto( + speedMultiplier: result[0]! as double, + ); } @override @@ -2400,23 +2473,29 @@ class SimulationOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class LatLngDto { - LatLngDto({required this.latitude, required this.longitude}); + LatLngDto({ + required this.latitude, + required this.longitude, + }); double latitude; double longitude; List _toList() { - return [latitude, longitude]; + return [ + latitude, + longitude, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static LatLngDto decode(Object result) { result as List; @@ -2440,23 +2519,29 @@ class LatLngDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class LatLngBoundsDto { - LatLngBoundsDto({required this.southwest, required this.northeast}); + LatLngBoundsDto({ + required this.southwest, + required this.northeast, + }); LatLngDto southwest; LatLngDto northeast; List _toList() { - return [southwest, northeast]; + return [ + southwest, + northeast, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static LatLngBoundsDto decode(Object result) { result as List; @@ -2480,7 +2565,8 @@ class LatLngBoundsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class SpeedingUpdatedEventDto { @@ -2494,12 +2580,14 @@ class SpeedingUpdatedEventDto { SpeedAlertSeverityDto severity; List _toList() { - return [percentageAboveLimit, severity]; + return [ + percentageAboveLimit, + severity, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static SpeedingUpdatedEventDto decode(Object result) { result as List; @@ -2523,7 +2611,8 @@ class SpeedingUpdatedEventDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class GpsAvailabilityChangeEventDto { @@ -2537,12 +2626,14 @@ class GpsAvailabilityChangeEventDto { bool isGpsValidForNavigation; List _toList() { - return [isGpsLost, isGpsValidForNavigation]; + return [ + isGpsLost, + isGpsValidForNavigation, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static GpsAvailabilityChangeEventDto decode(Object result) { result as List; @@ -2555,8 +2646,7 @@ class GpsAvailabilityChangeEventDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! GpsAvailabilityChangeEventDto || - other.runtimeType != runtimeType) { + if (other is! GpsAvailabilityChangeEventDto || other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -2567,7 +2657,8 @@ class GpsAvailabilityChangeEventDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class SpeedAlertOptionsThresholdPercentageDto { @@ -2581,12 +2672,14 @@ class SpeedAlertOptionsThresholdPercentageDto { SpeedAlertSeverityDto severity; List _toList() { - return [percentage, severity]; + return [ + percentage, + severity, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static SpeedAlertOptionsThresholdPercentageDto decode(Object result) { result as List; @@ -2599,8 +2692,7 @@ class SpeedAlertOptionsThresholdPercentageDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! SpeedAlertOptionsThresholdPercentageDto || - other.runtimeType != runtimeType) { + if (other is! SpeedAlertOptionsThresholdPercentageDto || other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -2611,7 +2703,8 @@ class SpeedAlertOptionsThresholdPercentageDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class SpeedAlertOptionsDto { @@ -2636,8 +2729,7 @@ class SpeedAlertOptionsDto { } Object encode() { - return _toList(); - } + return _toList(); } static SpeedAlertOptionsDto decode(Object result) { result as List; @@ -2662,7 +2754,8 @@ class SpeedAlertOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class RouteSegmentTrafficDataRoadStretchRenderingDataDto { @@ -2679,20 +2772,20 @@ class RouteSegmentTrafficDataRoadStretchRenderingDataDto { int offsetMeters; List _toList() { - return [style, lengthMeters, offsetMeters]; + return [ + style, + lengthMeters, + offsetMeters, + ]; } Object encode() { - return _toList(); - } + return _toList(); } - static RouteSegmentTrafficDataRoadStretchRenderingDataDto decode( - Object result, - ) { + static RouteSegmentTrafficDataRoadStretchRenderingDataDto decode(Object result) { result as List; return RouteSegmentTrafficDataRoadStretchRenderingDataDto( - style: - result[0]! as RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto, + style: result[0]! as RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto, lengthMeters: result[1]! as int, offsetMeters: result[2]! as int, ); @@ -2701,8 +2794,7 @@ class RouteSegmentTrafficDataRoadStretchRenderingDataDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! RouteSegmentTrafficDataRoadStretchRenderingDataDto || - other.runtimeType != runtimeType) { + if (other is! RouteSegmentTrafficDataRoadStretchRenderingDataDto || other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -2713,7 +2805,8 @@ class RouteSegmentTrafficDataRoadStretchRenderingDataDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class RouteSegmentTrafficDataDto { @@ -2724,31 +2817,30 @@ class RouteSegmentTrafficDataDto { RouteSegmentTrafficDataStatusDto status; - List - roadStretchRenderingDataList; + List roadStretchRenderingDataList; List _toList() { - return [status, roadStretchRenderingDataList]; + return [ + status, + roadStretchRenderingDataList, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static RouteSegmentTrafficDataDto decode(Object result) { result as List; return RouteSegmentTrafficDataDto( status: result[0]! as RouteSegmentTrafficDataStatusDto, - roadStretchRenderingDataList: (result[1] as List?)! - .cast(), + roadStretchRenderingDataList: (result[1] as List?)!.cast(), ); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! RouteSegmentTrafficDataDto || - other.runtimeType != runtimeType) { + if (other is! RouteSegmentTrafficDataDto || other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -2759,7 +2851,8 @@ class RouteSegmentTrafficDataDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class RouteSegmentDto { @@ -2788,8 +2881,7 @@ class RouteSegmentDto { } Object encode() { - return _toList(); - } + return _toList(); } static RouteSegmentDto decode(Object result) { result as List; @@ -2815,12 +2907,16 @@ class RouteSegmentDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } /// One of the possible directions from a lane at the end of a route step, and whether it is on the recommended route. class LaneDirectionDto { - LaneDirectionDto({required this.laneShape, required this.isRecommended}); + LaneDirectionDto({ + required this.laneShape, + required this.isRecommended, + }); /// Shape for this lane direction. LaneShapeDto laneShape; @@ -2829,12 +2925,14 @@ class LaneDirectionDto { bool isRecommended; List _toList() { - return [laneShape, isRecommended]; + return [ + laneShape, + isRecommended, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static LaneDirectionDto decode(Object result) { result as List; @@ -2858,23 +2956,27 @@ class LaneDirectionDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } /// Single lane on the road at the end of a route step. class LaneDto { - LaneDto({required this.laneDirections}); + LaneDto({ + required this.laneDirections, + }); /// List of possible directions a driver can follow when using this lane at the end of the respective route step List laneDirections; List _toList() { - return [laneDirections]; + return [ + laneDirections, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static LaneDto decode(Object result) { result as List; @@ -2897,7 +2999,8 @@ class LaneDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } /// Information about a single step along a navigation route. @@ -2979,8 +3082,7 @@ class StepInfoDto { } Object encode() { - return _toList(); - } + return _toList(); } static StepInfoDto decode(Object result) { result as List; @@ -3015,7 +3117,8 @@ class StepInfoDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } /// Contains information about the state of navigation, the current nav step if @@ -3088,8 +3191,7 @@ class NavInfoDto { } Object encode() { - return _toList(); - } + return _toList(); } static NavInfoDto decode(Object result) { result as List; @@ -3121,7 +3223,8 @@ class NavInfoDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } /// UI customization parameters for the Terms and Conditions dialog. @@ -3163,8 +3266,7 @@ class TermsAndConditionsUIParamsDto { } Object encode() { - return _toList(); - } + return _toList(); } static TermsAndConditionsUIParamsDto decode(Object result) { result as List; @@ -3180,8 +3282,61 @@ class TermsAndConditionsUIParamsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! TermsAndConditionsUIParamsDto || - other.runtimeType != runtimeType) { + if (other is! TermsAndConditionsUIParamsDto || other.runtimeType != runtimeType) { + return false; + } + if (identical(this, other)) { + return true; + } + return _deepEquals(encode(), other.encode()); + } + + @override + // ignore: avoid_equals_and_hash_code_on_mutable_classes + int get hashCode => Object.hashAll(_toList()) +; +} + +/// Android foreground-service notification configuration. +/// +/// This preserves the Navigation SDK's built-in turn-by-turn notification. +class NavigationNotificationOptionsDto { + NavigationNotificationOptionsDto({ + this.notificationId, + this.defaultMessage, + required this.resumeAppOnTap, + }); + + int? notificationId; + + String? defaultMessage; + + bool resumeAppOnTap; + + List _toList() { + return [ + notificationId, + defaultMessage, + resumeAppOnTap, + ]; + } + + Object encode() { + return _toList(); } + + static NavigationNotificationOptionsDto decode(Object result) { + result as List; + return NavigationNotificationOptionsDto( + notificationId: result[0] as int?, + defaultMessage: result[1] as String?, + resumeAppOnTap: result[2]! as bool, + ); + } + + @override + // ignore: avoid_equals_and_hash_code_on_mutable_classes + bool operator ==(Object other) { + if (other is! NavigationNotificationOptionsDto || other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -3192,7 +3347,8 @@ class TermsAndConditionsUIParamsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } /// Options for step image generation in turn-by-turn navigation events. @@ -3211,12 +3367,14 @@ class StepImageGenerationOptionsDto { bool? generateLaneImages; List _toList() { - return [generateManeuverImages, generateLaneImages]; + return [ + generateManeuverImages, + generateLaneImages, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static StepImageGenerationOptionsDto decode(Object result) { result as List; @@ -3229,8 +3387,7 @@ class StepImageGenerationOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! StepImageGenerationOptionsDto || - other.runtimeType != runtimeType) { + if (other is! StepImageGenerationOptionsDto || other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -3241,9 +3398,11 @@ class StepImageGenerationOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -3251,232 +3410,234 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is MapViewTypeDto) { + } else if (value is MapViewTypeDto) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is NavigationUIEnabledPreferenceDto) { + } else if (value is NavigationUIEnabledPreferenceDto) { buffer.putUint8(130); writeValue(buffer, value.index); - } else if (value is MapTypeDto) { + } else if (value is MapTypeDto) { buffer.putUint8(131); writeValue(buffer, value.index); - } else if (value is MapColorSchemeDto) { + } else if (value is MapColorSchemeDto) { buffer.putUint8(132); writeValue(buffer, value.index); - } else if (value is NavigationForceNightModeDto) { + } else if (value is NavigationForceNightModeDto) { buffer.putUint8(133); writeValue(buffer, value.index); - } else if (value is CameraPerspectiveDto) { + } else if (value is CameraPerspectiveDto) { buffer.putUint8(134); writeValue(buffer, value.index); - } else if (value is RegisteredImageTypeDto) { + } else if (value is RegisteredImageTypeDto) { buffer.putUint8(135); writeValue(buffer, value.index); - } else if (value is MarkerEventTypeDto) { + } else if (value is MarkerEventTypeDto) { buffer.putUint8(136); writeValue(buffer, value.index); - } else if (value is MarkerDragEventTypeDto) { + } else if (value is MarkerDragEventTypeDto) { buffer.putUint8(137); writeValue(buffer, value.index); - } else if (value is StrokeJointTypeDto) { + } else if (value is StrokeJointTypeDto) { buffer.putUint8(138); writeValue(buffer, value.index); - } else if (value is PatternTypeDto) { + } else if (value is PatternTypeDto) { buffer.putUint8(139); writeValue(buffer, value.index); - } else if (value is CameraEventTypeDto) { + } else if (value is CameraEventTypeDto) { buffer.putUint8(140); writeValue(buffer, value.index); - } else if (value is AlternateRoutesStrategyDto) { + } else if (value is AlternateRoutesStrategyDto) { buffer.putUint8(141); writeValue(buffer, value.index); - } else if (value is RoutingStrategyDto) { + } else if (value is RoutingStrategyDto) { buffer.putUint8(142); writeValue(buffer, value.index); - } else if (value is TravelModeDto) { + } else if (value is TravelModeDto) { buffer.putUint8(143); writeValue(buffer, value.index); - } else if (value is RouteStatusDto) { + } else if (value is RouteStatusDto) { buffer.putUint8(144); writeValue(buffer, value.index); - } else if (value is TrafficDelaySeverityDto) { + } else if (value is TrafficDelaySeverityDto) { buffer.putUint8(145); writeValue(buffer, value.index); - } else if (value is AudioGuidanceTypeDto) { + } else if (value is AudioGuidanceTypeDto) { buffer.putUint8(146); writeValue(buffer, value.index); - } else if (value is SpeedAlertSeverityDto) { + } else if (value is SpeedAlertSeverityDto) { buffer.putUint8(147); writeValue(buffer, value.index); - } else if (value is RouteSegmentTrafficDataStatusDto) { + } else if (value is RouteSegmentTrafficDataStatusDto) { buffer.putUint8(148); writeValue(buffer, value.index); - } else if (value - is RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto) { + } else if (value is RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto) { buffer.putUint8(149); writeValue(buffer, value.index); - } else if (value is ManeuverDto) { + } else if (value is ManeuverDto) { buffer.putUint8(150); writeValue(buffer, value.index); - } else if (value is DrivingSideDto) { + } else if (value is DrivingSideDto) { buffer.putUint8(151); writeValue(buffer, value.index); - } else if (value is NavStateDto) { + } else if (value is NavStateDto) { buffer.putUint8(152); writeValue(buffer, value.index); - } else if (value is LaneShapeDto) { + } else if (value is LaneShapeDto) { buffer.putUint8(153); writeValue(buffer, value.index); - } else if (value is TaskRemovedBehaviorDto) { + } else if (value is TaskRemovedBehaviorDto) { buffer.putUint8(154); writeValue(buffer, value.index); - } else if (value is AutoMapOptionsDto) { + } else if (value is AutoMapOptionsDto) { buffer.putUint8(155); writeValue(buffer, value.encode()); - } else if (value is MapOptionsDto) { + } else if (value is MapOptionsDto) { buffer.putUint8(156); writeValue(buffer, value.encode()); - } else if (value is NavigationViewOptionsDto) { + } else if (value is NavigationViewOptionsDto) { buffer.putUint8(157); writeValue(buffer, value.encode()); - } else if (value is ViewCreationOptionsDto) { + } else if (value is ViewCreationOptionsDto) { buffer.putUint8(158); writeValue(buffer, value.encode()); - } else if (value is CameraPositionDto) { + } else if (value is CameraPositionDto) { buffer.putUint8(159); writeValue(buffer, value.encode()); - } else if (value is MarkerDto) { + } else if (value is MarkerDto) { buffer.putUint8(160); writeValue(buffer, value.encode()); - } else if (value is MarkerOptionsDto) { + } else if (value is MarkerOptionsDto) { buffer.putUint8(161); writeValue(buffer, value.encode()); - } else if (value is ImageDescriptorDto) { + } else if (value is ImageDescriptorDto) { buffer.putUint8(162); writeValue(buffer, value.encode()); - } else if (value is InfoWindowDto) { + } else if (value is InfoWindowDto) { buffer.putUint8(163); writeValue(buffer, value.encode()); - } else if (value is MarkerAnchorDto) { + } else if (value is MarkerAnchorDto) { buffer.putUint8(164); writeValue(buffer, value.encode()); - } else if (value is PointOfInterestDto) { + } else if (value is PointOfInterestDto) { buffer.putUint8(165); writeValue(buffer, value.encode()); - } else if (value is IndoorLevelDto) { + } else if (value is IndoorLevelDto) { buffer.putUint8(166); writeValue(buffer, value.encode()); - } else if (value is IndoorBuildingDto) { + } else if (value is IndoorBuildingDto) { buffer.putUint8(167); writeValue(buffer, value.encode()); - } else if (value is PolygonDto) { + } else if (value is PolygonDto) { buffer.putUint8(168); writeValue(buffer, value.encode()); - } else if (value is PolygonOptionsDto) { + } else if (value is PolygonOptionsDto) { buffer.putUint8(169); writeValue(buffer, value.encode()); - } else if (value is PolygonHoleDto) { + } else if (value is PolygonHoleDto) { buffer.putUint8(170); writeValue(buffer, value.encode()); - } else if (value is StyleSpanStrokeStyleDto) { + } else if (value is StyleSpanStrokeStyleDto) { buffer.putUint8(171); writeValue(buffer, value.encode()); - } else if (value is StyleSpanDto) { + } else if (value is StyleSpanDto) { buffer.putUint8(172); writeValue(buffer, value.encode()); - } else if (value is PolylineDto) { + } else if (value is PolylineDto) { buffer.putUint8(173); writeValue(buffer, value.encode()); - } else if (value is PatternItemDto) { + } else if (value is PatternItemDto) { buffer.putUint8(174); writeValue(buffer, value.encode()); - } else if (value is PolylineOptionsDto) { + } else if (value is PolylineOptionsDto) { buffer.putUint8(175); writeValue(buffer, value.encode()); - } else if (value is CircleDto) { + } else if (value is CircleDto) { buffer.putUint8(176); writeValue(buffer, value.encode()); - } else if (value is CircleOptionsDto) { + } else if (value is CircleOptionsDto) { buffer.putUint8(177); writeValue(buffer, value.encode()); - } else if (value is MapPaddingDto) { + } else if (value is MapPaddingDto) { buffer.putUint8(178); writeValue(buffer, value.encode()); - } else if (value is NavigationHeaderStylingOptionsDto) { + } else if (value is NavigationHeaderStylingOptionsDto) { buffer.putUint8(179); writeValue(buffer, value.encode()); - } else if (value is RouteTokenOptionsDto) { + } else if (value is RouteTokenOptionsDto) { buffer.putUint8(180); writeValue(buffer, value.encode()); - } else if (value is DestinationsDto) { + } else if (value is DestinationsDto) { buffer.putUint8(181); writeValue(buffer, value.encode()); - } else if (value is RoutingOptionsDto) { + } else if (value is RoutingOptionsDto) { buffer.putUint8(182); writeValue(buffer, value.encode()); - } else if (value is NavigationDisplayOptionsDto) { + } else if (value is NavigationDisplayOptionsDto) { buffer.putUint8(183); writeValue(buffer, value.encode()); - } else if (value is NavigationWaypointDto) { + } else if (value is NavigationWaypointDto) { buffer.putUint8(184); writeValue(buffer, value.encode()); - } else if (value is ContinueToNextDestinationResponseDto) { + } else if (value is ContinueToNextDestinationResponseDto) { buffer.putUint8(185); writeValue(buffer, value.encode()); - } else if (value is NavigationTimeAndDistanceDto) { + } else if (value is NavigationTimeAndDistanceDto) { buffer.putUint8(186); writeValue(buffer, value.encode()); - } else if (value is NavigationAudioGuidanceSettingsDto) { + } else if (value is NavigationAudioGuidanceSettingsDto) { buffer.putUint8(187); writeValue(buffer, value.encode()); - } else if (value is SimulationOptionsDto) { + } else if (value is SimulationOptionsDto) { buffer.putUint8(188); writeValue(buffer, value.encode()); - } else if (value is LatLngDto) { + } else if (value is LatLngDto) { buffer.putUint8(189); writeValue(buffer, value.encode()); - } else if (value is LatLngBoundsDto) { + } else if (value is LatLngBoundsDto) { buffer.putUint8(190); writeValue(buffer, value.encode()); - } else if (value is SpeedingUpdatedEventDto) { + } else if (value is SpeedingUpdatedEventDto) { buffer.putUint8(191); writeValue(buffer, value.encode()); - } else if (value is GpsAvailabilityChangeEventDto) { + } else if (value is GpsAvailabilityChangeEventDto) { buffer.putUint8(192); writeValue(buffer, value.encode()); - } else if (value is SpeedAlertOptionsThresholdPercentageDto) { + } else if (value is SpeedAlertOptionsThresholdPercentageDto) { buffer.putUint8(193); writeValue(buffer, value.encode()); - } else if (value is SpeedAlertOptionsDto) { + } else if (value is SpeedAlertOptionsDto) { buffer.putUint8(194); writeValue(buffer, value.encode()); - } else if (value is RouteSegmentTrafficDataRoadStretchRenderingDataDto) { + } else if (value is RouteSegmentTrafficDataRoadStretchRenderingDataDto) { buffer.putUint8(195); writeValue(buffer, value.encode()); - } else if (value is RouteSegmentTrafficDataDto) { + } else if (value is RouteSegmentTrafficDataDto) { buffer.putUint8(196); writeValue(buffer, value.encode()); - } else if (value is RouteSegmentDto) { + } else if (value is RouteSegmentDto) { buffer.putUint8(197); writeValue(buffer, value.encode()); - } else if (value is LaneDirectionDto) { + } else if (value is LaneDirectionDto) { buffer.putUint8(198); writeValue(buffer, value.encode()); - } else if (value is LaneDto) { + } else if (value is LaneDto) { buffer.putUint8(199); writeValue(buffer, value.encode()); - } else if (value is StepInfoDto) { + } else if (value is StepInfoDto) { buffer.putUint8(200); writeValue(buffer, value.encode()); - } else if (value is NavInfoDto) { + } else if (value is NavInfoDto) { buffer.putUint8(201); writeValue(buffer, value.encode()); - } else if (value is TermsAndConditionsUIParamsDto) { + } else if (value is TermsAndConditionsUIParamsDto) { buffer.putUint8(202); writeValue(buffer, value.encode()); - } else if (value is StepImageGenerationOptionsDto) { + } else if (value is NavigationNotificationOptionsDto) { buffer.putUint8(203); writeValue(buffer, value.encode()); + } else if (value is StepImageGenerationOptionsDto) { + buffer.putUint8(204); + writeValue(buffer, value.encode()); } else { super.writeValue(buffer, value); } @@ -3490,9 +3651,7 @@ class _PigeonCodec extends StandardMessageCodec { return value == null ? null : MapViewTypeDto.values[value]; case 130: final int? value = readValue(buffer) as int?; - return value == null - ? null - : NavigationUIEnabledPreferenceDto.values[value]; + return value == null ? null : NavigationUIEnabledPreferenceDto.values[value]; case 131: final int? value = readValue(buffer) as int?; return value == null ? null : MapTypeDto.values[value]; @@ -3546,15 +3705,10 @@ class _PigeonCodec extends StandardMessageCodec { return value == null ? null : SpeedAlertSeverityDto.values[value]; case 148: final int? value = readValue(buffer) as int?; - return value == null - ? null - : RouteSegmentTrafficDataStatusDto.values[value]; + return value == null ? null : RouteSegmentTrafficDataStatusDto.values[value]; case 149: final int? value = readValue(buffer) as int?; - return value == null - ? null - : RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto - .values[value]; + return value == null ? null : RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto.values[value]; case 150: final int? value = readValue(buffer) as int?; return value == null ? null : ManeuverDto.values[value]; @@ -3647,15 +3801,11 @@ class _PigeonCodec extends StandardMessageCodec { case 192: return GpsAvailabilityChangeEventDto.decode(readValue(buffer)!); case 193: - return SpeedAlertOptionsThresholdPercentageDto.decode( - readValue(buffer)!, - ); + return SpeedAlertOptionsThresholdPercentageDto.decode(readValue(buffer)!); case 194: return SpeedAlertOptionsDto.decode(readValue(buffer)!); case 195: - return RouteSegmentTrafficDataRoadStretchRenderingDataDto.decode( - readValue(buffer)!, - ); + return RouteSegmentTrafficDataRoadStretchRenderingDataDto.decode(readValue(buffer)!); case 196: return RouteSegmentTrafficDataDto.decode(readValue(buffer)!); case 197: @@ -3671,6 +3821,8 @@ class _PigeonCodec extends StandardMessageCodec { case 202: return TermsAndConditionsUIParamsDto.decode(readValue(buffer)!); case 203: + return NavigationNotificationOptionsDto.decode(readValue(buffer)!); + case 204: return StepImageGenerationOptionsDto.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -3688,13 +3840,9 @@ class ViewCreationApi { /// Constructor for [ViewCreationApi]. 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. - ViewCreationApi({ - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + ViewCreationApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -3702,17 +3850,13 @@ class ViewCreationApi { final String pigeonVar_messageChannelSuffix; Future create(ViewCreationOptionsDto msg) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.ViewCreationApi.create$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [msg], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.ViewCreationApi.create$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([msg]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3733,13 +3877,9 @@ class MapViewApi { /// Constructor for [MapViewApi]. 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. - MapViewApi({ - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + MapViewApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -3747,17 +3887,13 @@ class MapViewApi { final String pigeonVar_messageChannelSuffix; Future awaitMapReady(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3774,17 +3910,13 @@ class MapViewApi { } Future isMyLocationEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3806,17 +3938,13 @@ class MapViewApi { } Future setMyLocationEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3833,17 +3961,13 @@ class MapViewApi { } Future getMyLocation(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3860,17 +3984,13 @@ class MapViewApi { } Future getMapType(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3892,17 +4012,13 @@ class MapViewApi { } Future setMapType(int viewId, MapTypeDto mapType) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, mapType], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, mapType]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3919,17 +4035,13 @@ class MapViewApi { } Future setMapStyle(int viewId, String styleJson) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, styleJson], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, styleJson]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3946,17 +4058,13 @@ class MapViewApi { } Future isNavigationTripProgressBarEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3977,21 +4085,14 @@ class MapViewApi { } } - Future setNavigationTripProgressBarEnabled( - int viewId, - bool enabled, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + Future setNavigationTripProgressBarEnabled(int viewId, bool enabled) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4008,17 +4109,13 @@ class MapViewApi { } Future isNavigationHeaderEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4040,17 +4137,13 @@ class MapViewApi { } Future setNavigationHeaderEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4066,20 +4159,14 @@ class MapViewApi { } } - Future getNavigationHeaderStylingOptions( - int viewId, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + Future getNavigationHeaderStylingOptions(int viewId) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4100,21 +4187,14 @@ class MapViewApi { } } - Future setNavigationHeaderStylingOptions( - int viewId, - NavigationHeaderStylingOptionsDto stylingOptions, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, stylingOptions], + Future setNavigationHeaderStylingOptions(int viewId, NavigationHeaderStylingOptionsDto stylingOptions) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, stylingOptions]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4131,17 +4211,13 @@ class MapViewApi { } Future isNavigationFooterEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4163,17 +4239,13 @@ class MapViewApi { } Future setNavigationFooterEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4190,17 +4262,13 @@ class MapViewApi { } Future isRecenterButtonEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4222,17 +4290,13 @@ class MapViewApi { } Future setRecenterButtonEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4249,17 +4313,13 @@ class MapViewApi { } Future isSpeedLimitIconEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4281,17 +4341,13 @@ class MapViewApi { } Future setSpeedLimitIconEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4308,17 +4364,13 @@ class MapViewApi { } Future isSpeedometerEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4340,17 +4392,13 @@ class MapViewApi { } Future setSpeedometerEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4367,17 +4415,13 @@ class MapViewApi { } Future isNavigationUIEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4399,17 +4443,13 @@ class MapViewApi { } Future setNavigationUIEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4426,17 +4466,13 @@ class MapViewApi { } Future isMyLocationButtonEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4458,17 +4494,13 @@ class MapViewApi { } Future setMyLocationButtonEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4485,17 +4517,13 @@ class MapViewApi { } Future isConsumeMyLocationButtonClickEventsEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4516,21 +4544,14 @@ class MapViewApi { } } - Future setConsumeMyLocationButtonClickEventsEnabled( - int viewId, - bool enabled, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + Future setConsumeMyLocationButtonClickEventsEnabled(int viewId, bool enabled) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4547,17 +4568,13 @@ class MapViewApi { } Future isZoomGesturesEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4579,17 +4596,13 @@ class MapViewApi { } Future setZoomGesturesEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4606,17 +4619,13 @@ class MapViewApi { } Future isZoomControlsEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4638,17 +4647,13 @@ class MapViewApi { } Future setZoomControlsEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4665,17 +4670,13 @@ class MapViewApi { } Future isCompassEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4697,17 +4698,13 @@ class MapViewApi { } Future setCompassEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4724,17 +4721,13 @@ class MapViewApi { } Future isRotateGesturesEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4756,17 +4749,13 @@ class MapViewApi { } Future setRotateGesturesEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4783,17 +4772,13 @@ class MapViewApi { } Future isScrollGesturesEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4815,17 +4800,13 @@ class MapViewApi { } Future setScrollGesturesEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4842,17 +4823,13 @@ class MapViewApi { } Future isScrollGesturesEnabledDuringRotateOrZoom(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4873,21 +4850,14 @@ class MapViewApi { } } - Future setScrollGesturesDuringRotateOrZoomEnabled( - int viewId, - bool enabled, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + Future setScrollGesturesDuringRotateOrZoomEnabled(int viewId, bool enabled) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4904,17 +4874,13 @@ class MapViewApi { } Future isTiltGesturesEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4936,17 +4902,13 @@ class MapViewApi { } Future setTiltGesturesEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4963,17 +4925,13 @@ class MapViewApi { } Future isMapToolbarEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4995,17 +4953,13 @@ class MapViewApi { } Future setMapToolbarEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5022,17 +4976,13 @@ class MapViewApi { } Future isTrafficEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5054,17 +5004,13 @@ class MapViewApi { } Future setTrafficEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5081,17 +5027,13 @@ class MapViewApi { } Future isTrafficIncidentCardsEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5113,17 +5055,13 @@ class MapViewApi { } Future setTrafficIncidentCardsEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5140,17 +5078,13 @@ class MapViewApi { } Future isTrafficPromptsEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5172,17 +5106,13 @@ class MapViewApi { } Future setTrafficPromptsEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5199,17 +5129,13 @@ class MapViewApi { } Future isReportIncidentButtonEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5231,17 +5157,13 @@ class MapViewApi { } Future setReportIncidentButtonEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5258,17 +5180,13 @@ class MapViewApi { } Future isIncidentReportingAvailable(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5290,17 +5208,13 @@ class MapViewApi { } Future showReportIncidentsPanel(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5317,17 +5231,13 @@ class MapViewApi { } Future isBuildingsEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5349,17 +5259,13 @@ class MapViewApi { } Future setBuildingsEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5376,17 +5282,13 @@ class MapViewApi { } Future isIndoorEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5408,17 +5310,13 @@ class MapViewApi { } Future setIndoorEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5435,17 +5333,13 @@ class MapViewApi { } Future isIndoorLevelPickerEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5467,17 +5361,13 @@ class MapViewApi { } Future setIndoorLevelPickerEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5494,17 +5384,13 @@ class MapViewApi { } Future getFocusedIndoorBuilding(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5524,17 +5410,13 @@ class MapViewApi { /// indoor building. Throws if no building is focused or the index is out of /// range. Future activateIndoorLevel(int viewId, int levelIndex) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, levelIndex], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, levelIndex]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5551,17 +5433,13 @@ class MapViewApi { } Future getCameraPosition(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5583,17 +5461,13 @@ class MapViewApi { } Future getVisibleRegion(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5614,22 +5488,14 @@ class MapViewApi { } } - Future followMyLocation( - int viewId, - CameraPerspectiveDto perspective, - double? zoomLevel, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, perspective, zoomLevel], + Future followMyLocation(int viewId, CameraPerspectiveDto perspective, double? zoomLevel) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, perspective, zoomLevel]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5645,22 +5511,14 @@ class MapViewApi { } } - Future animateCameraToCameraPosition( - int viewId, - CameraPositionDto cameraPosition, - int? duration, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, cameraPosition, duration], + Future animateCameraToCameraPosition(int viewId, CameraPositionDto cameraPosition, int? duration) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, cameraPosition, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5681,22 +5539,14 @@ class MapViewApi { } } - Future animateCameraToLatLng( - int viewId, - LatLngDto point, - int? duration, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, point, duration], + Future animateCameraToLatLng(int viewId, LatLngDto point, int? duration) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, point, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5717,23 +5567,14 @@ class MapViewApi { } } - Future animateCameraToLatLngBounds( - int viewId, - LatLngBoundsDto bounds, - double padding, - int? duration, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, bounds, padding, duration], + Future animateCameraToLatLngBounds(int viewId, LatLngBoundsDto bounds, double padding, int? duration) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, bounds, padding, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5754,23 +5595,14 @@ class MapViewApi { } } - Future animateCameraToLatLngZoom( - int viewId, - LatLngDto point, - double zoom, - int? duration, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, point, zoom, duration], + Future animateCameraToLatLngZoom(int viewId, LatLngDto point, double zoom, int? duration) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, point, zoom, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5791,23 +5623,14 @@ class MapViewApi { } } - Future animateCameraByScroll( - int viewId, - double scrollByDx, - double scrollByDy, - int? duration, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, scrollByDx, scrollByDy, duration], + Future animateCameraByScroll(int viewId, double scrollByDx, double scrollByDy, int? duration) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, scrollByDx, scrollByDy, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5828,24 +5651,14 @@ class MapViewApi { } } - Future animateCameraByZoom( - int viewId, - double zoomBy, - double? focusDx, - double? focusDy, - int? duration, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, zoomBy, focusDx, focusDy, duration], + Future animateCameraByZoom(int viewId, double zoomBy, double? focusDx, double? focusDy, int? duration) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, zoomBy, focusDx, focusDy, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5866,22 +5679,14 @@ class MapViewApi { } } - Future animateCameraToZoom( - int viewId, - double zoom, - int? duration, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, zoom, duration], + Future animateCameraToZoom(int viewId, double zoom, int? duration) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, zoom, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5902,21 +5707,14 @@ class MapViewApi { } } - Future moveCameraToCameraPosition( - int viewId, - CameraPositionDto cameraPosition, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, cameraPosition], + Future moveCameraToCameraPosition(int viewId, CameraPositionDto cameraPosition) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, cameraPosition]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5933,17 +5731,13 @@ class MapViewApi { } Future moveCameraToLatLng(int viewId, LatLngDto point) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, point], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, point]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5959,22 +5753,14 @@ class MapViewApi { } } - Future moveCameraToLatLngBounds( - int viewId, - LatLngBoundsDto bounds, - double padding, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, bounds, padding], + Future moveCameraToLatLngBounds(int viewId, LatLngBoundsDto bounds, double padding) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, bounds, padding]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5990,22 +5776,14 @@ class MapViewApi { } } - Future moveCameraToLatLngZoom( - int viewId, - LatLngDto point, - double zoom, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, point, zoom], + Future moveCameraToLatLngZoom(int viewId, LatLngDto point, double zoom) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, point, zoom]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6021,22 +5799,14 @@ class MapViewApi { } } - Future moveCameraByScroll( - int viewId, - double scrollByDx, - double scrollByDy, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, scrollByDx, scrollByDy], + Future moveCameraByScroll(int viewId, double scrollByDx, double scrollByDy) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, scrollByDx, scrollByDy]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6052,23 +5822,14 @@ class MapViewApi { } } - Future moveCameraByZoom( - int viewId, - double zoomBy, - double? focusDx, - double? focusDy, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, zoomBy, focusDx, focusDy], + Future moveCameraByZoom(int viewId, double zoomBy, double? focusDx, double? focusDy) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, zoomBy, focusDx, focusDy]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6085,17 +5846,13 @@ class MapViewApi { } Future moveCameraToZoom(int viewId, double zoom) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, zoom], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, zoom]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6112,17 +5869,13 @@ class MapViewApi { } Future showRouteOverview(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6139,17 +5892,13 @@ class MapViewApi { } Future getMinZoomPreference(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6171,17 +5920,13 @@ class MapViewApi { } Future getMaxZoomPreference(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6203,17 +5948,13 @@ class MapViewApi { } Future resetMinMaxZoomPreference(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6229,21 +5970,14 @@ class MapViewApi { } } - Future setMinZoomPreference( - int viewId, - double minZoomPreference, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, minZoomPreference], + Future setMinZoomPreference(int viewId, double minZoomPreference) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, minZoomPreference]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6259,21 +5993,14 @@ class MapViewApi { } } - Future setMaxZoomPreference( - int viewId, - double maxZoomPreference, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, maxZoomPreference], + Future setMaxZoomPreference(int viewId, double maxZoomPreference) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, maxZoomPreference]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6290,17 +6017,13 @@ class MapViewApi { } Future> getMarkers(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6321,21 +6044,14 @@ class MapViewApi { } } - Future> addMarkers( - int viewId, - List markers, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, markers], + Future> addMarkers(int viewId, List markers) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, markers]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6356,21 +6072,14 @@ class MapViewApi { } } - Future> updateMarkers( - int viewId, - List markers, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, markers], + Future> updateMarkers(int viewId, List markers) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, markers]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6392,17 +6101,13 @@ class MapViewApi { } Future removeMarkers(int viewId, List markers) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, markers], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, markers]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6419,17 +6124,13 @@ class MapViewApi { } Future clearMarkers(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6446,17 +6147,13 @@ class MapViewApi { } Future clear(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6473,17 +6170,13 @@ class MapViewApi { } Future> getPolygons(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6504,21 +6197,14 @@ class MapViewApi { } } - Future> addPolygons( - int viewId, - List polygons, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, polygons], + Future> addPolygons(int viewId, List polygons) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, polygons]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6539,21 +6225,14 @@ class MapViewApi { } } - Future> updatePolygons( - int viewId, - List polygons, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, polygons], + Future> updatePolygons(int viewId, List polygons) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, polygons]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6575,17 +6254,13 @@ class MapViewApi { } Future removePolygons(int viewId, List polygons) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, polygons], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, polygons]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6602,17 +6277,13 @@ class MapViewApi { } Future clearPolygons(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6629,17 +6300,13 @@ class MapViewApi { } Future> getPolylines(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6660,21 +6327,14 @@ class MapViewApi { } } - Future> addPolylines( - int viewId, - List polylines, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, polylines], + Future> addPolylines(int viewId, List polylines) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, polylines]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6695,21 +6355,14 @@ class MapViewApi { } } - Future> updatePolylines( - int viewId, - List polylines, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, polylines], + Future> updatePolylines(int viewId, List polylines) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, polylines]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6731,17 +6384,13 @@ class MapViewApi { } Future removePolylines(int viewId, List polylines) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, polylines], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, polylines]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6758,17 +6407,13 @@ class MapViewApi { } Future clearPolylines(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6785,17 +6430,13 @@ class MapViewApi { } Future> getCircles(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6816,21 +6457,14 @@ class MapViewApi { } } - Future> addCircles( - int viewId, - List circles, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, circles], + Future> addCircles(int viewId, List circles) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, circles]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6851,21 +6485,14 @@ class MapViewApi { } } - Future> updateCircles( - int viewId, - List circles, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, circles], + Future> updateCircles(int viewId, List circles) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, circles]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6887,17 +6514,13 @@ class MapViewApi { } Future removeCircles(int viewId, List circles) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, circles], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, circles]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6914,17 +6537,13 @@ class MapViewApi { } Future clearCircles(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6941,17 +6560,13 @@ class MapViewApi { } Future enableOnCameraChangedEvents(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6968,17 +6583,13 @@ class MapViewApi { } Future setPadding(int viewId, MapPaddingDto padding) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, padding], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, padding]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6995,17 +6606,13 @@ class MapViewApi { } Future getPadding(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7027,17 +6634,13 @@ class MapViewApi { } Future getMapColorScheme(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7058,21 +6661,14 @@ class MapViewApi { } } - Future setMapColorScheme( - int viewId, - MapColorSchemeDto mapColorScheme, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, mapColorScheme], + Future setMapColorScheme(int viewId, MapColorSchemeDto mapColorScheme) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, mapColorScheme]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7089,17 +6685,13 @@ class MapViewApi { } Future getForceNightMode(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7120,21 +6712,14 @@ class MapViewApi { } } - Future setForceNightMode( - int viewId, - NavigationForceNightModeDto forceNightMode, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, forceNightMode], + Future setForceNightMode(int viewId, NavigationForceNightModeDto forceNightMode) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, forceNightMode]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7155,37 +6740,23 @@ class ImageRegistryApi { /// Constructor for [ImageRegistryApi]. 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. - ImageRegistryApi({ - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + ImageRegistryApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); final String pigeonVar_messageChannelSuffix; - Future registerBitmapImage( - String imageId, - Uint8List bytes, - double imagePixelRatio, - double? width, - double? height, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [imageId, bytes, imagePixelRatio, width, height], + Future registerBitmapImage(String imageId, Uint8List bytes, double imagePixelRatio, double? width, double? height) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([imageId, bytes, imagePixelRatio, width, height]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7207,17 +6778,13 @@ class ImageRegistryApi { } Future unregisterImage(ImageDescriptorDto imageDescriptor) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [imageDescriptor], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([imageDescriptor]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7234,14 +6801,12 @@ class ImageRegistryApi { } Future> getRegisteredImages() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7259,23 +6824,18 @@ class ImageRegistryApi { 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 clearRegisteredImages(RegisteredImageTypeDto? filter) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [filter], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([filter]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7291,20 +6851,14 @@ class ImageRegistryApi { } } - Future getRegisteredImageData( - ImageDescriptorDto imageDescriptor, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [imageDescriptor], + Future getRegisteredImageData(ImageDescriptorDto imageDescriptor) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([imageDescriptor]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7332,12 +6886,7 @@ abstract class ViewEventApi { void onMarkerEvent(int viewId, String markerId, MarkerEventTypeDto eventType); - void onMarkerDragEvent( - int viewId, - String markerId, - MarkerDragEventTypeDto eventType, - LatLngDto position, - ); + void onMarkerDragEvent(int viewId, String markerId, MarkerDragEventTypeDto eventType, LatLngDto position); void onPolygonClicked(int viewId, String polygonId); @@ -7359,652 +6908,453 @@ abstract class ViewEventApi { void onIndoorActiveLevelChanged(int viewId, IndoorBuildingDto? building); - void onCameraChanged( - int viewId, - CameraEventTypeDto eventType, - CameraPositionDto position, - ); + void onCameraChanged(int viewId, CameraEventTypeDto eventType, CameraPositionDto position); - static void setUp( - ViewEventApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + static void setUp(ViewEventApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent$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.google_navigation_flutter.ViewEventApi.onMapClickEvent was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent was null, expected non-null int.'); final LatLngDto? arg_latLng = (args[1] as LatLngDto?); - assert( - arg_latLng != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent was null, expected non-null LatLngDto.', - ); + assert(arg_latLng != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent was null, expected non-null LatLngDto.'); try { api.onMapClickEvent(arg_viewId!, arg_latLng!); 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent$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.google_navigation_flutter.ViewEventApi.onMapLongClickEvent was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent was null, expected non-null int.'); final LatLngDto? arg_latLng = (args[1] as LatLngDto?); - assert( - arg_latLng != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent was null, expected non-null LatLngDto.', - ); + assert(arg_latLng != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent was null, expected non-null LatLngDto.'); try { api.onMapLongClickEvent(arg_viewId!, arg_latLng!); 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked$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.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked was null, expected non-null int.'); try { api.onRecenterButtonClicked(arg_viewId!); 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent$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.google_navigation_flutter.ViewEventApi.onMarkerEvent was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent was null, expected non-null int.'); final String? arg_markerId = (args[1] as String?); - assert( - arg_markerId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent was null, expected non-null String.', - ); - final MarkerEventTypeDto? arg_eventType = - (args[2] as MarkerEventTypeDto?); - assert( - arg_eventType != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent was null, expected non-null MarkerEventTypeDto.', - ); + assert(arg_markerId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent was null, expected non-null String.'); + final MarkerEventTypeDto? arg_eventType = (args[2] as MarkerEventTypeDto?); + assert(arg_eventType != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent was null, expected non-null MarkerEventTypeDto.'); try { api.onMarkerEvent(arg_viewId!, arg_markerId!, arg_eventType!); 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent$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.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null, expected non-null int.'); final String? arg_markerId = (args[1] as String?); - assert( - arg_markerId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null, expected non-null String.', - ); - final MarkerDragEventTypeDto? arg_eventType = - (args[2] as MarkerDragEventTypeDto?); - assert( - arg_eventType != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null, expected non-null MarkerDragEventTypeDto.', - ); + assert(arg_markerId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null, expected non-null String.'); + final MarkerDragEventTypeDto? arg_eventType = (args[2] as MarkerDragEventTypeDto?); + assert(arg_eventType != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null, expected non-null MarkerDragEventTypeDto.'); final LatLngDto? arg_position = (args[3] as LatLngDto?); - assert( - arg_position != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null, expected non-null LatLngDto.', - ); + assert(arg_position != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null, expected non-null LatLngDto.'); try { - api.onMarkerDragEvent( - arg_viewId!, - arg_markerId!, - arg_eventType!, - arg_position!, - ); + api.onMarkerDragEvent(arg_viewId!, arg_markerId!, arg_eventType!, arg_position!); 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked$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.google_navigation_flutter.ViewEventApi.onPolygonClicked was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked was null, expected non-null int.'); final String? arg_polygonId = (args[1] as String?); - assert( - arg_polygonId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked was null, expected non-null String.', - ); + assert(arg_polygonId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked was null, expected non-null String.'); try { api.onPolygonClicked(arg_viewId!, arg_polygonId!); 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked$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.google_navigation_flutter.ViewEventApi.onPolylineClicked was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked was null, expected non-null int.'); final String? arg_polylineId = (args[1] as String?); - assert( - arg_polylineId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked was null, expected non-null String.', - ); + assert(arg_polylineId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked was null, expected non-null String.'); try { api.onPolylineClicked(arg_viewId!, arg_polylineId!); 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked$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.google_navigation_flutter.ViewEventApi.onCircleClicked was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked was null, expected non-null int.'); final String? arg_circleId = (args[1] as String?); - assert( - arg_circleId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked was null, expected non-null String.', - ); + assert(arg_circleId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked was null, expected non-null String.'); try { api.onCircleClicked(arg_viewId!, arg_circleId!); 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick$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.google_navigation_flutter.ViewEventApi.onPoiClick was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick was null, expected non-null int.', - ); - final PointOfInterestDto? arg_pointOfInterest = - (args[1] as PointOfInterestDto?); - assert( - arg_pointOfInterest != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick was null, expected non-null PointOfInterestDto.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick was null, expected non-null int.'); + final PointOfInterestDto? arg_pointOfInterest = (args[1] as PointOfInterestDto?); + assert(arg_pointOfInterest != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick was null, expected non-null PointOfInterestDto.'); try { api.onPoiClick(arg_viewId!, arg_pointOfInterest!); 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged$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.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged was null, expected non-null int.'); final bool? arg_navigationUIEnabled = (args[1] as bool?); - assert( - arg_navigationUIEnabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged was null, expected non-null bool.', - ); + assert(arg_navigationUIEnabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged was null, expected non-null bool.'); try { - api.onNavigationUIEnabledChanged( - arg_viewId!, - arg_navigationUIEnabled!, - ); + api.onNavigationUIEnabledChanged(arg_viewId!, arg_navigationUIEnabled!); 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged$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.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged was null, expected non-null int.'); final bool? arg_promptVisible = (args[1] as bool?); - assert( - arg_promptVisible != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged was null, expected non-null bool.', - ); + assert(arg_promptVisible != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged was null, expected non-null bool.'); try { api.onPromptVisibilityChanged(arg_viewId!, arg_promptVisible!); 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked$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.google_navigation_flutter.ViewEventApi.onMyLocationClicked was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked was null, expected non-null int.'); try { api.onMyLocationClicked(arg_viewId!); 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked$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.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked was null, expected non-null int.'); try { api.onMyLocationButtonClicked(arg_viewId!); 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged$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.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged was null, expected non-null int.', - ); - final IndoorBuildingDto? arg_building = - (args[1] as IndoorBuildingDto?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged was null, expected non-null int.'); + final IndoorBuildingDto? arg_building = (args[1] as IndoorBuildingDto?); try { api.onIndoorFocusedBuildingChanged(arg_viewId!, arg_building); 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged$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.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged was null, expected non-null int.', - ); - final IndoorBuildingDto? arg_building = - (args[1] as IndoorBuildingDto?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged was null, expected non-null int.'); + final IndoorBuildingDto? arg_building = (args[1] as IndoorBuildingDto?); try { api.onIndoorActiveLevelChanged(arg_viewId!, arg_building); 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged$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.google_navigation_flutter.ViewEventApi.onCameraChanged was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged was null, expected non-null int.', - ); - final CameraEventTypeDto? arg_eventType = - (args[1] as CameraEventTypeDto?); - assert( - arg_eventType != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged was null, expected non-null CameraEventTypeDto.', - ); - final CameraPositionDto? arg_position = - (args[2] as CameraPositionDto?); - assert( - arg_position != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged was null, expected non-null CameraPositionDto.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged was null, expected non-null int.'); + final CameraEventTypeDto? arg_eventType = (args[1] as CameraEventTypeDto?); + assert(arg_eventType != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged was null, expected non-null CameraEventTypeDto.'); + final CameraPositionDto? arg_position = (args[2] as CameraPositionDto?); + assert(arg_position != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged was null, expected non-null CameraPositionDto.'); try { api.onCameraChanged(arg_viewId!, arg_eventType!, arg_position!); 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())); } }); } @@ -8016,42 +7366,23 @@ class NavigationSessionApi { /// Constructor for [NavigationSessionApi]. 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. - NavigationSessionApi({ - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + NavigationSessionApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); final String pigeonVar_messageChannelSuffix; - Future createNavigationSession( - bool abnormalTerminationReportingEnabled, - TaskRemovedBehaviorDto behavior, - int? notificationId, - String? defaultMessage, - bool? resumeAppOnTap, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel - .send([ - abnormalTerminationReportingEnabled, - behavior, - notificationId, - defaultMessage, - resumeAppOnTap, - ]); + Future createNavigationSession(bool abnormalTerminationReportingEnabled, TaskRemovedBehaviorDto behavior, NavigationNotificationOptionsDto? notificationOptions) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([abnormalTerminationReportingEnabled, behavior, notificationOptions]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8068,14 +7399,12 @@ class NavigationSessionApi { } Future isInitialized() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8098,17 +7427,13 @@ class NavigationSessionApi { } Future cleanup(bool resetSession) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [resetSession], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([resetSession]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8124,28 +7449,14 @@ class NavigationSessionApi { } } - Future showTermsAndConditionsDialog( - String title, - String companyName, - bool shouldOnlyShowDriverAwarenessDisclaimer, - TermsAndConditionsUIParamsDto? uiParams, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [ - title, - companyName, - shouldOnlyShowDriverAwarenessDisclaimer, - uiParams, - ], + Future showTermsAndConditionsDialog(String title, String companyName, bool shouldOnlyShowDriverAwarenessDisclaimer, TermsAndConditionsUIParamsDto? uiParams) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([title, companyName, shouldOnlyShowDriverAwarenessDisclaimer, uiParams]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8167,14 +7478,12 @@ class NavigationSessionApi { } Future areTermsAccepted() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8197,14 +7506,12 @@ class NavigationSessionApi { } Future resetTermsAccepted() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8222,14 +7529,12 @@ class NavigationSessionApi { } Future getNavSDKVersion() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8252,14 +7557,12 @@ class NavigationSessionApi { } Future isGuidanceRunning() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8282,14 +7585,12 @@ class NavigationSessionApi { } Future startGuidance() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8307,14 +7608,12 @@ class NavigationSessionApi { } Future stopGuidance() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8332,17 +7631,13 @@ class NavigationSessionApi { } Future setDestinations(DestinationsDto destinations) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [destinations], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([destinations]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8364,14 +7659,12 @@ class NavigationSessionApi { } Future clearDestinations() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8388,16 +7681,13 @@ class NavigationSessionApi { } } - Future - continueToNextDestination() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + Future continueToNextDestination() async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8420,14 +7710,12 @@ class NavigationSessionApi { } Future getCurrentTimeAndDistance() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8449,20 +7737,14 @@ class NavigationSessionApi { } } - Future setAudioGuidance( - NavigationAudioGuidanceSettingsDto settings, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [settings], + Future setAudioGuidance(NavigationAudioGuidanceSettingsDto settings) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([settings]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8479,17 +7761,13 @@ class NavigationSessionApi { } Future setSpeedAlertOptions(SpeedAlertOptionsDto options) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [options], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([options]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8506,14 +7784,12 @@ class NavigationSessionApi { } Future> getRouteSegments() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8531,20 +7807,17 @@ class NavigationSessionApi { 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> getTraveledRoute() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8567,14 +7840,12 @@ class NavigationSessionApi { } Future getCurrentRouteSegment() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8592,17 +7863,13 @@ class NavigationSessionApi { } Future setUserLocation(LatLngDto location) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [location], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([location]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8619,14 +7886,12 @@ class NavigationSessionApi { } Future removeUserLocation() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8644,14 +7909,12 @@ class NavigationSessionApi { } Future simulateLocationsAlongExistingRoute() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8668,20 +7931,14 @@ class NavigationSessionApi { } } - Future simulateLocationsAlongExistingRouteWithOptions( - SimulationOptionsDto options, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [options], + Future simulateLocationsAlongExistingRouteWithOptions(SimulationOptionsDto options) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([options]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8697,20 +7954,14 @@ class NavigationSessionApi { } } - Future simulateLocationsAlongNewRoute( - List waypoints, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [waypoints], + Future simulateLocationsAlongNewRoute(List waypoints) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([waypoints]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8731,21 +7982,14 @@ class NavigationSessionApi { } } - Future simulateLocationsAlongNewRouteWithRoutingOptions( - List waypoints, - RoutingOptionsDto routingOptions, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [waypoints, routingOptions], + Future simulateLocationsAlongNewRouteWithRoutingOptions(List waypoints, RoutingOptionsDto routingOptions) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([waypoints, routingOptions]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8766,23 +8010,14 @@ class NavigationSessionApi { } } - Future - simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( - List waypoints, - RoutingOptionsDto routingOptions, - SimulationOptionsDto simulationOptions, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [waypoints, routingOptions, simulationOptions], + Future simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(List waypoints, RoutingOptionsDto routingOptions, SimulationOptionsDto simulationOptions) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([waypoints, routingOptions, simulationOptions]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8804,14 +8039,12 @@ class NavigationSessionApi { } Future pauseSimulation() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8829,14 +8062,12 @@ class NavigationSessionApi { } Future resumeSimulation() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8855,17 +8086,13 @@ class NavigationSessionApi { /// iOS-only method. Future allowBackgroundLocationUpdates(bool allow) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [allow], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([allow]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8882,14 +8109,12 @@ class NavigationSessionApi { } Future enableRoadSnappedLocationUpdates() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8907,14 +8132,12 @@ class NavigationSessionApi { } Future disableRoadSnappedLocationUpdates() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8931,21 +8154,14 @@ class NavigationSessionApi { } } - Future enableTurnByTurnNavigationEvents( - int? numNextStepsToPreview, - StepImageGenerationOptionsDto? options, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [numNextStepsToPreview, options], + Future enableTurnByTurnNavigationEvents(int? numNextStepsToPreview, StepImageGenerationOptionsDto? options) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([numNextStepsToPreview, options]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8962,14 +8178,12 @@ class NavigationSessionApi { } Future disableTurnByTurnNavigationEvents() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8986,24 +8200,14 @@ class NavigationSessionApi { } } - Future registerRemainingTimeOrDistanceChangedListener( - int remainingTimeThresholdSeconds, - int remainingDistanceThresholdMeters, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [ - remainingTimeThresholdSeconds, - remainingDistanceThresholdMeters, - ], + Future registerRemainingTimeOrDistanceChangedListener(int remainingTimeThresholdSeconds, int remainingDistanceThresholdMeters) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([remainingTimeThresholdSeconds, remainingDistanceThresholdMeters]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9033,11 +8237,7 @@ abstract class NavigationSessionEventApi { void onRouteChanged(); - void onRemainingTimeOrDistanceChanged( - double remainingTime, - double remainingDistance, - TrafficDelaySeverityDto delaySeverity, - ); + void onRemainingTimeOrDistanceChanged(double remainingTime, double remainingDistance, TrafficDelaySeverityDto delaySeverity); /// Android-only event. void onTrafficUpdated(); @@ -9058,159 +8258,112 @@ abstract class NavigationSessionEventApi { /// session starts with active guidance. void onNewNavigationSession(); - static void setUp( - NavigationSessionEventApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + static void setUp(NavigationSessionEventApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated$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.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated was null.'); final List args = (message as List?)!; - final SpeedingUpdatedEventDto? arg_msg = - (args[0] as SpeedingUpdatedEventDto?); - assert( - arg_msg != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated was null, expected non-null SpeedingUpdatedEventDto.', - ); + final SpeedingUpdatedEventDto? arg_msg = (args[0] as SpeedingUpdatedEventDto?); + assert(arg_msg != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated was null, expected non-null SpeedingUpdatedEventDto.'); try { api.onSpeedingUpdated(arg_msg!); 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated$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.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated was null.'); final List args = (message as List?)!; final LatLngDto? arg_location = (args[0] as LatLngDto?); - assert( - arg_location != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated was null, expected non-null LatLngDto.', - ); + assert(arg_location != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated was null, expected non-null LatLngDto.'); try { api.onRoadSnappedLocationUpdated(arg_location!); 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated$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.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated was null.'); final List args = (message as List?)!; final LatLngDto? arg_location = (args[0] as LatLngDto?); - assert( - arg_location != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated was null, expected non-null LatLngDto.', - ); + assert(arg_location != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated was null, expected non-null LatLngDto.'); try { api.onRoadSnappedRawLocationUpdated(arg_location!); 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival$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.google_navigation_flutter.NavigationSessionEventApi.onArrival was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival was null.'); final List args = (message as List?)!; - final NavigationWaypointDto? arg_waypoint = - (args[0] as NavigationWaypointDto?); - assert( - arg_waypoint != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival was null, expected non-null NavigationWaypointDto.', - ); + final NavigationWaypointDto? arg_waypoint = (args[0] as NavigationWaypointDto?); + assert(arg_waypoint != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival was null, expected non-null NavigationWaypointDto.'); try { api.onArrival(arg_waypoint!); 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -9220,70 +8373,47 @@ abstract class NavigationSessionEventApi { 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged$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.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was null.'); final List args = (message as List?)!; final double? arg_remainingTime = (args[0] as double?); - assert( - arg_remainingTime != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was null, expected non-null double.', - ); + assert(arg_remainingTime != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was null, expected non-null double.'); final double? arg_remainingDistance = (args[1] as double?); - assert( - arg_remainingDistance != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was null, expected non-null double.', - ); - final TrafficDelaySeverityDto? arg_delaySeverity = - (args[2] as TrafficDelaySeverityDto?); - assert( - arg_delaySeverity != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was null, expected non-null TrafficDelaySeverityDto.', - ); + assert(arg_remainingDistance != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was null, expected non-null double.'); + final TrafficDelaySeverityDto? arg_delaySeverity = (args[2] as TrafficDelaySeverityDto?); + assert(arg_delaySeverity != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was null, expected non-null TrafficDelaySeverityDto.'); try { - api.onRemainingTimeOrDistanceChanged( - arg_remainingTime!, - arg_remainingDistance!, - arg_delaySeverity!, - ); + api.onRemainingTimeOrDistanceChanged(arg_remainingTime!, arg_remainingDistance!, arg_delaySeverity!); 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -9293,21 +8423,16 @@ abstract class NavigationSessionEventApi { 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -9317,124 +8442,91 @@ abstract class NavigationSessionEventApi { 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate$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.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate was null.'); final List args = (message as List?)!; final bool? arg_available = (args[0] as bool?); - assert( - arg_available != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate was null, expected non-null bool.', - ); + assert(arg_available != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate was null, expected non-null bool.'); try { api.onGpsAvailabilityUpdate(arg_available!); 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange$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.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange was null.'); final List args = (message as List?)!; - final GpsAvailabilityChangeEventDto? arg_event = - (args[0] as GpsAvailabilityChangeEventDto?); - assert( - arg_event != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange was null, expected non-null GpsAvailabilityChangeEventDto.', - ); + final GpsAvailabilityChangeEventDto? arg_event = (args[0] as GpsAvailabilityChangeEventDto?); + assert(arg_event != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange was null, expected non-null GpsAvailabilityChangeEventDto.'); try { api.onGpsAvailabilityChange(arg_event!); 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo$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.google_navigation_flutter.NavigationSessionEventApi.onNavInfo was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo was null.'); final List args = (message as List?)!; final NavInfoDto? arg_navInfo = (args[0] as NavInfoDto?); - assert( - arg_navInfo != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo was null, expected non-null NavInfoDto.', - ); + assert(arg_navInfo != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo was null, expected non-null NavInfoDto.'); try { api.onNavInfo(arg_navInfo!); 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNewNavigationSession$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNewNavigationSession$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -9444,10 +8536,8 @@ abstract class NavigationSessionEventApi { 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())); } }); } @@ -9459,13 +8549,9 @@ class AutoMapViewApi { /// Constructor for [AutoMapViewApi]. 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. - AutoMapViewApi({ - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + AutoMapViewApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -9476,17 +8562,13 @@ class AutoMapViewApi { /// Should be called before the Auto/CarPlay screen is created. /// This allows customization of mapId and basic map settings. Future setAutoMapOptions(AutoMapOptionsDto mapOptions) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [mapOptions], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([mapOptions]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9503,14 +8585,12 @@ class AutoMapViewApi { } Future isMyLocationEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9533,17 +8613,13 @@ class AutoMapViewApi { } Future setMyLocationEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9560,14 +8636,12 @@ class AutoMapViewApi { } Future getMyLocation() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9585,14 +8659,12 @@ class AutoMapViewApi { } Future getMapType() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9615,17 +8687,13 @@ class AutoMapViewApi { } Future setMapType(MapTypeDto mapType) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [mapType], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([mapType]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9642,17 +8710,13 @@ class AutoMapViewApi { } Future setMapStyle(String styleJson) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [styleJson], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([styleJson]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9669,14 +8733,12 @@ class AutoMapViewApi { } Future getCameraPosition() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9699,14 +8761,12 @@ class AutoMapViewApi { } Future getVisibleRegion() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9728,21 +8788,14 @@ class AutoMapViewApi { } } - Future followMyLocation( - CameraPerspectiveDto perspective, - double? zoomLevel, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [perspective, zoomLevel], + Future followMyLocation(CameraPerspectiveDto perspective, double? zoomLevel) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([perspective, zoomLevel]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9758,21 +8811,14 @@ class AutoMapViewApi { } } - Future animateCameraToCameraPosition( - CameraPositionDto cameraPosition, - int? duration, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [cameraPosition, duration], + Future animateCameraToCameraPosition(CameraPositionDto cameraPosition, int? duration) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([cameraPosition, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9794,17 +8840,13 @@ class AutoMapViewApi { } Future animateCameraToLatLng(LatLngDto point, int? duration) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [point, duration], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([point, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9825,22 +8867,14 @@ class AutoMapViewApi { } } - Future animateCameraToLatLngBounds( - LatLngBoundsDto bounds, - double padding, - int? duration, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [bounds, padding, duration], + Future animateCameraToLatLngBounds(LatLngBoundsDto bounds, double padding, int? duration) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([bounds, padding, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9861,22 +8895,14 @@ class AutoMapViewApi { } } - Future animateCameraToLatLngZoom( - LatLngDto point, - double zoom, - int? duration, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [point, zoom, duration], + Future animateCameraToLatLngZoom(LatLngDto point, double zoom, int? duration) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([point, zoom, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9897,22 +8923,14 @@ class AutoMapViewApi { } } - Future animateCameraByScroll( - double scrollByDx, - double scrollByDy, - int? duration, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [scrollByDx, scrollByDy, duration], + Future animateCameraByScroll(double scrollByDx, double scrollByDy, int? duration) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([scrollByDx, scrollByDy, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9933,23 +8951,14 @@ class AutoMapViewApi { } } - Future animateCameraByZoom( - double zoomBy, - double? focusDx, - double? focusDy, - int? duration, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [zoomBy, focusDx, focusDy, duration], + Future animateCameraByZoom(double zoomBy, double? focusDx, double? focusDy, int? duration) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([zoomBy, focusDx, focusDy, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9971,17 +8980,13 @@ class AutoMapViewApi { } Future animateCameraToZoom(double zoom, int? duration) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [zoom, duration], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([zoom, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10002,20 +9007,14 @@ class AutoMapViewApi { } } - Future moveCameraToCameraPosition( - CameraPositionDto cameraPosition, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [cameraPosition], + Future moveCameraToCameraPosition(CameraPositionDto cameraPosition) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([cameraPosition]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10032,17 +9031,13 @@ class AutoMapViewApi { } Future moveCameraToLatLng(LatLngDto point) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [point], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([point]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10058,21 +9053,14 @@ class AutoMapViewApi { } } - Future moveCameraToLatLngBounds( - LatLngBoundsDto bounds, - double padding, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [bounds, padding], + Future moveCameraToLatLngBounds(LatLngBoundsDto bounds, double padding) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([bounds, padding]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10089,17 +9077,13 @@ class AutoMapViewApi { } Future moveCameraToLatLngZoom(LatLngDto point, double zoom) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [point, zoom], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([point, zoom]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10116,17 +9100,13 @@ class AutoMapViewApi { } Future moveCameraByScroll(double scrollByDx, double scrollByDy) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [scrollByDx, scrollByDy], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([scrollByDx, scrollByDy]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10142,22 +9122,14 @@ class AutoMapViewApi { } } - Future moveCameraByZoom( - double zoomBy, - double? focusDx, - double? focusDy, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [zoomBy, focusDx, focusDy], + Future moveCameraByZoom(double zoomBy, double? focusDx, double? focusDy) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([zoomBy, focusDx, focusDy]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10174,17 +9146,13 @@ class AutoMapViewApi { } Future moveCameraToZoom(double zoom) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [zoom], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([zoom]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10201,14 +9169,12 @@ class AutoMapViewApi { } Future getMinZoomPreference() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10231,14 +9197,12 @@ class AutoMapViewApi { } Future getMaxZoomPreference() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10261,14 +9225,12 @@ class AutoMapViewApi { } Future resetMinMaxZoomPreference() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10286,17 +9248,13 @@ class AutoMapViewApi { } Future setMinZoomPreference(double minZoomPreference) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [minZoomPreference], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([minZoomPreference]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10313,17 +9271,13 @@ class AutoMapViewApi { } Future setMaxZoomPreference(double maxZoomPreference) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [maxZoomPreference], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([maxZoomPreference]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10340,17 +9294,13 @@ class AutoMapViewApi { } Future setMyLocationButtonEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10366,20 +9316,14 @@ class AutoMapViewApi { } } - Future setConsumeMyLocationButtonClickEventsEnabled( - bool enabled, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + Future setConsumeMyLocationButtonClickEventsEnabled(bool enabled) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10396,17 +9340,13 @@ class AutoMapViewApi { } Future setZoomGesturesEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10423,17 +9363,13 @@ class AutoMapViewApi { } Future setZoomControlsEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10450,17 +9386,13 @@ class AutoMapViewApi { } Future setCompassEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10477,17 +9409,13 @@ class AutoMapViewApi { } Future setRotateGesturesEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10504,17 +9432,13 @@ class AutoMapViewApi { } Future setScrollGesturesEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10531,17 +9455,13 @@ class AutoMapViewApi { } Future setScrollGesturesDuringRotateOrZoomEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10558,17 +9478,13 @@ class AutoMapViewApi { } Future setTiltGesturesEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10585,17 +9501,13 @@ class AutoMapViewApi { } Future setMapToolbarEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10612,17 +9524,13 @@ class AutoMapViewApi { } Future setTrafficEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10639,17 +9547,13 @@ class AutoMapViewApi { } Future setTrafficPromptsEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10666,17 +9570,13 @@ class AutoMapViewApi { } Future setTrafficIncidentCardsEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10693,17 +9593,13 @@ class AutoMapViewApi { } Future setNavigationTripProgressBarEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10720,17 +9616,13 @@ class AutoMapViewApi { } Future setSpeedLimitIconEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10747,17 +9639,13 @@ class AutoMapViewApi { } Future setSpeedometerEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10774,17 +9662,13 @@ class AutoMapViewApi { } Future setNavigationUIEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10801,14 +9685,12 @@ class AutoMapViewApi { } Future isMyLocationButtonEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10831,14 +9713,12 @@ class AutoMapViewApi { } Future isConsumeMyLocationButtonClickEventsEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10861,14 +9741,12 @@ class AutoMapViewApi { } Future isZoomGesturesEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10891,14 +9769,12 @@ class AutoMapViewApi { } Future isZoomControlsEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10921,14 +9797,12 @@ class AutoMapViewApi { } Future isCompassEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10951,14 +9825,12 @@ class AutoMapViewApi { } Future isRotateGesturesEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10981,14 +9853,12 @@ class AutoMapViewApi { } Future isScrollGesturesEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11011,14 +9881,12 @@ class AutoMapViewApi { } Future isScrollGesturesEnabledDuringRotateOrZoom() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11041,14 +9909,12 @@ class AutoMapViewApi { } Future isTiltGesturesEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11071,14 +9937,12 @@ class AutoMapViewApi { } Future isMapToolbarEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11101,14 +9965,12 @@ class AutoMapViewApi { } Future isTrafficEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11131,14 +9993,12 @@ class AutoMapViewApi { } Future isTrafficPromptsEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11161,14 +10021,12 @@ class AutoMapViewApi { } Future isTrafficIncidentCardsEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11191,14 +10049,12 @@ class AutoMapViewApi { } Future isNavigationTripProgressBarEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11221,14 +10077,12 @@ class AutoMapViewApi { } Future isSpeedLimitIconEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11251,14 +10105,12 @@ class AutoMapViewApi { } Future isSpeedometerEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11281,14 +10133,12 @@ class AutoMapViewApi { } Future isNavigationUIEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11311,14 +10161,12 @@ class AutoMapViewApi { } Future isIndoorEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11341,17 +10189,13 @@ class AutoMapViewApi { } Future setIndoorEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -11368,14 +10212,12 @@ class AutoMapViewApi { } Future getFocusedIndoorBuilding() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11393,17 +10235,13 @@ class AutoMapViewApi { } Future activateIndoorLevel(int levelIndex) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [levelIndex], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([levelIndex]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -11420,14 +10258,12 @@ class AutoMapViewApi { } Future showRouteOverview() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11445,14 +10281,12 @@ class AutoMapViewApi { } Future> getMarkers() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11475,17 +10309,13 @@ class AutoMapViewApi { } Future> addMarkers(List markers) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [markers], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([markers]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -11507,17 +10337,13 @@ class AutoMapViewApi { } Future> updateMarkers(List markers) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [markers], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([markers]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -11539,17 +10365,13 @@ class AutoMapViewApi { } Future removeMarkers(List markers) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [markers], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([markers]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -11566,14 +10388,12 @@ class AutoMapViewApi { } Future clearMarkers() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11591,14 +10411,12 @@ class AutoMapViewApi { } Future clear() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11616,14 +10434,12 @@ class AutoMapViewApi { } Future> getPolygons() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11646,17 +10462,13 @@ class AutoMapViewApi { } Future> addPolygons(List polygons) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [polygons], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([polygons]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -11678,17 +10490,13 @@ class AutoMapViewApi { } Future> updatePolygons(List polygons) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [polygons], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([polygons]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -11710,17 +10518,13 @@ class AutoMapViewApi { } Future removePolygons(List polygons) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [polygons], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([polygons]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -11737,14 +10541,12 @@ class AutoMapViewApi { } Future clearPolygons() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11762,14 +10564,12 @@ class AutoMapViewApi { } Future> getPolylines() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11792,17 +10592,13 @@ class AutoMapViewApi { } Future> addPolylines(List polylines) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [polylines], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([polylines]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -11824,17 +10620,13 @@ class AutoMapViewApi { } Future> updatePolylines(List polylines) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [polylines], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([polylines]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -11856,17 +10648,13 @@ class AutoMapViewApi { } Future removePolylines(List polylines) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [polylines], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([polylines]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -11883,14 +10671,12 @@ class AutoMapViewApi { } Future clearPolylines() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11908,14 +10694,12 @@ class AutoMapViewApi { } Future> getCircles() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11938,17 +10722,13 @@ class AutoMapViewApi { } Future> addCircles(List circles) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [circles], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([circles]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -11970,17 +10750,13 @@ class AutoMapViewApi { } Future> updateCircles(List circles) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [circles], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([circles]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -12002,17 +10778,13 @@ class AutoMapViewApi { } Future removeCircles(List circles) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [circles], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([circles]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -12029,14 +10801,12 @@ class AutoMapViewApi { } Future clearCircles() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -12054,14 +10824,12 @@ class AutoMapViewApi { } Future enableOnCameraChangedEvents() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -12079,14 +10847,12 @@ class AutoMapViewApi { } Future isAutoScreenAvailable() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -12109,17 +10875,13 @@ class AutoMapViewApi { } Future setPadding(MapPaddingDto padding) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [padding], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([padding]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -12136,14 +10898,12 @@ class AutoMapViewApi { } Future getPadding() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -12166,14 +10926,12 @@ class AutoMapViewApi { } Future getMapColorScheme() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -12196,17 +10954,13 @@ class AutoMapViewApi { } Future setMapColorScheme(MapColorSchemeDto mapColorScheme) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [mapColorScheme], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([mapColorScheme]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -12223,14 +10977,12 @@ class AutoMapViewApi { } Future getForceNightMode() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -12252,20 +11004,14 @@ class AutoMapViewApi { } } - Future setForceNightMode( - NavigationForceNightModeDto forceNightMode, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [forceNightMode], + Future setForceNightMode(NavigationForceNightModeDto forceNightMode) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([forceNightMode]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -12282,17 +11028,13 @@ class AutoMapViewApi { } Future sendCustomNavigationAutoEvent(String event, Object data) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [event, data], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([event, data]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -12324,213 +11066,153 @@ abstract class AutoViewEventApi { void onIndoorActiveLevelChanged(IndoorBuildingDto? building); - static void setUp( - AutoViewEventApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + static void setUp(AutoViewEventApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent$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.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent was null.'); final List args = (message as List?)!; final String? arg_event = (args[0] as String?); - assert( - arg_event != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent was null, expected non-null String.', - ); + assert(arg_event != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent was null, expected non-null String.'); final Object? arg_data = (args[1] as Object?); - assert( - arg_data != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent was null, expected non-null Object.', - ); + assert(arg_data != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent was null, expected non-null Object.'); try { api.onCustomNavigationAutoEvent(arg_event!, arg_data!); 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged$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.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged was null.'); final List args = (message as List?)!; final bool? arg_isAvailable = (args[0] as bool?); - assert( - arg_isAvailable != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged was null, expected non-null bool.', - ); + assert(arg_isAvailable != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged was null, expected non-null bool.'); try { api.onAutoScreenAvailabilityChanged(arg_isAvailable!); 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged$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.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged was null.'); final List args = (message as List?)!; final bool? arg_promptVisible = (args[0] as bool?); - assert( - arg_promptVisible != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged was null, expected non-null bool.', - ); + assert(arg_promptVisible != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged was null, expected non-null bool.'); try { api.onPromptVisibilityChanged(arg_promptVisible!); 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged$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.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged was null.'); final List args = (message as List?)!; final bool? arg_navigationUIEnabled = (args[0] as bool?); - assert( - arg_navigationUIEnabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged was null, expected non-null bool.', - ); + assert(arg_navigationUIEnabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged was null, expected non-null bool.'); try { api.onNavigationUIEnabledChanged(arg_navigationUIEnabled!); 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged$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.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged was null.'); final List args = (message as List?)!; - final IndoorBuildingDto? arg_building = - (args[0] as IndoorBuildingDto?); + final IndoorBuildingDto? arg_building = (args[0] as IndoorBuildingDto?); try { api.onIndoorFocusedBuildingChanged(arg_building); 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged$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.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged was null.'); final List args = (message as List?)!; - final IndoorBuildingDto? arg_building = - (args[0] as IndoorBuildingDto?); + final IndoorBuildingDto? arg_building = (args[0] as IndoorBuildingDto?); try { api.onIndoorActiveLevelChanged(arg_building); 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())); } }); } @@ -12542,13 +11224,9 @@ class NavigationInspector { /// Constructor for [NavigationInspector]. 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. - NavigationInspector({ - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + NavigationInspector({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -12556,17 +11234,13 @@ class NavigationInspector { final String pigeonVar_messageChannelSuffix; Future isViewAttachedToSession(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { diff --git a/lib/src/method_channel/session_api.dart b/lib/src/method_channel/session_api.dart index d08caa99..a2766304 100644 --- a/lib/src/method_channel/session_api.dart +++ b/lib/src/method_channel/session_api.dart @@ -64,9 +64,7 @@ class NavigationSessionAPIImpl { await _sessionApi.createNavigationSession( abnormalTerminationReportingEnabled, taskRemovedBehavior.toDto(), - notificationOptions?.notificationId, - notificationOptions?.defaultMessage, - notificationOptions?.resumeAppOnTap, + notificationOptions?.toDto(), ); } on PlatformException catch (e) { switch (e.code) { diff --git a/lib/src/navigator/google_navigation_flutter_navigator.dart b/lib/src/navigator/google_navigation_flutter_navigator.dart index a27c5fec..b0d9276c 100644 --- a/lib/src/navigator/google_navigation_flutter_navigator.dart +++ b/lib/src/navigator/google_navigation_flutter_navigator.dart @@ -49,8 +49,8 @@ class GoogleMapsNavigator { /// Optional parameter [abnormalTerminationReportingEnabled] can be used enables/disables /// reporting abnormal SDK terminations such as the app crashes while the SDK is still running. /// - /// [notificationOptions] configures Android's built-in navigation notification - /// and is ignored on iOS. + /// [notificationOptions] configures Android's built-in navigation notification. + /// It is not available on iOS and is ignored there. static Future initializeNavigationSession({ bool abnormalTerminationReportingEnabled = true, TaskRemovedBehavior taskRemovedBehavior = diff --git a/lib/src/types/navigation_notification_options.dart b/lib/src/types/navigation_notification_options.dart index 54441205..5c13035e 100644 --- a/lib/src/types/navigation_notification_options.dart +++ b/lib/src/types/navigation_notification_options.dart @@ -15,7 +15,8 @@ /// Configures the Android navigation foreground-service notification. /// /// These options preserve the Navigation SDK's built-in turn-by-turn -/// notification. They are ignored on iOS. +/// notification. This Android-only configuration is not available on iOS and +/// is ignored there. /// {@category Navigation} class NavigationNotificationOptions { /// Creates Android navigation notification options. diff --git a/pigeons/messages.dart b/pigeons/messages.dart index 555844a2..21f6bf67 100644 --- a/pigeons/messages.dart +++ b/pigeons/messages.dart @@ -1505,6 +1505,21 @@ enum TaskRemovedBehaviorDto { quitService, } +/// Android foreground-service notification configuration. +/// +/// This preserves the Navigation SDK's built-in turn-by-turn notification. +class NavigationNotificationOptionsDto { + NavigationNotificationOptionsDto({ + this.notificationId, + this.defaultMessage, + required this.resumeAppOnTap, + }); + + final int? notificationId; + final String? defaultMessage; + final bool resumeAppOnTap; +} + /// Options for step image generation in turn-by-turn navigation events. class StepImageGenerationOptionsDto { StepImageGenerationOptionsDto({ @@ -1527,9 +1542,7 @@ abstract class NavigationSessionApi { void createNavigationSession( bool abnormalTerminationReportingEnabled, TaskRemovedBehaviorDto behavior, - int? notificationId, - String? defaultMessage, - bool? resumeAppOnTap, + NavigationNotificationOptionsDto? notificationOptions, ); bool isInitialized(); void cleanup(bool resetSession); diff --git a/test/google_navigation_flutter_test.dart b/test/google_navigation_flutter_test.dart index 94bf3fc6..da865890 100644 --- a/test/google_navigation_flutter_test.dart +++ b/test/google_navigation_flutter_test.dart @@ -1314,14 +1314,14 @@ void main() { captureAny, captureAny, captureAny, - captureAny, - captureAny, ), ); expect(result.captured[0] as bool, false); - expect(result.captured[2], 1234); - expect(result.captured[3], 'Navigation is active'); - expect(result.captured[4], true); + final NavigationNotificationOptionsDto notificationOptions = + result.captured[2] as NavigationNotificationOptionsDto; + expect(notificationOptions.notificationId, 1234); + expect(notificationOptions.defaultMessage, 'Navigation is active'); + expect(notificationOptions.resumeAppOnTap, true); // Start/stop guidance. diff --git a/test/google_navigation_flutter_test.mocks.dart b/test/google_navigation_flutter_test.mocks.dart index bd95246c..d013ef47 100644 --- a/test/google_navigation_flutter_test.mocks.dart +++ b/test/google_navigation_flutter_test.mocks.dart @@ -1,17 +1,3 @@ -// Copyright 2026 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - // Mocks generated by Mockito 5.4.6 from annotations // in google_navigation_flutter/test/google_navigation_flutter_test.dart. // Do not manually edit this file. @@ -57,26 +43,34 @@ class _FakeNavigationTimeAndDistanceDto_1 extends _i1.SmartFake ) : super(parent, parentInvocation); } -class _FakeCameraPositionDto_2 extends _i1.SmartFake +class _FakeNavigationHeaderStylingOptionsDto_2 extends _i1.SmartFake + implements _i2.NavigationHeaderStylingOptionsDto { + _FakeNavigationHeaderStylingOptionsDto_2( + Object parent, + Invocation parentInvocation, + ) : super(parent, parentInvocation); +} + +class _FakeCameraPositionDto_3 extends _i1.SmartFake implements _i2.CameraPositionDto { - _FakeCameraPositionDto_2(Object parent, Invocation parentInvocation) + _FakeCameraPositionDto_3(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); } -class _FakeLatLngBoundsDto_3 extends _i1.SmartFake +class _FakeLatLngBoundsDto_4 extends _i1.SmartFake implements _i2.LatLngBoundsDto { - _FakeLatLngBoundsDto_3(Object parent, Invocation parentInvocation) + _FakeLatLngBoundsDto_4(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); } -class _FakeMapPaddingDto_4 extends _i1.SmartFake implements _i2.MapPaddingDto { - _FakeMapPaddingDto_4(Object parent, Invocation parentInvocation) +class _FakeMapPaddingDto_5 extends _i1.SmartFake implements _i2.MapPaddingDto { + _FakeMapPaddingDto_5(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); } -class _FakeImageDescriptorDto_5 extends _i1.SmartFake +class _FakeImageDescriptorDto_6 extends _i1.SmartFake implements _i2.ImageDescriptorDto { - _FakeImageDescriptorDto_5(Object parent, Invocation parentInvocation) + _FakeImageDescriptorDto_6(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); } @@ -93,17 +87,13 @@ class MockTestNavigationSessionApi extends _i1.Mock _i4.Future createNavigationSession( bool? abnormalTerminationReportingEnabled, _i2.TaskRemovedBehaviorDto? behavior, - int? notificationId, - String? defaultMessage, - bool? resumeAppOnTap, + _i2.NavigationNotificationOptionsDto? notificationOptions, ) => (super.noSuchMethod( Invocation.method(#createNavigationSession, [ abnormalTerminationReportingEnabled, behavior, - notificationId, - defaultMessage, - resumeAppOnTap, + notificationOptions, ]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), @@ -486,6 +476,31 @@ class MockTestMapViewApi extends _i1.Mock implements _i3.TestMapViewApi { returnValueForMissingStub: null, ); + @override + _i2.NavigationHeaderStylingOptionsDto getNavigationHeaderStylingOptions( + int? viewId, + ) => + (super.noSuchMethod( + Invocation.method(#getNavigationHeaderStylingOptions, [viewId]), + returnValue: _FakeNavigationHeaderStylingOptionsDto_2( + this, + Invocation.method(#getNavigationHeaderStylingOptions, [viewId]), + ), + ) + as _i2.NavigationHeaderStylingOptionsDto); + + @override + void setNavigationHeaderStylingOptions( + int? viewId, + _i2.NavigationHeaderStylingOptionsDto? stylingOptions, + ) => super.noSuchMethod( + Invocation.method(#setNavigationHeaderStylingOptions, [ + viewId, + stylingOptions, + ]), + returnValueForMissingStub: null, + ); + @override bool isNavigationFooterEnabled(int? viewId) => (super.noSuchMethod( @@ -849,7 +864,7 @@ class MockTestMapViewApi extends _i1.Mock implements _i3.TestMapViewApi { _i2.CameraPositionDto getCameraPosition(int? viewId) => (super.noSuchMethod( Invocation.method(#getCameraPosition, [viewId]), - returnValue: _FakeCameraPositionDto_2( + returnValue: _FakeCameraPositionDto_3( this, Invocation.method(#getCameraPosition, [viewId]), ), @@ -860,7 +875,7 @@ class MockTestMapViewApi extends _i1.Mock implements _i3.TestMapViewApi { _i2.LatLngBoundsDto getVisibleRegion(int? viewId) => (super.noSuchMethod( Invocation.method(#getVisibleRegion, [viewId]), - returnValue: _FakeLatLngBoundsDto_3( + returnValue: _FakeLatLngBoundsDto_4( this, Invocation.method(#getVisibleRegion, [viewId]), ), @@ -1289,7 +1304,7 @@ class MockTestMapViewApi extends _i1.Mock implements _i3.TestMapViewApi { _i2.MapPaddingDto getPadding(int? viewId) => (super.noSuchMethod( Invocation.method(#getPadding, [viewId]), - returnValue: _FakeMapPaddingDto_4( + returnValue: _FakeMapPaddingDto_5( this, Invocation.method(#getPadding, [viewId]), ), @@ -1383,7 +1398,7 @@ class MockTestAutoMapViewApi extends _i1.Mock _i2.CameraPositionDto getCameraPosition() => (super.noSuchMethod( Invocation.method(#getCameraPosition, []), - returnValue: _FakeCameraPositionDto_2( + returnValue: _FakeCameraPositionDto_3( this, Invocation.method(#getCameraPosition, []), ), @@ -1394,7 +1409,7 @@ class MockTestAutoMapViewApi extends _i1.Mock _i2.LatLngBoundsDto getVisibleRegion() => (super.noSuchMethod( Invocation.method(#getVisibleRegion, []), - returnValue: _FakeLatLngBoundsDto_3( + returnValue: _FakeLatLngBoundsDto_4( this, Invocation.method(#getVisibleRegion, []), ), @@ -2031,7 +2046,7 @@ class MockTestAutoMapViewApi extends _i1.Mock _i2.MapPaddingDto getPadding() => (super.noSuchMethod( Invocation.method(#getPadding, []), - returnValue: _FakeMapPaddingDto_4( + returnValue: _FakeMapPaddingDto_5( this, Invocation.method(#getPadding, []), ), @@ -2101,7 +2116,7 @@ class MockTestImageRegistryApi extends _i1.Mock width, height, ]), - returnValue: _FakeImageDescriptorDto_5( + returnValue: _FakeImageDescriptorDto_6( this, Invocation.method(#registerBitmapImage, [ imageId, diff --git a/test/messages_test.g.dart b/test/messages_test.g.dart index d3cd1cf1..ac748d34 100644 --- a/test/messages_test.g.dart +++ b/test/messages_test.g.dart @@ -24,6 +24,7 @@ import 'package:flutter_test/flutter_test.dart'; import 'package:google_navigation_flutter/src/method_channel/messages.g.dart'; + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -31,232 +32,234 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is MapViewTypeDto) { + } else if (value is MapViewTypeDto) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is NavigationUIEnabledPreferenceDto) { + } else if (value is NavigationUIEnabledPreferenceDto) { buffer.putUint8(130); writeValue(buffer, value.index); - } else if (value is MapTypeDto) { + } else if (value is MapTypeDto) { buffer.putUint8(131); writeValue(buffer, value.index); - } else if (value is MapColorSchemeDto) { + } else if (value is MapColorSchemeDto) { buffer.putUint8(132); writeValue(buffer, value.index); - } else if (value is NavigationForceNightModeDto) { + } else if (value is NavigationForceNightModeDto) { buffer.putUint8(133); writeValue(buffer, value.index); - } else if (value is CameraPerspectiveDto) { + } else if (value is CameraPerspectiveDto) { buffer.putUint8(134); writeValue(buffer, value.index); - } else if (value is RegisteredImageTypeDto) { + } else if (value is RegisteredImageTypeDto) { buffer.putUint8(135); writeValue(buffer, value.index); - } else if (value is MarkerEventTypeDto) { + } else if (value is MarkerEventTypeDto) { buffer.putUint8(136); writeValue(buffer, value.index); - } else if (value is MarkerDragEventTypeDto) { + } else if (value is MarkerDragEventTypeDto) { buffer.putUint8(137); writeValue(buffer, value.index); - } else if (value is StrokeJointTypeDto) { + } else if (value is StrokeJointTypeDto) { buffer.putUint8(138); writeValue(buffer, value.index); - } else if (value is PatternTypeDto) { + } else if (value is PatternTypeDto) { buffer.putUint8(139); writeValue(buffer, value.index); - } else if (value is CameraEventTypeDto) { + } else if (value is CameraEventTypeDto) { buffer.putUint8(140); writeValue(buffer, value.index); - } else if (value is AlternateRoutesStrategyDto) { + } else if (value is AlternateRoutesStrategyDto) { buffer.putUint8(141); writeValue(buffer, value.index); - } else if (value is RoutingStrategyDto) { + } else if (value is RoutingStrategyDto) { buffer.putUint8(142); writeValue(buffer, value.index); - } else if (value is TravelModeDto) { + } else if (value is TravelModeDto) { buffer.putUint8(143); writeValue(buffer, value.index); - } else if (value is RouteStatusDto) { + } else if (value is RouteStatusDto) { buffer.putUint8(144); writeValue(buffer, value.index); - } else if (value is TrafficDelaySeverityDto) { + } else if (value is TrafficDelaySeverityDto) { buffer.putUint8(145); writeValue(buffer, value.index); - } else if (value is AudioGuidanceTypeDto) { + } else if (value is AudioGuidanceTypeDto) { buffer.putUint8(146); writeValue(buffer, value.index); - } else if (value is SpeedAlertSeverityDto) { + } else if (value is SpeedAlertSeverityDto) { buffer.putUint8(147); writeValue(buffer, value.index); - } else if (value is RouteSegmentTrafficDataStatusDto) { + } else if (value is RouteSegmentTrafficDataStatusDto) { buffer.putUint8(148); writeValue(buffer, value.index); - } else if (value - is RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto) { + } else if (value is RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto) { buffer.putUint8(149); writeValue(buffer, value.index); - } else if (value is ManeuverDto) { + } else if (value is ManeuverDto) { buffer.putUint8(150); writeValue(buffer, value.index); - } else if (value is DrivingSideDto) { + } else if (value is DrivingSideDto) { buffer.putUint8(151); writeValue(buffer, value.index); - } else if (value is NavStateDto) { + } else if (value is NavStateDto) { buffer.putUint8(152); writeValue(buffer, value.index); - } else if (value is LaneShapeDto) { + } else if (value is LaneShapeDto) { buffer.putUint8(153); writeValue(buffer, value.index); - } else if (value is TaskRemovedBehaviorDto) { + } else if (value is TaskRemovedBehaviorDto) { buffer.putUint8(154); writeValue(buffer, value.index); - } else if (value is AutoMapOptionsDto) { + } else if (value is AutoMapOptionsDto) { buffer.putUint8(155); writeValue(buffer, value.encode()); - } else if (value is MapOptionsDto) { + } else if (value is MapOptionsDto) { buffer.putUint8(156); writeValue(buffer, value.encode()); - } else if (value is NavigationViewOptionsDto) { + } else if (value is NavigationViewOptionsDto) { buffer.putUint8(157); writeValue(buffer, value.encode()); - } else if (value is ViewCreationOptionsDto) { + } else if (value is ViewCreationOptionsDto) { buffer.putUint8(158); writeValue(buffer, value.encode()); - } else if (value is CameraPositionDto) { + } else if (value is CameraPositionDto) { buffer.putUint8(159); writeValue(buffer, value.encode()); - } else if (value is MarkerDto) { + } else if (value is MarkerDto) { buffer.putUint8(160); writeValue(buffer, value.encode()); - } else if (value is MarkerOptionsDto) { + } else if (value is MarkerOptionsDto) { buffer.putUint8(161); writeValue(buffer, value.encode()); - } else if (value is ImageDescriptorDto) { + } else if (value is ImageDescriptorDto) { buffer.putUint8(162); writeValue(buffer, value.encode()); - } else if (value is InfoWindowDto) { + } else if (value is InfoWindowDto) { buffer.putUint8(163); writeValue(buffer, value.encode()); - } else if (value is MarkerAnchorDto) { + } else if (value is MarkerAnchorDto) { buffer.putUint8(164); writeValue(buffer, value.encode()); - } else if (value is PointOfInterestDto) { + } else if (value is PointOfInterestDto) { buffer.putUint8(165); writeValue(buffer, value.encode()); - } else if (value is IndoorLevelDto) { + } else if (value is IndoorLevelDto) { buffer.putUint8(166); writeValue(buffer, value.encode()); - } else if (value is IndoorBuildingDto) { + } else if (value is IndoorBuildingDto) { buffer.putUint8(167); writeValue(buffer, value.encode()); - } else if (value is PolygonDto) { + } else if (value is PolygonDto) { buffer.putUint8(168); writeValue(buffer, value.encode()); - } else if (value is PolygonOptionsDto) { + } else if (value is PolygonOptionsDto) { buffer.putUint8(169); writeValue(buffer, value.encode()); - } else if (value is PolygonHoleDto) { + } else if (value is PolygonHoleDto) { buffer.putUint8(170); writeValue(buffer, value.encode()); - } else if (value is StyleSpanStrokeStyleDto) { + } else if (value is StyleSpanStrokeStyleDto) { buffer.putUint8(171); writeValue(buffer, value.encode()); - } else if (value is StyleSpanDto) { + } else if (value is StyleSpanDto) { buffer.putUint8(172); writeValue(buffer, value.encode()); - } else if (value is PolylineDto) { + } else if (value is PolylineDto) { buffer.putUint8(173); writeValue(buffer, value.encode()); - } else if (value is PatternItemDto) { + } else if (value is PatternItemDto) { buffer.putUint8(174); writeValue(buffer, value.encode()); - } else if (value is PolylineOptionsDto) { + } else if (value is PolylineOptionsDto) { buffer.putUint8(175); writeValue(buffer, value.encode()); - } else if (value is CircleDto) { + } else if (value is CircleDto) { buffer.putUint8(176); writeValue(buffer, value.encode()); - } else if (value is CircleOptionsDto) { + } else if (value is CircleOptionsDto) { buffer.putUint8(177); writeValue(buffer, value.encode()); - } else if (value is MapPaddingDto) { + } else if (value is MapPaddingDto) { buffer.putUint8(178); writeValue(buffer, value.encode()); - } else if (value is NavigationHeaderStylingOptionsDto) { + } else if (value is NavigationHeaderStylingOptionsDto) { buffer.putUint8(179); writeValue(buffer, value.encode()); - } else if (value is RouteTokenOptionsDto) { + } else if (value is RouteTokenOptionsDto) { buffer.putUint8(180); writeValue(buffer, value.encode()); - } else if (value is DestinationsDto) { + } else if (value is DestinationsDto) { buffer.putUint8(181); writeValue(buffer, value.encode()); - } else if (value is RoutingOptionsDto) { + } else if (value is RoutingOptionsDto) { buffer.putUint8(182); writeValue(buffer, value.encode()); - } else if (value is NavigationDisplayOptionsDto) { + } else if (value is NavigationDisplayOptionsDto) { buffer.putUint8(183); writeValue(buffer, value.encode()); - } else if (value is NavigationWaypointDto) { + } else if (value is NavigationWaypointDto) { buffer.putUint8(184); writeValue(buffer, value.encode()); - } else if (value is ContinueToNextDestinationResponseDto) { + } else if (value is ContinueToNextDestinationResponseDto) { buffer.putUint8(185); writeValue(buffer, value.encode()); - } else if (value is NavigationTimeAndDistanceDto) { + } else if (value is NavigationTimeAndDistanceDto) { buffer.putUint8(186); writeValue(buffer, value.encode()); - } else if (value is NavigationAudioGuidanceSettingsDto) { + } else if (value is NavigationAudioGuidanceSettingsDto) { buffer.putUint8(187); writeValue(buffer, value.encode()); - } else if (value is SimulationOptionsDto) { + } else if (value is SimulationOptionsDto) { buffer.putUint8(188); writeValue(buffer, value.encode()); - } else if (value is LatLngDto) { + } else if (value is LatLngDto) { buffer.putUint8(189); writeValue(buffer, value.encode()); - } else if (value is LatLngBoundsDto) { + } else if (value is LatLngBoundsDto) { buffer.putUint8(190); writeValue(buffer, value.encode()); - } else if (value is SpeedingUpdatedEventDto) { + } else if (value is SpeedingUpdatedEventDto) { buffer.putUint8(191); writeValue(buffer, value.encode()); - } else if (value is GpsAvailabilityChangeEventDto) { + } else if (value is GpsAvailabilityChangeEventDto) { buffer.putUint8(192); writeValue(buffer, value.encode()); - } else if (value is SpeedAlertOptionsThresholdPercentageDto) { + } else if (value is SpeedAlertOptionsThresholdPercentageDto) { buffer.putUint8(193); writeValue(buffer, value.encode()); - } else if (value is SpeedAlertOptionsDto) { + } else if (value is SpeedAlertOptionsDto) { buffer.putUint8(194); writeValue(buffer, value.encode()); - } else if (value is RouteSegmentTrafficDataRoadStretchRenderingDataDto) { + } else if (value is RouteSegmentTrafficDataRoadStretchRenderingDataDto) { buffer.putUint8(195); writeValue(buffer, value.encode()); - } else if (value is RouteSegmentTrafficDataDto) { + } else if (value is RouteSegmentTrafficDataDto) { buffer.putUint8(196); writeValue(buffer, value.encode()); - } else if (value is RouteSegmentDto) { + } else if (value is RouteSegmentDto) { buffer.putUint8(197); writeValue(buffer, value.encode()); - } else if (value is LaneDirectionDto) { + } else if (value is LaneDirectionDto) { buffer.putUint8(198); writeValue(buffer, value.encode()); - } else if (value is LaneDto) { + } else if (value is LaneDto) { buffer.putUint8(199); writeValue(buffer, value.encode()); - } else if (value is StepInfoDto) { + } else if (value is StepInfoDto) { buffer.putUint8(200); writeValue(buffer, value.encode()); - } else if (value is NavInfoDto) { + } else if (value is NavInfoDto) { buffer.putUint8(201); writeValue(buffer, value.encode()); - } else if (value is TermsAndConditionsUIParamsDto) { + } else if (value is TermsAndConditionsUIParamsDto) { buffer.putUint8(202); writeValue(buffer, value.encode()); - } else if (value is StepImageGenerationOptionsDto) { + } else if (value is NavigationNotificationOptionsDto) { buffer.putUint8(203); writeValue(buffer, value.encode()); + } else if (value is StepImageGenerationOptionsDto) { + buffer.putUint8(204); + writeValue(buffer, value.encode()); } else { super.writeValue(buffer, value); } @@ -270,9 +273,7 @@ class _PigeonCodec extends StandardMessageCodec { return value == null ? null : MapViewTypeDto.values[value]; case 130: final int? value = readValue(buffer) as int?; - return value == null - ? null - : NavigationUIEnabledPreferenceDto.values[value]; + return value == null ? null : NavigationUIEnabledPreferenceDto.values[value]; case 131: final int? value = readValue(buffer) as int?; return value == null ? null : MapTypeDto.values[value]; @@ -326,15 +327,10 @@ class _PigeonCodec extends StandardMessageCodec { return value == null ? null : SpeedAlertSeverityDto.values[value]; case 148: final int? value = readValue(buffer) as int?; - return value == null - ? null - : RouteSegmentTrafficDataStatusDto.values[value]; + return value == null ? null : RouteSegmentTrafficDataStatusDto.values[value]; case 149: final int? value = readValue(buffer) as int?; - return value == null - ? null - : RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto - .values[value]; + return value == null ? null : RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto.values[value]; case 150: final int? value = readValue(buffer) as int?; return value == null ? null : ManeuverDto.values[value]; @@ -427,15 +423,11 @@ class _PigeonCodec extends StandardMessageCodec { case 192: return GpsAvailabilityChangeEventDto.decode(readValue(buffer)!); case 193: - return SpeedAlertOptionsThresholdPercentageDto.decode( - readValue(buffer)!, - ); + return SpeedAlertOptionsThresholdPercentageDto.decode(readValue(buffer)!); case 194: return SpeedAlertOptionsDto.decode(readValue(buffer)!); case 195: - return RouteSegmentTrafficDataRoadStretchRenderingDataDto.decode( - readValue(buffer)!, - ); + return RouteSegmentTrafficDataRoadStretchRenderingDataDto.decode(readValue(buffer)!); case 196: return RouteSegmentTrafficDataDto.decode(readValue(buffer)!); case 197: @@ -451,6 +443,8 @@ class _PigeonCodec extends StandardMessageCodec { case 202: return TermsAndConditionsUIParamsDto.decode(readValue(buffer)!); case 203: + return NavigationNotificationOptionsDto.decode(readValue(buffer)!); + case 204: return StepImageGenerationOptionsDto.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -459,8 +453,7 @@ class _PigeonCodec extends StandardMessageCodec { } abstract class TestMapViewApi { - static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => - TestDefaultBinaryMessengerBinding.instance; + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => TestDefaultBinaryMessengerBinding.instance; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); Future awaitMapReady(int viewId); @@ -485,14 +478,9 @@ abstract class TestMapViewApi { void setNavigationHeaderEnabled(int viewId, bool enabled); - NavigationHeaderStylingOptionsDto getNavigationHeaderStylingOptions( - int viewId, - ); + NavigationHeaderStylingOptionsDto getNavigationHeaderStylingOptions(int viewId); - void setNavigationHeaderStylingOptions( - int viewId, - NavigationHeaderStylingOptionsDto stylingOptions, - ); + void setNavigationHeaderStylingOptions(int viewId, NavigationHeaderStylingOptionsDto stylingOptions); bool isNavigationFooterEnabled(int viewId); @@ -597,52 +585,19 @@ abstract class TestMapViewApi { LatLngBoundsDto getVisibleRegion(int viewId); - void followMyLocation( - int viewId, - CameraPerspectiveDto perspective, - double? zoomLevel, - ); - - Future animateCameraToCameraPosition( - int viewId, - CameraPositionDto cameraPosition, - int? duration, - ); - - Future animateCameraToLatLng( - int viewId, - LatLngDto point, - int? duration, - ); - - Future animateCameraToLatLngBounds( - int viewId, - LatLngBoundsDto bounds, - double padding, - int? duration, - ); - - Future animateCameraToLatLngZoom( - int viewId, - LatLngDto point, - double zoom, - int? duration, - ); - - Future animateCameraByScroll( - int viewId, - double scrollByDx, - double scrollByDy, - int? duration, - ); - - Future animateCameraByZoom( - int viewId, - double zoomBy, - double? focusDx, - double? focusDy, - int? duration, - ); + void followMyLocation(int viewId, CameraPerspectiveDto perspective, double? zoomLevel); + + Future animateCameraToCameraPosition(int viewId, CameraPositionDto cameraPosition, int? duration); + + Future animateCameraToLatLng(int viewId, LatLngDto point, int? duration); + + Future animateCameraToLatLngBounds(int viewId, LatLngBoundsDto bounds, double padding, int? duration); + + Future animateCameraToLatLngZoom(int viewId, LatLngDto point, double zoom, int? duration); + + Future animateCameraByScroll(int viewId, double scrollByDx, double scrollByDy, int? duration); + + Future animateCameraByZoom(int viewId, double zoomBy, double? focusDx, double? focusDy, int? duration); Future animateCameraToZoom(int viewId, double zoom, int? duration); @@ -650,22 +605,13 @@ abstract class TestMapViewApi { void moveCameraToLatLng(int viewId, LatLngDto point); - void moveCameraToLatLngBounds( - int viewId, - LatLngBoundsDto bounds, - double padding, - ); + void moveCameraToLatLngBounds(int viewId, LatLngBoundsDto bounds, double padding); void moveCameraToLatLngZoom(int viewId, LatLngDto point, double zoom); void moveCameraByScroll(int viewId, double scrollByDx, double scrollByDy); - void moveCameraByZoom( - int viewId, - double zoomBy, - double? focusDx, - double? focusDy, - ); + void moveCameraByZoom(int viewId, double zoomBy, double? focusDx, double? focusDy); void moveCameraToZoom(int viewId, double zoom); @@ -735,10348 +681,6432 @@ abstract class TestMapViewApi { NavigationForceNightModeDto getForceNightMode(int viewId); - void setForceNightMode( - int viewId, - NavigationForceNightModeDto forceNightMode, - ); - - static void setUp( - TestMapViewApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady was null, expected non-null int.', - ); - try { - await api.awaitMapReady(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isMyLocationEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled was null.', - ); + void setForceNightMode(int viewId, NavigationForceNightModeDto forceNightMode); + + static void setUp(TestMapViewApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled was null, expected non-null int.', - ); - final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled was null, expected non-null bool.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady was null, expected non-null int.'); try { - api.setMyLocationEnabled(arg_viewId!, arg_enabled!); + await api.awaitMapReady(arg_viewId!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation was null, expected non-null int.', - ); - try { - final LatLngDto? output = api.getMyLocation(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType was null, expected non-null int.', - ); - try { - final MapTypeDto output = api.getMapType(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType was null, expected non-null int.', - ); - final MapTypeDto? arg_mapType = (args[1] as MapTypeDto?); - assert( - arg_mapType != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType was null, expected non-null MapTypeDto.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled was null, expected non-null int.'); try { - api.setMapType(arg_viewId!, arg_mapType!); - return wrapResponse(empty: true); + final bool output = api.isMyLocationEnabled(arg_viewId!); + 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())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle was null, expected non-null int.', - ); - final String? arg_styleJson = (args[1] as String?); - assert( - arg_styleJson != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle was null, expected non-null String.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled was null, expected non-null int.'); + final bool? arg_enabled = (args[1] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled was null, expected non-null bool.'); try { - api.setMapStyle(arg_viewId!, arg_styleJson!); + api.setMyLocationEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isNavigationTripProgressBarEnabled( - arg_viewId!, - ); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled was null, expected non-null int.', - ); - final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled was null, expected non-null bool.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation was null, expected non-null int.'); try { - api.setNavigationTripProgressBarEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + final LatLngDto? output = api.getMyLocation(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isNavigationHeaderEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled was null, expected non-null int.', - ); - final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled was null, expected non-null bool.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType was null, expected non-null int.'); try { - api.setNavigationHeaderEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + final MapTypeDto output = api.getMapType(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions was null, expected non-null int.', - ); - try { - final NavigationHeaderStylingOptionsDto output = api - .getNavigationHeaderStylingOptions(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions was null, expected non-null int.', - ); - final NavigationHeaderStylingOptionsDto? arg_stylingOptions = - (args[1] as NavigationHeaderStylingOptionsDto?); - assert( - arg_stylingOptions != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions was null, expected non-null NavigationHeaderStylingOptionsDto.', - ); - try { - api.setNavigationHeaderStylingOptions( - arg_viewId!, - arg_stylingOptions!, - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType was null, expected non-null int.'); + final MapTypeDto? arg_mapType = (args[1] as MapTypeDto?); + assert(arg_mapType != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType was null, expected non-null MapTypeDto.'); + try { + api.setMapType(arg_viewId!, arg_mapType!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isNavigationFooterEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled was null, expected non-null int.', - ); - final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled was null, expected non-null bool.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle was null, expected non-null int.'); + final String? arg_styleJson = (args[1] as String?); + assert(arg_styleJson != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle was null, expected non-null String.'); try { - api.setNavigationFooterEnabled(arg_viewId!, arg_enabled!); + api.setMapStyle(arg_viewId!, arg_styleJson!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isRecenterButtonEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled was null, expected non-null int.', - ); - final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled was null, expected non-null bool.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled was null, expected non-null int.'); try { - api.setRecenterButtonEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + final bool output = api.isNavigationTripProgressBarEnabled(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isSpeedLimitIconEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled was null, expected non-null int.'); final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled was null, expected non-null bool.', - ); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled was null, expected non-null bool.'); try { - api.setSpeedLimitIconEnabled(arg_viewId!, arg_enabled!); + api.setNavigationTripProgressBarEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isSpeedometerEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled was null, expected non-null int.', - ); - final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled was null, expected non-null bool.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled was null, expected non-null int.'); try { - api.setSpeedometerEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + final bool output = api.isNavigationHeaderEnabled(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isNavigationUIEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled was null, expected non-null int.'); final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled was null, expected non-null bool.', - ); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled was null, expected non-null bool.'); try { - api.setNavigationUIEnabled(arg_viewId!, arg_enabled!); + api.setNavigationHeaderEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isMyLocationButtonEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled was null, expected non-null int.', - ); - final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled was null, expected non-null bool.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions was null, expected non-null int.'); try { - api.setMyLocationButtonEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + final NavigationHeaderStylingOptionsDto output = api.getNavigationHeaderStylingOptions(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled was null, expected non-null int.', - ); - try { - final bool output = api - .isConsumeMyLocationButtonClickEventsEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null, expected non-null int.', - ); - final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null, expected non-null bool.', - ); - try { - api.setConsumeMyLocationButtonClickEventsEnabled( - arg_viewId!, - arg_enabled!, - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions was null, expected non-null int.'); + final NavigationHeaderStylingOptionsDto? arg_stylingOptions = (args[1] as NavigationHeaderStylingOptionsDto?); + assert(arg_stylingOptions != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions was null, expected non-null NavigationHeaderStylingOptionsDto.'); + try { + api.setNavigationHeaderStylingOptions(arg_viewId!, arg_stylingOptions!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isZoomGesturesEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled was null, expected non-null int.', - ); - final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled was null, expected non-null bool.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled was null, expected non-null int.'); try { - api.setZoomGesturesEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + final bool output = api.isNavigationFooterEnabled(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isZoomControlsEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled was null, expected non-null int.'); final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled was null, expected non-null bool.', - ); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled was null, expected non-null bool.'); try { - api.setZoomControlsEnabled(arg_viewId!, arg_enabled!); + api.setNavigationFooterEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isCompassEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled was null, expected non-null int.', - ); - final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled was null, expected non-null bool.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled was null, expected non-null int.'); try { - api.setCompassEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + final bool output = api.isRecenterButtonEnabled(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isRotateGesturesEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled was null, expected non-null int.'); final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled was null, expected non-null bool.', - ); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled was null, expected non-null bool.'); try { - api.setRotateGesturesEnabled(arg_viewId!, arg_enabled!); + api.setRecenterButtonEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isScrollGesturesEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled was null, expected non-null int.', - ); - final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled was null, expected non-null bool.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled was null, expected non-null int.'); try { - api.setScrollGesturesEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + final bool output = api.isSpeedLimitIconEnabled(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom was null, expected non-null int.', - ); - try { - final bool output = api - .isScrollGesturesEnabledDuringRotateOrZoom(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled was null, expected non-null int.'); final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null, expected non-null bool.', - ); - try { - api.setScrollGesturesDuringRotateOrZoomEnabled( - arg_viewId!, - arg_enabled!, - ); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled was null, expected non-null bool.'); + try { + api.setSpeedLimitIconEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isTiltGesturesEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled was null, expected non-null int.', - ); - final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled was null, expected non-null bool.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled was null, expected non-null int.'); try { - api.setTiltGesturesEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + final bool output = api.isSpeedometerEnabled(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isMapToolbarEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled was null, expected non-null int.'); final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled was null, expected non-null bool.', - ); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled was null, expected non-null bool.'); try { - api.setMapToolbarEnabled(arg_viewId!, arg_enabled!); + api.setSpeedometerEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isTrafficEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled was null, expected non-null int.', - ); - final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled was null, expected non-null bool.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled was null, expected non-null int.'); try { - api.setTrafficEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + final bool output = api.isNavigationUIEnabled(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isTrafficIncidentCardsEnabled( - arg_viewId!, - ); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled was null, expected non-null int.'); final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled was null, expected non-null bool.', - ); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled was null, expected non-null bool.'); try { - api.setTrafficIncidentCardsEnabled(arg_viewId!, arg_enabled!); + api.setNavigationUIEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isTrafficPromptsEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled was null, expected non-null int.', - ); - final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled was null, expected non-null bool.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled was null, expected non-null int.'); try { - api.setTrafficPromptsEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + final bool output = api.isMyLocationButtonEnabled(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isReportIncidentButtonEnabled( - arg_viewId!, - ); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled was null, expected non-null int.'); final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled was null, expected non-null bool.', - ); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled was null, expected non-null bool.'); try { - api.setReportIncidentButtonEnabled(arg_viewId!, arg_enabled!); + api.setMyLocationButtonEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable was null, expected non-null int.', - ); - try { - final bool output = api.isIncidentReportingAvailable( - arg_viewId!, - ); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel was null, expected non-null int.', - ); - try { - api.showReportIncidentsPanel(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isBuildingsEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled was null, expected non-null int.', - ); - final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled was null, expected non-null bool.', - ); - try { - api.setBuildingsEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isIndoorEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled was null, expected non-null int.', - ); - final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled was null, expected non-null bool.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled was null, expected non-null int.'); try { - api.setIndoorEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + final bool output = api.isConsumeMyLocationButtonClickEventsEnabled(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isIndoorLevelPickerEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null, expected non-null int.'); final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled was null, expected non-null bool.', - ); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null, expected non-null bool.'); try { - api.setIndoorLevelPickerEnabled(arg_viewId!, arg_enabled!); + api.setConsumeMyLocationButtonClickEventsEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding was null, expected non-null int.', - ); - try { - final IndoorBuildingDto? output = api.getFocusedIndoorBuilding( - arg_viewId!, - ); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel was null, expected non-null int.', - ); - final int? arg_levelIndex = (args[1] as int?); - assert( - arg_levelIndex != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled was null, expected non-null int.'); try { - api.activateIndoorLevel(arg_viewId!, arg_levelIndex!); - return wrapResponse(empty: true); + final bool output = api.isZoomGesturesEnabled(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition was null, expected non-null int.', - ); - try { - final CameraPositionDto output = api.getCameraPosition( - arg_viewId!, - ); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion was null, expected non-null int.', - ); - try { - final LatLngBoundsDto output = api.getVisibleRegion( - arg_viewId!, - ); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation was null, expected non-null int.', - ); - final CameraPerspectiveDto? arg_perspective = - (args[1] as CameraPerspectiveDto?); - assert( - arg_perspective != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation was null, expected non-null CameraPerspectiveDto.', - ); - final double? arg_zoomLevel = (args[2] as double?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled was null, expected non-null int.'); + final bool? arg_enabled = (args[1] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled was null, expected non-null bool.'); try { - api.followMyLocation(arg_viewId!, arg_perspective!, arg_zoomLevel); + api.setZoomGesturesEnabled(arg_viewId!, arg_enabled!); 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition was null, expected non-null int.', - ); - final CameraPositionDto? arg_cameraPosition = - (args[1] as CameraPositionDto?); - assert( - arg_cameraPosition != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition was null, expected non-null CameraPositionDto.', - ); - final int? arg_duration = (args[2] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled was null, expected non-null int.'); try { - final bool output = await api.animateCameraToCameraPosition( - arg_viewId!, - arg_cameraPosition!, - arg_duration, - ); + final bool output = api.isZoomControlsEnabled(arg_viewId!); 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())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng was null, expected non-null int.', - ); - final LatLngDto? arg_point = (args[1] as LatLngDto?); - assert( - arg_point != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng was null, expected non-null LatLngDto.', - ); - final int? arg_duration = (args[2] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled was null, expected non-null int.'); + final bool? arg_enabled = (args[1] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled was null, expected non-null bool.'); try { - final bool output = await api.animateCameraToLatLng( - arg_viewId!, - arg_point!, - arg_duration, - ); - return [output]; + api.setZoomControlsEnabled(arg_viewId!, arg_enabled!); + 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds was null, expected non-null int.', - ); - final LatLngBoundsDto? arg_bounds = (args[1] as LatLngBoundsDto?); - assert( - arg_bounds != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds was null, expected non-null LatLngBoundsDto.', - ); - final double? arg_padding = (args[2] as double?); - assert( - arg_padding != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds was null, expected non-null double.', - ); - final int? arg_duration = (args[3] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled was null, expected non-null int.'); try { - final bool output = await api.animateCameraToLatLngBounds( - arg_viewId!, - arg_bounds!, - arg_padding!, - arg_duration, - ); + final bool output = api.isCompassEnabled(arg_viewId!); 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())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom was null, expected non-null int.', - ); - final LatLngDto? arg_point = (args[1] as LatLngDto?); - assert( - arg_point != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom was null, expected non-null LatLngDto.', - ); - final double? arg_zoom = (args[2] as double?); - assert( - arg_zoom != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom was null, expected non-null double.', - ); - final int? arg_duration = (args[3] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled was null, expected non-null int.'); + final bool? arg_enabled = (args[1] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled was null, expected non-null bool.'); try { - final bool output = await api.animateCameraToLatLngZoom( - arg_viewId!, - arg_point!, - arg_zoom!, - arg_duration, - ); - return [output]; + api.setCompassEnabled(arg_viewId!, arg_enabled!); + 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll was null, expected non-null int.', - ); - final double? arg_scrollByDx = (args[1] as double?); - assert( - arg_scrollByDx != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll was null, expected non-null double.', - ); - final double? arg_scrollByDy = (args[2] as double?); - assert( - arg_scrollByDy != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll was null, expected non-null double.', - ); - final int? arg_duration = (args[3] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled was null, expected non-null int.'); try { - final bool output = await api.animateCameraByScroll( - arg_viewId!, - arg_scrollByDx!, - arg_scrollByDy!, - arg_duration, - ); + final bool output = api.isRotateGesturesEnabled(arg_viewId!); 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())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom was null, expected non-null int.', - ); - final double? arg_zoomBy = (args[1] as double?); - assert( - arg_zoomBy != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom was null, expected non-null double.', - ); - final double? arg_focusDx = (args[2] as double?); - final double? arg_focusDy = (args[3] as double?); - final int? arg_duration = (args[4] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled was null, expected non-null int.'); + final bool? arg_enabled = (args[1] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled was null, expected non-null bool.'); try { - final bool output = await api.animateCameraByZoom( - arg_viewId!, - arg_zoomBy!, - arg_focusDx, - arg_focusDy, - arg_duration, - ); - return [output]; + api.setRotateGesturesEnabled(arg_viewId!, arg_enabled!); + 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom was null, expected non-null int.', - ); - final double? arg_zoom = (args[1] as double?); - assert( - arg_zoom != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom was null, expected non-null double.', - ); - final int? arg_duration = (args[2] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled was null, expected non-null int.'); try { - final bool output = await api.animateCameraToZoom( - arg_viewId!, - arg_zoom!, - arg_duration, - ); + final bool output = api.isScrollGesturesEnabled(arg_viewId!); 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())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition was null, expected non-null int.', - ); - final CameraPositionDto? arg_cameraPosition = - (args[1] as CameraPositionDto?); - assert( - arg_cameraPosition != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition was null, expected non-null CameraPositionDto.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled was null, expected non-null int.'); + final bool? arg_enabled = (args[1] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled was null, expected non-null bool.'); try { - api.moveCameraToCameraPosition(arg_viewId!, arg_cameraPosition!); + api.setScrollGesturesEnabled(arg_viewId!, arg_enabled!); 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng was null, expected non-null int.', - ); - final LatLngDto? arg_point = (args[1] as LatLngDto?); - assert( - arg_point != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng was null, expected non-null LatLngDto.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom was null, expected non-null int.'); try { - api.moveCameraToLatLng(arg_viewId!, arg_point!); - return wrapResponse(empty: true); + final bool output = api.isScrollGesturesEnabledDuringRotateOrZoom(arg_viewId!); + 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())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds was null, expected non-null int.', - ); - final LatLngBoundsDto? arg_bounds = (args[1] as LatLngBoundsDto?); - assert( - arg_bounds != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds was null, expected non-null LatLngBoundsDto.', - ); - final double? arg_padding = (args[2] as double?); - assert( - arg_padding != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds was null, expected non-null double.', - ); - try { - api.moveCameraToLatLngBounds( - arg_viewId!, - arg_bounds!, - arg_padding!, - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null, expected non-null int.'); + final bool? arg_enabled = (args[1] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null, expected non-null bool.'); + try { + api.setScrollGesturesDuringRotateOrZoomEnabled(arg_viewId!, arg_enabled!); 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom was null, expected non-null int.', - ); - final LatLngDto? arg_point = (args[1] as LatLngDto?); - assert( - arg_point != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom was null, expected non-null LatLngDto.', - ); - final double? arg_zoom = (args[2] as double?); - assert( - arg_zoom != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom was null, expected non-null double.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled was null, expected non-null int.'); try { - api.moveCameraToLatLngZoom(arg_viewId!, arg_point!, arg_zoom!); - return wrapResponse(empty: true); + final bool output = api.isTiltGesturesEnabled(arg_viewId!); + 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())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll was null, expected non-null int.', - ); - final double? arg_scrollByDx = (args[1] as double?); - assert( - arg_scrollByDx != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll was null, expected non-null double.', - ); - final double? arg_scrollByDy = (args[2] as double?); - assert( - arg_scrollByDy != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll was null, expected non-null double.', - ); - try { - api.moveCameraByScroll( - arg_viewId!, - arg_scrollByDx!, - arg_scrollByDy!, - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled was null, expected non-null int.'); + final bool? arg_enabled = (args[1] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled was null, expected non-null bool.'); + try { + api.setTiltGesturesEnabled(arg_viewId!, arg_enabled!); 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom was null, expected non-null int.', - ); - final double? arg_zoomBy = (args[1] as double?); - assert( - arg_zoomBy != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom was null, expected non-null double.', - ); - final double? arg_focusDx = (args[2] as double?); - final double? arg_focusDy = (args[3] as double?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled was null, expected non-null int.'); try { - api.moveCameraByZoom( - arg_viewId!, - arg_zoomBy!, - arg_focusDx, - arg_focusDy, - ); - return wrapResponse(empty: true); + final bool output = api.isMapToolbarEnabled(arg_viewId!); + 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())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom was null, expected non-null int.', - ); - final double? arg_zoom = (args[1] as double?); - assert( - arg_zoom != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom was null, expected non-null double.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled was null, expected non-null int.'); + final bool? arg_enabled = (args[1] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled was null, expected non-null bool.'); try { - api.moveCameraToZoom(arg_viewId!, arg_zoom!); + api.setMapToolbarEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview was null, expected non-null int.', - ); - try { - api.showRouteOverview(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference was null, expected non-null int.', - ); - try { - final double output = api.getMinZoomPreference(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference was null, expected non-null int.', - ); - try { - final double output = api.getMaxZoomPreference(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference was null, expected non-null int.', - ); - try { - api.resetMinMaxZoomPreference(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference was null, expected non-null int.', - ); - final double? arg_minZoomPreference = (args[1] as double?); - assert( - arg_minZoomPreference != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference was null, expected non-null double.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled was null, expected non-null int.'); try { - api.setMinZoomPreference(arg_viewId!, arg_minZoomPreference!); - return wrapResponse(empty: true); + final bool output = api.isTrafficEnabled(arg_viewId!); + 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())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference was null, expected non-null int.', - ); - final double? arg_maxZoomPreference = (args[1] as double?); - assert( - arg_maxZoomPreference != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference was null, expected non-null double.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled was null, expected non-null int.'); + final bool? arg_enabled = (args[1] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled was null, expected non-null bool.'); try { - api.setMaxZoomPreference(arg_viewId!, arg_maxZoomPreference!); + api.setTrafficEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers was null, expected non-null int.', - ); - try { - final List output = api.getMarkers(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers was null, expected non-null int.', - ); - final List? arg_markers = (args[1] as List?) - ?.cast(); - assert( - arg_markers != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers was null, expected non-null List.', - ); - try { - final List output = api.addMarkers( - arg_viewId!, - arg_markers!, - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled was null, expected non-null int.'); + try { + final bool output = api.isTrafficIncidentCardsEnabled(arg_viewId!); 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())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers was null, expected non-null int.', - ); - final List? arg_markers = (args[1] as List?) - ?.cast(); - assert( - arg_markers != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers was null, expected non-null List.', - ); - try { - final List output = api.updateMarkers( - arg_viewId!, - arg_markers!, - ); - return [output]; + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled was null, expected non-null int.'); + final bool? arg_enabled = (args[1] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled was null, expected non-null bool.'); + try { + api.setTrafficIncidentCardsEnabled(arg_viewId!, arg_enabled!); + 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers was null, expected non-null int.', - ); - final List? arg_markers = (args[1] as List?) - ?.cast(); - assert( - arg_markers != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers was null, expected non-null List.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled was null, expected non-null int.'); try { - api.removeMarkers(arg_viewId!, arg_markers!); - return wrapResponse(empty: true); + final bool output = api.isTrafficPromptsEnabled(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers was null, expected non-null int.', - ); - try { - api.clearMarkers(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear was null, expected non-null int.', - ); - try { - api.clear(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons was null, expected non-null int.', - ); - try { - final List output = api.getPolygons(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons was null, expected non-null int.', - ); - final List? arg_polygons = (args[1] as List?) - ?.cast(); - assert( - arg_polygons != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons was null, expected non-null List.', - ); - try { - final List output = api.addPolygons( - arg_viewId!, - arg_polygons!, - ); - return [output]; + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled was null, expected non-null int.'); + final bool? arg_enabled = (args[1] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled was null, expected non-null bool.'); + try { + api.setTrafficPromptsEnabled(arg_viewId!, arg_enabled!); + 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons was null, expected non-null int.', - ); - final List? arg_polygons = (args[1] as List?) - ?.cast(); - assert( - arg_polygons != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons was null, expected non-null List.', - ); - try { - final List output = api.updatePolygons( - arg_viewId!, - arg_polygons!, - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled was null, expected non-null int.'); + try { + final bool output = api.isReportIncidentButtonEnabled(arg_viewId!); 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())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons was null, expected non-null int.', - ); - final List? arg_polygons = (args[1] as List?) - ?.cast(); - assert( - arg_polygons != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons was null, expected non-null List.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled was null, expected non-null int.'); + final bool? arg_enabled = (args[1] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled was null, expected non-null bool.'); try { - api.removePolygons(arg_viewId!, arg_polygons!); + api.setReportIncidentButtonEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons was null, expected non-null int.', - ); - try { - api.clearPolygons(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines was null, expected non-null int.', - ); - try { - final List output = api.getPolylines(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines was null, expected non-null int.', - ); - final List? arg_polylines = (args[1] as List?) - ?.cast(); - assert( - arg_polylines != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines was null, expected non-null List.', - ); - try { - final List output = api.addPolylines( - arg_viewId!, - arg_polylines!, - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable was null, expected non-null int.'); + try { + final bool output = api.isIncidentReportingAvailable(arg_viewId!); 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())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines was null, expected non-null int.', - ); - final List? arg_polylines = (args[1] as List?) - ?.cast(); - assert( - arg_polylines != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines was null, expected non-null List.', - ); - try { - final List output = api.updatePolylines( - arg_viewId!, - arg_polylines!, - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel was null, expected non-null int.'); + try { + api.showReportIncidentsPanel(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled was null, expected non-null int.'); + try { + final bool output = api.isBuildingsEnabled(arg_viewId!); 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())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines was null, expected non-null int.', - ); - final List? arg_polylines = (args[1] as List?) - ?.cast(); - assert( - arg_polylines != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines was null, expected non-null List.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled was null, expected non-null int.'); + final bool? arg_enabled = (args[1] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled was null, expected non-null bool.'); try { - api.removePolylines(arg_viewId!, arg_polylines!); + api.setBuildingsEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines was null, expected non-null int.', - ); - try { - api.clearPolylines(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles was null, expected non-null int.', - ); - try { - final List output = api.getCircles(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles was null, expected non-null int.', - ); - final List? arg_circles = (args[1] as List?) - ?.cast(); - assert( - arg_circles != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles was null, expected non-null List.', - ); - try { - final List output = api.addCircles( - arg_viewId!, - arg_circles!, - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled was null, expected non-null int.'); + try { + final bool output = api.isIndoorEnabled(arg_viewId!); 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())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles was null, expected non-null int.', - ); - final List? arg_circles = (args[1] as List?) - ?.cast(); - assert( - arg_circles != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles was null, expected non-null List.', - ); - try { - final List output = api.updateCircles( - arg_viewId!, - arg_circles!, - ); - return [output]; + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled was null, expected non-null int.'); + final bool? arg_enabled = (args[1] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled was null, expected non-null bool.'); + try { + api.setIndoorEnabled(arg_viewId!, arg_enabled!); + 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles was null, expected non-null int.', - ); - final List? arg_circles = (args[1] as List?) - ?.cast(); - assert( - arg_circles != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles was null, expected non-null List.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled was null, expected non-null int.'); try { - api.removeCircles(arg_viewId!, arg_circles!); - return wrapResponse(empty: true); + final bool output = api.isIndoorLevelPickerEnabled(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles was null, expected non-null int.', - ); - try { - api.clearCircles(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents was null, expected non-null int.', - ); - try { - api.enableOnCameraChangedEvents(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding was null, expected non-null int.', - ); - final MapPaddingDto? arg_padding = (args[1] as MapPaddingDto?); - assert( - arg_padding != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding was null, expected non-null MapPaddingDto.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled was null, expected non-null int.'); + final bool? arg_enabled = (args[1] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled was null, expected non-null bool.'); try { - api.setPadding(arg_viewId!, arg_padding!); + api.setIndoorLevelPickerEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding was null, expected non-null int.', - ); - try { - final MapPaddingDto output = api.getPadding(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme was null, expected non-null int.', - ); - try { - final MapColorSchemeDto output = api.getMapColorScheme( - arg_viewId!, - ); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme was null, expected non-null int.', - ); - final MapColorSchemeDto? arg_mapColorScheme = - (args[1] as MapColorSchemeDto?); - assert( - arg_mapColorScheme != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme was null, expected non-null MapColorSchemeDto.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding was null, expected non-null int.'); try { - api.setMapColorScheme(arg_viewId!, arg_mapColorScheme!); - return wrapResponse(empty: true); + final IndoorBuildingDto? output = api.getFocusedIndoorBuilding(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode was null, expected non-null int.', - ); - try { - final NavigationForceNightModeDto output = api - .getForceNightMode(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode was null, expected non-null int.', - ); - final NavigationForceNightModeDto? arg_forceNightMode = - (args[1] as NavigationForceNightModeDto?); - assert( - arg_forceNightMode != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode was null, expected non-null NavigationForceNightModeDto.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel was null, expected non-null int.'); + final int? arg_levelIndex = (args[1] as int?); + assert(arg_levelIndex != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel was null, expected non-null int.'); try { - api.setForceNightMode(arg_viewId!, arg_forceNightMode!); + api.activateIndoorLevel(arg_viewId!, arg_levelIndex!); 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())); } }); } } - } -} - -abstract class TestImageRegistryApi { - static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => - TestDefaultBinaryMessengerBinding.instance; - static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - - ImageDescriptorDto registerBitmapImage( - String imageId, - Uint8List bytes, - double imagePixelRatio, - double? width, - double? height, - ); - - void unregisterImage(ImageDescriptorDto imageDescriptor); - - List getRegisteredImages(); - - void clearRegisteredImages(RegisteredImageTypeDto? filter); - - Uint8List? getRegisteredImageData(ImageDescriptorDto imageDescriptor); - - static void setUp( - TestImageRegistryApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage was null.', - ); + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition was null.'); final List args = (message as List?)!; - final String? arg_imageId = (args[0] as String?); - assert( - arg_imageId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage was null, expected non-null String.', - ); - final Uint8List? arg_bytes = (args[1] as Uint8List?); - assert( - arg_bytes != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage was null, expected non-null Uint8List.', - ); - final double? arg_imagePixelRatio = (args[2] as double?); - assert( - arg_imagePixelRatio != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage was null, expected non-null double.', - ); - final double? arg_width = (args[3] as double?); - final double? arg_height = (args[4] as double?); + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition was null, expected non-null int.'); try { - final ImageDescriptorDto output = api.registerBitmapImage( - arg_imageId!, - arg_bytes!, - arg_imagePixelRatio!, - arg_width, - arg_height, - ); + final CameraPositionDto output = api.getCameraPosition(arg_viewId!); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage was null.', - ); - final List args = (message as List?)!; - final ImageDescriptorDto? arg_imageDescriptor = - (args[0] as ImageDescriptorDto?); - assert( - arg_imageDescriptor != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage was null, expected non-null ImageDescriptorDto.', - ); - try { - api.unregisterImage(arg_imageDescriptor!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final List output = api - .getRegisteredImages(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages was null.', - ); - final List args = (message as List?)!; - final RegisteredImageTypeDto? arg_filter = - (args[0] as RegisteredImageTypeDto?); - try { - api.clearRegisteredImages(arg_filter); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData was null.', - ); - final List args = (message as List?)!; - final ImageDescriptorDto? arg_imageDescriptor = - (args[0] as ImageDescriptorDto?); - assert( - arg_imageDescriptor != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData was null, expected non-null ImageDescriptorDto.', - ); - try { - final Uint8List? output = api.getRegisteredImageData( - arg_imageDescriptor!, - ); - 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())); + } + }); } } - } -} - -abstract class TestNavigationSessionApi { - static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => - TestDefaultBinaryMessengerBinding.instance; - static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - - Future createNavigationSession( - bool abnormalTerminationReportingEnabled, - TaskRemovedBehaviorDto behavior, - int? notificationId, - String? defaultMessage, - bool? resumeAppOnTap, - ); + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion was null, expected non-null int.'); + try { + final LatLngBoundsDto output = api.getVisibleRegion(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation was null, expected non-null int.'); + final CameraPerspectiveDto? arg_perspective = (args[1] as CameraPerspectiveDto?); + assert(arg_perspective != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation was null, expected non-null CameraPerspectiveDto.'); + final double? arg_zoomLevel = (args[2] as double?); + try { + api.followMyLocation(arg_viewId!, arg_perspective!, arg_zoomLevel); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition was null, expected non-null int.'); + final CameraPositionDto? arg_cameraPosition = (args[1] as CameraPositionDto?); + assert(arg_cameraPosition != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition was null, expected non-null CameraPositionDto.'); + final int? arg_duration = (args[2] as int?); + try { + final bool output = await api.animateCameraToCameraPosition(arg_viewId!, arg_cameraPosition!, arg_duration); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng was null, expected non-null int.'); + final LatLngDto? arg_point = (args[1] as LatLngDto?); + assert(arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng was null, expected non-null LatLngDto.'); + final int? arg_duration = (args[2] as int?); + try { + final bool output = await api.animateCameraToLatLng(arg_viewId!, arg_point!, arg_duration); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds was null, expected non-null int.'); + final LatLngBoundsDto? arg_bounds = (args[1] as LatLngBoundsDto?); + assert(arg_bounds != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds was null, expected non-null LatLngBoundsDto.'); + final double? arg_padding = (args[2] as double?); + assert(arg_padding != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds was null, expected non-null double.'); + final int? arg_duration = (args[3] as int?); + try { + final bool output = await api.animateCameraToLatLngBounds(arg_viewId!, arg_bounds!, arg_padding!, arg_duration); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom was null, expected non-null int.'); + final LatLngDto? arg_point = (args[1] as LatLngDto?); + assert(arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom was null, expected non-null LatLngDto.'); + final double? arg_zoom = (args[2] as double?); + assert(arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom was null, expected non-null double.'); + final int? arg_duration = (args[3] as int?); + try { + final bool output = await api.animateCameraToLatLngZoom(arg_viewId!, arg_point!, arg_zoom!, arg_duration); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll was null, expected non-null int.'); + final double? arg_scrollByDx = (args[1] as double?); + assert(arg_scrollByDx != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll was null, expected non-null double.'); + final double? arg_scrollByDy = (args[2] as double?); + assert(arg_scrollByDy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll was null, expected non-null double.'); + final int? arg_duration = (args[3] as int?); + try { + final bool output = await api.animateCameraByScroll(arg_viewId!, arg_scrollByDx!, arg_scrollByDy!, arg_duration); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom was null, expected non-null int.'); + final double? arg_zoomBy = (args[1] as double?); + assert(arg_zoomBy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom was null, expected non-null double.'); + final double? arg_focusDx = (args[2] as double?); + final double? arg_focusDy = (args[3] as double?); + final int? arg_duration = (args[4] as int?); + try { + final bool output = await api.animateCameraByZoom(arg_viewId!, arg_zoomBy!, arg_focusDx, arg_focusDy, arg_duration); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom was null, expected non-null int.'); + final double? arg_zoom = (args[1] as double?); + assert(arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom was null, expected non-null double.'); + final int? arg_duration = (args[2] as int?); + try { + final bool output = await api.animateCameraToZoom(arg_viewId!, arg_zoom!, arg_duration); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition was null, expected non-null int.'); + final CameraPositionDto? arg_cameraPosition = (args[1] as CameraPositionDto?); + assert(arg_cameraPosition != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition was null, expected non-null CameraPositionDto.'); + try { + api.moveCameraToCameraPosition(arg_viewId!, arg_cameraPosition!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng was null, expected non-null int.'); + final LatLngDto? arg_point = (args[1] as LatLngDto?); + assert(arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng was null, expected non-null LatLngDto.'); + try { + api.moveCameraToLatLng(arg_viewId!, arg_point!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds was null, expected non-null int.'); + final LatLngBoundsDto? arg_bounds = (args[1] as LatLngBoundsDto?); + assert(arg_bounds != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds was null, expected non-null LatLngBoundsDto.'); + final double? arg_padding = (args[2] as double?); + assert(arg_padding != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds was null, expected non-null double.'); + try { + api.moveCameraToLatLngBounds(arg_viewId!, arg_bounds!, arg_padding!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom was null, expected non-null int.'); + final LatLngDto? arg_point = (args[1] as LatLngDto?); + assert(arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom was null, expected non-null LatLngDto.'); + final double? arg_zoom = (args[2] as double?); + assert(arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom was null, expected non-null double.'); + try { + api.moveCameraToLatLngZoom(arg_viewId!, arg_point!, arg_zoom!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll was null, expected non-null int.'); + final double? arg_scrollByDx = (args[1] as double?); + assert(arg_scrollByDx != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll was null, expected non-null double.'); + final double? arg_scrollByDy = (args[2] as double?); + assert(arg_scrollByDy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll was null, expected non-null double.'); + try { + api.moveCameraByScroll(arg_viewId!, arg_scrollByDx!, arg_scrollByDy!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom was null, expected non-null int.'); + final double? arg_zoomBy = (args[1] as double?); + assert(arg_zoomBy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom was null, expected non-null double.'); + final double? arg_focusDx = (args[2] as double?); + final double? arg_focusDy = (args[3] as double?); + try { + api.moveCameraByZoom(arg_viewId!, arg_zoomBy!, arg_focusDx, arg_focusDy); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom was null, expected non-null int.'); + final double? arg_zoom = (args[1] as double?); + assert(arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom was null, expected non-null double.'); + try { + api.moveCameraToZoom(arg_viewId!, arg_zoom!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview was null, expected non-null int.'); + try { + api.showRouteOverview(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference was null, expected non-null int.'); + try { + final double output = api.getMinZoomPreference(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference was null, expected non-null int.'); + try { + final double output = api.getMaxZoomPreference(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference was null, expected non-null int.'); + try { + api.resetMinMaxZoomPreference(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference was null, expected non-null int.'); + final double? arg_minZoomPreference = (args[1] as double?); + assert(arg_minZoomPreference != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference was null, expected non-null double.'); + try { + api.setMinZoomPreference(arg_viewId!, arg_minZoomPreference!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference was null, expected non-null int.'); + final double? arg_maxZoomPreference = (args[1] as double?); + assert(arg_maxZoomPreference != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference was null, expected non-null double.'); + try { + api.setMaxZoomPreference(arg_viewId!, arg_maxZoomPreference!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers was null, expected non-null int.'); + try { + final List output = api.getMarkers(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers was null, expected non-null int.'); + final List? arg_markers = (args[1] as List?)?.cast(); + assert(arg_markers != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers was null, expected non-null List.'); + try { + final List output = api.addMarkers(arg_viewId!, arg_markers!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers was null, expected non-null int.'); + final List? arg_markers = (args[1] as List?)?.cast(); + assert(arg_markers != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers was null, expected non-null List.'); + try { + final List output = api.updateMarkers(arg_viewId!, arg_markers!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers was null, expected non-null int.'); + final List? arg_markers = (args[1] as List?)?.cast(); + assert(arg_markers != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers was null, expected non-null List.'); + try { + api.removeMarkers(arg_viewId!, arg_markers!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers was null, expected non-null int.'); + try { + api.clearMarkers(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear was null, expected non-null int.'); + try { + api.clear(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons was null, expected non-null int.'); + try { + final List output = api.getPolygons(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons was null, expected non-null int.'); + final List? arg_polygons = (args[1] as List?)?.cast(); + assert(arg_polygons != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons was null, expected non-null List.'); + try { + final List output = api.addPolygons(arg_viewId!, arg_polygons!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons was null, expected non-null int.'); + final List? arg_polygons = (args[1] as List?)?.cast(); + assert(arg_polygons != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons was null, expected non-null List.'); + try { + final List output = api.updatePolygons(arg_viewId!, arg_polygons!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons was null, expected non-null int.'); + final List? arg_polygons = (args[1] as List?)?.cast(); + assert(arg_polygons != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons was null, expected non-null List.'); + try { + api.removePolygons(arg_viewId!, arg_polygons!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons was null, expected non-null int.'); + try { + api.clearPolygons(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines was null, expected non-null int.'); + try { + final List output = api.getPolylines(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines was null, expected non-null int.'); + final List? arg_polylines = (args[1] as List?)?.cast(); + assert(arg_polylines != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines was null, expected non-null List.'); + try { + final List output = api.addPolylines(arg_viewId!, arg_polylines!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines was null, expected non-null int.'); + final List? arg_polylines = (args[1] as List?)?.cast(); + assert(arg_polylines != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines was null, expected non-null List.'); + try { + final List output = api.updatePolylines(arg_viewId!, arg_polylines!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines was null, expected non-null int.'); + final List? arg_polylines = (args[1] as List?)?.cast(); + assert(arg_polylines != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines was null, expected non-null List.'); + try { + api.removePolylines(arg_viewId!, arg_polylines!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines was null, expected non-null int.'); + try { + api.clearPolylines(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles was null, expected non-null int.'); + try { + final List output = api.getCircles(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles was null, expected non-null int.'); + final List? arg_circles = (args[1] as List?)?.cast(); + assert(arg_circles != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles was null, expected non-null List.'); + try { + final List output = api.addCircles(arg_viewId!, arg_circles!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles was null, expected non-null int.'); + final List? arg_circles = (args[1] as List?)?.cast(); + assert(arg_circles != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles was null, expected non-null List.'); + try { + final List output = api.updateCircles(arg_viewId!, arg_circles!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles was null, expected non-null int.'); + final List? arg_circles = (args[1] as List?)?.cast(); + assert(arg_circles != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles was null, expected non-null List.'); + try { + api.removeCircles(arg_viewId!, arg_circles!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles was null, expected non-null int.'); + try { + api.clearCircles(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents was null, expected non-null int.'); + try { + api.enableOnCameraChangedEvents(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding was null, expected non-null int.'); + final MapPaddingDto? arg_padding = (args[1] as MapPaddingDto?); + assert(arg_padding != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding was null, expected non-null MapPaddingDto.'); + try { + api.setPadding(arg_viewId!, arg_padding!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding was null, expected non-null int.'); + try { + final MapPaddingDto output = api.getPadding(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme was null, expected non-null int.'); + try { + final MapColorSchemeDto output = api.getMapColorScheme(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme was null, expected non-null int.'); + final MapColorSchemeDto? arg_mapColorScheme = (args[1] as MapColorSchemeDto?); + assert(arg_mapColorScheme != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme was null, expected non-null MapColorSchemeDto.'); + try { + api.setMapColorScheme(arg_viewId!, arg_mapColorScheme!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode was null, expected non-null int.'); + try { + final NavigationForceNightModeDto output = api.getForceNightMode(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode was null, expected non-null int.'); + final NavigationForceNightModeDto? arg_forceNightMode = (args[1] as NavigationForceNightModeDto?); + assert(arg_forceNightMode != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode was null, expected non-null NavigationForceNightModeDto.'); + try { + api.setForceNightMode(arg_viewId!, arg_forceNightMode!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + } +} + +abstract class TestImageRegistryApi { + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => TestDefaultBinaryMessengerBinding.instance; + static const MessageCodec pigeonChannelCodec = _PigeonCodec(); + + ImageDescriptorDto registerBitmapImage(String imageId, Uint8List bytes, double imagePixelRatio, double? width, double? height); + + void unregisterImage(ImageDescriptorDto imageDescriptor); + + List getRegisteredImages(); + + void clearRegisteredImages(RegisteredImageTypeDto? filter); + + Uint8List? getRegisteredImageData(ImageDescriptorDto imageDescriptor); + + static void setUp(TestImageRegistryApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage was null.'); + final List args = (message as List?)!; + final String? arg_imageId = (args[0] as String?); + assert(arg_imageId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage was null, expected non-null String.'); + final Uint8List? arg_bytes = (args[1] as Uint8List?); + assert(arg_bytes != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage was null, expected non-null Uint8List.'); + final double? arg_imagePixelRatio = (args[2] as double?); + assert(arg_imagePixelRatio != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage was null, expected non-null double.'); + final double? arg_width = (args[3] as double?); + final double? arg_height = (args[4] as double?); + try { + final ImageDescriptorDto output = api.registerBitmapImage(arg_imageId!, arg_bytes!, arg_imagePixelRatio!, arg_width, arg_height); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage was null.'); + final List args = (message as List?)!; + final ImageDescriptorDto? arg_imageDescriptor = (args[0] as ImageDescriptorDto?); + assert(arg_imageDescriptor != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage was null, expected non-null ImageDescriptorDto.'); + try { + api.unregisterImage(arg_imageDescriptor!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final List output = api.getRegisteredImages(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages was null.'); + final List args = (message as List?)!; + final RegisteredImageTypeDto? arg_filter = (args[0] as RegisteredImageTypeDto?); + try { + api.clearRegisteredImages(arg_filter); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData was null.'); + final List args = (message as List?)!; + final ImageDescriptorDto? arg_imageDescriptor = (args[0] as ImageDescriptorDto?); + assert(arg_imageDescriptor != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData was null, expected non-null ImageDescriptorDto.'); + try { + final Uint8List? output = api.getRegisteredImageData(arg_imageDescriptor!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + } +} + +abstract class TestNavigationSessionApi { + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => TestDefaultBinaryMessengerBinding.instance; + static const MessageCodec pigeonChannelCodec = _PigeonCodec(); + + Future createNavigationSession(bool abnormalTerminationReportingEnabled, TaskRemovedBehaviorDto behavior, NavigationNotificationOptionsDto? notificationOptions); + + bool isInitialized(); + + void cleanup(bool resetSession); + + Future showTermsAndConditionsDialog(String title, String companyName, bool shouldOnlyShowDriverAwarenessDisclaimer, TermsAndConditionsUIParamsDto? uiParams); + + bool areTermsAccepted(); + + void resetTermsAccepted(); + + String getNavSDKVersion(); + + bool isGuidanceRunning(); + + void startGuidance(); + + void stopGuidance(); + + Future setDestinations(DestinationsDto destinations); + + void clearDestinations(); + + Future continueToNextDestination(); + + NavigationTimeAndDistanceDto getCurrentTimeAndDistance(); + + void setAudioGuidance(NavigationAudioGuidanceSettingsDto settings); + + void setSpeedAlertOptions(SpeedAlertOptionsDto options); + + List getRouteSegments(); + + List getTraveledRoute(); + + RouteSegmentDto? getCurrentRouteSegment(); + + void setUserLocation(LatLngDto location); + + void removeUserLocation(); + + void simulateLocationsAlongExistingRoute(); + + void simulateLocationsAlongExistingRouteWithOptions(SimulationOptionsDto options); + + Future simulateLocationsAlongNewRoute(List waypoints); + + Future simulateLocationsAlongNewRouteWithRoutingOptions(List waypoints, RoutingOptionsDto routingOptions); + + Future simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(List waypoints, RoutingOptionsDto routingOptions, SimulationOptionsDto simulationOptions); + + void pauseSimulation(); + + void resumeSimulation(); + + /// iOS-only method. + void allowBackgroundLocationUpdates(bool allow); + + void enableRoadSnappedLocationUpdates(); + + void disableRoadSnappedLocationUpdates(); + + void enableTurnByTurnNavigationEvents(int? numNextStepsToPreview, StepImageGenerationOptionsDto? options); + + void disableTurnByTurnNavigationEvents(); + + void registerRemainingTimeOrDistanceChangedListener(int remainingTimeThresholdSeconds, int remainingDistanceThresholdMeters); + + static void setUp(TestNavigationSessionApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession was null.'); + final List args = (message as List?)!; + final bool? arg_abnormalTerminationReportingEnabled = (args[0] as bool?); + assert(arg_abnormalTerminationReportingEnabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession was null, expected non-null bool.'); + final TaskRemovedBehaviorDto? arg_behavior = (args[1] as TaskRemovedBehaviorDto?); + assert(arg_behavior != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession was null, expected non-null TaskRemovedBehaviorDto.'); + final NavigationNotificationOptionsDto? arg_notificationOptions = (args[2] as NavigationNotificationOptionsDto?); + try { + await api.createNavigationSession(arg_abnormalTerminationReportingEnabled!, arg_behavior!, arg_notificationOptions); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isInitialized(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup was null.'); + final List args = (message as List?)!; + final bool? arg_resetSession = (args[0] as bool?); + assert(arg_resetSession != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup was null, expected non-null bool.'); + try { + api.cleanup(arg_resetSession!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog was null.'); + final List args = (message as List?)!; + final String? arg_title = (args[0] as String?); + assert(arg_title != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog was null, expected non-null String.'); + final String? arg_companyName = (args[1] as String?); + assert(arg_companyName != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog was null, expected non-null String.'); + final bool? arg_shouldOnlyShowDriverAwarenessDisclaimer = (args[2] as bool?); + assert(arg_shouldOnlyShowDriverAwarenessDisclaimer != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog was null, expected non-null bool.'); + final TermsAndConditionsUIParamsDto? arg_uiParams = (args[3] as TermsAndConditionsUIParamsDto?); + try { + final bool output = await api.showTermsAndConditionsDialog(arg_title!, arg_companyName!, arg_shouldOnlyShowDriverAwarenessDisclaimer!, arg_uiParams); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.areTermsAccepted(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.resetTermsAccepted(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final String output = api.getNavSDKVersion(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isGuidanceRunning(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.startGuidance(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.stopGuidance(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations was null.'); + final List args = (message as List?)!; + final DestinationsDto? arg_destinations = (args[0] as DestinationsDto?); + assert(arg_destinations != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations was null, expected non-null DestinationsDto.'); + try { + final RouteStatusDto output = await api.setDestinations(arg_destinations!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.clearDestinations(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final ContinueToNextDestinationResponseDto output = await api.continueToNextDestination(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final NavigationTimeAndDistanceDto output = api.getCurrentTimeAndDistance(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance was null.'); + final List args = (message as List?)!; + final NavigationAudioGuidanceSettingsDto? arg_settings = (args[0] as NavigationAudioGuidanceSettingsDto?); + assert(arg_settings != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance was null, expected non-null NavigationAudioGuidanceSettingsDto.'); + try { + api.setAudioGuidance(arg_settings!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions was null.'); + final List args = (message as List?)!; + final SpeedAlertOptionsDto? arg_options = (args[0] as SpeedAlertOptionsDto?); + assert(arg_options != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions was null, expected non-null SpeedAlertOptionsDto.'); + try { + api.setSpeedAlertOptions(arg_options!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final List output = api.getRouteSegments(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final List output = api.getTraveledRoute(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final RouteSegmentDto? output = api.getCurrentRouteSegment(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation was null.'); + final List args = (message as List?)!; + final LatLngDto? arg_location = (args[0] as LatLngDto?); + assert(arg_location != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation was null, expected non-null LatLngDto.'); + try { + api.setUserLocation(arg_location!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.removeUserLocation(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.simulateLocationsAlongExistingRoute(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions was null.'); + final List args = (message as List?)!; + final SimulationOptionsDto? arg_options = (args[0] as SimulationOptionsDto?); + assert(arg_options != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions was null, expected non-null SimulationOptionsDto.'); + try { + api.simulateLocationsAlongExistingRouteWithOptions(arg_options!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute was null.'); + final List args = (message as List?)!; + final List? arg_waypoints = (args[0] as List?)?.cast(); + assert(arg_waypoints != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute was null, expected non-null List.'); + try { + final RouteStatusDto output = await api.simulateLocationsAlongNewRoute(arg_waypoints!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions was null.'); + final List args = (message as List?)!; + final List? arg_waypoints = (args[0] as List?)?.cast(); + assert(arg_waypoints != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions was null, expected non-null List.'); + final RoutingOptionsDto? arg_routingOptions = (args[1] as RoutingOptionsDto?); + assert(arg_routingOptions != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions was null, expected non-null RoutingOptionsDto.'); + try { + final RouteStatusDto output = await api.simulateLocationsAlongNewRouteWithRoutingOptions(arg_waypoints!, arg_routingOptions!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions was null.'); + final List args = (message as List?)!; + final List? arg_waypoints = (args[0] as List?)?.cast(); + assert(arg_waypoints != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions was null, expected non-null List.'); + final RoutingOptionsDto? arg_routingOptions = (args[1] as RoutingOptionsDto?); + assert(arg_routingOptions != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions was null, expected non-null RoutingOptionsDto.'); + final SimulationOptionsDto? arg_simulationOptions = (args[2] as SimulationOptionsDto?); + assert(arg_simulationOptions != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions was null, expected non-null SimulationOptionsDto.'); + try { + final RouteStatusDto output = await api.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(arg_waypoints!, arg_routingOptions!, arg_simulationOptions!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.pauseSimulation(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.resumeSimulation(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates was null.'); + final List args = (message as List?)!; + final bool? arg_allow = (args[0] as bool?); + assert(arg_allow != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates was null, expected non-null bool.'); + try { + api.allowBackgroundLocationUpdates(arg_allow!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.enableRoadSnappedLocationUpdates(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.disableRoadSnappedLocationUpdates(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents was null.'); + final List args = (message as List?)!; + final int? arg_numNextStepsToPreview = (args[0] as int?); + final StepImageGenerationOptionsDto? arg_options = (args[1] as StepImageGenerationOptionsDto?); + try { + api.enableTurnByTurnNavigationEvents(arg_numNextStepsToPreview, arg_options); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.disableTurnByTurnNavigationEvents(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener was null.'); + final List args = (message as List?)!; + final int? arg_remainingTimeThresholdSeconds = (args[0] as int?); + assert(arg_remainingTimeThresholdSeconds != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener was null, expected non-null int.'); + final int? arg_remainingDistanceThresholdMeters = (args[1] as int?); + assert(arg_remainingDistanceThresholdMeters != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener was null, expected non-null int.'); + try { + api.registerRemainingTimeOrDistanceChangedListener(arg_remainingTimeThresholdSeconds!, arg_remainingDistanceThresholdMeters!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + } +} - bool isInitialized(); +abstract class TestAutoMapViewApi { + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => TestDefaultBinaryMessengerBinding.instance; + static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - void cleanup(bool resetSession); + /// Sets the map options to be used for Android Auto and CarPlay views. + /// Should be called before the Auto/CarPlay screen is created. + /// This allows customization of mapId and basic map settings. + void setAutoMapOptions(AutoMapOptionsDto mapOptions); - Future showTermsAndConditionsDialog( - String title, - String companyName, - bool shouldOnlyShowDriverAwarenessDisclaimer, - TermsAndConditionsUIParamsDto? uiParams, - ); + bool isMyLocationEnabled(); - bool areTermsAccepted(); + void setMyLocationEnabled(bool enabled); - void resetTermsAccepted(); + LatLngDto? getMyLocation(); - String getNavSDKVersion(); + MapTypeDto getMapType(); - bool isGuidanceRunning(); + void setMapType(MapTypeDto mapType); - void startGuidance(); + void setMapStyle(String styleJson); - void stopGuidance(); + CameraPositionDto getCameraPosition(); - Future setDestinations(DestinationsDto destinations); + LatLngBoundsDto getVisibleRegion(); - void clearDestinations(); + void followMyLocation(CameraPerspectiveDto perspective, double? zoomLevel); - Future continueToNextDestination(); + Future animateCameraToCameraPosition(CameraPositionDto cameraPosition, int? duration); - NavigationTimeAndDistanceDto getCurrentTimeAndDistance(); + Future animateCameraToLatLng(LatLngDto point, int? duration); - void setAudioGuidance(NavigationAudioGuidanceSettingsDto settings); + Future animateCameraToLatLngBounds(LatLngBoundsDto bounds, double padding, int? duration); - void setSpeedAlertOptions(SpeedAlertOptionsDto options); + Future animateCameraToLatLngZoom(LatLngDto point, double zoom, int? duration); - List getRouteSegments(); + Future animateCameraByScroll(double scrollByDx, double scrollByDy, int? duration); - List getTraveledRoute(); + Future animateCameraByZoom(double zoomBy, double? focusDx, double? focusDy, int? duration); - RouteSegmentDto? getCurrentRouteSegment(); + Future animateCameraToZoom(double zoom, int? duration); - void setUserLocation(LatLngDto location); + void moveCameraToCameraPosition(CameraPositionDto cameraPosition); - void removeUserLocation(); + void moveCameraToLatLng(LatLngDto point); - void simulateLocationsAlongExistingRoute(); + void moveCameraToLatLngBounds(LatLngBoundsDto bounds, double padding); - void simulateLocationsAlongExistingRouteWithOptions( - SimulationOptionsDto options, - ); + void moveCameraToLatLngZoom(LatLngDto point, double zoom); - Future simulateLocationsAlongNewRoute( - List waypoints, - ); + void moveCameraByScroll(double scrollByDx, double scrollByDy); - Future simulateLocationsAlongNewRouteWithRoutingOptions( - List waypoints, - RoutingOptionsDto routingOptions, - ); + void moveCameraByZoom(double zoomBy, double? focusDx, double? focusDy); - Future - simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( - List waypoints, - RoutingOptionsDto routingOptions, - SimulationOptionsDto simulationOptions, - ); + void moveCameraToZoom(double zoom); - void pauseSimulation(); + double getMinZoomPreference(); - void resumeSimulation(); + double getMaxZoomPreference(); - /// iOS-only method. - void allowBackgroundLocationUpdates(bool allow); + void resetMinMaxZoomPreference(); - void enableRoadSnappedLocationUpdates(); + void setMinZoomPreference(double minZoomPreference); - void disableRoadSnappedLocationUpdates(); + void setMaxZoomPreference(double maxZoomPreference); + + void setMyLocationButtonEnabled(bool enabled); - void enableTurnByTurnNavigationEvents( - int? numNextStepsToPreview, - StepImageGenerationOptionsDto? options, - ); + void setConsumeMyLocationButtonClickEventsEnabled(bool enabled); - void disableTurnByTurnNavigationEvents(); + void setZoomGesturesEnabled(bool enabled); + + void setZoomControlsEnabled(bool enabled); + + void setCompassEnabled(bool enabled); + + void setRotateGesturesEnabled(bool enabled); + + void setScrollGesturesEnabled(bool enabled); + + void setScrollGesturesDuringRotateOrZoomEnabled(bool enabled); + + void setTiltGesturesEnabled(bool enabled); + + void setMapToolbarEnabled(bool enabled); + + void setTrafficEnabled(bool enabled); + + void setTrafficPromptsEnabled(bool enabled); + + void setTrafficIncidentCardsEnabled(bool enabled); + + void setNavigationTripProgressBarEnabled(bool enabled); + + void setSpeedLimitIconEnabled(bool enabled); + + void setSpeedometerEnabled(bool enabled); + + void setNavigationUIEnabled(bool enabled); - void registerRemainingTimeOrDistanceChangedListener( - int remainingTimeThresholdSeconds, - int remainingDistanceThresholdMeters, - ); - - static void setUp( - TestNavigationSessionApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession was null.', - ); - final List args = (message as List?)!; - final bool? arg_abnormalTerminationReportingEnabled = - (args[0] as bool?); - assert( - arg_abnormalTerminationReportingEnabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession was null, expected non-null bool.', - ); - final TaskRemovedBehaviorDto? arg_behavior = - (args[1] as TaskRemovedBehaviorDto?); - assert( - arg_behavior != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession was null, expected non-null TaskRemovedBehaviorDto.', - ); - final int? arg_notificationId = args[2] as int?; - final String? arg_defaultMessage = args[3] as String?; - final bool? arg_resumeAppOnTap = args[4] as bool?; - try { - await api.createNavigationSession( - arg_abnormalTerminationReportingEnabled!, - arg_behavior!, - arg_notificationId, - arg_defaultMessage, - arg_resumeAppOnTap, - ); + bool isMyLocationButtonEnabled(); + + bool isConsumeMyLocationButtonClickEventsEnabled(); + + bool isZoomGesturesEnabled(); + + bool isZoomControlsEnabled(); + + bool isCompassEnabled(); + + bool isRotateGesturesEnabled(); + + bool isScrollGesturesEnabled(); + + bool isScrollGesturesEnabledDuringRotateOrZoom(); + + bool isTiltGesturesEnabled(); + + bool isMapToolbarEnabled(); + + bool isTrafficEnabled(); + + bool isTrafficPromptsEnabled(); + + bool isTrafficIncidentCardsEnabled(); + + bool isNavigationTripProgressBarEnabled(); + + bool isSpeedLimitIconEnabled(); + + bool isSpeedometerEnabled(); + + bool isNavigationUIEnabled(); + + bool isIndoorEnabled(); + + void setIndoorEnabled(bool enabled); + + IndoorBuildingDto? getFocusedIndoorBuilding(); + + void activateIndoorLevel(int levelIndex); + + void showRouteOverview(); + + List getMarkers(); + + List addMarkers(List markers); + + List updateMarkers(List markers); + + void removeMarkers(List markers); + + void clearMarkers(); + + void clear(); + + List getPolygons(); + + List addPolygons(List polygons); + + List updatePolygons(List polygons); + + void removePolygons(List polygons); + + void clearPolygons(); + + List getPolylines(); + + List addPolylines(List polylines); + + List updatePolylines(List polylines); + + void removePolylines(List polylines); + + void clearPolylines(); + + List getCircles(); + + List addCircles(List circles); + + List updateCircles(List circles); + + void removeCircles(List circles); + + void clearCircles(); + + void enableOnCameraChangedEvents(); + + bool isAutoScreenAvailable(); + + void setPadding(MapPaddingDto padding); + + MapPaddingDto getPadding(); + + MapColorSchemeDto getMapColorScheme(); + + void setMapColorScheme(MapColorSchemeDto mapColorScheme); + + NavigationForceNightModeDto getForceNightMode(); + + void setForceNightMode(NavigationForceNightModeDto forceNightMode); + + void sendCustomNavigationAutoEvent(String event, Object data); + + static void setUp(TestAutoMapViewApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions was null.'); + final List args = (message as List?)!; + final AutoMapOptionsDto? arg_mapOptions = (args[0] as AutoMapOptionsDto?); + assert(arg_mapOptions != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions was null, expected non-null AutoMapOptionsDto.'); + try { + api.setAutoMapOptions(arg_mapOptions!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isMyLocationEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled was null, expected non-null bool.'); + try { + api.setMyLocationEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final LatLngDto? output = api.getMyLocation(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final MapTypeDto output = api.getMapType(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType was null.'); + final List args = (message as List?)!; + final MapTypeDto? arg_mapType = (args[0] as MapTypeDto?); + assert(arg_mapType != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType was null, expected non-null MapTypeDto.'); + try { + api.setMapType(arg_mapType!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle was null.'); + final List args = (message as List?)!; + final String? arg_styleJson = (args[0] as String?); + assert(arg_styleJson != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle was null, expected non-null String.'); + try { + api.setMapStyle(arg_styleJson!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final CameraPositionDto output = api.getCameraPosition(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final LatLngBoundsDto output = api.getVisibleRegion(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation was null.'); + final List args = (message as List?)!; + final CameraPerspectiveDto? arg_perspective = (args[0] as CameraPerspectiveDto?); + assert(arg_perspective != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation was null, expected non-null CameraPerspectiveDto.'); + final double? arg_zoomLevel = (args[1] as double?); + try { + api.followMyLocation(arg_perspective!, arg_zoomLevel); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition was null.'); + final List args = (message as List?)!; + final CameraPositionDto? arg_cameraPosition = (args[0] as CameraPositionDto?); + assert(arg_cameraPosition != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition was null, expected non-null CameraPositionDto.'); + final int? arg_duration = (args[1] as int?); + try { + final bool output = await api.animateCameraToCameraPosition(arg_cameraPosition!, arg_duration); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng was null.'); + final List args = (message as List?)!; + final LatLngDto? arg_point = (args[0] as LatLngDto?); + assert(arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng was null, expected non-null LatLngDto.'); + final int? arg_duration = (args[1] as int?); + try { + final bool output = await api.animateCameraToLatLng(arg_point!, arg_duration); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds was null.'); + final List args = (message as List?)!; + final LatLngBoundsDto? arg_bounds = (args[0] as LatLngBoundsDto?); + assert(arg_bounds != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds was null, expected non-null LatLngBoundsDto.'); + final double? arg_padding = (args[1] as double?); + assert(arg_padding != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds was null, expected non-null double.'); + final int? arg_duration = (args[2] as int?); + try { + final bool output = await api.animateCameraToLatLngBounds(arg_bounds!, arg_padding!, arg_duration); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom was null.'); + final List args = (message as List?)!; + final LatLngDto? arg_point = (args[0] as LatLngDto?); + assert(arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom was null, expected non-null LatLngDto.'); + final double? arg_zoom = (args[1] as double?); + assert(arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom was null, expected non-null double.'); + final int? arg_duration = (args[2] as int?); + try { + final bool output = await api.animateCameraToLatLngZoom(arg_point!, arg_zoom!, arg_duration); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll was null.'); + final List args = (message as List?)!; + final double? arg_scrollByDx = (args[0] as double?); + assert(arg_scrollByDx != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll was null, expected non-null double.'); + final double? arg_scrollByDy = (args[1] as double?); + assert(arg_scrollByDy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll was null, expected non-null double.'); + final int? arg_duration = (args[2] as int?); + try { + final bool output = await api.animateCameraByScroll(arg_scrollByDx!, arg_scrollByDy!, arg_duration); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom was null.'); + final List args = (message as List?)!; + final double? arg_zoomBy = (args[0] as double?); + assert(arg_zoomBy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom was null, expected non-null double.'); + final double? arg_focusDx = (args[1] as double?); + final double? arg_focusDy = (args[2] as double?); + final int? arg_duration = (args[3] as int?); + try { + final bool output = await api.animateCameraByZoom(arg_zoomBy!, arg_focusDx, arg_focusDy, arg_duration); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom was null.'); + final List args = (message as List?)!; + final double? arg_zoom = (args[0] as double?); + assert(arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom was null, expected non-null double.'); + final int? arg_duration = (args[1] as int?); + try { + final bool output = await api.animateCameraToZoom(arg_zoom!, arg_duration); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition was null.'); + final List args = (message as List?)!; + final CameraPositionDto? arg_cameraPosition = (args[0] as CameraPositionDto?); + assert(arg_cameraPosition != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition was null, expected non-null CameraPositionDto.'); + try { + api.moveCameraToCameraPosition(arg_cameraPosition!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng was null.'); + final List args = (message as List?)!; + final LatLngDto? arg_point = (args[0] as LatLngDto?); + assert(arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng was null, expected non-null LatLngDto.'); + try { + api.moveCameraToLatLng(arg_point!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds was null.'); + final List args = (message as List?)!; + final LatLngBoundsDto? arg_bounds = (args[0] as LatLngBoundsDto?); + assert(arg_bounds != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds was null, expected non-null LatLngBoundsDto.'); + final double? arg_padding = (args[1] as double?); + assert(arg_padding != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds was null, expected non-null double.'); + try { + api.moveCameraToLatLngBounds(arg_bounds!, arg_padding!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom was null.'); + final List args = (message as List?)!; + final LatLngDto? arg_point = (args[0] as LatLngDto?); + assert(arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom was null, expected non-null LatLngDto.'); + final double? arg_zoom = (args[1] as double?); + assert(arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom was null, expected non-null double.'); + try { + api.moveCameraToLatLngZoom(arg_point!, arg_zoom!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll was null.'); + final List args = (message as List?)!; + final double? arg_scrollByDx = (args[0] as double?); + assert(arg_scrollByDx != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll was null, expected non-null double.'); + final double? arg_scrollByDy = (args[1] as double?); + assert(arg_scrollByDy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll was null, expected non-null double.'); + try { + api.moveCameraByScroll(arg_scrollByDx!, arg_scrollByDy!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom was null.'); + final List args = (message as List?)!; + final double? arg_zoomBy = (args[0] as double?); + assert(arg_zoomBy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom was null, expected non-null double.'); + final double? arg_focusDx = (args[1] as double?); + final double? arg_focusDy = (args[2] as double?); + try { + api.moveCameraByZoom(arg_zoomBy!, arg_focusDx, arg_focusDy); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom was null.'); + final List args = (message as List?)!; + final double? arg_zoom = (args[0] as double?); + assert(arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom was null, expected non-null double.'); + try { + api.moveCameraToZoom(arg_zoom!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final double output = api.getMinZoomPreference(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final double output = api.getMaxZoomPreference(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.resetMinMaxZoomPreference(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference was null.'); + final List args = (message as List?)!; + final double? arg_minZoomPreference = (args[0] as double?); + assert(arg_minZoomPreference != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference was null, expected non-null double.'); + try { + api.setMinZoomPreference(arg_minZoomPreference!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference was null.'); + final List args = (message as List?)!; + final double? arg_maxZoomPreference = (args[0] as double?); + assert(arg_maxZoomPreference != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference was null, expected non-null double.'); + try { + api.setMaxZoomPreference(arg_maxZoomPreference!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled was null, expected non-null bool.'); + try { + api.setMyLocationButtonEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null, expected non-null bool.'); + try { + api.setConsumeMyLocationButtonClickEventsEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled was null, expected non-null bool.'); + try { + api.setZoomGesturesEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled was null, expected non-null bool.'); + try { + api.setZoomControlsEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled was null, expected non-null bool.'); + try { + api.setCompassEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled was null, expected non-null bool.'); + try { + api.setRotateGesturesEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled was null, expected non-null bool.'); + try { + api.setScrollGesturesEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null, expected non-null bool.'); + try { + api.setScrollGesturesDuringRotateOrZoomEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled was null, expected non-null bool.'); + try { + api.setTiltGesturesEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled was null, expected non-null bool.'); + try { + api.setMapToolbarEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled was null, expected non-null bool.'); + try { + api.setTrafficEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled was null, expected non-null bool.'); + try { + api.setTrafficPromptsEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled was null, expected non-null bool.'); + try { + api.setTrafficIncidentCardsEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled was null, expected non-null bool.'); + try { + api.setNavigationTripProgressBarEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled was null, expected non-null bool.'); + try { + api.setSpeedLimitIconEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled was null, expected non-null bool.'); + try { + api.setSpeedometerEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled was null, expected non-null bool.'); + try { + api.setNavigationUIEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isMyLocationButtonEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isConsumeMyLocationButtonClickEventsEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isZoomGesturesEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isZoomControlsEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isCompassEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isRotateGesturesEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isScrollGesturesEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isScrollGesturesEnabledDuringRotateOrZoom(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isTiltGesturesEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isMapToolbarEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isTrafficEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isTrafficPromptsEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isTrafficIncidentCardsEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isNavigationTripProgressBarEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isSpeedLimitIconEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isSpeedometerEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isNavigationUIEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isIndoorEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled was null, expected non-null bool.'); + try { + api.setIndoorEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final IndoorBuildingDto? output = api.getFocusedIndoorBuilding(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel was null.'); + final List args = (message as List?)!; + final int? arg_levelIndex = (args[0] as int?); + assert(arg_levelIndex != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel was null, expected non-null int.'); + try { + api.activateIndoorLevel(arg_levelIndex!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.showRouteOverview(); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isInitialized(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup was null.', - ); - final List args = (message as List?)!; - final bool? arg_resetSession = (args[0] as bool?); - assert( - arg_resetSession != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup was null, expected non-null bool.', - ); - try { - api.cleanup(arg_resetSession!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final List output = api.getMarkers(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers was null.'); final List args = (message as List?)!; - final String? arg_title = (args[0] as String?); - assert( - arg_title != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog was null, expected non-null String.', - ); - final String? arg_companyName = (args[1] as String?); - assert( - arg_companyName != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog was null, expected non-null String.', - ); - final bool? arg_shouldOnlyShowDriverAwarenessDisclaimer = - (args[2] as bool?); - assert( - arg_shouldOnlyShowDriverAwarenessDisclaimer != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog was null, expected non-null bool.', - ); - final TermsAndConditionsUIParamsDto? arg_uiParams = - (args[3] as TermsAndConditionsUIParamsDto?); - try { - final bool output = await api.showTermsAndConditionsDialog( - arg_title!, - arg_companyName!, - arg_shouldOnlyShowDriverAwarenessDisclaimer!, - arg_uiParams, - ); + final List? arg_markers = (args[0] as List?)?.cast(); + assert(arg_markers != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers was null, expected non-null List.'); + try { + final List output = api.addMarkers(arg_markers!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers was null.'); + final List args = (message as List?)!; + final List? arg_markers = (args[0] as List?)?.cast(); + assert(arg_markers != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers was null, expected non-null List.'); + try { + final List output = api.updateMarkers(arg_markers!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers was null.'); + final List args = (message as List?)!; + final List? arg_markers = (args[0] as List?)?.cast(); + assert(arg_markers != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers was null, expected non-null List.'); + try { + api.removeMarkers(arg_markers!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.clearMarkers(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.clear(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final List output = api.getPolygons(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons was null.'); + final List args = (message as List?)!; + final List? arg_polygons = (args[0] as List?)?.cast(); + assert(arg_polygons != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons was null, expected non-null List.'); + try { + final List output = api.addPolygons(arg_polygons!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons was null.'); + final List args = (message as List?)!; + final List? arg_polygons = (args[0] as List?)?.cast(); + assert(arg_polygons != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons was null, expected non-null List.'); + try { + final List output = api.updatePolygons(arg_polygons!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons was null.'); + final List args = (message as List?)!; + final List? arg_polygons = (args[0] as List?)?.cast(); + assert(arg_polygons != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons was null, expected non-null List.'); + try { + api.removePolygons(arg_polygons!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.clearPolygons(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final List output = api.getPolylines(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines was null.'); + final List args = (message as List?)!; + final List? arg_polylines = (args[0] as List?)?.cast(); + assert(arg_polylines != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines was null, expected non-null List.'); + try { + final List output = api.addPolylines(arg_polylines!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines was null.'); + final List args = (message as List?)!; + final List? arg_polylines = (args[0] as List?)?.cast(); + assert(arg_polylines != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines was null, expected non-null List.'); + try { + final List output = api.updatePolylines(arg_polylines!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines was null.'); + final List args = (message as List?)!; + final List? arg_polylines = (args[0] as List?)?.cast(); + assert(arg_polylines != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines was null, expected non-null List.'); + try { + api.removePolylines(arg_polylines!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.clearPolylines(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final List output = api.getCircles(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles was null.'); + final List args = (message as List?)!; + final List? arg_circles = (args[0] as List?)?.cast(); + assert(arg_circles != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles was null, expected non-null List.'); + try { + final List output = api.addCircles(arg_circles!); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.areTermsAccepted(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.resetTermsAccepted(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final String output = api.getNavSDKVersion(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isGuidanceRunning(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.startGuidance(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.stopGuidance(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations was null.', - ); - final List args = (message as List?)!; - final DestinationsDto? arg_destinations = - (args[0] as DestinationsDto?); - assert( - arg_destinations != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations was null, expected non-null DestinationsDto.', - ); - try { - final RouteStatusDto output = await api.setDestinations( - arg_destinations!, - ); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.clearDestinations(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final ContinueToNextDestinationResponseDto output = await api - .continueToNextDestination(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final NavigationTimeAndDistanceDto output = api - .getCurrentTimeAndDistance(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance was null.', - ); - final List args = (message as List?)!; - final NavigationAudioGuidanceSettingsDto? arg_settings = - (args[0] as NavigationAudioGuidanceSettingsDto?); - assert( - arg_settings != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance was null, expected non-null NavigationAudioGuidanceSettingsDto.', - ); - try { - api.setAudioGuidance(arg_settings!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions was null.', - ); - final List args = (message as List?)!; - final SpeedAlertOptionsDto? arg_options = - (args[0] as SpeedAlertOptionsDto?); - assert( - arg_options != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions was null, expected non-null SpeedAlertOptionsDto.', - ); - try { - api.setSpeedAlertOptions(arg_options!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final List output = api.getRouteSegments(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final List output = api.getTraveledRoute(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final RouteSegmentDto? output = api.getCurrentRouteSegment(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation was null.', - ); - final List args = (message as List?)!; - final LatLngDto? arg_location = (args[0] as LatLngDto?); - assert( - arg_location != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation was null, expected non-null LatLngDto.', - ); - try { - api.setUserLocation(arg_location!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.removeUserLocation(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.simulateLocationsAlongExistingRoute(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions was null.', - ); - final List args = (message as List?)!; - final SimulationOptionsDto? arg_options = - (args[0] as SimulationOptionsDto?); - assert( - arg_options != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions was null, expected non-null SimulationOptionsDto.', - ); - try { - api.simulateLocationsAlongExistingRouteWithOptions( - arg_options!, - ); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute was null.', - ); - final List args = (message as List?)!; - final List? arg_waypoints = - (args[0] as List?)?.cast(); - assert( - arg_waypoints != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute was null, expected non-null List.', - ); - try { - final RouteStatusDto output = await api - .simulateLocationsAlongNewRoute(arg_waypoints!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions was null.', - ); - final List args = (message as List?)!; - final List? arg_waypoints = - (args[0] as List?)?.cast(); - assert( - arg_waypoints != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions was null, expected non-null List.', - ); - final RoutingOptionsDto? arg_routingOptions = - (args[1] as RoutingOptionsDto?); - assert( - arg_routingOptions != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions was null, expected non-null RoutingOptionsDto.', - ); - try { - final RouteStatusDto output = await api - .simulateLocationsAlongNewRouteWithRoutingOptions( - arg_waypoints!, - arg_routingOptions!, - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles was null.'); + final List args = (message as List?)!; + final List? arg_circles = (args[0] as List?)?.cast(); + assert(arg_circles != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles was null, expected non-null List.'); + try { + final List output = api.updateCircles(arg_circles!); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions was null.', - ); - final List args = (message as List?)!; - final List? arg_waypoints = - (args[0] as List?)?.cast(); - assert( - arg_waypoints != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions was null, expected non-null List.', - ); - final RoutingOptionsDto? arg_routingOptions = - (args[1] as RoutingOptionsDto?); - assert( - arg_routingOptions != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions was null, expected non-null RoutingOptionsDto.', - ); - final SimulationOptionsDto? arg_simulationOptions = - (args[2] as SimulationOptionsDto?); - assert( - arg_simulationOptions != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions was null, expected non-null SimulationOptionsDto.', - ); - try { - final RouteStatusDto output = await api - .simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( - arg_waypoints!, - arg_routingOptions!, - arg_simulationOptions!, - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles was null.'); + final List args = (message as List?)!; + final List? arg_circles = (args[0] as List?)?.cast(); + assert(arg_circles != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles was null, expected non-null List.'); + try { + api.removeCircles(arg_circles!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.clearCircles(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.enableOnCameraChangedEvents(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isAutoScreenAvailable(); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.pauseSimulation(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.resumeSimulation(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates was null.', - ); - final List args = (message as List?)!; - final bool? arg_allow = (args[0] as bool?); - assert( - arg_allow != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates was null, expected non-null bool.', - ); - try { - api.allowBackgroundLocationUpdates(arg_allow!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.enableRoadSnappedLocationUpdates(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.disableRoadSnappedLocationUpdates(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents was null.', - ); - final List args = (message as List?)!; - final int? arg_numNextStepsToPreview = (args[0] as int?); - final StepImageGenerationOptionsDto? arg_options = - (args[1] as StepImageGenerationOptionsDto?); - try { - api.enableTurnByTurnNavigationEvents( - arg_numNextStepsToPreview, - arg_options, - ); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.disableTurnByTurnNavigationEvents(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener was null.', - ); - final List args = (message as List?)!; - final int? arg_remainingTimeThresholdSeconds = (args[0] as int?); - assert( - arg_remainingTimeThresholdSeconds != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener was null, expected non-null int.', - ); - final int? arg_remainingDistanceThresholdMeters = (args[1] as int?); - assert( - arg_remainingDistanceThresholdMeters != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener was null, expected non-null int.', - ); - try { - api.registerRemainingTimeOrDistanceChangedListener( - arg_remainingTimeThresholdSeconds!, - arg_remainingDistanceThresholdMeters!, - ); - 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())); } }); } } - } -} - -abstract class TestAutoMapViewApi { - static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => - TestDefaultBinaryMessengerBinding.instance; - static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - - /// Sets the map options to be used for Android Auto and CarPlay views. - /// Should be called before the Auto/CarPlay screen is created. - /// This allows customization of mapId and basic map settings. - void setAutoMapOptions(AutoMapOptionsDto mapOptions); - - bool isMyLocationEnabled(); - - void setMyLocationEnabled(bool enabled); - - LatLngDto? getMyLocation(); - - MapTypeDto getMapType(); - - void setMapType(MapTypeDto mapType); - - void setMapStyle(String styleJson); - - CameraPositionDto getCameraPosition(); - - LatLngBoundsDto getVisibleRegion(); - - void followMyLocation(CameraPerspectiveDto perspective, double? zoomLevel); - - Future animateCameraToCameraPosition( - CameraPositionDto cameraPosition, - int? duration, - ); - - Future animateCameraToLatLng(LatLngDto point, int? duration); - - Future animateCameraToLatLngBounds( - LatLngBoundsDto bounds, - double padding, - int? duration, - ); - - Future animateCameraToLatLngZoom( - LatLngDto point, - double zoom, - int? duration, - ); - - Future animateCameraByScroll( - double scrollByDx, - double scrollByDy, - int? duration, - ); - - Future animateCameraByZoom( - double zoomBy, - double? focusDx, - double? focusDy, - int? duration, - ); - - Future animateCameraToZoom(double zoom, int? duration); - - void moveCameraToCameraPosition(CameraPositionDto cameraPosition); - - void moveCameraToLatLng(LatLngDto point); - - void moveCameraToLatLngBounds(LatLngBoundsDto bounds, double padding); - - void moveCameraToLatLngZoom(LatLngDto point, double zoom); - - void moveCameraByScroll(double scrollByDx, double scrollByDy); - - void moveCameraByZoom(double zoomBy, double? focusDx, double? focusDy); - - void moveCameraToZoom(double zoom); - - double getMinZoomPreference(); - - double getMaxZoomPreference(); - - void resetMinMaxZoomPreference(); - - void setMinZoomPreference(double minZoomPreference); - - void setMaxZoomPreference(double maxZoomPreference); - - void setMyLocationButtonEnabled(bool enabled); - - void setConsumeMyLocationButtonClickEventsEnabled(bool enabled); - - void setZoomGesturesEnabled(bool enabled); - - void setZoomControlsEnabled(bool enabled); - - void setCompassEnabled(bool enabled); - - void setRotateGesturesEnabled(bool enabled); - - void setScrollGesturesEnabled(bool enabled); - - void setScrollGesturesDuringRotateOrZoomEnabled(bool enabled); - - void setTiltGesturesEnabled(bool enabled); - - void setMapToolbarEnabled(bool enabled); - - void setTrafficEnabled(bool enabled); - - void setTrafficPromptsEnabled(bool enabled); - - void setTrafficIncidentCardsEnabled(bool enabled); - - void setNavigationTripProgressBarEnabled(bool enabled); - - void setSpeedLimitIconEnabled(bool enabled); - - void setSpeedometerEnabled(bool enabled); - - void setNavigationUIEnabled(bool enabled); - - bool isMyLocationButtonEnabled(); - - bool isConsumeMyLocationButtonClickEventsEnabled(); - - bool isZoomGesturesEnabled(); - - bool isZoomControlsEnabled(); - - bool isCompassEnabled(); - - bool isRotateGesturesEnabled(); - - bool isScrollGesturesEnabled(); - - bool isScrollGesturesEnabledDuringRotateOrZoom(); - - bool isTiltGesturesEnabled(); - - bool isMapToolbarEnabled(); - - bool isTrafficEnabled(); - - bool isTrafficPromptsEnabled(); - - bool isTrafficIncidentCardsEnabled(); - - bool isNavigationTripProgressBarEnabled(); - - bool isSpeedLimitIconEnabled(); - - bool isSpeedometerEnabled(); - - bool isNavigationUIEnabled(); - - bool isIndoorEnabled(); - - void setIndoorEnabled(bool enabled); - - IndoorBuildingDto? getFocusedIndoorBuilding(); - - void activateIndoorLevel(int levelIndex); - - void showRouteOverview(); - - List getMarkers(); - - List addMarkers(List markers); - - List updateMarkers(List markers); - - void removeMarkers(List markers); - - void clearMarkers(); - - void clear(); - - List getPolygons(); - - List addPolygons(List polygons); - - List updatePolygons(List polygons); - - void removePolygons(List polygons); - - void clearPolygons(); - - List getPolylines(); - - List addPolylines(List polylines); - - List updatePolylines(List polylines); - - void removePolylines(List polylines); - - void clearPolylines(); - - List getCircles(); - - List addCircles(List circles); - - List updateCircles(List circles); - - void removeCircles(List circles); - - void clearCircles(); - - void enableOnCameraChangedEvents(); - - bool isAutoScreenAvailable(); - - void setPadding(MapPaddingDto padding); - - MapPaddingDto getPadding(); - - MapColorSchemeDto getMapColorScheme(); - - void setMapColorScheme(MapColorSchemeDto mapColorScheme); - - NavigationForceNightModeDto getForceNightMode(); - - void setForceNightMode(NavigationForceNightModeDto forceNightMode); - - void sendCustomNavigationAutoEvent(String event, Object data); - - static void setUp( - TestAutoMapViewApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions was null.', - ); - final List args = (message as List?)!; - final AutoMapOptionsDto? arg_mapOptions = - (args[0] as AutoMapOptionsDto?); - assert( - arg_mapOptions != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions was null, expected non-null AutoMapOptionsDto.', - ); - try { - api.setAutoMapOptions(arg_mapOptions!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isMyLocationEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled was null, expected non-null bool.', - ); - try { - api.setMyLocationEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final LatLngDto? output = api.getMyLocation(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final MapTypeDto output = api.getMapType(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType was null.', - ); - final List args = (message as List?)!; - final MapTypeDto? arg_mapType = (args[0] as MapTypeDto?); - assert( - arg_mapType != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType was null, expected non-null MapTypeDto.', - ); - try { - api.setMapType(arg_mapType!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle was null.', - ); - final List args = (message as List?)!; - final String? arg_styleJson = (args[0] as String?); - assert( - arg_styleJson != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle was null, expected non-null String.', - ); - try { - api.setMapStyle(arg_styleJson!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final CameraPositionDto output = api.getCameraPosition(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final LatLngBoundsDto output = api.getVisibleRegion(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation was null.', - ); - final List args = (message as List?)!; - final CameraPerspectiveDto? arg_perspective = - (args[0] as CameraPerspectiveDto?); - assert( - arg_perspective != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation was null, expected non-null CameraPerspectiveDto.', - ); - final double? arg_zoomLevel = (args[1] as double?); - try { - api.followMyLocation(arg_perspective!, arg_zoomLevel); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition was null.', - ); - final List args = (message as List?)!; - final CameraPositionDto? arg_cameraPosition = - (args[0] as CameraPositionDto?); - assert( - arg_cameraPosition != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition was null, expected non-null CameraPositionDto.', - ); - final int? arg_duration = (args[1] as int?); - try { - final bool output = await api.animateCameraToCameraPosition( - arg_cameraPosition!, - arg_duration, - ); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng was null.', - ); - final List args = (message as List?)!; - final LatLngDto? arg_point = (args[0] as LatLngDto?); - assert( - arg_point != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng was null, expected non-null LatLngDto.', - ); - final int? arg_duration = (args[1] as int?); - try { - final bool output = await api.animateCameraToLatLng( - arg_point!, - arg_duration, - ); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds was null.', - ); + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding was null.'); final List args = (message as List?)!; - final LatLngBoundsDto? arg_bounds = (args[0] as LatLngBoundsDto?); - assert( - arg_bounds != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds was null, expected non-null LatLngBoundsDto.', - ); - final double? arg_padding = (args[1] as double?); - assert( - arg_padding != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds was null, expected non-null double.', - ); - final int? arg_duration = (args[2] as int?); + final MapPaddingDto? arg_padding = (args[0] as MapPaddingDto?); + assert(arg_padding != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding was null, expected non-null MapPaddingDto.'); try { - final bool output = await api.animateCameraToLatLngBounds( - arg_bounds!, - arg_padding!, - arg_duration, - ); - return [output]; + api.setPadding(arg_padding!); + 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom was null.', - ); - final List args = (message as List?)!; - final LatLngDto? arg_point = (args[0] as LatLngDto?); - assert( - arg_point != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom was null, expected non-null LatLngDto.', - ); - final double? arg_zoom = (args[1] as double?); - assert( - arg_zoom != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom was null, expected non-null double.', - ); - final int? arg_duration = (args[2] as int?); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { try { - final bool output = await api.animateCameraToLatLngZoom( - arg_point!, - arg_zoom!, - arg_duration, - ); + final MapPaddingDto output = api.getPadding(); 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())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll was null.', - ); - final List args = (message as List?)!; - final double? arg_scrollByDx = (args[0] as double?); - assert( - arg_scrollByDx != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll was null, expected non-null double.', - ); - final double? arg_scrollByDy = (args[1] as double?); - assert( - arg_scrollByDy != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll was null, expected non-null double.', - ); - final int? arg_duration = (args[2] as int?); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { try { - final bool output = await api.animateCameraByScroll( - arg_scrollByDx!, - arg_scrollByDy!, - arg_duration, - ); + final MapColorSchemeDto output = api.getMapColorScheme(); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom was null.', - ); - final List args = (message as List?)!; - final double? arg_zoomBy = (args[0] as double?); - assert( - arg_zoomBy != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom was null, expected non-null double.', - ); - final double? arg_focusDx = (args[1] as double?); - final double? arg_focusDy = (args[2] as double?); - final int? arg_duration = (args[3] as int?); - try { - final bool output = await api.animateCameraByZoom( - arg_zoomBy!, - arg_focusDx, - arg_focusDy, - arg_duration, - ); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom was null.', - ); - final List args = (message as List?)!; - final double? arg_zoom = (args[0] as double?); - assert( - arg_zoom != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom was null, expected non-null double.', - ); - final int? arg_duration = (args[1] as int?); - try { - final bool output = await api.animateCameraToZoom( - arg_zoom!, - arg_duration, - ); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition was null.', - ); - final List args = (message as List?)!; - final CameraPositionDto? arg_cameraPosition = - (args[0] as CameraPositionDto?); - assert( - arg_cameraPosition != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition was null, expected non-null CameraPositionDto.', - ); - try { - api.moveCameraToCameraPosition(arg_cameraPosition!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng was null.', - ); - final List args = (message as List?)!; - final LatLngDto? arg_point = (args[0] as LatLngDto?); - assert( - arg_point != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng was null, expected non-null LatLngDto.', - ); - try { - api.moveCameraToLatLng(arg_point!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme was null.'); final List args = (message as List?)!; - final LatLngBoundsDto? arg_bounds = (args[0] as LatLngBoundsDto?); - assert( - arg_bounds != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds was null, expected non-null LatLngBoundsDto.', - ); - final double? arg_padding = (args[1] as double?); - assert( - arg_padding != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds was null, expected non-null double.', - ); + final MapColorSchemeDto? arg_mapColorScheme = (args[0] as MapColorSchemeDto?); + assert(arg_mapColorScheme != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme was null, expected non-null MapColorSchemeDto.'); try { - api.moveCameraToLatLngBounds(arg_bounds!, arg_padding!); + api.setMapColorScheme(arg_mapColorScheme!); 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 - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom was null.', - ); - final List args = (message as List?)!; - final LatLngDto? arg_point = (args[0] as LatLngDto?); - assert( - arg_point != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom was null, expected non-null LatLngDto.', - ); - final double? arg_zoom = (args[1] as double?); - assert( - arg_zoom != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom was null, expected non-null double.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { try { - api.moveCameraToLatLngZoom(arg_point!, arg_zoom!); - return wrapResponse(empty: true); + final NavigationForceNightModeDto output = api.getForceNightMode(); + 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())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode was null.'); final List args = (message as List?)!; - final double? arg_scrollByDx = (args[0] as double?); - assert( - arg_scrollByDx != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll was null, expected non-null double.', - ); - final double? arg_scrollByDy = (args[1] as double?); - assert( - arg_scrollByDy != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll was null, expected non-null double.', - ); + final NavigationForceNightModeDto? arg_forceNightMode = (args[0] as NavigationForceNightModeDto?); + assert(arg_forceNightMode != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode was null, expected non-null NavigationForceNightModeDto.'); try { - api.moveCameraByScroll(arg_scrollByDx!, arg_scrollByDy!); + api.setForceNightMode(arg_forceNightMode!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom was null.', - ); - final List args = (message as List?)!; - final double? arg_zoomBy = (args[0] as double?); - assert( - arg_zoomBy != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom was null, expected non-null double.', - ); - final double? arg_focusDx = (args[1] as double?); - final double? arg_focusDy = (args[2] as double?); - try { - api.moveCameraByZoom(arg_zoomBy!, arg_focusDx, arg_focusDy); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom was null.', - ); - final List args = (message as List?)!; - final double? arg_zoom = (args[0] as double?); - assert( - arg_zoom != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom was null, expected non-null double.', - ); - try { - api.moveCameraToZoom(arg_zoom!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final double output = api.getMinZoomPreference(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final double output = api.getMaxZoomPreference(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.resetMinMaxZoomPreference(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference was null.', - ); - final List args = (message as List?)!; - final double? arg_minZoomPreference = (args[0] as double?); - assert( - arg_minZoomPreference != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference was null, expected non-null double.', - ); - try { - api.setMinZoomPreference(arg_minZoomPreference!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference was null.', - ); - final List args = (message as List?)!; - final double? arg_maxZoomPreference = (args[0] as double?); - assert( - arg_maxZoomPreference != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference was null, expected non-null double.', - ); - try { - api.setMaxZoomPreference(arg_maxZoomPreference!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled was null, expected non-null bool.', - ); - try { - api.setMyLocationButtonEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null, expected non-null bool.', - ); - try { - api.setConsumeMyLocationButtonClickEventsEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled was null, expected non-null bool.', - ); - try { - api.setZoomGesturesEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled was null, expected non-null bool.', - ); - try { - api.setZoomControlsEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled was null, expected non-null bool.', - ); - try { - api.setCompassEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled was null, expected non-null bool.', - ); - try { - api.setRotateGesturesEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled was null, expected non-null bool.', - ); - try { - api.setScrollGesturesEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null, expected non-null bool.', - ); - try { - api.setScrollGesturesDuringRotateOrZoomEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled was null, expected non-null bool.', - ); - try { - api.setTiltGesturesEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled was null, expected non-null bool.', - ); - try { - api.setMapToolbarEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled was null, expected non-null bool.', - ); - try { - api.setTrafficEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled was null, expected non-null bool.', - ); - try { - api.setTrafficPromptsEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled was null, expected non-null bool.', - ); - try { - api.setTrafficIncidentCardsEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled was null, expected non-null bool.', - ); - try { - api.setNavigationTripProgressBarEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled was null, expected non-null bool.', - ); - try { - api.setSpeedLimitIconEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled was null, expected non-null bool.', - ); - try { - api.setSpeedometerEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled was null, expected non-null bool.', - ); - try { - api.setNavigationUIEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isMyLocationButtonEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api - .isConsumeMyLocationButtonClickEventsEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isZoomGesturesEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isZoomControlsEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isCompassEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isRotateGesturesEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isScrollGesturesEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api - .isScrollGesturesEnabledDuringRotateOrZoom(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isTiltGesturesEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isMapToolbarEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isTrafficEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isTrafficPromptsEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isTrafficIncidentCardsEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isNavigationTripProgressBarEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isSpeedLimitIconEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isSpeedometerEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isNavigationUIEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isIndoorEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled was null, expected non-null bool.', - ); - try { - api.setIndoorEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final IndoorBuildingDto? output = api - .getFocusedIndoorBuilding(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel was null.', - ); - final List args = (message as List?)!; - final int? arg_levelIndex = (args[0] as int?); - assert( - arg_levelIndex != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel was null, expected non-null int.', - ); - try { - api.activateIndoorLevel(arg_levelIndex!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.showRouteOverview(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final List output = api.getMarkers(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers was null.', - ); - final List args = (message as List?)!; - final List? arg_markers = (args[0] as List?) - ?.cast(); - assert( - arg_markers != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers was null, expected non-null List.', - ); - try { - final List output = api.addMarkers(arg_markers!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers was null.', - ); - final List args = (message as List?)!; - final List? arg_markers = (args[0] as List?) - ?.cast(); - assert( - arg_markers != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers was null, expected non-null List.', - ); - try { - final List output = api.updateMarkers(arg_markers!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers was null.', - ); - final List args = (message as List?)!; - final List? arg_markers = (args[0] as List?) - ?.cast(); - assert( - arg_markers != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers was null, expected non-null List.', - ); - try { - api.removeMarkers(arg_markers!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.clearMarkers(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.clear(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final List output = api.getPolygons(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons was null.', - ); - final List args = (message as List?)!; - final List? arg_polygons = (args[0] as List?) - ?.cast(); - assert( - arg_polygons != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons was null, expected non-null List.', - ); - try { - final List output = api.addPolygons(arg_polygons!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons was null.', - ); - final List args = (message as List?)!; - final List? arg_polygons = (args[0] as List?) - ?.cast(); - assert( - arg_polygons != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons was null, expected non-null List.', - ); - try { - final List output = api.updatePolygons( - arg_polygons!, - ); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons was null.', - ); - final List args = (message as List?)!; - final List? arg_polygons = (args[0] as List?) - ?.cast(); - assert( - arg_polygons != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons was null, expected non-null List.', - ); - try { - api.removePolygons(arg_polygons!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.clearPolygons(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final List output = api.getPolylines(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines was null.', - ); - final List args = (message as List?)!; - final List? arg_polylines = - (args[0] as List?)?.cast(); - assert( - arg_polylines != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines was null, expected non-null List.', - ); - try { - final List output = api.addPolylines( - arg_polylines!, - ); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines was null.', - ); - final List args = (message as List?)!; - final List? arg_polylines = - (args[0] as List?)?.cast(); - assert( - arg_polylines != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines was null, expected non-null List.', - ); - try { - final List output = api.updatePolylines( - arg_polylines!, - ); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines was null.', - ); - final List args = (message as List?)!; - final List? arg_polylines = - (args[0] as List?)?.cast(); - assert( - arg_polylines != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines was null, expected non-null List.', - ); - try { - api.removePolylines(arg_polylines!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.clearPolylines(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final List output = api.getCircles(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles was null.', - ); - final List args = (message as List?)!; - final List? arg_circles = (args[0] as List?) - ?.cast(); - assert( - arg_circles != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles was null, expected non-null List.', - ); - try { - final List output = api.addCircles(arg_circles!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles was null.', - ); - final List args = (message as List?)!; - final List? arg_circles = (args[0] as List?) - ?.cast(); - assert( - arg_circles != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles was null, expected non-null List.', - ); - try { - final List output = api.updateCircles(arg_circles!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles was null.', - ); - final List args = (message as List?)!; - final List? arg_circles = (args[0] as List?) - ?.cast(); - assert( - arg_circles != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles was null, expected non-null List.', - ); - try { - api.removeCircles(arg_circles!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.clearCircles(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.enableOnCameraChangedEvents(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isAutoScreenAvailable(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding was null.', - ); - final List args = (message as List?)!; - final MapPaddingDto? arg_padding = (args[0] as MapPaddingDto?); - assert( - arg_padding != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding was null, expected non-null MapPaddingDto.', - ); - try { - api.setPadding(arg_padding!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final MapPaddingDto output = api.getPadding(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final MapColorSchemeDto output = api.getMapColorScheme(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme was null.', - ); - final List args = (message as List?)!; - final MapColorSchemeDto? arg_mapColorScheme = - (args[0] as MapColorSchemeDto?); - assert( - arg_mapColorScheme != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme was null, expected non-null MapColorSchemeDto.', - ); - try { - api.setMapColorScheme(arg_mapColorScheme!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final NavigationForceNightModeDto output = api - .getForceNightMode(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode was null.', - ); - final List args = (message as List?)!; - final NavigationForceNightModeDto? arg_forceNightMode = - (args[0] as NavigationForceNightModeDto?); - assert( - arg_forceNightMode != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode was null, expected non-null NavigationForceNightModeDto.', - ); - try { - api.setForceNightMode(arg_forceNightMode!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent was null.'); final List args = (message as List?)!; final String? arg_event = (args[0] as String?); - assert( - arg_event != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent was null, expected non-null String.', - ); + assert(arg_event != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent was null, expected non-null String.'); final Object? arg_data = (args[1] as Object?); - assert( - arg_data != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent was null, expected non-null Object.', - ); + assert(arg_data != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent was null, expected non-null Object.'); try { api.sendCustomNavigationAutoEvent(arg_event!, arg_data!); 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())); } }); } From 986c04e996b749b674d479c0fc50697521e60901 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20V=C3=A4limaa?= Date: Mon, 13 Jul 2026 16:32:13 +0800 Subject: [PATCH 3/3] chore: formatting and cleanup --- .../GoogleMapsNavigationSessionManager.kt | 11 +- .../maps/flutter/navigation/messages.g.kt | 6930 ++++--- ...eMapsNavigationSessionMessageHandler.swift | 4 +- .../messages.g.swift | 2167 ++- .../method_channel/convert/navigation.dart | 3 +- lib/src/method_channel/messages.g.dart | 6323 +++--- .../google_navigation_flutter_test.mocks.dart | 14 + test/messages_test.g.dart | 15846 ++++++++++------ 8 files changed, 19851 insertions(+), 11447 deletions(-) diff --git a/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsNavigationSessionManager.kt b/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsNavigationSessionManager.kt index 38dcf118..52736d74 100644 --- a/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsNavigationSessionManager.kt +++ b/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsNavigationSessionManager.kt @@ -428,15 +428,16 @@ constructor( } } - private fun initializeForegroundServiceManager( - options: NavigationNotificationOptionsDto? - ) { + private fun initializeForegroundServiceManager(options: NavigationNotificationOptionsDto?) { if (options == null || foregroundServiceManagerInitialized) return val androidNotificationId = options.notificationId?.let { if (it !in Int.MIN_VALUE.toLong()..Int.MAX_VALUE.toLong()) { - throw FlutterError("invalidNotificationId", "notificationId must fit in a 32-bit integer.") + throw FlutterError( + "invalidNotificationId", + "notificationId must fit in a 32-bit integer.", + ) } it.toInt() } @@ -450,7 +451,7 @@ constructor( null } - // This must happen before NavigationApi.getNavigator(), which can create the manager. + // This must happen before NavigationApi.getNavigator() NavigationApi.initForegroundServiceManagerMessageAndIntent( application, androidNotificationId, diff --git a/android/src/main/kotlin/com/google/maps/flutter/navigation/messages.g.kt b/android/src/main/kotlin/com/google/maps/flutter/navigation/messages.g.kt index d376fe09..d4e09b75 100644 --- a/android/src/main/kotlin/com/google/maps/flutter/navigation/messages.g.kt +++ b/android/src/main/kotlin/com/google/maps/flutter/navigation/messages.g.kt @@ -21,16 +21,20 @@ package com.google.maps.flutter.navigation 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 + private object MessagesPigeonUtils { 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'.", + "", + ) + } fun wrapResult(result: Any?): List { return listOf(result) @@ -38,66 +42,62 @@ private object MessagesPigeonUtils { 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) + "Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception), ) } } + fun deepEquals(a: Any?, b: Any?): Boolean { if (a is ByteArray && b is ByteArray) { - return a.contentEquals(b) + return a.contentEquals(b) } if (a is IntArray && b is IntArray) { - return a.contentEquals(b) + return a.contentEquals(b) } if (a is LongArray && b is LongArray) { - return a.contentEquals(b) + return a.contentEquals(b) } if (a is DoubleArray && b is DoubleArray) { - return a.contentEquals(b) + return a.contentEquals(b) } if (a is Array<*> && b is Array<*>) { - return a.size == b.size && - a.indices.all{ deepEquals(a[it], b[it]) } + return a.size == b.size && a.indices.all { deepEquals(a[it], b[it]) } } if (a is List<*> && b is List<*>) { - return a.size == b.size && - a.indices.all{ deepEquals(a[it], b[it]) } + return a.size == b.size && a.indices.all { deepEquals(a[it], b[it]) } } if (a is Map<*, *> && b is Map<*, *>) { - return a.size == b.size && a.all { - (b as Map).containsKey(it.key) && - deepEquals(it.value, b[it.key]) - } + return a.size == b.size && + a.all { (b as Map).containsKey(it.key) && deepEquals(it.value, b[it.key]) } } return a == b } - } /** * 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 ( +class FlutterError( val code: String, override val message: String? = null, - val details: Any? = null + val details: Any? = null, ) : Throwable() /** Describes the type of map to construct. */ enum class MapViewTypeDto(val raw: Int) { - /** Navigation view supports navigation overlay, and current navigation session is displayed on the map. */ + /** + * Navigation view supports navigation overlay, and current navigation session is displayed on the + * map. + */ NAVIGATION(0), /** Classic map view, without navigation overlay. */ MAP(1); @@ -111,10 +111,7 @@ enum class MapViewTypeDto(val raw: Int) { /** Determines the initial visibility of the navigation UI on map initialization. */ enum class NavigationUIEnabledPreferenceDto(val raw: Int) { - /** - * Navigation UI gets enabled if the navigation - * session has already been successfully started. - */ + /** Navigation UI gets enabled if the navigation session has already been successfully started. */ AUTOMATIC(0), /** Navigation UI is disabled. */ DISABLED(1); @@ -436,7 +433,9 @@ enum class ManeuverDto(val raw: Int) { OFF_RAMP_UTURN_COUNTERCLOCKWISE(22), /** Keep to the left side of the road when entering a turnpike or freeway as the road diverges. */ ON_RAMP_KEEP_LEFT(23), - /** Keep to the right side of the road when entering a turnpike or freeway as the road diverges. */ + /** + * Keep to the right side of the road when entering a turnpike or freeway as the road diverges. + */ ON_RAMP_KEEP_RIGHT(24), /** Regular left turn to enter a turnpike or freeway. */ ON_RAMP_LEFT(25), @@ -492,9 +491,15 @@ enum class ManeuverDto(val raw: Int) { ROUNDABOUT_STRAIGHT_CLOCKWISE(50), /** Enter a roundabout in the counterclockwise direction and continue straight. */ ROUNDABOUT_STRAIGHT_COUNTERCLOCKWISE(51), - /** Enter a roundabout in the clockwise direction and turn clockwise onto the opposite side of the street. */ + /** + * Enter a roundabout in the clockwise direction and turn clockwise onto the opposite side of the + * street. + */ ROUNDABOUT_UTURN_CLOCKWISE(52), - /** Enter a roundabout in the counterclockwise direction and turn counterclockwise onto the opposite side of the street. */ + /** + * Enter a roundabout in the counterclockwise direction and turn counterclockwise onto the + * opposite side of the street. + */ ROUNDABOUT_UTURN_COUNTERCLOCKWISE(53), /** Continue straight. */ STRAIGHT(54), @@ -595,11 +600,14 @@ enum class LaneShapeDto(val raw: Int) { /** Determines how application should behave when a application task is removed. */ enum class TaskRemovedBehaviorDto(val raw: Int) { /** - * The default state, indicating that navigation guidance, - * location updates, and notification should persist after user removes the application task. + * The default state, indicating that navigation guidance, location updates, and notification + * should persist after user removes the application task. */ CONTINUE_SERVICE(0), - /** Indicates that navigation guidance, location updates, and notification should shut down immediately when the user removes the application task. */ + /** + * Indicates that navigation guidance, location updates, and notification should shut down + * immediately when the user removes the application task. + */ QUIT_SERVICE(1); companion object { @@ -614,7 +622,7 @@ enum class TaskRemovedBehaviorDto(val raw: Int) { * * Generated class from Pigeon that represents data sent in messages. */ -data class AutoMapOptionsDto ( +data class AutoMapOptionsDto( /** The initial positioning of the camera in the map view. */ val cameraPosition: CameraPositionDto? = null, /** Cloud-based map ID for custom styling. */ @@ -626,9 +634,8 @@ data class AutoMapOptionsDto ( /** Forces night mode (dark theme) regardless of system settings. */ val forceNightMode: NavigationForceNightModeDto? = null, /** Determines the initial visibility of the navigation UI on map initialization. */ - val navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto? = null -) - { + val navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto? = null, +) { companion object { fun fromList(pigeonVar_list: List): AutoMapOptionsDto { val cameraPosition = pigeonVar_list[0] as CameraPositionDto? @@ -637,9 +644,17 @@ data class AutoMapOptionsDto ( val mapColorScheme = pigeonVar_list[3] as MapColorSchemeDto? val forceNightMode = pigeonVar_list[4] as NavigationForceNightModeDto? val navigationUIEnabledPreference = pigeonVar_list[5] as NavigationUIEnabledPreferenceDto? - return AutoMapOptionsDto(cameraPosition, mapId, mapType, mapColorScheme, forceNightMode, navigationUIEnabledPreference) + return AutoMapOptionsDto( + cameraPosition, + mapId, + mapType, + mapColorScheme, + forceNightMode, + navigationUIEnabledPreference, + ) } } + fun toList(): List { return listOf( cameraPosition, @@ -650,6 +665,7 @@ data class AutoMapOptionsDto ( navigationUIEnabledPreference, ) } + override fun equals(other: Any?): Boolean { if (other !is AutoMapOptionsDto) { return false @@ -657,7 +673,8 @@ data class AutoMapOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } @@ -667,7 +684,7 @@ data class AutoMapOptionsDto ( * * Generated class from Pigeon that represents data sent in messages. */ -data class MapOptionsDto ( +data class MapOptionsDto( /** The initial positioning of the camera in the map view. */ val cameraPosition: CameraPositionDto, /** The type of map to display (e.g., satellite, terrain, hybrid, etc.). */ @@ -700,14 +717,13 @@ data class MapOptionsDto ( /** Specifies the padding for the map. */ val padding: MapPaddingDto? = null, /** - * The map ID for advanced map options eg. cloud-based map styling. - * This value can only be set on map initialization and cannot be changed afterwards. + * The map ID for advanced map options eg. cloud-based map styling. This value can only be set on + * map initialization and cannot be changed afterwards. */ val mapId: String? = null, /** The map color scheme mode for the map view. */ - val mapColorScheme: MapColorSchemeDto -) - { + val mapColorScheme: MapColorSchemeDto, +) { companion object { fun fromList(pigeonVar_list: List): MapOptionsDto { val cameraPosition = pigeonVar_list[0] as CameraPositionDto @@ -726,9 +742,27 @@ data class MapOptionsDto ( val padding = pigeonVar_list[13] as MapPaddingDto? val mapId = pigeonVar_list[14] as String? val mapColorScheme = pigeonVar_list[15] as MapColorSchemeDto - return MapOptionsDto(cameraPosition, mapType, compassEnabled, rotateGesturesEnabled, scrollGesturesEnabled, tiltGesturesEnabled, zoomGesturesEnabled, scrollGesturesEnabledDuringRotateOrZoom, mapToolbarEnabled, minZoomPreference, maxZoomPreference, zoomControlsEnabled, cameraTargetBounds, padding, mapId, mapColorScheme) + return MapOptionsDto( + cameraPosition, + mapType, + compassEnabled, + rotateGesturesEnabled, + scrollGesturesEnabled, + tiltGesturesEnabled, + zoomGesturesEnabled, + scrollGesturesEnabledDuringRotateOrZoom, + mapToolbarEnabled, + minZoomPreference, + maxZoomPreference, + zoomControlsEnabled, + cameraTargetBounds, + padding, + mapId, + mapColorScheme, + ) } } + fun toList(): List { return listOf( cameraPosition, @@ -749,6 +783,7 @@ data class MapOptionsDto ( mapColorScheme, ) } + override fun equals(other: Any?): Boolean { if (other !is MapOptionsDto) { return false @@ -756,7 +791,8 @@ data class MapOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } @@ -766,30 +802,31 @@ data class MapOptionsDto ( * * Generated class from Pigeon that represents data sent in messages. */ -data class NavigationViewOptionsDto ( +data class NavigationViewOptionsDto( /** Determines the initial visibility of the navigation UI on map initialization. */ val navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto, /** Controls the navigation night mode for Navigation UI. */ val forceNightMode: NavigationForceNightModeDto, /** Controls the initial navigation header styling. */ - val headerStylingOptions: NavigationHeaderStylingOptionsDto? = null -) - { + val headerStylingOptions: NavigationHeaderStylingOptionsDto? = null, +) { companion object { fun fromList(pigeonVar_list: List): NavigationViewOptionsDto { val navigationUIEnabledPreference = pigeonVar_list[0] as NavigationUIEnabledPreferenceDto val forceNightMode = pigeonVar_list[1] as NavigationForceNightModeDto val headerStylingOptions = pigeonVar_list[2] as NavigationHeaderStylingOptionsDto? - return NavigationViewOptionsDto(navigationUIEnabledPreference, forceNightMode, headerStylingOptions) + return NavigationViewOptionsDto( + navigationUIEnabledPreference, + forceNightMode, + headerStylingOptions, + ) } } + fun toList(): List { - return listOf( - navigationUIEnabledPreference, - forceNightMode, - headerStylingOptions, - ) + return listOf(navigationUIEnabledPreference, forceNightMode, headerStylingOptions) } + override fun equals(other: Any?): Boolean { if (other !is NavigationViewOptionsDto) { return false @@ -797,7 +834,8 @@ data class NavigationViewOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } @@ -805,17 +843,15 @@ data class NavigationViewOptionsDto ( /** * A message for creating a new navigation view. * - * This message is used to initialize a new navigation view with a - * specified initial parameters. + * This message is used to initialize a new navigation view with a specified initial parameters. * * Generated class from Pigeon that represents data sent in messages. */ -data class ViewCreationOptionsDto ( +data class ViewCreationOptionsDto( val mapViewType: MapViewTypeDto, val mapOptions: MapOptionsDto, - val navigationViewOptions: NavigationViewOptionsDto? = null -) - { + val navigationViewOptions: NavigationViewOptionsDto? = null, +) { companion object { fun fromList(pigeonVar_list: List): ViewCreationOptionsDto { val mapViewType = pigeonVar_list[0] as MapViewTypeDto @@ -824,13 +860,11 @@ data class ViewCreationOptionsDto ( return ViewCreationOptionsDto(mapViewType, mapOptions, navigationViewOptions) } } + fun toList(): List { - return listOf( - mapViewType, - mapOptions, - navigationViewOptions, - ) + return listOf(mapViewType, mapOptions, navigationViewOptions) } + override fun equals(other: Any?): Boolean { if (other !is ViewCreationOptionsDto) { return false @@ -838,19 +872,19 @@ data class ViewCreationOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class CameraPositionDto ( +data class CameraPositionDto( val bearing: Double, val target: LatLngDto, val tilt: Double, - val zoom: Double -) - { + val zoom: Double, +) { companion object { fun fromList(pigeonVar_list: List): CameraPositionDto { val bearing = pigeonVar_list[0] as Double @@ -860,14 +894,11 @@ data class CameraPositionDto ( return CameraPositionDto(bearing, target, tilt, zoom) } } + fun toList(): List { - return listOf( - bearing, - target, - tilt, - zoom, - ) + return listOf(bearing, target, tilt, zoom) } + override fun equals(other: Any?): Boolean { if (other !is CameraPositionDto) { return false @@ -875,19 +906,19 @@ data class CameraPositionDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class MarkerDto ( +data class MarkerDto( /** Identifies marker */ val markerId: String, /** Options for marker */ - val options: MarkerOptionsDto -) - { + val options: MarkerOptionsDto, +) { companion object { fun fromList(pigeonVar_list: List): MarkerDto { val markerId = pigeonVar_list[0] as String @@ -895,12 +926,11 @@ data class MarkerDto ( return MarkerDto(markerId, options) } } + fun toList(): List { - return listOf( - markerId, - options, - ) + return listOf(markerId, options) } + override fun equals(other: Any?): Boolean { if (other !is MarkerDto) { return false @@ -908,13 +938,14 @@ data class MarkerDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class MarkerOptionsDto ( +data class MarkerOptionsDto( val alpha: Double, val anchor: MarkerAnchorDto, val draggable: Boolean, @@ -925,9 +956,8 @@ data class MarkerOptionsDto ( val infoWindow: InfoWindowDto, val visible: Boolean, val zIndex: Double, - val icon: ImageDescriptorDto -) - { + val icon: ImageDescriptorDto, +) { companion object { fun fromList(pigeonVar_list: List): MarkerOptionsDto { val alpha = pigeonVar_list[0] as Double @@ -941,9 +971,22 @@ data class MarkerOptionsDto ( val visible = pigeonVar_list[8] as Boolean val zIndex = pigeonVar_list[9] as Double val icon = pigeonVar_list[10] as ImageDescriptorDto - return MarkerOptionsDto(alpha, anchor, draggable, flat, consumeTapEvents, position, rotation, infoWindow, visible, zIndex, icon) + return MarkerOptionsDto( + alpha, + anchor, + draggable, + flat, + consumeTapEvents, + position, + rotation, + infoWindow, + visible, + zIndex, + icon, + ) } } + fun toList(): List { return listOf( alpha, @@ -959,6 +1002,7 @@ data class MarkerOptionsDto ( icon, ) } + override fun equals(other: Any?): Boolean { if (other !is MarkerOptionsDto) { return false @@ -966,20 +1010,20 @@ data class MarkerOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class ImageDescriptorDto ( +data class ImageDescriptorDto( val registeredImageId: String? = null, val imagePixelRatio: Double? = null, val width: Double? = null, val height: Double? = null, - val type: RegisteredImageTypeDto -) - { + val type: RegisteredImageTypeDto, +) { companion object { fun fromList(pigeonVar_list: List): ImageDescriptorDto { val registeredImageId = pigeonVar_list[0] as String? @@ -990,15 +1034,11 @@ data class ImageDescriptorDto ( return ImageDescriptorDto(registeredImageId, imagePixelRatio, width, height, type) } } + fun toList(): List { - return listOf( - registeredImageId, - imagePixelRatio, - width, - height, - type, - ) + return listOf(registeredImageId, imagePixelRatio, width, height, type) } + override fun equals(other: Any?): Boolean { if (other !is ImageDescriptorDto) { return false @@ -1006,18 +1046,18 @@ data class ImageDescriptorDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class InfoWindowDto ( +data class InfoWindowDto( val title: String? = null, val snippet: String? = null, - val anchor: MarkerAnchorDto -) - { + val anchor: MarkerAnchorDto, +) { companion object { fun fromList(pigeonVar_list: List): InfoWindowDto { val title = pigeonVar_list[0] as String? @@ -1026,13 +1066,11 @@ data class InfoWindowDto ( return InfoWindowDto(title, snippet, anchor) } } + fun toList(): List { - return listOf( - title, - snippet, - anchor, - ) + return listOf(title, snippet, anchor) } + override fun equals(other: Any?): Boolean { if (other !is InfoWindowDto) { return false @@ -1040,17 +1078,14 @@ data class InfoWindowDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class MarkerAnchorDto ( - val u: Double, - val v: Double -) - { +data class MarkerAnchorDto(val u: Double, val v: Double) { companion object { fun fromList(pigeonVar_list: List): MarkerAnchorDto { val u = pigeonVar_list[0] as Double @@ -1058,12 +1093,11 @@ data class MarkerAnchorDto ( return MarkerAnchorDto(u, v) } } + fun toList(): List { - return listOf( - u, - v, - ) + return listOf(u, v) } + override fun equals(other: Any?): Boolean { if (other !is MarkerAnchorDto) { return false @@ -1071,29 +1105,29 @@ data class MarkerAnchorDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** - * Represents a point of interest (POI) on the map. - * POIs include parks, schools, government buildings, and businesses. + * Represents a point of interest (POI) on the map. POIs include parks, schools, government + * buildings, and businesses. * * Generated class from Pigeon that represents data sent in messages. */ -data class PointOfInterestDto ( +data class PointOfInterestDto( /** - * The Place ID of this POI, as defined in the Places SDK. - * This can be used to retrieve additional information about the place. + * The Place ID of this POI, as defined in the Places SDK. This can be used to retrieve additional + * information about the place. */ val placeID: String, /** The name of the POI (e.g., "Central Park", "City Hall"). */ val name: String, /** The geographical coordinates of the POI. */ - val latLng: LatLngDto -) - { + val latLng: LatLngDto, +) { companion object { fun fromList(pigeonVar_list: List): PointOfInterestDto { val placeID = pigeonVar_list[0] as String @@ -1102,13 +1136,11 @@ data class PointOfInterestDto ( return PointOfInterestDto(placeID, name, latLng) } } + fun toList(): List { - return listOf( - placeID, - name, - latLng, - ) + return listOf(placeID, name, latLng) } + override fun equals(other: Any?): Boolean { if (other !is PointOfInterestDto) { return false @@ -1116,7 +1148,8 @@ data class PointOfInterestDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } @@ -1126,13 +1159,12 @@ data class PointOfInterestDto ( * * Generated class from Pigeon that represents data sent in messages. */ -data class IndoorLevelDto ( +data class IndoorLevelDto( /** Full display name of the level. */ val name: String? = null, /** Short display name of the level. */ - val shortName: String? = null -) - { + val shortName: String? = null, +) { companion object { fun fromList(pigeonVar_list: List): IndoorLevelDto { val name = pigeonVar_list[0] as String? @@ -1140,12 +1172,11 @@ data class IndoorLevelDto ( return IndoorLevelDto(name, shortName) } } + fun toList(): List { - return listOf( - name, - shortName, - ) + return listOf(name, shortName) } + override fun equals(other: Any?): Boolean { if (other !is IndoorLevelDto) { return false @@ -1153,7 +1184,8 @@ data class IndoorLevelDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } @@ -1163,7 +1195,7 @@ data class IndoorLevelDto ( * * Generated class from Pigeon that represents data sent in messages. */ -data class IndoorBuildingDto ( +data class IndoorBuildingDto( /** All levels available in the focused building. */ val levels: List, /** Currently active level index in [levels], if known. */ @@ -1171,9 +1203,8 @@ data class IndoorBuildingDto ( /** Default level index in [levels], if known. */ val defaultLevelIndex: Long? = null, /** Whether building is mostly underground, if known. */ - val isUnderground: Boolean? = null -) - { + val isUnderground: Boolean? = null, +) { companion object { fun fromList(pigeonVar_list: List): IndoorBuildingDto { val levels = pigeonVar_list[0] as List @@ -1183,14 +1214,11 @@ data class IndoorBuildingDto ( return IndoorBuildingDto(levels, activeLevelIndex, defaultLevelIndex, isUnderground) } } + fun toList(): List { - return listOf( - levels, - activeLevelIndex, - defaultLevelIndex, - isUnderground, - ) + return listOf(levels, activeLevelIndex, defaultLevelIndex, isUnderground) } + override fun equals(other: Any?): Boolean { if (other !is IndoorBuildingDto) { return false @@ -1198,17 +1226,14 @@ data class IndoorBuildingDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolygonDto ( - val polygonId: String, - val options: PolygonOptionsDto -) - { +data class PolygonDto(val polygonId: String, val options: PolygonOptionsDto) { companion object { fun fromList(pigeonVar_list: List): PolygonDto { val polygonId = pigeonVar_list[0] as String @@ -1216,12 +1241,11 @@ data class PolygonDto ( return PolygonDto(polygonId, options) } } + fun toList(): List { - return listOf( - polygonId, - options, - ) + return listOf(polygonId, options) } + override fun equals(other: Any?): Boolean { if (other !is PolygonDto) { return false @@ -1229,13 +1253,14 @@ data class PolygonDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolygonOptionsDto ( +data class PolygonOptionsDto( val points: List, val holes: List, val clickable: Boolean, @@ -1244,9 +1269,8 @@ data class PolygonOptionsDto ( val strokeColor: Long, val strokeWidth: Double, val visible: Boolean, - val zIndex: Double -) - { + val zIndex: Double, +) { companion object { fun fromList(pigeonVar_list: List): PolygonOptionsDto { val points = pigeonVar_list[0] as List @@ -1258,9 +1282,20 @@ data class PolygonOptionsDto ( val strokeWidth = pigeonVar_list[6] as Double val visible = pigeonVar_list[7] as Boolean val zIndex = pigeonVar_list[8] as Double - return PolygonOptionsDto(points, holes, clickable, fillColor, geodesic, strokeColor, strokeWidth, visible, zIndex) + return PolygonOptionsDto( + points, + holes, + clickable, + fillColor, + geodesic, + strokeColor, + strokeWidth, + visible, + zIndex, + ) } } + fun toList(): List { return listOf( points, @@ -1274,6 +1309,7 @@ data class PolygonOptionsDto ( zIndex, ) } + override fun equals(other: Any?): Boolean { if (other !is PolygonOptionsDto) { return false @@ -1281,27 +1317,25 @@ data class PolygonOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolygonHoleDto ( - val points: List -) - { +data class PolygonHoleDto(val points: List) { companion object { fun fromList(pigeonVar_list: List): PolygonHoleDto { val points = pigeonVar_list[0] as List return PolygonHoleDto(points) } } + fun toList(): List { - return listOf( - points, - ) + return listOf(points) } + override fun equals(other: Any?): Boolean { if (other !is PolygonHoleDto) { return false @@ -1309,18 +1343,18 @@ data class PolygonHoleDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class StyleSpanStrokeStyleDto ( +data class StyleSpanStrokeStyleDto( val solidColor: Long? = null, val fromColor: Long? = null, - val toColor: Long? = null -) - { + val toColor: Long? = null, +) { companion object { fun fromList(pigeonVar_list: List): StyleSpanStrokeStyleDto { val solidColor = pigeonVar_list[0] as Long? @@ -1329,13 +1363,11 @@ data class StyleSpanStrokeStyleDto ( return StyleSpanStrokeStyleDto(solidColor, fromColor, toColor) } } + fun toList(): List { - return listOf( - solidColor, - fromColor, - toColor, - ) + return listOf(solidColor, fromColor, toColor) } + override fun equals(other: Any?): Boolean { if (other !is StyleSpanStrokeStyleDto) { return false @@ -1343,17 +1375,14 @@ data class StyleSpanStrokeStyleDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class StyleSpanDto ( - val length: Double, - val style: StyleSpanStrokeStyleDto -) - { +data class StyleSpanDto(val length: Double, val style: StyleSpanStrokeStyleDto) { companion object { fun fromList(pigeonVar_list: List): StyleSpanDto { val length = pigeonVar_list[0] as Double @@ -1361,12 +1390,11 @@ data class StyleSpanDto ( return StyleSpanDto(length, style) } } + fun toList(): List { - return listOf( - length, - style, - ) + return listOf(length, style) } + override fun equals(other: Any?): Boolean { if (other !is StyleSpanDto) { return false @@ -1374,17 +1402,14 @@ data class StyleSpanDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolylineDto ( - val polylineId: String, - val options: PolylineOptionsDto -) - { +data class PolylineDto(val polylineId: String, val options: PolylineOptionsDto) { companion object { fun fromList(pigeonVar_list: List): PolylineDto { val polylineId = pigeonVar_list[0] as String @@ -1392,12 +1417,11 @@ data class PolylineDto ( return PolylineDto(polylineId, options) } } + fun toList(): List { - return listOf( - polylineId, - options, - ) + return listOf(polylineId, options) } + override fun equals(other: Any?): Boolean { if (other !is PolylineDto) { return false @@ -1405,17 +1429,14 @@ data class PolylineDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PatternItemDto ( - val type: PatternTypeDto, - val length: Double? = null -) - { +data class PatternItemDto(val type: PatternTypeDto, val length: Double? = null) { companion object { fun fromList(pigeonVar_list: List): PatternItemDto { val type = pigeonVar_list[0] as PatternTypeDto @@ -1423,12 +1444,11 @@ data class PatternItemDto ( return PatternItemDto(type, length) } } + fun toList(): List { - return listOf( - type, - length, - ) + return listOf(type, length) } + override fun equals(other: Any?): Boolean { if (other !is PatternItemDto) { return false @@ -1436,13 +1456,14 @@ data class PatternItemDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolylineOptionsDto ( +data class PolylineOptionsDto( val points: List? = null, val clickable: Boolean? = null, val geodesic: Boolean? = null, @@ -1452,9 +1473,8 @@ data class PolylineOptionsDto ( val strokeWidth: Double? = null, val visible: Boolean? = null, val zIndex: Double? = null, - val spans: List -) - { + val spans: List, +) { companion object { fun fromList(pigeonVar_list: List): PolylineOptionsDto { val points = pigeonVar_list[0] as List? @@ -1467,9 +1487,21 @@ data class PolylineOptionsDto ( val visible = pigeonVar_list[7] as Boolean? val zIndex = pigeonVar_list[8] as Double? val spans = pigeonVar_list[9] as List - return PolylineOptionsDto(points, clickable, geodesic, strokeColor, strokeJointType, strokePattern, strokeWidth, visible, zIndex, spans) + return PolylineOptionsDto( + points, + clickable, + geodesic, + strokeColor, + strokeJointType, + strokePattern, + strokeWidth, + visible, + zIndex, + spans, + ) } } + fun toList(): List { return listOf( points, @@ -1484,6 +1516,7 @@ data class PolylineOptionsDto ( spans, ) } + override fun equals(other: Any?): Boolean { if (other !is PolylineOptionsDto) { return false @@ -1491,19 +1524,19 @@ data class PolylineOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class CircleDto ( +data class CircleDto( /** Identifies circle. */ val circleId: String, /** Options for circle. */ - val options: CircleOptionsDto -) - { + val options: CircleOptionsDto, +) { companion object { fun fromList(pigeonVar_list: List): CircleDto { val circleId = pigeonVar_list[0] as String @@ -1511,12 +1544,11 @@ data class CircleDto ( return CircleDto(circleId, options) } } + fun toList(): List { - return listOf( - circleId, - options, - ) + return listOf(circleId, options) } + override fun equals(other: Any?): Boolean { if (other !is CircleDto) { return false @@ -1524,13 +1556,14 @@ data class CircleDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class CircleOptionsDto ( +data class CircleOptionsDto( val position: LatLngDto, val radius: Double, val strokeWidth: Double, @@ -1539,9 +1572,8 @@ data class CircleOptionsDto ( val fillColor: Long, val zIndex: Double, val visible: Boolean, - val clickable: Boolean -) - { + val clickable: Boolean, +) { companion object { fun fromList(pigeonVar_list: List): CircleOptionsDto { val position = pigeonVar_list[0] as LatLngDto @@ -1553,9 +1585,20 @@ data class CircleOptionsDto ( val zIndex = pigeonVar_list[6] as Double val visible = pigeonVar_list[7] as Boolean val clickable = pigeonVar_list[8] as Boolean - return CircleOptionsDto(position, radius, strokeWidth, strokeColor, strokePattern, fillColor, zIndex, visible, clickable) + return CircleOptionsDto( + position, + radius, + strokeWidth, + strokeColor, + strokePattern, + fillColor, + zIndex, + visible, + clickable, + ) } } + fun toList(): List { return listOf( position, @@ -1569,6 +1612,7 @@ data class CircleOptionsDto ( clickable, ) } + override fun equals(other: Any?): Boolean { if (other !is CircleOptionsDto) { return false @@ -1576,19 +1620,14 @@ data class CircleOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class MapPaddingDto ( - val top: Long, - val left: Long, - val bottom: Long, - val right: Long -) - { +data class MapPaddingDto(val top: Long, val left: Long, val bottom: Long, val right: Long) { companion object { fun fromList(pigeonVar_list: List): MapPaddingDto { val top = pigeonVar_list[0] as Long @@ -1598,14 +1637,11 @@ data class MapPaddingDto ( return MapPaddingDto(top, left, bottom, right) } } + fun toList(): List { - return listOf( - top, - left, - bottom, - right, - ) + return listOf(top, left, bottom, right) } + override fun equals(other: Any?): Boolean { if (other !is MapPaddingDto) { return false @@ -1613,7 +1649,8 @@ data class MapPaddingDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } @@ -1621,15 +1658,14 @@ data class MapPaddingDto ( /** * Navigation header styling options. * - * All color values are 32-bit ARGB integers (format: 0xAARRGGBB). - * All text size values are logical pixels. - * Any null value resets that specific field to the native SDK default. + * All color values are 32-bit ARGB integers (format: 0xAARRGGBB). All text size values are logical + * pixels. Any null value resets that specific field to the native SDK default. * * Text size fields are currently Android only and are ignored on iOS. * * Generated class from Pigeon that represents data sent in messages. */ -data class NavigationHeaderStylingOptionsDto ( +data class NavigationHeaderStylingOptionsDto( val primaryDayModeBackgroundColor: Long? = null, val secondaryDayModeBackgroundColor: Long? = null, val primaryNightModeBackgroundColor: Long? = null, @@ -1645,9 +1681,8 @@ data class NavigationHeaderStylingOptionsDto ( val instructionsTextColor: Long? = null, val instructionsFirstRowTextSize: Double? = null, val instructionsSecondRowTextSize: Double? = null, - val guidanceRecommendedLaneColor: Long? = null -) - { + val guidanceRecommendedLaneColor: Long? = null, +) { companion object { fun fromList(pigeonVar_list: List): NavigationHeaderStylingOptionsDto { val primaryDayModeBackgroundColor = pigeonVar_list[0] as Long? @@ -1666,9 +1701,27 @@ data class NavigationHeaderStylingOptionsDto ( val instructionsFirstRowTextSize = pigeonVar_list[13] as Double? val instructionsSecondRowTextSize = pigeonVar_list[14] as Double? val guidanceRecommendedLaneColor = pigeonVar_list[15] as Long? - return NavigationHeaderStylingOptionsDto(primaryDayModeBackgroundColor, secondaryDayModeBackgroundColor, primaryNightModeBackgroundColor, secondaryNightModeBackgroundColor, largeManeuverIconColor, smallManeuverIconColor, nextStepTextColor, nextStepTextSize, distanceValueTextColor, distanceUnitsTextColor, distanceValueTextSize, distanceUnitsTextSize, instructionsTextColor, instructionsFirstRowTextSize, instructionsSecondRowTextSize, guidanceRecommendedLaneColor) + return NavigationHeaderStylingOptionsDto( + primaryDayModeBackgroundColor, + secondaryDayModeBackgroundColor, + primaryNightModeBackgroundColor, + secondaryNightModeBackgroundColor, + largeManeuverIconColor, + smallManeuverIconColor, + nextStepTextColor, + nextStepTextSize, + distanceValueTextColor, + distanceUnitsTextColor, + distanceValueTextSize, + distanceUnitsTextSize, + instructionsTextColor, + instructionsFirstRowTextSize, + instructionsSecondRowTextSize, + guidanceRecommendedLaneColor, + ) } } + fun toList(): List { return listOf( primaryDayModeBackgroundColor, @@ -1689,6 +1742,7 @@ data class NavigationHeaderStylingOptionsDto ( guidanceRecommendedLaneColor, ) } + override fun equals(other: Any?): Boolean { if (other !is NavigationHeaderStylingOptionsDto) { return false @@ -1696,17 +1750,14 @@ data class NavigationHeaderStylingOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RouteTokenOptionsDto ( - val routeToken: String, - val travelMode: TravelModeDto? = null -) - { +data class RouteTokenOptionsDto(val routeToken: String, val travelMode: TravelModeDto? = null) { companion object { fun fromList(pigeonVar_list: List): RouteTokenOptionsDto { val routeToken = pigeonVar_list[0] as String @@ -1714,12 +1765,11 @@ data class RouteTokenOptionsDto ( return RouteTokenOptionsDto(routeToken, travelMode) } } + fun toList(): List { - return listOf( - routeToken, - travelMode, - ) + return listOf(routeToken, travelMode) } + override fun equals(other: Any?): Boolean { if (other !is RouteTokenOptionsDto) { return false @@ -1727,19 +1777,19 @@ data class RouteTokenOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class DestinationsDto ( +data class DestinationsDto( val waypoints: List, val displayOptions: NavigationDisplayOptionsDto, val routingOptions: RoutingOptionsDto? = null, - val routeTokenOptions: RouteTokenOptionsDto? = null -) - { + val routeTokenOptions: RouteTokenOptionsDto? = null, +) { companion object { fun fromList(pigeonVar_list: List): DestinationsDto { val waypoints = pigeonVar_list[0] as List @@ -1749,14 +1799,11 @@ data class DestinationsDto ( return DestinationsDto(waypoints, displayOptions, routingOptions, routeTokenOptions) } } + fun toList(): List { - return listOf( - waypoints, - displayOptions, - routingOptions, - routeTokenOptions, - ) + return listOf(waypoints, displayOptions, routingOptions, routeTokenOptions) } + override fun equals(other: Any?): Boolean { if (other !is DestinationsDto) { return false @@ -1764,13 +1811,14 @@ data class DestinationsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RoutingOptionsDto ( +data class RoutingOptionsDto( val alternateRoutesStrategy: AlternateRoutesStrategyDto? = null, val routingStrategy: RoutingStrategyDto? = null, val targetDistanceMeters: List? = null, @@ -1778,9 +1826,8 @@ data class RoutingOptionsDto ( val avoidTolls: Boolean? = null, val avoidFerries: Boolean? = null, val avoidHighways: Boolean? = null, - val locationTimeoutMs: Long? = null -) - { + val locationTimeoutMs: Long? = null, +) { companion object { fun fromList(pigeonVar_list: List): RoutingOptionsDto { val alternateRoutesStrategy = pigeonVar_list[0] as AlternateRoutesStrategyDto? @@ -1791,9 +1838,19 @@ data class RoutingOptionsDto ( val avoidFerries = pigeonVar_list[5] as Boolean? val avoidHighways = pigeonVar_list[6] as Boolean? val locationTimeoutMs = pigeonVar_list[7] as Long? - return RoutingOptionsDto(alternateRoutesStrategy, routingStrategy, targetDistanceMeters, travelMode, avoidTolls, avoidFerries, avoidHighways, locationTimeoutMs) + return RoutingOptionsDto( + alternateRoutesStrategy, + routingStrategy, + targetDistanceMeters, + travelMode, + avoidTolls, + avoidFerries, + avoidHighways, + locationTimeoutMs, + ) } } + fun toList(): List { return listOf( alternateRoutesStrategy, @@ -1806,6 +1863,7 @@ data class RoutingOptionsDto ( locationTimeoutMs, ) } + override fun equals(other: Any?): Boolean { if (other !is RoutingOptionsDto) { return false @@ -1813,20 +1871,20 @@ data class RoutingOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class NavigationDisplayOptionsDto ( +data class NavigationDisplayOptionsDto( val showDestinationMarkers: Boolean? = null, /** Deprecated: This option now defaults to true. */ val showStopSigns: Boolean? = null, /** Deprecated: This option now defaults to true. */ - val showTrafficLights: Boolean? = null -) - { + val showTrafficLights: Boolean? = null, +) { companion object { fun fromList(pigeonVar_list: List): NavigationDisplayOptionsDto { val showDestinationMarkers = pigeonVar_list[0] as Boolean? @@ -1835,13 +1893,11 @@ data class NavigationDisplayOptionsDto ( return NavigationDisplayOptionsDto(showDestinationMarkers, showStopSigns, showTrafficLights) } } + fun toList(): List { - return listOf( - showDestinationMarkers, - showStopSigns, - showTrafficLights, - ) + return listOf(showDestinationMarkers, showStopSigns, showTrafficLights) } + override fun equals(other: Any?): Boolean { if (other !is NavigationDisplayOptionsDto) { return false @@ -1849,20 +1905,20 @@ data class NavigationDisplayOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class NavigationWaypointDto ( +data class NavigationWaypointDto( val title: String, val target: LatLngDto? = null, val placeID: String? = null, val preferSameSideOfRoad: Boolean? = null, - val preferredSegmentHeading: Long? = null -) - { + val preferredSegmentHeading: Long? = null, +) { companion object { fun fromList(pigeonVar_list: List): NavigationWaypointDto { val title = pigeonVar_list[0] as String @@ -1870,18 +1926,20 @@ data class NavigationWaypointDto ( val placeID = pigeonVar_list[2] as String? val preferSameSideOfRoad = pigeonVar_list[3] as Boolean? val preferredSegmentHeading = pigeonVar_list[4] as Long? - return NavigationWaypointDto(title, target, placeID, preferSameSideOfRoad, preferredSegmentHeading) + return NavigationWaypointDto( + title, + target, + placeID, + preferSameSideOfRoad, + preferredSegmentHeading, + ) } } + fun toList(): List { - return listOf( - title, - target, - placeID, - preferSameSideOfRoad, - preferredSegmentHeading, - ) + return listOf(title, target, placeID, preferSameSideOfRoad, preferredSegmentHeading) } + override fun equals(other: Any?): Boolean { if (other !is NavigationWaypointDto) { return false @@ -1889,17 +1947,17 @@ data class NavigationWaypointDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class ContinueToNextDestinationResponseDto ( +data class ContinueToNextDestinationResponseDto( val waypoint: NavigationWaypointDto? = null, - val routeStatus: RouteStatusDto? = null -) - { + val routeStatus: RouteStatusDto? = null, +) { companion object { fun fromList(pigeonVar_list: List): ContinueToNextDestinationResponseDto { val waypoint = pigeonVar_list[0] as NavigationWaypointDto? @@ -1907,12 +1965,11 @@ data class ContinueToNextDestinationResponseDto ( return ContinueToNextDestinationResponseDto(waypoint, routeStatus) } } + fun toList(): List { - return listOf( - waypoint, - routeStatus, - ) + return listOf(waypoint, routeStatus) } + override fun equals(other: Any?): Boolean { if (other !is ContinueToNextDestinationResponseDto) { return false @@ -1920,18 +1977,18 @@ data class ContinueToNextDestinationResponseDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class NavigationTimeAndDistanceDto ( +data class NavigationTimeAndDistanceDto( val time: Double, val distance: Double, - val delaySeverity: TrafficDelaySeverityDto -) - { + val delaySeverity: TrafficDelaySeverityDto, +) { companion object { fun fromList(pigeonVar_list: List): NavigationTimeAndDistanceDto { val time = pigeonVar_list[0] as Double @@ -1940,13 +1997,11 @@ data class NavigationTimeAndDistanceDto ( return NavigationTimeAndDistanceDto(time, distance, delaySeverity) } } + fun toList(): List { - return listOf( - time, - distance, - delaySeverity, - ) + return listOf(time, distance, delaySeverity) } + override fun equals(other: Any?): Boolean { if (other !is NavigationTimeAndDistanceDto) { return false @@ -1954,33 +2009,35 @@ data class NavigationTimeAndDistanceDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class NavigationAudioGuidanceSettingsDto ( +data class NavigationAudioGuidanceSettingsDto( val isBluetoothAudioEnabled: Boolean? = null, val isVibrationEnabled: Boolean? = null, - val guidanceType: AudioGuidanceTypeDto? = null -) - { + val guidanceType: AudioGuidanceTypeDto? = null, +) { companion object { fun fromList(pigeonVar_list: List): NavigationAudioGuidanceSettingsDto { val isBluetoothAudioEnabled = pigeonVar_list[0] as Boolean? val isVibrationEnabled = pigeonVar_list[1] as Boolean? val guidanceType = pigeonVar_list[2] as AudioGuidanceTypeDto? - return NavigationAudioGuidanceSettingsDto(isBluetoothAudioEnabled, isVibrationEnabled, guidanceType) + return NavigationAudioGuidanceSettingsDto( + isBluetoothAudioEnabled, + isVibrationEnabled, + guidanceType, + ) } } + fun toList(): List { - return listOf( - isBluetoothAudioEnabled, - isVibrationEnabled, - guidanceType, - ) + return listOf(isBluetoothAudioEnabled, isVibrationEnabled, guidanceType) } + override fun equals(other: Any?): Boolean { if (other !is NavigationAudioGuidanceSettingsDto) { return false @@ -1988,27 +2045,25 @@ data class NavigationAudioGuidanceSettingsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class SimulationOptionsDto ( - val speedMultiplier: Double -) - { +data class SimulationOptionsDto(val speedMultiplier: Double) { companion object { fun fromList(pigeonVar_list: List): SimulationOptionsDto { val speedMultiplier = pigeonVar_list[0] as Double return SimulationOptionsDto(speedMultiplier) } } + fun toList(): List { - return listOf( - speedMultiplier, - ) + return listOf(speedMultiplier) } + override fun equals(other: Any?): Boolean { if (other !is SimulationOptionsDto) { return false @@ -2016,17 +2071,14 @@ data class SimulationOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class LatLngDto ( - val latitude: Double, - val longitude: Double -) - { +data class LatLngDto(val latitude: Double, val longitude: Double) { companion object { fun fromList(pigeonVar_list: List): LatLngDto { val latitude = pigeonVar_list[0] as Double @@ -2034,12 +2086,11 @@ data class LatLngDto ( return LatLngDto(latitude, longitude) } } + fun toList(): List { - return listOf( - latitude, - longitude, - ) + return listOf(latitude, longitude) } + override fun equals(other: Any?): Boolean { if (other !is LatLngDto) { return false @@ -2047,17 +2098,14 @@ data class LatLngDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class LatLngBoundsDto ( - val southwest: LatLngDto, - val northeast: LatLngDto -) - { +data class LatLngBoundsDto(val southwest: LatLngDto, val northeast: LatLngDto) { companion object { fun fromList(pigeonVar_list: List): LatLngBoundsDto { val southwest = pigeonVar_list[0] as LatLngDto @@ -2065,12 +2113,11 @@ data class LatLngBoundsDto ( return LatLngBoundsDto(southwest, northeast) } } + fun toList(): List { - return listOf( - southwest, - northeast, - ) + return listOf(southwest, northeast) } + override fun equals(other: Any?): Boolean { if (other !is LatLngBoundsDto) { return false @@ -2078,17 +2125,17 @@ data class LatLngBoundsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class SpeedingUpdatedEventDto ( +data class SpeedingUpdatedEventDto( val percentageAboveLimit: Double, - val severity: SpeedAlertSeverityDto -) - { + val severity: SpeedAlertSeverityDto, +) { companion object { fun fromList(pigeonVar_list: List): SpeedingUpdatedEventDto { val percentageAboveLimit = pigeonVar_list[0] as Double @@ -2096,12 +2143,11 @@ data class SpeedingUpdatedEventDto ( return SpeedingUpdatedEventDto(percentageAboveLimit, severity) } } + fun toList(): List { - return listOf( - percentageAboveLimit, - severity, - ) + return listOf(percentageAboveLimit, severity) } + override fun equals(other: Any?): Boolean { if (other !is SpeedingUpdatedEventDto) { return false @@ -2109,17 +2155,17 @@ data class SpeedingUpdatedEventDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class GpsAvailabilityChangeEventDto ( +data class GpsAvailabilityChangeEventDto( val isGpsLost: Boolean, - val isGpsValidForNavigation: Boolean -) - { + val isGpsValidForNavigation: Boolean, +) { companion object { fun fromList(pigeonVar_list: List): GpsAvailabilityChangeEventDto { val isGpsLost = pigeonVar_list[0] as Boolean @@ -2127,12 +2173,11 @@ data class GpsAvailabilityChangeEventDto ( return GpsAvailabilityChangeEventDto(isGpsLost, isGpsValidForNavigation) } } + fun toList(): List { - return listOf( - isGpsLost, - isGpsValidForNavigation, - ) + return listOf(isGpsLost, isGpsValidForNavigation) } + override fun equals(other: Any?): Boolean { if (other !is GpsAvailabilityChangeEventDto) { return false @@ -2140,17 +2185,17 @@ data class GpsAvailabilityChangeEventDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class SpeedAlertOptionsThresholdPercentageDto ( +data class SpeedAlertOptionsThresholdPercentageDto( val percentage: Double, - val severity: SpeedAlertSeverityDto -) - { + val severity: SpeedAlertSeverityDto, +) { companion object { fun fromList(pigeonVar_list: List): SpeedAlertOptionsThresholdPercentageDto { val percentage = pigeonVar_list[0] as Double @@ -2158,12 +2203,11 @@ data class SpeedAlertOptionsThresholdPercentageDto ( return SpeedAlertOptionsThresholdPercentageDto(percentage, severity) } } + fun toList(): List { - return listOf( - percentage, - severity, - ) + return listOf(percentage, severity) } + override fun equals(other: Any?): Boolean { if (other !is SpeedAlertOptionsThresholdPercentageDto) { return false @@ -2171,26 +2215,31 @@ data class SpeedAlertOptionsThresholdPercentageDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class SpeedAlertOptionsDto ( +data class SpeedAlertOptionsDto( val severityUpgradeDurationSeconds: Double, val minorSpeedAlertThresholdPercentage: Double, - val majorSpeedAlertThresholdPercentage: Double -) - { + val majorSpeedAlertThresholdPercentage: Double, +) { companion object { fun fromList(pigeonVar_list: List): SpeedAlertOptionsDto { val severityUpgradeDurationSeconds = pigeonVar_list[0] as Double val minorSpeedAlertThresholdPercentage = pigeonVar_list[1] as Double val majorSpeedAlertThresholdPercentage = pigeonVar_list[2] as Double - return SpeedAlertOptionsDto(severityUpgradeDurationSeconds, minorSpeedAlertThresholdPercentage, majorSpeedAlertThresholdPercentage) + return SpeedAlertOptionsDto( + severityUpgradeDurationSeconds, + minorSpeedAlertThresholdPercentage, + majorSpeedAlertThresholdPercentage, + ) } } + fun toList(): List { return listOf( severityUpgradeDurationSeconds, @@ -2198,6 +2247,7 @@ data class SpeedAlertOptionsDto ( majorSpeedAlertThresholdPercentage, ) } + override fun equals(other: Any?): Boolean { if (other !is SpeedAlertOptionsDto) { return false @@ -2205,18 +2255,18 @@ data class SpeedAlertOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RouteSegmentTrafficDataRoadStretchRenderingDataDto ( +data class RouteSegmentTrafficDataRoadStretchRenderingDataDto( val style: RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto, val lengthMeters: Long, - val offsetMeters: Long -) - { + val offsetMeters: Long, +) { companion object { fun fromList(pigeonVar_list: List): RouteSegmentTrafficDataRoadStretchRenderingDataDto { val style = pigeonVar_list[0] as RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto @@ -2225,13 +2275,11 @@ data class RouteSegmentTrafficDataRoadStretchRenderingDataDto ( return RouteSegmentTrafficDataRoadStretchRenderingDataDto(style, lengthMeters, offsetMeters) } } + fun toList(): List { - return listOf( - style, - lengthMeters, - offsetMeters, - ) + return listOf(style, lengthMeters, offsetMeters) } + override fun equals(other: Any?): Boolean { if (other !is RouteSegmentTrafficDataRoadStretchRenderingDataDto) { return false @@ -2239,30 +2287,30 @@ data class RouteSegmentTrafficDataRoadStretchRenderingDataDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RouteSegmentTrafficDataDto ( +data class RouteSegmentTrafficDataDto( val status: RouteSegmentTrafficDataStatusDto, - val roadStretchRenderingDataList: List -) - { + val roadStretchRenderingDataList: List, +) { companion object { fun fromList(pigeonVar_list: List): RouteSegmentTrafficDataDto { val status = pigeonVar_list[0] as RouteSegmentTrafficDataStatusDto - val roadStretchRenderingDataList = pigeonVar_list[1] as List + val roadStretchRenderingDataList = + pigeonVar_list[1] as List return RouteSegmentTrafficDataDto(status, roadStretchRenderingDataList) } } + fun toList(): List { - return listOf( - status, - roadStretchRenderingDataList, - ) + return listOf(status, roadStretchRenderingDataList) } + override fun equals(other: Any?): Boolean { if (other !is RouteSegmentTrafficDataDto) { return false @@ -2270,19 +2318,19 @@ data class RouteSegmentTrafficDataDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RouteSegmentDto ( +data class RouteSegmentDto( val trafficData: RouteSegmentTrafficDataDto? = null, val destinationLatLng: LatLngDto, val latLngs: List? = null, - val destinationWaypoint: NavigationWaypointDto? = null -) - { + val destinationWaypoint: NavigationWaypointDto? = null, +) { companion object { fun fromList(pigeonVar_list: List): RouteSegmentDto { val trafficData = pigeonVar_list[0] as RouteSegmentTrafficDataDto? @@ -2292,14 +2340,11 @@ data class RouteSegmentDto ( return RouteSegmentDto(trafficData, destinationLatLng, latLngs, destinationWaypoint) } } + fun toList(): List { - return listOf( - trafficData, - destinationLatLng, - latLngs, - destinationWaypoint, - ) + return listOf(trafficData, destinationLatLng, latLngs, destinationWaypoint) } + override fun equals(other: Any?): Boolean { if (other !is RouteSegmentDto) { return false @@ -2307,23 +2352,24 @@ data class RouteSegmentDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** - * One of the possible directions from a lane at the end of a route step, and whether it is on the recommended route. + * One of the possible directions from a lane at the end of a route step, and whether it is on the + * recommended route. * * Generated class from Pigeon that represents data sent in messages. */ -data class LaneDirectionDto ( +data class LaneDirectionDto( /** Shape for this lane direction. */ val laneShape: LaneShapeDto, /** Whether this lane is recommended. */ - val isRecommended: Boolean -) - { + val isRecommended: Boolean, +) { companion object { fun fromList(pigeonVar_list: List): LaneDirectionDto { val laneShape = pigeonVar_list[0] as LaneShapeDto @@ -2331,12 +2377,11 @@ data class LaneDirectionDto ( return LaneDirectionDto(laneShape, isRecommended) } } + fun toList(): List { - return listOf( - laneShape, - isRecommended, - ) + return listOf(laneShape, isRecommended) } + override fun equals(other: Any?): Boolean { if (other !is LaneDirectionDto) { return false @@ -2344,7 +2389,8 @@ data class LaneDirectionDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } @@ -2354,22 +2400,24 @@ data class LaneDirectionDto ( * * Generated class from Pigeon that represents data sent in messages. */ -data class LaneDto ( - /** List of possible directions a driver can follow when using this lane at the end of the respective route step */ +data class LaneDto( + /** + * List of possible directions a driver can follow when using this lane at the end of the + * respective route step + */ val laneDirections: List -) - { +) { companion object { fun fromList(pigeonVar_list: List): LaneDto { val laneDirections = pigeonVar_list[0] as List return LaneDto(laneDirections) } } + fun toList(): List { - return listOf( - laneDirections, - ) + return listOf(laneDirections) } + override fun equals(other: Any?): Boolean { if (other !is LaneDto) { return false @@ -2377,7 +2425,8 @@ data class LaneDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } @@ -2387,7 +2436,7 @@ data class LaneDto ( * * Generated class from Pigeon that represents data sent in messages. */ -data class StepInfoDto ( +data class StepInfoDto( /** Distance in meters from the previous step to this step if available, otherwise null. */ val distanceFromPrevStepMeters: Long? = null, /** Time in seconds from the previous step to this step if available, otherwise null. */ @@ -2403,8 +2452,8 @@ data class StepInfoDto ( /** The simplified version of the road name if available, otherwise null. */ val simpleRoadName: String? = null, /** - * The counted number of the exit to take relative to the location where the - * roundabout was entered if available, otherwise null. + * The counted number of the exit to take relative to the location where the roundabout was + * entered if available, otherwise null. */ val roundaboutTurnNumber: Long? = null, /** The list of available lanes at the end of this route step if available, otherwise null. */ @@ -2414,17 +2463,17 @@ data class StepInfoDto ( /** The index of the step in the list of all steps in the route if available, otherwise null. */ val stepNumber: Long? = null, /** - * Image descriptor for the generated maneuver image for the current step if available, otherwise null. - * This image is generated only if step image generation option includes maneuver images. + * Image descriptor for the generated maneuver image for the current step if available, otherwise + * null. This image is generated only if step image generation option includes maneuver images. */ val maneuverImage: ImageDescriptorDto? = null, /** - * Image descriptor for the generated lane guidance image for the current step if available, otherwise null. - * This image is generated only if step image generation option includes lane images. + * Image descriptor for the generated lane guidance image for the current step if available, + * otherwise null. This image is generated only if step image generation option includes lane + * images. */ - val lanesImage: ImageDescriptorDto? = null -) - { + val lanesImage: ImageDescriptorDto? = null, +) { companion object { fun fromList(pigeonVar_list: List): StepInfoDto { val distanceFromPrevStepMeters = pigeonVar_list[0] as Long? @@ -2440,9 +2489,24 @@ data class StepInfoDto ( val stepNumber = pigeonVar_list[10] as Long? val maneuverImage = pigeonVar_list[11] as ImageDescriptorDto? val lanesImage = pigeonVar_list[12] as ImageDescriptorDto? - return StepInfoDto(distanceFromPrevStepMeters, timeFromPrevStepSeconds, drivingSide, exitNumber, fullInstructions, fullRoadName, simpleRoadName, roundaboutTurnNumber, lanes, maneuver, stepNumber, maneuverImage, lanesImage) + return StepInfoDto( + distanceFromPrevStepMeters, + timeFromPrevStepSeconds, + drivingSide, + exitNumber, + fullInstructions, + fullRoadName, + simpleRoadName, + roundaboutTurnNumber, + lanes, + maneuver, + stepNumber, + maneuverImage, + lanesImage, + ) } } + fun toList(): List { return listOf( distanceFromPrevStepMeters, @@ -2460,6 +2524,7 @@ data class StepInfoDto ( lanesImage, ) } + override fun equals(other: Any?): Boolean { if (other !is StepInfoDto) { return false @@ -2467,18 +2532,19 @@ data class StepInfoDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** - * Contains information about the state of navigation, the current nav step if - * available, and remaining steps if available. + * Contains information about the state of navigation, the current nav step if available, and + * remaining steps if available. * * Generated class from Pigeon that represents data sent in messages. */ -data class NavInfoDto ( +data class NavInfoDto( /** The current state of navigation. */ val navState: NavStateDto, /** Information about the upcoming maneuver step. */ @@ -2487,14 +2553,11 @@ data class NavInfoDto ( val remainingSteps: List, /** Whether the route has changed since the last sent message. */ val routeChanged: Boolean, - /** - * Estimated remaining distance in meters along the route to the - * current step. - */ + /** Estimated remaining distance in meters along the route to the current step. */ val distanceToCurrentStepMeters: Long? = null, /** - * The estimated remaining distance in meters to the final destination which - * is the last destination in a multi-destination trip. + * The estimated remaining distance in meters to the final destination which is the last + * destination in a multi-destination trip. */ val distanceToFinalDestinationMeters: Long? = null, /** @@ -2503,14 +2566,11 @@ data class NavInfoDto ( * Android only. */ val distanceToNextDestinationMeters: Long? = null, - /** - * The estimated remaining time in seconds along the route to the - * current step. - */ + /** The estimated remaining time in seconds along the route to the current step. */ val timeToCurrentStepSeconds: Long? = null, /** - * The estimated remaining time in seconds to the final destination which is - * the last destination in a multi-destination trip. + * The estimated remaining time in seconds to the final destination which is the last destination + * in a multi-destination trip. */ val timeToFinalDestinationSeconds: Long? = null, /** @@ -2518,9 +2578,8 @@ data class NavInfoDto ( * * Android only. */ - val timeToNextDestinationSeconds: Long? = null -) - { + val timeToNextDestinationSeconds: Long? = null, +) { companion object { fun fromList(pigeonVar_list: List): NavInfoDto { val navState = pigeonVar_list[0] as NavStateDto @@ -2533,9 +2592,21 @@ data class NavInfoDto ( val timeToCurrentStepSeconds = pigeonVar_list[7] as Long? val timeToFinalDestinationSeconds = pigeonVar_list[8] as Long? val timeToNextDestinationSeconds = pigeonVar_list[9] as Long? - return NavInfoDto(navState, currentStep, remainingSteps, routeChanged, distanceToCurrentStepMeters, distanceToFinalDestinationMeters, distanceToNextDestinationMeters, timeToCurrentStepSeconds, timeToFinalDestinationSeconds, timeToNextDestinationSeconds) + return NavInfoDto( + navState, + currentStep, + remainingSteps, + routeChanged, + distanceToCurrentStepMeters, + distanceToFinalDestinationMeters, + distanceToNextDestinationMeters, + timeToCurrentStepSeconds, + timeToFinalDestinationSeconds, + timeToNextDestinationSeconds, + ) } } + fun toList(): List { return listOf( navState, @@ -2550,6 +2621,7 @@ data class NavInfoDto ( timeToNextDestinationSeconds, ) } + override fun equals(other: Any?): Boolean { if (other !is NavInfoDto) { return false @@ -2557,7 +2629,8 @@ data class NavInfoDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } @@ -2565,12 +2638,12 @@ data class NavInfoDto ( /** * UI customization parameters for the Terms and Conditions dialog. * - * All color values are 32-bit ARGB integers (format: 0xAARRGGBB). - * All parameters are optional - if not provided, platform defaults will be used. + * All color values are 32-bit ARGB integers (format: 0xAARRGGBB). All parameters are optional - if + * not provided, platform defaults will be used. * * Generated class from Pigeon that represents data sent in messages. */ -data class TermsAndConditionsUIParamsDto ( +data class TermsAndConditionsUIParamsDto( /** Background color of the dialog box. */ val backgroundColor: Long? = null, /** Text color for the dialog title. */ @@ -2580,9 +2653,8 @@ data class TermsAndConditionsUIParamsDto ( /** Text color for the accept button. */ val acceptButtonTextColor: Long? = null, /** Text color for the cancel button. */ - val cancelButtonTextColor: Long? = null -) - { + val cancelButtonTextColor: Long? = null, +) { companion object { fun fromList(pigeonVar_list: List): TermsAndConditionsUIParamsDto { val backgroundColor = pigeonVar_list[0] as Long? @@ -2590,9 +2662,16 @@ data class TermsAndConditionsUIParamsDto ( val mainTextColor = pigeonVar_list[2] as Long? val acceptButtonTextColor = pigeonVar_list[3] as Long? val cancelButtonTextColor = pigeonVar_list[4] as Long? - return TermsAndConditionsUIParamsDto(backgroundColor, titleColor, mainTextColor, acceptButtonTextColor, cancelButtonTextColor) + return TermsAndConditionsUIParamsDto( + backgroundColor, + titleColor, + mainTextColor, + acceptButtonTextColor, + cancelButtonTextColor, + ) } } + fun toList(): List { return listOf( backgroundColor, @@ -2602,6 +2681,7 @@ data class TermsAndConditionsUIParamsDto ( cancelButtonTextColor, ) } + override fun equals(other: Any?): Boolean { if (other !is TermsAndConditionsUIParamsDto) { return false @@ -2609,7 +2689,8 @@ data class TermsAndConditionsUIParamsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } @@ -2621,12 +2702,11 @@ data class TermsAndConditionsUIParamsDto ( * * Generated class from Pigeon that represents data sent in messages. */ -data class NavigationNotificationOptionsDto ( +data class NavigationNotificationOptionsDto( val notificationId: Long? = null, val defaultMessage: String? = null, - val resumeAppOnTap: Boolean -) - { + val resumeAppOnTap: Boolean, +) { companion object { fun fromList(pigeonVar_list: List): NavigationNotificationOptionsDto { val notificationId = pigeonVar_list[0] as Long? @@ -2635,13 +2715,11 @@ data class NavigationNotificationOptionsDto ( return NavigationNotificationOptionsDto(notificationId, defaultMessage, resumeAppOnTap) } } + fun toList(): List { - return listOf( - notificationId, - defaultMessage, - resumeAppOnTap, - ) + return listOf(notificationId, defaultMessage, resumeAppOnTap) } + override fun equals(other: Any?): Boolean { if (other !is NavigationNotificationOptionsDto) { return false @@ -2649,7 +2727,8 @@ data class NavigationNotificationOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } @@ -2659,19 +2738,14 @@ data class NavigationNotificationOptionsDto ( * * Generated class from Pigeon that represents data sent in messages. */ -data class StepImageGenerationOptionsDto ( +data class StepImageGenerationOptionsDto( /** - * Whether to generate maneuver images for navigation steps. - * Defaults to false if not specified. + * Whether to generate maneuver images for navigation steps. Defaults to false if not specified. */ val generateManeuverImages: Boolean? = null, - /** - * Whether to generate lane images for navigation steps. - * Defaults to false if not specified. - */ - val generateLaneImages: Boolean? = null -) - { + /** Whether to generate lane images for navigation steps. Defaults to false if not specified. */ + val generateLaneImages: Boolean? = null, +) { companion object { fun fromList(pigeonVar_list: List): StepImageGenerationOptionsDto { val generateManeuverImages = pigeonVar_list[0] as Boolean? @@ -2679,12 +2753,11 @@ data class StepImageGenerationOptionsDto ( return StepImageGenerationOptionsDto(generateManeuverImages, generateLaneImages) } } + fun toList(): List { - return listOf( - generateManeuverImages, - generateLaneImages, - ) + return listOf(generateManeuverImages, generateLaneImages) } + override fun equals(other: Any?): Boolean { if (other !is StepImageGenerationOptionsDto) { return false @@ -2692,17 +2765,17 @@ data class StepImageGenerationOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } + private open class messagesPigeonCodec : StandardMessageCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { 129.toByte() -> { - return (readValue(buffer) as Long?)?.let { - MapViewTypeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { MapViewTypeDto.ofRaw(it.toInt()) } } 130.toByte() -> { return (readValue(buffer) as Long?)?.let { @@ -2710,89 +2783,55 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 131.toByte() -> { - return (readValue(buffer) as Long?)?.let { - MapTypeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { MapTypeDto.ofRaw(it.toInt()) } } 132.toByte() -> { - return (readValue(buffer) as Long?)?.let { - MapColorSchemeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { MapColorSchemeDto.ofRaw(it.toInt()) } } 133.toByte() -> { - return (readValue(buffer) as Long?)?.let { - NavigationForceNightModeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { NavigationForceNightModeDto.ofRaw(it.toInt()) } } 134.toByte() -> { - return (readValue(buffer) as Long?)?.let { - CameraPerspectiveDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { CameraPerspectiveDto.ofRaw(it.toInt()) } } 135.toByte() -> { - return (readValue(buffer) as Long?)?.let { - RegisteredImageTypeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { RegisteredImageTypeDto.ofRaw(it.toInt()) } } 136.toByte() -> { - return (readValue(buffer) as Long?)?.let { - MarkerEventTypeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { MarkerEventTypeDto.ofRaw(it.toInt()) } } 137.toByte() -> { - return (readValue(buffer) as Long?)?.let { - MarkerDragEventTypeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { MarkerDragEventTypeDto.ofRaw(it.toInt()) } } 138.toByte() -> { - return (readValue(buffer) as Long?)?.let { - StrokeJointTypeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { StrokeJointTypeDto.ofRaw(it.toInt()) } } 139.toByte() -> { - return (readValue(buffer) as Long?)?.let { - PatternTypeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { PatternTypeDto.ofRaw(it.toInt()) } } 140.toByte() -> { - return (readValue(buffer) as Long?)?.let { - CameraEventTypeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { CameraEventTypeDto.ofRaw(it.toInt()) } } 141.toByte() -> { - return (readValue(buffer) as Long?)?.let { - AlternateRoutesStrategyDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { AlternateRoutesStrategyDto.ofRaw(it.toInt()) } } 142.toByte() -> { - return (readValue(buffer) as Long?)?.let { - RoutingStrategyDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { RoutingStrategyDto.ofRaw(it.toInt()) } } 143.toByte() -> { - return (readValue(buffer) as Long?)?.let { - TravelModeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { TravelModeDto.ofRaw(it.toInt()) } } 144.toByte() -> { - return (readValue(buffer) as Long?)?.let { - RouteStatusDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { RouteStatusDto.ofRaw(it.toInt()) } } 145.toByte() -> { - return (readValue(buffer) as Long?)?.let { - TrafficDelaySeverityDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { TrafficDelaySeverityDto.ofRaw(it.toInt()) } } 146.toByte() -> { - return (readValue(buffer) as Long?)?.let { - AudioGuidanceTypeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { AudioGuidanceTypeDto.ofRaw(it.toInt()) } } 147.toByte() -> { - return (readValue(buffer) as Long?)?.let { - SpeedAlertSeverityDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { SpeedAlertSeverityDto.ofRaw(it.toInt()) } } 148.toByte() -> { return (readValue(buffer) as Long?)?.let { @@ -2805,149 +2844,91 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 150.toByte() -> { - return (readValue(buffer) as Long?)?.let { - ManeuverDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { ManeuverDto.ofRaw(it.toInt()) } } 151.toByte() -> { - return (readValue(buffer) as Long?)?.let { - DrivingSideDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { DrivingSideDto.ofRaw(it.toInt()) } } 152.toByte() -> { - return (readValue(buffer) as Long?)?.let { - NavStateDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { NavStateDto.ofRaw(it.toInt()) } } 153.toByte() -> { - return (readValue(buffer) as Long?)?.let { - LaneShapeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { LaneShapeDto.ofRaw(it.toInt()) } } 154.toByte() -> { - return (readValue(buffer) as Long?)?.let { - TaskRemovedBehaviorDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { TaskRemovedBehaviorDto.ofRaw(it.toInt()) } } 155.toByte() -> { - return (readValue(buffer) as? List)?.let { - AutoMapOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { AutoMapOptionsDto.fromList(it) } } 156.toByte() -> { - return (readValue(buffer) as? List)?.let { - MapOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { MapOptionsDto.fromList(it) } } 157.toByte() -> { - return (readValue(buffer) as? List)?.let { - NavigationViewOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { NavigationViewOptionsDto.fromList(it) } } 158.toByte() -> { - return (readValue(buffer) as? List)?.let { - ViewCreationOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { ViewCreationOptionsDto.fromList(it) } } 159.toByte() -> { - return (readValue(buffer) as? List)?.let { - CameraPositionDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { CameraPositionDto.fromList(it) } } 160.toByte() -> { - return (readValue(buffer) as? List)?.let { - MarkerDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { MarkerDto.fromList(it) } } 161.toByte() -> { - return (readValue(buffer) as? List)?.let { - MarkerOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { MarkerOptionsDto.fromList(it) } } 162.toByte() -> { - return (readValue(buffer) as? List)?.let { - ImageDescriptorDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { ImageDescriptorDto.fromList(it) } } 163.toByte() -> { - return (readValue(buffer) as? List)?.let { - InfoWindowDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { InfoWindowDto.fromList(it) } } 164.toByte() -> { - return (readValue(buffer) as? List)?.let { - MarkerAnchorDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { MarkerAnchorDto.fromList(it) } } 165.toByte() -> { - return (readValue(buffer) as? List)?.let { - PointOfInterestDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PointOfInterestDto.fromList(it) } } 166.toByte() -> { - return (readValue(buffer) as? List)?.let { - IndoorLevelDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { IndoorLevelDto.fromList(it) } } 167.toByte() -> { - return (readValue(buffer) as? List)?.let { - IndoorBuildingDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { IndoorBuildingDto.fromList(it) } } 168.toByte() -> { - return (readValue(buffer) as? List)?.let { - PolygonDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PolygonDto.fromList(it) } } 169.toByte() -> { - return (readValue(buffer) as? List)?.let { - PolygonOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PolygonOptionsDto.fromList(it) } } 170.toByte() -> { - return (readValue(buffer) as? List)?.let { - PolygonHoleDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PolygonHoleDto.fromList(it) } } 171.toByte() -> { - return (readValue(buffer) as? List)?.let { - StyleSpanStrokeStyleDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { StyleSpanStrokeStyleDto.fromList(it) } } 172.toByte() -> { - return (readValue(buffer) as? List)?.let { - StyleSpanDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { StyleSpanDto.fromList(it) } } 173.toByte() -> { - return (readValue(buffer) as? List)?.let { - PolylineDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PolylineDto.fromList(it) } } 174.toByte() -> { - return (readValue(buffer) as? List)?.let { - PatternItemDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PatternItemDto.fromList(it) } } 175.toByte() -> { - return (readValue(buffer) as? List)?.let { - PolylineOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PolylineOptionsDto.fromList(it) } } 176.toByte() -> { - return (readValue(buffer) as? List)?.let { - CircleDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { CircleDto.fromList(it) } } 177.toByte() -> { - return (readValue(buffer) as? List)?.let { - CircleOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { CircleOptionsDto.fromList(it) } } 178.toByte() -> { - return (readValue(buffer) as? List)?.let { - MapPaddingDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { MapPaddingDto.fromList(it) } } 179.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -2955,29 +2936,19 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 180.toByte() -> { - return (readValue(buffer) as? List)?.let { - RouteTokenOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { RouteTokenOptionsDto.fromList(it) } } 181.toByte() -> { - return (readValue(buffer) as? List)?.let { - DestinationsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { DestinationsDto.fromList(it) } } 182.toByte() -> { - return (readValue(buffer) as? List)?.let { - RoutingOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { RoutingOptionsDto.fromList(it) } } 183.toByte() -> { - return (readValue(buffer) as? List)?.let { - NavigationDisplayOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { NavigationDisplayOptionsDto.fromList(it) } } 184.toByte() -> { - return (readValue(buffer) as? List)?.let { - NavigationWaypointDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { NavigationWaypointDto.fromList(it) } } 185.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -2985,9 +2956,7 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 186.toByte() -> { - return (readValue(buffer) as? List)?.let { - NavigationTimeAndDistanceDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { NavigationTimeAndDistanceDto.fromList(it) } } 187.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -2995,24 +2964,16 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 188.toByte() -> { - return (readValue(buffer) as? List)?.let { - SimulationOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { SimulationOptionsDto.fromList(it) } } 189.toByte() -> { - return (readValue(buffer) as? List)?.let { - LatLngDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { LatLngDto.fromList(it) } } 190.toByte() -> { - return (readValue(buffer) as? List)?.let { - LatLngBoundsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { LatLngBoundsDto.fromList(it) } } 191.toByte() -> { - return (readValue(buffer) as? List)?.let { - SpeedingUpdatedEventDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { SpeedingUpdatedEventDto.fromList(it) } } 192.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -3025,9 +2986,7 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 194.toByte() -> { - return (readValue(buffer) as? List)?.let { - SpeedAlertOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { SpeedAlertOptionsDto.fromList(it) } } 195.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -3035,34 +2994,22 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 196.toByte() -> { - return (readValue(buffer) as? List)?.let { - RouteSegmentTrafficDataDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { RouteSegmentTrafficDataDto.fromList(it) } } 197.toByte() -> { - return (readValue(buffer) as? List)?.let { - RouteSegmentDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { RouteSegmentDto.fromList(it) } } 198.toByte() -> { - return (readValue(buffer) as? List)?.let { - LaneDirectionDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { LaneDirectionDto.fromList(it) } } 199.toByte() -> { - return (readValue(buffer) as? List)?.let { - LaneDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { LaneDto.fromList(it) } } 200.toByte() -> { - return (readValue(buffer) as? List)?.let { - StepInfoDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { StepInfoDto.fromList(it) } } 201.toByte() -> { - return (readValue(buffer) as? List)?.let { - NavInfoDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { NavInfoDto.fromList(it) } } 202.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -3082,7 +3029,8 @@ private open class messagesPigeonCodec : StandardMessageCodec() { else -> super.readValueOfType(type, buffer) } } - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { when (value) { is MapViewTypeDto -> { stream.write(129) @@ -3393,12 +3341,10 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } - /** - * Dummy interface to force generation of the platform view creation params. - * Pigeon only generates messages if the messages are used in API. - * [ViewCreationOptionsDto] is encoded and decoded directly to generate a - * PlatformView creation message. + * Dummy interface to force generation of the platform view creation params. Pigeon only generates + * messages if the messages are used in API. [ViewCreationOptionsDto] is encoded and decoded + * directly to generate a PlatformView creation message. * * This API should never be used directly. * @@ -3409,25 +3355,37 @@ interface ViewCreationApi { companion object { /** The codec used by ViewCreationApi. */ - val codec: MessageCodec by lazy { - messagesPigeonCodec() - } - /** Sets up an instance of `ViewCreationApi` to handle messages through the `binaryMessenger`. */ + val codec: MessageCodec by lazy { messagesPigeonCodec() } + + /** + * Sets up an instance of `ViewCreationApi` to handle messages through the `binaryMessenger`. + */ @JvmOverloads - fun setUp(binaryMessenger: BinaryMessenger, api: ViewCreationApi?, messageChannelSuffix: String = "") { - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp( + binaryMessenger: BinaryMessenger, + api: ViewCreationApi?, + messageChannelSuffix: String = "", + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ViewCreationApi.create$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.ViewCreationApi.create$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val msgArg = args[0] as ViewCreationOptionsDto - val wrapped: List = try { - api.create(msgArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.create(msgArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3437,137 +3395,300 @@ interface ViewCreationApi { } } } + /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface MapViewApi { fun awaitMapReady(viewId: Long, callback: (Result) -> Unit) + fun isMyLocationEnabled(viewId: Long): Boolean + fun setMyLocationEnabled(viewId: Long, enabled: Boolean) + fun getMyLocation(viewId: Long): LatLngDto? + fun getMapType(viewId: Long): MapTypeDto + fun setMapType(viewId: Long, mapType: MapTypeDto) + fun setMapStyle(viewId: Long, styleJson: String) + fun isNavigationTripProgressBarEnabled(viewId: Long): Boolean + fun setNavigationTripProgressBarEnabled(viewId: Long, enabled: Boolean) + fun isNavigationHeaderEnabled(viewId: Long): Boolean + fun setNavigationHeaderEnabled(viewId: Long, enabled: Boolean) + fun getNavigationHeaderStylingOptions(viewId: Long): NavigationHeaderStylingOptionsDto - fun setNavigationHeaderStylingOptions(viewId: Long, stylingOptions: NavigationHeaderStylingOptionsDto) + + fun setNavigationHeaderStylingOptions( + viewId: Long, + stylingOptions: NavigationHeaderStylingOptionsDto, + ) + fun isNavigationFooterEnabled(viewId: Long): Boolean + fun setNavigationFooterEnabled(viewId: Long, enabled: Boolean) + fun isRecenterButtonEnabled(viewId: Long): Boolean + fun setRecenterButtonEnabled(viewId: Long, enabled: Boolean) + fun isSpeedLimitIconEnabled(viewId: Long): Boolean + fun setSpeedLimitIconEnabled(viewId: Long, enabled: Boolean) + fun isSpeedometerEnabled(viewId: Long): Boolean + fun setSpeedometerEnabled(viewId: Long, enabled: Boolean) + fun isNavigationUIEnabled(viewId: Long): Boolean + fun setNavigationUIEnabled(viewId: Long, enabled: Boolean) + fun isMyLocationButtonEnabled(viewId: Long): Boolean + fun setMyLocationButtonEnabled(viewId: Long, enabled: Boolean) + fun isConsumeMyLocationButtonClickEventsEnabled(viewId: Long): Boolean + fun setConsumeMyLocationButtonClickEventsEnabled(viewId: Long, enabled: Boolean) + fun isZoomGesturesEnabled(viewId: Long): Boolean + fun setZoomGesturesEnabled(viewId: Long, enabled: Boolean) + fun isZoomControlsEnabled(viewId: Long): Boolean + fun setZoomControlsEnabled(viewId: Long, enabled: Boolean) + fun isCompassEnabled(viewId: Long): Boolean + fun setCompassEnabled(viewId: Long, enabled: Boolean) + fun isRotateGesturesEnabled(viewId: Long): Boolean + fun setRotateGesturesEnabled(viewId: Long, enabled: Boolean) + fun isScrollGesturesEnabled(viewId: Long): Boolean + fun setScrollGesturesEnabled(viewId: Long, enabled: Boolean) + fun isScrollGesturesEnabledDuringRotateOrZoom(viewId: Long): Boolean + fun setScrollGesturesDuringRotateOrZoomEnabled(viewId: Long, enabled: Boolean) + fun isTiltGesturesEnabled(viewId: Long): Boolean + fun setTiltGesturesEnabled(viewId: Long, enabled: Boolean) + fun isMapToolbarEnabled(viewId: Long): Boolean + fun setMapToolbarEnabled(viewId: Long, enabled: Boolean) + fun isTrafficEnabled(viewId: Long): Boolean + fun setTrafficEnabled(viewId: Long, enabled: Boolean) + fun isTrafficIncidentCardsEnabled(viewId: Long): Boolean + fun setTrafficIncidentCardsEnabled(viewId: Long, enabled: Boolean) + fun isTrafficPromptsEnabled(viewId: Long): Boolean + fun setTrafficPromptsEnabled(viewId: Long, enabled: Boolean) + fun isReportIncidentButtonEnabled(viewId: Long): Boolean + fun setReportIncidentButtonEnabled(viewId: Long, enabled: Boolean) + fun isIncidentReportingAvailable(viewId: Long): Boolean + fun showReportIncidentsPanel(viewId: Long) + fun isBuildingsEnabled(viewId: Long): Boolean + fun setBuildingsEnabled(viewId: Long, enabled: Boolean) + fun isIndoorEnabled(viewId: Long): Boolean + fun setIndoorEnabled(viewId: Long, enabled: Boolean) + fun isIndoorLevelPickerEnabled(viewId: Long): Boolean + fun setIndoorLevelPickerEnabled(viewId: Long, enabled: Boolean) + fun getFocusedIndoorBuilding(viewId: Long): IndoorBuildingDto? + /** - * Activates the indoor level at [levelIndex] within the currently focused - * indoor building. Throws if no building is focused or the index is out of - * range. + * Activates the indoor level at [levelIndex] within the currently focused indoor building. Throws + * if no building is focused or the index is out of range. */ fun activateIndoorLevel(viewId: Long, levelIndex: Long) + fun getCameraPosition(viewId: Long): CameraPositionDto + fun getVisibleRegion(viewId: Long): LatLngBoundsDto + fun followMyLocation(viewId: Long, perspective: CameraPerspectiveDto, zoomLevel: Double?) - fun animateCameraToCameraPosition(viewId: Long, cameraPosition: CameraPositionDto, duration: Long?, callback: (Result) -> Unit) - fun animateCameraToLatLng(viewId: Long, point: LatLngDto, duration: Long?, callback: (Result) -> Unit) - fun animateCameraToLatLngBounds(viewId: Long, bounds: LatLngBoundsDto, padding: Double, duration: Long?, callback: (Result) -> Unit) - fun animateCameraToLatLngZoom(viewId: Long, point: LatLngDto, zoom: Double, duration: Long?, callback: (Result) -> Unit) - fun animateCameraByScroll(viewId: Long, scrollByDx: Double, scrollByDy: Double, duration: Long?, callback: (Result) -> Unit) - fun animateCameraByZoom(viewId: Long, zoomBy: Double, focusDx: Double?, focusDy: Double?, duration: Long?, callback: (Result) -> Unit) - fun animateCameraToZoom(viewId: Long, zoom: Double, duration: Long?, callback: (Result) -> Unit) + + fun animateCameraToCameraPosition( + viewId: Long, + cameraPosition: CameraPositionDto, + duration: Long?, + callback: (Result) -> Unit, + ) + + fun animateCameraToLatLng( + viewId: Long, + point: LatLngDto, + duration: Long?, + callback: (Result) -> Unit, + ) + + fun animateCameraToLatLngBounds( + viewId: Long, + bounds: LatLngBoundsDto, + padding: Double, + duration: Long?, + callback: (Result) -> Unit, + ) + + fun animateCameraToLatLngZoom( + viewId: Long, + point: LatLngDto, + zoom: Double, + duration: Long?, + callback: (Result) -> Unit, + ) + + fun animateCameraByScroll( + viewId: Long, + scrollByDx: Double, + scrollByDy: Double, + duration: Long?, + callback: (Result) -> Unit, + ) + + fun animateCameraByZoom( + viewId: Long, + zoomBy: Double, + focusDx: Double?, + focusDy: Double?, + duration: Long?, + callback: (Result) -> Unit, + ) + + fun animateCameraToZoom( + viewId: Long, + zoom: Double, + duration: Long?, + callback: (Result) -> Unit, + ) + fun moveCameraToCameraPosition(viewId: Long, cameraPosition: CameraPositionDto) + fun moveCameraToLatLng(viewId: Long, point: LatLngDto) + fun moveCameraToLatLngBounds(viewId: Long, bounds: LatLngBoundsDto, padding: Double) + fun moveCameraToLatLngZoom(viewId: Long, point: LatLngDto, zoom: Double) + fun moveCameraByScroll(viewId: Long, scrollByDx: Double, scrollByDy: Double) + fun moveCameraByZoom(viewId: Long, zoomBy: Double, focusDx: Double?, focusDy: Double?) + fun moveCameraToZoom(viewId: Long, zoom: Double) + fun showRouteOverview(viewId: Long) + fun getMinZoomPreference(viewId: Long): Double + fun getMaxZoomPreference(viewId: Long): Double + fun resetMinMaxZoomPreference(viewId: Long) + fun setMinZoomPreference(viewId: Long, minZoomPreference: Double) + fun setMaxZoomPreference(viewId: Long, maxZoomPreference: Double) + fun getMarkers(viewId: Long): List + fun addMarkers(viewId: Long, markers: List): List + fun updateMarkers(viewId: Long, markers: List): List + fun removeMarkers(viewId: Long, markers: List) + fun clearMarkers(viewId: Long) + fun clear(viewId: Long) + fun getPolygons(viewId: Long): List + fun addPolygons(viewId: Long, polygons: List): List + fun updatePolygons(viewId: Long, polygons: List): List + fun removePolygons(viewId: Long, polygons: List) + fun clearPolygons(viewId: Long) + fun getPolylines(viewId: Long): List + fun addPolylines(viewId: Long, polylines: List): List + fun updatePolylines(viewId: Long, polylines: List): List + fun removePolylines(viewId: Long, polylines: List) + fun clearPolylines(viewId: Long) + fun getCircles(viewId: Long): List + fun addCircles(viewId: Long, circles: List): List + fun updateCircles(viewId: Long, circles: List): List + fun removeCircles(viewId: Long, circles: List) + fun clearCircles(viewId: Long) + fun enableOnCameraChangedEvents(viewId: Long) + fun setPadding(viewId: Long, padding: MapPaddingDto) + fun getPadding(viewId: Long): MapPaddingDto + fun getMapColorScheme(viewId: Long): MapColorSchemeDto + fun setMapColorScheme(viewId: Long, mapColorScheme: MapColorSchemeDto) + fun getForceNightMode(viewId: Long): NavigationForceNightModeDto + fun setForceNightMode(viewId: Long, forceNightMode: NavigationForceNightModeDto) companion object { /** The codec used by MapViewApi. */ - val codec: MessageCodec by lazy { - messagesPigeonCodec() - } + val codec: MessageCodec by lazy { messagesPigeonCodec() } + /** Sets up an instance of `MapViewApi` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp(binaryMessenger: BinaryMessenger, api: MapViewApi?, messageChannelSuffix: String = "") { - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp( + binaryMessenger: BinaryMessenger, + api: MapViewApi?, + messageChannelSuffix: String = "", + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3586,16 +3707,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isMyLocationEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isMyLocationEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3603,18 +3730,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setMyLocationEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMyLocationEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3622,16 +3755,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getMyLocation(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMyLocation(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3639,16 +3778,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getMapType(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMapType(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3656,18 +3801,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val mapTypeArg = args[1] as MapTypeDto - val wrapped: List = try { - api.setMapType(viewIdArg, mapTypeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMapType(viewIdArg, mapTypeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3675,18 +3826,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val styleJsonArg = args[1] as String - val wrapped: List = try { - api.setMapStyle(viewIdArg, styleJsonArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMapStyle(viewIdArg, styleJsonArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3694,16 +3851,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isNavigationTripProgressBarEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isNavigationTripProgressBarEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3711,18 +3874,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setNavigationTripProgressBarEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setNavigationTripProgressBarEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3730,16 +3899,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isNavigationHeaderEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isNavigationHeaderEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3747,18 +3922,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setNavigationHeaderEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setNavigationHeaderEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3766,16 +3947,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getNavigationHeaderStylingOptions(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getNavigationHeaderStylingOptions(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3783,18 +3970,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val stylingOptionsArg = args[1] as NavigationHeaderStylingOptionsDto - val wrapped: List = try { - api.setNavigationHeaderStylingOptions(viewIdArg, stylingOptionsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setNavigationHeaderStylingOptions(viewIdArg, stylingOptionsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3802,16 +3995,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isNavigationFooterEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isNavigationFooterEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3819,18 +4018,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setNavigationFooterEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setNavigationFooterEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3838,16 +4043,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isRecenterButtonEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isRecenterButtonEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3855,18 +4066,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setRecenterButtonEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setRecenterButtonEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3874,16 +4091,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isSpeedLimitIconEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isSpeedLimitIconEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3891,18 +4114,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setSpeedLimitIconEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setSpeedLimitIconEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3910,16 +4139,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isSpeedometerEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isSpeedometerEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3927,18 +4162,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setSpeedometerEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setSpeedometerEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3946,16 +4187,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isNavigationUIEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isNavigationUIEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3963,18 +4210,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setNavigationUIEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setNavigationUIEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3982,16 +4235,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isMyLocationButtonEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isMyLocationButtonEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3999,18 +4258,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setMyLocationButtonEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMyLocationButtonEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4018,16 +4283,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isConsumeMyLocationButtonClickEventsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isConsumeMyLocationButtonClickEventsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4035,18 +4306,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setConsumeMyLocationButtonClickEventsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setConsumeMyLocationButtonClickEventsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4054,16 +4331,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isZoomGesturesEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isZoomGesturesEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4071,18 +4354,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setZoomGesturesEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setZoomGesturesEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4090,16 +4379,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isZoomControlsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isZoomControlsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4107,18 +4402,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setZoomControlsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setZoomControlsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4126,16 +4427,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isCompassEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isCompassEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4143,18 +4450,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setCompassEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setCompassEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4162,16 +4475,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isRotateGesturesEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isRotateGesturesEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4179,18 +4498,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setRotateGesturesEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setRotateGesturesEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4198,16 +4523,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isScrollGesturesEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isScrollGesturesEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4215,18 +4546,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setScrollGesturesEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setScrollGesturesEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4234,16 +4571,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isScrollGesturesEnabledDuringRotateOrZoom(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isScrollGesturesEnabledDuringRotateOrZoom(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4251,18 +4594,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setScrollGesturesDuringRotateOrZoomEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setScrollGesturesDuringRotateOrZoomEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4270,16 +4619,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isTiltGesturesEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isTiltGesturesEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4287,18 +4642,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setTiltGesturesEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setTiltGesturesEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4306,16 +4667,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isMapToolbarEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isMapToolbarEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4323,18 +4690,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setMapToolbarEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMapToolbarEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4342,16 +4715,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isTrafficEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isTrafficEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4359,18 +4738,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setTrafficEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setTrafficEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4378,16 +4763,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isTrafficIncidentCardsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isTrafficIncidentCardsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4395,18 +4786,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setTrafficIncidentCardsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setTrafficIncidentCardsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4414,16 +4811,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isTrafficPromptsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isTrafficPromptsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4431,18 +4834,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setTrafficPromptsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setTrafficPromptsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4450,16 +4859,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isReportIncidentButtonEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isReportIncidentButtonEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4467,18 +4882,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setReportIncidentButtonEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setReportIncidentButtonEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4486,16 +4907,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isIncidentReportingAvailable(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isIncidentReportingAvailable(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4503,17 +4930,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - api.showReportIncidentsPanel(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.showReportIncidentsPanel(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4521,16 +4954,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isBuildingsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isBuildingsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4538,18 +4977,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setBuildingsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setBuildingsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4557,16 +5002,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isIndoorEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isIndoorEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4574,18 +5025,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setIndoorEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setIndoorEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4593,16 +5050,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isIndoorLevelPickerEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isIndoorLevelPickerEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4610,18 +5073,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setIndoorLevelPickerEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setIndoorLevelPickerEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4629,16 +5098,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getFocusedIndoorBuilding(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getFocusedIndoorBuilding(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4646,18 +5121,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val levelIndexArg = args[1] as Long - val wrapped: List = try { - api.activateIndoorLevel(viewIdArg, levelIndexArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.activateIndoorLevel(viewIdArg, levelIndexArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4665,16 +5146,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getCameraPosition(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getCameraPosition(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4682,16 +5169,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getVisibleRegion(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getVisibleRegion(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4699,19 +5192,25 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val perspectiveArg = args[1] as CameraPerspectiveDto val zoomLevelArg = args[2] as Double? - val wrapped: List = try { - api.followMyLocation(viewIdArg, perspectiveArg, zoomLevelArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.followMyLocation(viewIdArg, perspectiveArg, zoomLevelArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4719,14 +5218,20 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val cameraPositionArg = args[1] as CameraPositionDto val durationArg = args[2] as Long? - api.animateCameraToCameraPosition(viewIdArg, cameraPositionArg, durationArg) { result: Result -> + api.animateCameraToCameraPosition(viewIdArg, cameraPositionArg, durationArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -4741,7 +5246,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4763,7 +5273,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4771,7 +5286,8 @@ interface MapViewApi { val boundsArg = args[1] as LatLngBoundsDto val paddingArg = args[2] as Double val durationArg = args[3] as Long? - api.animateCameraToLatLngBounds(viewIdArg, boundsArg, paddingArg, durationArg) { result: Result -> + api.animateCameraToLatLngBounds(viewIdArg, boundsArg, paddingArg, durationArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -4786,7 +5302,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4794,7 +5315,8 @@ interface MapViewApi { val pointArg = args[1] as LatLngDto val zoomArg = args[2] as Double val durationArg = args[3] as Long? - api.animateCameraToLatLngZoom(viewIdArg, pointArg, zoomArg, durationArg) { result: Result -> + api.animateCameraToLatLngZoom(viewIdArg, pointArg, zoomArg, durationArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -4809,7 +5331,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4817,7 +5344,8 @@ interface MapViewApi { val scrollByDxArg = args[1] as Double val scrollByDyArg = args[2] as Double val durationArg = args[3] as Long? - api.animateCameraByScroll(viewIdArg, scrollByDxArg, scrollByDyArg, durationArg) { result: Result -> + api.animateCameraByScroll(viewIdArg, scrollByDxArg, scrollByDyArg, durationArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -4832,7 +5360,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4841,7 +5374,8 @@ interface MapViewApi { val focusDxArg = args[2] as Double? val focusDyArg = args[3] as Double? val durationArg = args[4] as Long? - api.animateCameraByZoom(viewIdArg, zoomByArg, focusDxArg, focusDyArg, durationArg) { result: Result -> + api.animateCameraByZoom(viewIdArg, zoomByArg, focusDxArg, focusDyArg, durationArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -4856,7 +5390,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4878,18 +5417,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val cameraPositionArg = args[1] as CameraPositionDto - val wrapped: List = try { - api.moveCameraToCameraPosition(viewIdArg, cameraPositionArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraToCameraPosition(viewIdArg, cameraPositionArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4897,18 +5442,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val pointArg = args[1] as LatLngDto - val wrapped: List = try { - api.moveCameraToLatLng(viewIdArg, pointArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraToLatLng(viewIdArg, pointArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4916,19 +5467,25 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val boundsArg = args[1] as LatLngBoundsDto val paddingArg = args[2] as Double - val wrapped: List = try { - api.moveCameraToLatLngBounds(viewIdArg, boundsArg, paddingArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraToLatLngBounds(viewIdArg, boundsArg, paddingArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4936,19 +5493,25 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val pointArg = args[1] as LatLngDto val zoomArg = args[2] as Double - val wrapped: List = try { - api.moveCameraToLatLngZoom(viewIdArg, pointArg, zoomArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraToLatLngZoom(viewIdArg, pointArg, zoomArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4956,19 +5519,25 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val scrollByDxArg = args[1] as Double val scrollByDyArg = args[2] as Double - val wrapped: List = try { - api.moveCameraByScroll(viewIdArg, scrollByDxArg, scrollByDyArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraByScroll(viewIdArg, scrollByDxArg, scrollByDyArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4976,7 +5545,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4984,12 +5558,13 @@ interface MapViewApi { val zoomByArg = args[1] as Double val focusDxArg = args[2] as Double? val focusDyArg = args[3] as Double? - val wrapped: List = try { - api.moveCameraByZoom(viewIdArg, zoomByArg, focusDxArg, focusDyArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraByZoom(viewIdArg, zoomByArg, focusDxArg, focusDyArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4997,18 +5572,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val zoomArg = args[1] as Double - val wrapped: List = try { - api.moveCameraToZoom(viewIdArg, zoomArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraToZoom(viewIdArg, zoomArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5016,17 +5597,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - api.showRouteOverview(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.showRouteOverview(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5034,16 +5621,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getMinZoomPreference(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMinZoomPreference(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5051,16 +5644,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getMaxZoomPreference(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMaxZoomPreference(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5068,17 +5667,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - api.resetMinMaxZoomPreference(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.resetMinMaxZoomPreference(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5086,18 +5691,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val minZoomPreferenceArg = args[1] as Double - val wrapped: List = try { - api.setMinZoomPreference(viewIdArg, minZoomPreferenceArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMinZoomPreference(viewIdArg, minZoomPreferenceArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5105,18 +5716,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val maxZoomPreferenceArg = args[1] as Double - val wrapped: List = try { - api.setMaxZoomPreference(viewIdArg, maxZoomPreferenceArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMaxZoomPreference(viewIdArg, maxZoomPreferenceArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5124,16 +5741,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getMarkers(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMarkers(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5141,17 +5764,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val markersArg = args[1] as List - val wrapped: List = try { - listOf(api.addMarkers(viewIdArg, markersArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.addMarkers(viewIdArg, markersArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5159,17 +5788,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val markersArg = args[1] as List - val wrapped: List = try { - listOf(api.updateMarkers(viewIdArg, markersArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.updateMarkers(viewIdArg, markersArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5177,18 +5812,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val markersArg = args[1] as List - val wrapped: List = try { - api.removeMarkers(viewIdArg, markersArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.removeMarkers(viewIdArg, markersArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5196,17 +5837,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - api.clearMarkers(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clearMarkers(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5214,17 +5861,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - api.clear(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clear(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5232,16 +5885,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getPolygons(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getPolygons(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5249,17 +5908,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polygonsArg = args[1] as List - val wrapped: List = try { - listOf(api.addPolygons(viewIdArg, polygonsArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.addPolygons(viewIdArg, polygonsArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5267,17 +5932,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polygonsArg = args[1] as List - val wrapped: List = try { - listOf(api.updatePolygons(viewIdArg, polygonsArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.updatePolygons(viewIdArg, polygonsArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5285,18 +5956,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polygonsArg = args[1] as List - val wrapped: List = try { - api.removePolygons(viewIdArg, polygonsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.removePolygons(viewIdArg, polygonsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5304,17 +5981,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - api.clearPolygons(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clearPolygons(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5322,16 +6005,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getPolylines(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getPolylines(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5339,17 +6028,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polylinesArg = args[1] as List - val wrapped: List = try { - listOf(api.addPolylines(viewIdArg, polylinesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.addPolylines(viewIdArg, polylinesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5357,17 +6052,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polylinesArg = args[1] as List - val wrapped: List = try { - listOf(api.updatePolylines(viewIdArg, polylinesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.updatePolylines(viewIdArg, polylinesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5375,18 +6076,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polylinesArg = args[1] as List - val wrapped: List = try { - api.removePolylines(viewIdArg, polylinesArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.removePolylines(viewIdArg, polylinesArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5394,17 +6101,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - api.clearPolylines(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clearPolylines(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5412,16 +6125,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getCircles(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getCircles(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5429,17 +6148,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val circlesArg = args[1] as List - val wrapped: List = try { - listOf(api.addCircles(viewIdArg, circlesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.addCircles(viewIdArg, circlesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5447,17 +6172,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val circlesArg = args[1] as List - val wrapped: List = try { - listOf(api.updateCircles(viewIdArg, circlesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.updateCircles(viewIdArg, circlesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5465,18 +6196,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val circlesArg = args[1] as List - val wrapped: List = try { - api.removeCircles(viewIdArg, circlesArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.removeCircles(viewIdArg, circlesArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5484,17 +6221,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - api.clearCircles(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clearCircles(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5502,17 +6245,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - api.enableOnCameraChangedEvents(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.enableOnCameraChangedEvents(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5520,18 +6269,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val paddingArg = args[1] as MapPaddingDto - val wrapped: List = try { - api.setPadding(viewIdArg, paddingArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setPadding(viewIdArg, paddingArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5539,16 +6294,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getPadding(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getPadding(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5556,16 +6317,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getMapColorScheme(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMapColorScheme(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5573,18 +6340,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val mapColorSchemeArg = args[1] as MapColorSchemeDto - val wrapped: List = try { - api.setMapColorScheme(viewIdArg, mapColorSchemeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMapColorScheme(viewIdArg, mapColorSchemeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5592,16 +6365,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getForceNightMode(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getForceNightMode(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5609,18 +6388,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val forceNightModeArg = args[1] as NavigationForceNightModeDto - val wrapped: List = try { - api.setForceNightMode(viewIdArg, forceNightModeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setForceNightMode(viewIdArg, forceNightModeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5630,25 +6415,47 @@ interface MapViewApi { } } } + /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface ImageRegistryApi { - fun registerBitmapImage(imageId: String, bytes: ByteArray, imagePixelRatio: Double, width: Double?, height: Double?): ImageDescriptorDto + fun registerBitmapImage( + imageId: String, + bytes: ByteArray, + imagePixelRatio: Double, + width: Double?, + height: Double?, + ): ImageDescriptorDto + fun unregisterImage(imageDescriptor: ImageDescriptorDto) + fun getRegisteredImages(): List + fun clearRegisteredImages(filter: RegisteredImageTypeDto?) + fun getRegisteredImageData(imageDescriptor: ImageDescriptorDto): ByteArray? companion object { /** The codec used by ImageRegistryApi. */ - val codec: MessageCodec by lazy { - messagesPigeonCodec() - } - /** Sets up an instance of `ImageRegistryApi` to handle messages through the `binaryMessenger`. */ + val codec: MessageCodec by lazy { messagesPigeonCodec() } + + /** + * Sets up an instance of `ImageRegistryApi` to handle messages through the `binaryMessenger`. + */ @JvmOverloads - fun setUp(binaryMessenger: BinaryMessenger, api: ImageRegistryApi?, messageChannelSuffix: String = "") { - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp( + binaryMessenger: BinaryMessenger, + api: ImageRegistryApi?, + messageChannelSuffix: String = "", + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5657,11 +6464,20 @@ interface ImageRegistryApi { val imagePixelRatioArg = args[2] as Double val widthArg = args[3] as Double? val heightArg = args[4] as Double? - val wrapped: List = try { - listOf(api.registerBitmapImage(imageIdArg, bytesArg, imagePixelRatioArg, widthArg, heightArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf( + api.registerBitmapImage( + imageIdArg, + bytesArg, + imagePixelRatioArg, + widthArg, + heightArg, + ) + ) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5669,17 +6485,23 @@ interface ImageRegistryApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val imageDescriptorArg = args[0] as ImageDescriptorDto - val wrapped: List = try { - api.unregisterImage(imageDescriptorArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.unregisterImage(imageDescriptorArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5687,14 +6509,20 @@ interface ImageRegistryApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getRegisteredImages()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getRegisteredImages()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5702,17 +6530,23 @@ interface ImageRegistryApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val filterArg = args[0] as RegisteredImageTypeDto? - val wrapped: List = try { - api.clearRegisteredImages(filterArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clearRegisteredImages(filterArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5720,16 +6554,22 @@ interface ImageRegistryApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val imageDescriptorArg = args[0] as ImageDescriptorDto - val wrapped: List = try { - listOf(api.getRegisteredImageData(imageDescriptorArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getRegisteredImageData(imageDescriptorArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5739,18 +6579,22 @@ interface ImageRegistryApi { } } } + /** Generated class from Pigeon that represents Flutter messages that can be called from Kotlin. */ -class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val messageChannelSuffix: String = "") { +class ViewEventApi( + private val binaryMessenger: BinaryMessenger, + private val messageChannelSuffix: String = "", +) { companion object { /** The codec used by ViewEventApi. */ - val codec: MessageCodec by lazy { - messagesPigeonCodec() - } + val codec: MessageCodec by lazy { messagesPigeonCodec() } } - fun onMapClickEvent(viewIdArg: Long, latLngArg: LatLngDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent$separatedMessageChannelSuffix" + + fun onMapClickEvent(viewIdArg: Long, latLngArg: LatLngDto, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, latLngArg)) { if (it is List<*>) { @@ -5764,10 +6608,12 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } } - fun onMapLongClickEvent(viewIdArg: Long, latLngArg: LatLngDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent$separatedMessageChannelSuffix" + + fun onMapLongClickEvent(viewIdArg: Long, latLngArg: LatLngDto, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, latLngArg)) { if (it is List<*>) { @@ -5781,10 +6627,12 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } } - fun onRecenterButtonClicked(viewIdArg: Long, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked$separatedMessageChannelSuffix" + + fun onRecenterButtonClicked(viewIdArg: Long, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg)) { if (it is List<*>) { @@ -5798,10 +6646,17 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } } - fun onMarkerEvent(viewIdArg: Long, markerIdArg: String, eventTypeArg: MarkerEventTypeDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent$separatedMessageChannelSuffix" + + fun onMarkerEvent( + viewIdArg: Long, + markerIdArg: String, + eventTypeArg: MarkerEventTypeDto, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, markerIdArg, eventTypeArg)) { if (it is List<*>) { @@ -5815,10 +6670,18 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } } - fun onMarkerDragEvent(viewIdArg: Long, markerIdArg: String, eventTypeArg: MarkerDragEventTypeDto, positionArg: LatLngDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent$separatedMessageChannelSuffix" + + fun onMarkerDragEvent( + viewIdArg: Long, + markerIdArg: String, + eventTypeArg: MarkerDragEventTypeDto, + positionArg: LatLngDto, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, markerIdArg, eventTypeArg, positionArg)) { if (it is List<*>) { @@ -5832,10 +6695,12 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } } - fun onPolygonClicked(viewIdArg: Long, polygonIdArg: String, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked$separatedMessageChannelSuffix" + + fun onPolygonClicked(viewIdArg: Long, polygonIdArg: String, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, polygonIdArg)) { if (it is List<*>) { @@ -5849,10 +6714,12 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } } - fun onPolylineClicked(viewIdArg: Long, polylineIdArg: String, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked$separatedMessageChannelSuffix" + + fun onPolylineClicked(viewIdArg: Long, polylineIdArg: String, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, polylineIdArg)) { if (it is List<*>) { @@ -5866,10 +6733,12 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } } - fun onCircleClicked(viewIdArg: Long, circleIdArg: String, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked$separatedMessageChannelSuffix" + + fun onCircleClicked(viewIdArg: Long, circleIdArg: String, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, circleIdArg)) { if (it is List<*>) { @@ -5883,10 +6752,16 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } } - fun onPoiClick(viewIdArg: Long, pointOfInterestArg: PointOfInterestDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick$separatedMessageChannelSuffix" + + fun onPoiClick( + viewIdArg: Long, + pointOfInterestArg: PointOfInterestDto, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, pointOfInterestArg)) { if (it is List<*>) { @@ -5900,10 +6775,16 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } } - fun onNavigationUIEnabledChanged(viewIdArg: Long, navigationUIEnabledArg: Boolean, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged$separatedMessageChannelSuffix" + + fun onNavigationUIEnabledChanged( + viewIdArg: Long, + navigationUIEnabledArg: Boolean, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, navigationUIEnabledArg)) { if (it is List<*>) { @@ -5917,10 +6798,16 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } } - fun onPromptVisibilityChanged(viewIdArg: Long, promptVisibleArg: Boolean, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged$separatedMessageChannelSuffix" + + fun onPromptVisibilityChanged( + viewIdArg: Long, + promptVisibleArg: Boolean, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, promptVisibleArg)) { if (it is List<*>) { @@ -5934,10 +6821,12 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } } - fun onMyLocationClicked(viewIdArg: Long, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked$separatedMessageChannelSuffix" + + fun onMyLocationClicked(viewIdArg: Long, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg)) { if (it is List<*>) { @@ -5951,10 +6840,12 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } } - fun onMyLocationButtonClicked(viewIdArg: Long, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked$separatedMessageChannelSuffix" + + fun onMyLocationButtonClicked(viewIdArg: Long, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg)) { if (it is List<*>) { @@ -5968,10 +6859,16 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } } - fun onIndoorFocusedBuildingChanged(viewIdArg: Long, buildingArg: IndoorBuildingDto?, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged$separatedMessageChannelSuffix" + + fun onIndoorFocusedBuildingChanged( + viewIdArg: Long, + buildingArg: IndoorBuildingDto?, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, buildingArg)) { if (it is List<*>) { @@ -5985,10 +6882,16 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } } - fun onIndoorActiveLevelChanged(viewIdArg: Long, buildingArg: IndoorBuildingDto?, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged$separatedMessageChannelSuffix" + + fun onIndoorActiveLevelChanged( + viewIdArg: Long, + buildingArg: IndoorBuildingDto?, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, buildingArg)) { if (it is List<*>) { @@ -6002,10 +6905,17 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } } - fun onCameraChanged(viewIdArg: Long, eventTypeArg: CameraEventTypeDto, positionArg: CameraPositionDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged$separatedMessageChannelSuffix" + + fun onCameraChanged( + viewIdArg: Long, + eventTypeArg: CameraEventTypeDto, + positionArg: CameraPositionDto, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, eventTypeArg, positionArg)) { if (it is List<*>) { @@ -6020,62 +6930,141 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } } + /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface NavigationSessionApi { - fun createNavigationSession(abnormalTerminationReportingEnabled: Boolean, behavior: TaskRemovedBehaviorDto, notificationOptions: NavigationNotificationOptionsDto?, callback: (Result) -> Unit) + fun createNavigationSession( + abnormalTerminationReportingEnabled: Boolean, + behavior: TaskRemovedBehaviorDto, + notificationOptions: NavigationNotificationOptionsDto?, + callback: (Result) -> Unit, + ) + fun isInitialized(): Boolean + fun cleanup(resetSession: Boolean) - fun showTermsAndConditionsDialog(title: String, companyName: String, shouldOnlyShowDriverAwarenessDisclaimer: Boolean, uiParams: TermsAndConditionsUIParamsDto?, callback: (Result) -> Unit) + + fun showTermsAndConditionsDialog( + title: String, + companyName: String, + shouldOnlyShowDriverAwarenessDisclaimer: Boolean, + uiParams: TermsAndConditionsUIParamsDto?, + callback: (Result) -> Unit, + ) + fun areTermsAccepted(): Boolean + fun resetTermsAccepted() + fun getNavSDKVersion(): String + fun isGuidanceRunning(): Boolean + fun startGuidance() + fun stopGuidance() + fun setDestinations(destinations: DestinationsDto, callback: (Result) -> Unit) + fun clearDestinations() + fun continueToNextDestination(callback: (Result) -> Unit) + fun getCurrentTimeAndDistance(): NavigationTimeAndDistanceDto + fun setAudioGuidance(settings: NavigationAudioGuidanceSettingsDto) + fun setSpeedAlertOptions(options: SpeedAlertOptionsDto) + fun getRouteSegments(): List + fun getTraveledRoute(): List + fun getCurrentRouteSegment(): RouteSegmentDto? + fun setUserLocation(location: LatLngDto) + fun removeUserLocation() + fun simulateLocationsAlongExistingRoute() + fun simulateLocationsAlongExistingRouteWithOptions(options: SimulationOptionsDto) - fun simulateLocationsAlongNewRoute(waypoints: List, callback: (Result) -> Unit) - fun simulateLocationsAlongNewRouteWithRoutingOptions(waypoints: List, routingOptions: RoutingOptionsDto, callback: (Result) -> Unit) - fun simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(waypoints: List, routingOptions: RoutingOptionsDto, simulationOptions: SimulationOptionsDto, callback: (Result) -> Unit) + + fun simulateLocationsAlongNewRoute( + waypoints: List, + callback: (Result) -> Unit, + ) + + fun simulateLocationsAlongNewRouteWithRoutingOptions( + waypoints: List, + routingOptions: RoutingOptionsDto, + callback: (Result) -> Unit, + ) + + fun simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( + waypoints: List, + routingOptions: RoutingOptionsDto, + simulationOptions: SimulationOptionsDto, + callback: (Result) -> Unit, + ) + fun pauseSimulation() + fun resumeSimulation() + /** iOS-only method. */ fun allowBackgroundLocationUpdates(allow: Boolean) + fun enableRoadSnappedLocationUpdates() + fun disableRoadSnappedLocationUpdates() - fun enableTurnByTurnNavigationEvents(numNextStepsToPreview: Long?, options: StepImageGenerationOptionsDto?) + + fun enableTurnByTurnNavigationEvents( + numNextStepsToPreview: Long?, + options: StepImageGenerationOptionsDto?, + ) + fun disableTurnByTurnNavigationEvents() - fun registerRemainingTimeOrDistanceChangedListener(remainingTimeThresholdSeconds: Long, remainingDistanceThresholdMeters: Long) + + fun registerRemainingTimeOrDistanceChangedListener( + remainingTimeThresholdSeconds: Long, + remainingDistanceThresholdMeters: Long, + ) companion object { /** The codec used by NavigationSessionApi. */ - val codec: MessageCodec by lazy { - messagesPigeonCodec() - } - /** Sets up an instance of `NavigationSessionApi` to handle messages through the `binaryMessenger`. */ + val codec: MessageCodec by lazy { messagesPigeonCodec() } + + /** + * Sets up an instance of `NavigationSessionApi` to handle messages through the + * `binaryMessenger`. + */ @JvmOverloads - fun setUp(binaryMessenger: BinaryMessenger, api: NavigationSessionApi?, messageChannelSuffix: String = "") { - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp( + binaryMessenger: BinaryMessenger, + api: NavigationSessionApi?, + messageChannelSuffix: String = "", + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val abnormalTerminationReportingEnabledArg = args[0] as Boolean val behaviorArg = args[1] as TaskRemovedBehaviorDto val notificationOptionsArg = args[2] as NavigationNotificationOptionsDto? - api.createNavigationSession(abnormalTerminationReportingEnabledArg, behaviorArg, notificationOptionsArg) { result: Result -> + api.createNavigationSession( + abnormalTerminationReportingEnabledArg, + behaviorArg, + notificationOptionsArg, + ) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -6089,14 +7078,20 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isInitialized()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isInitialized()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6104,17 +7099,23 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val resetSessionArg = args[0] as Boolean - val wrapped: List = try { - api.cleanup(resetSessionArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.cleanup(resetSessionArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6122,7 +7123,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6130,7 +7136,12 @@ interface NavigationSessionApi { val companyNameArg = args[1] as String val shouldOnlyShowDriverAwarenessDisclaimerArg = args[2] as Boolean val uiParamsArg = args[3] as TermsAndConditionsUIParamsDto? - api.showTermsAndConditionsDialog(titleArg, companyNameArg, shouldOnlyShowDriverAwarenessDisclaimerArg, uiParamsArg) { result: Result -> + api.showTermsAndConditionsDialog( + titleArg, + companyNameArg, + shouldOnlyShowDriverAwarenessDisclaimerArg, + uiParamsArg, + ) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -6145,14 +7156,20 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.areTermsAccepted()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.areTermsAccepted()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6160,15 +7177,21 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.resetTermsAccepted() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.resetTermsAccepted() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6176,14 +7199,20 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getNavSDKVersion()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getNavSDKVersion()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6191,14 +7220,20 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isGuidanceRunning()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isGuidanceRunning()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6206,15 +7241,21 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.startGuidance() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.startGuidance() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6222,15 +7263,21 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.stopGuidance() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.stopGuidance() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6238,7 +7285,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6258,15 +7310,21 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.clearDestinations() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clearDestinations() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6274,10 +7332,15 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - api.continueToNextDestination{ result: Result -> + api.continueToNextDestination { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -6292,14 +7355,20 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getCurrentTimeAndDistance()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getCurrentTimeAndDistance()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6307,17 +7376,23 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val settingsArg = args[0] as NavigationAudioGuidanceSettingsDto - val wrapped: List = try { - api.setAudioGuidance(settingsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setAudioGuidance(settingsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6325,17 +7400,23 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val optionsArg = args[0] as SpeedAlertOptionsDto - val wrapped: List = try { - api.setSpeedAlertOptions(optionsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setSpeedAlertOptions(optionsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6343,14 +7424,20 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getRouteSegments()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getRouteSegments()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6358,14 +7445,20 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getTraveledRoute()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getTraveledRoute()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6373,14 +7466,20 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getCurrentRouteSegment()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getCurrentRouteSegment()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6388,17 +7487,23 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val locationArg = args[0] as LatLngDto - val wrapped: List = try { - api.setUserLocation(locationArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setUserLocation(locationArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6406,15 +7511,21 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.removeUserLocation() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.removeUserLocation() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6422,15 +7533,21 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.simulateLocationsAlongExistingRoute() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.simulateLocationsAlongExistingRoute() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6438,17 +7555,23 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val optionsArg = args[0] as SimulationOptionsDto - val wrapped: List = try { - api.simulateLocationsAlongExistingRouteWithOptions(optionsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.simulateLocationsAlongExistingRouteWithOptions(optionsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6456,7 +7579,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6476,13 +7604,19 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val waypointsArg = args[0] as List val routingOptionsArg = args[1] as RoutingOptionsDto - api.simulateLocationsAlongNewRouteWithRoutingOptions(waypointsArg, routingOptionsArg) { result: Result -> + api.simulateLocationsAlongNewRouteWithRoutingOptions(waypointsArg, routingOptionsArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -6497,14 +7631,23 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val waypointsArg = args[0] as List val routingOptionsArg = args[1] as RoutingOptionsDto val simulationOptionsArg = args[2] as SimulationOptionsDto - api.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(waypointsArg, routingOptionsArg, simulationOptionsArg) { result: Result -> + api.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( + waypointsArg, + routingOptionsArg, + simulationOptionsArg, + ) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -6519,15 +7662,21 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.pauseSimulation() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.pauseSimulation() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6535,15 +7684,21 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.resumeSimulation() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.resumeSimulation() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6551,17 +7706,23 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val allowArg = args[0] as Boolean - val wrapped: List = try { - api.allowBackgroundLocationUpdates(allowArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.allowBackgroundLocationUpdates(allowArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6569,15 +7730,21 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.enableRoadSnappedLocationUpdates() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.enableRoadSnappedLocationUpdates() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6585,15 +7752,21 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.disableRoadSnappedLocationUpdates() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.disableRoadSnappedLocationUpdates() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6601,18 +7774,24 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val numNextStepsToPreviewArg = args[0] as Long? val optionsArg = args[1] as StepImageGenerationOptionsDto? - val wrapped: List = try { - api.enableTurnByTurnNavigationEvents(numNextStepsToPreviewArg, optionsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.enableTurnByTurnNavigationEvents(numNextStepsToPreviewArg, optionsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6620,15 +7799,21 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.disableTurnByTurnNavigationEvents() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.disableTurnByTurnNavigationEvents() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6636,18 +7821,27 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val remainingTimeThresholdSecondsArg = args[0] as Long val remainingDistanceThresholdMetersArg = args[1] as Long - val wrapped: List = try { - api.registerRemainingTimeOrDistanceChangedListener(remainingTimeThresholdSecondsArg, remainingDistanceThresholdMetersArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.registerRemainingTimeOrDistanceChangedListener( + remainingTimeThresholdSecondsArg, + remainingDistanceThresholdMetersArg, + ) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6657,18 +7851,22 @@ interface NavigationSessionApi { } } } + /** Generated class from Pigeon that represents Flutter messages that can be called from Kotlin. */ -class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, private val messageChannelSuffix: String = "") { +class NavigationSessionEventApi( + private val binaryMessenger: BinaryMessenger, + private val messageChannelSuffix: String = "", +) { companion object { /** The codec used by NavigationSessionEventApi. */ - val codec: MessageCodec by lazy { - messagesPigeonCodec() - } + val codec: MessageCodec by lazy { messagesPigeonCodec() } } - fun onSpeedingUpdated(msgArg: SpeedingUpdatedEventDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated$separatedMessageChannelSuffix" + + fun onSpeedingUpdated(msgArg: SpeedingUpdatedEventDto, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(msgArg)) { if (it is List<*>) { @@ -6682,10 +7880,12 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } } - fun onRoadSnappedLocationUpdated(locationArg: LatLngDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated$separatedMessageChannelSuffix" + + fun onRoadSnappedLocationUpdated(locationArg: LatLngDto, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(locationArg)) { if (it is List<*>) { @@ -6699,10 +7899,12 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } } - fun onRoadSnappedRawLocationUpdated(locationArg: LatLngDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated$separatedMessageChannelSuffix" + + fun onRoadSnappedRawLocationUpdated(locationArg: LatLngDto, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(locationArg)) { if (it is List<*>) { @@ -6716,10 +7918,12 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } } - fun onArrival(waypointArg: NavigationWaypointDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival$separatedMessageChannelSuffix" + + fun onArrival(waypointArg: NavigationWaypointDto, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(waypointArg)) { if (it is List<*>) { @@ -6733,10 +7937,12 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } } - fun onRouteChanged(callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged$separatedMessageChannelSuffix" + + fun onRouteChanged(callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -6750,10 +7956,17 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } } - fun onRemainingTimeOrDistanceChanged(remainingTimeArg: Double, remainingDistanceArg: Double, delaySeverityArg: TrafficDelaySeverityDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged$separatedMessageChannelSuffix" + + fun onRemainingTimeOrDistanceChanged( + remainingTimeArg: Double, + remainingDistanceArg: Double, + delaySeverityArg: TrafficDelaySeverityDto, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(remainingTimeArg, remainingDistanceArg, delaySeverityArg)) { if (it is List<*>) { @@ -6767,11 +7980,13 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } } + /** Android-only event. */ - fun onTrafficUpdated(callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated$separatedMessageChannelSuffix" + fun onTrafficUpdated(callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -6785,11 +8000,13 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } } + /** Android-only event. */ - fun onRerouting(callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting$separatedMessageChannelSuffix" + fun onRerouting(callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -6803,11 +8020,13 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } } + /** Android-only event. */ - fun onGpsAvailabilityUpdate(availableArg: Boolean, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate$separatedMessageChannelSuffix" + fun onGpsAvailabilityUpdate(availableArg: Boolean, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(availableArg)) { if (it is List<*>) { @@ -6821,11 +8040,16 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } } + /** Android-only event. */ - fun onGpsAvailabilityChange(eventArg: GpsAvailabilityChangeEventDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange$separatedMessageChannelSuffix" + fun onGpsAvailabilityChange( + eventArg: GpsAvailabilityChangeEventDto, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(eventArg)) { if (it is List<*>) { @@ -6839,11 +8063,13 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } } + /** Turn-by-Turn navigation events. */ - fun onNavInfo(navInfoArg: NavInfoDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo$separatedMessageChannelSuffix" + fun onNavInfo(navInfoArg: NavInfoDto, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(navInfoArg)) { if (it is List<*>) { @@ -6857,14 +8083,13 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } } - /** - * Navigation session event. Called when a new navigation - * session starts with active guidance. - */ - fun onNewNavigationSession(callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNewNavigationSession$separatedMessageChannelSuffix" + + /** Navigation session event. Called when a new navigation session starts with active guidance. */ + fun onNewNavigationSession(callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNewNavigationSession$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -6879,133 +8104,265 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } } + /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface AutoMapViewApi { /** - * Sets the map options to be used for Android Auto and CarPlay views. - * Should be called before the Auto/CarPlay screen is created. - * This allows customization of mapId and basic map settings. + * Sets the map options to be used for Android Auto and CarPlay views. Should be called before the + * Auto/CarPlay screen is created. This allows customization of mapId and basic map settings. */ fun setAutoMapOptions(mapOptions: AutoMapOptionsDto) + fun isMyLocationEnabled(): Boolean + fun setMyLocationEnabled(enabled: Boolean) + fun getMyLocation(): LatLngDto? + fun getMapType(): MapTypeDto + fun setMapType(mapType: MapTypeDto) + fun setMapStyle(styleJson: String) + fun getCameraPosition(): CameraPositionDto + fun getVisibleRegion(): LatLngBoundsDto + fun followMyLocation(perspective: CameraPerspectiveDto, zoomLevel: Double?) - fun animateCameraToCameraPosition(cameraPosition: CameraPositionDto, duration: Long?, callback: (Result) -> Unit) + + fun animateCameraToCameraPosition( + cameraPosition: CameraPositionDto, + duration: Long?, + callback: (Result) -> Unit, + ) + fun animateCameraToLatLng(point: LatLngDto, duration: Long?, callback: (Result) -> Unit) - fun animateCameraToLatLngBounds(bounds: LatLngBoundsDto, padding: Double, duration: Long?, callback: (Result) -> Unit) - fun animateCameraToLatLngZoom(point: LatLngDto, zoom: Double, duration: Long?, callback: (Result) -> Unit) - fun animateCameraByScroll(scrollByDx: Double, scrollByDy: Double, duration: Long?, callback: (Result) -> Unit) - fun animateCameraByZoom(zoomBy: Double, focusDx: Double?, focusDy: Double?, duration: Long?, callback: (Result) -> Unit) + + fun animateCameraToLatLngBounds( + bounds: LatLngBoundsDto, + padding: Double, + duration: Long?, + callback: (Result) -> Unit, + ) + + fun animateCameraToLatLngZoom( + point: LatLngDto, + zoom: Double, + duration: Long?, + callback: (Result) -> Unit, + ) + + fun animateCameraByScroll( + scrollByDx: Double, + scrollByDy: Double, + duration: Long?, + callback: (Result) -> Unit, + ) + + fun animateCameraByZoom( + zoomBy: Double, + focusDx: Double?, + focusDy: Double?, + duration: Long?, + callback: (Result) -> Unit, + ) + fun animateCameraToZoom(zoom: Double, duration: Long?, callback: (Result) -> Unit) + fun moveCameraToCameraPosition(cameraPosition: CameraPositionDto) + fun moveCameraToLatLng(point: LatLngDto) + fun moveCameraToLatLngBounds(bounds: LatLngBoundsDto, padding: Double) + fun moveCameraToLatLngZoom(point: LatLngDto, zoom: Double) + fun moveCameraByScroll(scrollByDx: Double, scrollByDy: Double) + fun moveCameraByZoom(zoomBy: Double, focusDx: Double?, focusDy: Double?) + fun moveCameraToZoom(zoom: Double) + fun getMinZoomPreference(): Double + fun getMaxZoomPreference(): Double + fun resetMinMaxZoomPreference() + fun setMinZoomPreference(minZoomPreference: Double) + fun setMaxZoomPreference(maxZoomPreference: Double) + fun setMyLocationButtonEnabled(enabled: Boolean) + fun setConsumeMyLocationButtonClickEventsEnabled(enabled: Boolean) + fun setZoomGesturesEnabled(enabled: Boolean) + fun setZoomControlsEnabled(enabled: Boolean) + fun setCompassEnabled(enabled: Boolean) + fun setRotateGesturesEnabled(enabled: Boolean) + fun setScrollGesturesEnabled(enabled: Boolean) + fun setScrollGesturesDuringRotateOrZoomEnabled(enabled: Boolean) + fun setTiltGesturesEnabled(enabled: Boolean) + fun setMapToolbarEnabled(enabled: Boolean) + fun setTrafficEnabled(enabled: Boolean) + fun setTrafficPromptsEnabled(enabled: Boolean) + fun setTrafficIncidentCardsEnabled(enabled: Boolean) + fun setNavigationTripProgressBarEnabled(enabled: Boolean) + fun setSpeedLimitIconEnabled(enabled: Boolean) + fun setSpeedometerEnabled(enabled: Boolean) + fun setNavigationUIEnabled(enabled: Boolean) + fun isMyLocationButtonEnabled(): Boolean + fun isConsumeMyLocationButtonClickEventsEnabled(): Boolean + fun isZoomGesturesEnabled(): Boolean + fun isZoomControlsEnabled(): Boolean + fun isCompassEnabled(): Boolean + fun isRotateGesturesEnabled(): Boolean + fun isScrollGesturesEnabled(): Boolean + fun isScrollGesturesEnabledDuringRotateOrZoom(): Boolean + fun isTiltGesturesEnabled(): Boolean + fun isMapToolbarEnabled(): Boolean + fun isTrafficEnabled(): Boolean + fun isTrafficPromptsEnabled(): Boolean + fun isTrafficIncidentCardsEnabled(): Boolean + fun isNavigationTripProgressBarEnabled(): Boolean + fun isSpeedLimitIconEnabled(): Boolean + fun isSpeedometerEnabled(): Boolean + fun isNavigationUIEnabled(): Boolean + fun isIndoorEnabled(): Boolean + fun setIndoorEnabled(enabled: Boolean) + fun getFocusedIndoorBuilding(): IndoorBuildingDto? + fun activateIndoorLevel(levelIndex: Long) + fun showRouteOverview() + fun getMarkers(): List + fun addMarkers(markers: List): List + fun updateMarkers(markers: List): List + fun removeMarkers(markers: List) + fun clearMarkers() + fun clear() + fun getPolygons(): List + fun addPolygons(polygons: List): List + fun updatePolygons(polygons: List): List + fun removePolygons(polygons: List) + fun clearPolygons() + fun getPolylines(): List + fun addPolylines(polylines: List): List + fun updatePolylines(polylines: List): List + fun removePolylines(polylines: List) + fun clearPolylines() + fun getCircles(): List + fun addCircles(circles: List): List + fun updateCircles(circles: List): List + fun removeCircles(circles: List) + fun clearCircles() + fun enableOnCameraChangedEvents() + fun isAutoScreenAvailable(): Boolean + fun setPadding(padding: MapPaddingDto) + fun getPadding(): MapPaddingDto + fun getMapColorScheme(): MapColorSchemeDto + fun setMapColorScheme(mapColorScheme: MapColorSchemeDto) + fun getForceNightMode(): NavigationForceNightModeDto + fun setForceNightMode(forceNightMode: NavigationForceNightModeDto) + fun sendCustomNavigationAutoEvent(event: String, data: Any) companion object { /** The codec used by AutoMapViewApi. */ - val codec: MessageCodec by lazy { - messagesPigeonCodec() - } + val codec: MessageCodec by lazy { messagesPigeonCodec() } + /** Sets up an instance of `AutoMapViewApi` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp(binaryMessenger: BinaryMessenger, api: AutoMapViewApi?, messageChannelSuffix: String = "") { - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp( + binaryMessenger: BinaryMessenger, + api: AutoMapViewApi?, + messageChannelSuffix: String = "", + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val mapOptionsArg = args[0] as AutoMapOptionsDto - val wrapped: List = try { - api.setAutoMapOptions(mapOptionsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setAutoMapOptions(mapOptionsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7013,14 +8370,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isMyLocationEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isMyLocationEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7028,17 +8391,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setMyLocationEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMyLocationEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7046,14 +8415,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getMyLocation()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMyLocation()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7061,14 +8436,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getMapType()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMapType()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7076,17 +8457,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val mapTypeArg = args[0] as MapTypeDto - val wrapped: List = try { - api.setMapType(mapTypeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMapType(mapTypeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7094,17 +8481,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val styleJsonArg = args[0] as String - val wrapped: List = try { - api.setMapStyle(styleJsonArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMapStyle(styleJsonArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7112,14 +8505,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getCameraPosition()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getCameraPosition()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7127,14 +8526,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getVisibleRegion()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getVisibleRegion()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7142,18 +8547,24 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val perspectiveArg = args[0] as CameraPerspectiveDto val zoomLevelArg = args[1] as Double? - val wrapped: List = try { - api.followMyLocation(perspectiveArg, zoomLevelArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.followMyLocation(perspectiveArg, zoomLevelArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7161,13 +8572,19 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val cameraPositionArg = args[0] as CameraPositionDto val durationArg = args[1] as Long? - api.animateCameraToCameraPosition(cameraPositionArg, durationArg) { result: Result -> + api.animateCameraToCameraPosition(cameraPositionArg, durationArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -7182,7 +8599,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7203,14 +8625,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val boundsArg = args[0] as LatLngBoundsDto val paddingArg = args[1] as Double val durationArg = args[2] as Long? - api.animateCameraToLatLngBounds(boundsArg, paddingArg, durationArg) { result: Result -> + api.animateCameraToLatLngBounds(boundsArg, paddingArg, durationArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -7225,14 +8653,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pointArg = args[0] as LatLngDto val zoomArg = args[1] as Double val durationArg = args[2] as Long? - api.animateCameraToLatLngZoom(pointArg, zoomArg, durationArg) { result: Result -> + api.animateCameraToLatLngZoom(pointArg, zoomArg, durationArg) { result: Result + -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -7247,14 +8681,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val scrollByDxArg = args[0] as Double val scrollByDyArg = args[1] as Double val durationArg = args[2] as Long? - api.animateCameraByScroll(scrollByDxArg, scrollByDyArg, durationArg) { result: Result -> + api.animateCameraByScroll(scrollByDxArg, scrollByDyArg, durationArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -7269,7 +8709,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7277,7 +8722,8 @@ interface AutoMapViewApi { val focusDxArg = args[1] as Double? val focusDyArg = args[2] as Double? val durationArg = args[3] as Long? - api.animateCameraByZoom(zoomByArg, focusDxArg, focusDyArg, durationArg) { result: Result -> + api.animateCameraByZoom(zoomByArg, focusDxArg, focusDyArg, durationArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -7292,7 +8738,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7313,17 +8764,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val cameraPositionArg = args[0] as CameraPositionDto - val wrapped: List = try { - api.moveCameraToCameraPosition(cameraPositionArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraToCameraPosition(cameraPositionArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7331,17 +8788,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pointArg = args[0] as LatLngDto - val wrapped: List = try { - api.moveCameraToLatLng(pointArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraToLatLng(pointArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7349,18 +8812,24 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val boundsArg = args[0] as LatLngBoundsDto val paddingArg = args[1] as Double - val wrapped: List = try { - api.moveCameraToLatLngBounds(boundsArg, paddingArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraToLatLngBounds(boundsArg, paddingArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7368,18 +8837,24 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pointArg = args[0] as LatLngDto val zoomArg = args[1] as Double - val wrapped: List = try { - api.moveCameraToLatLngZoom(pointArg, zoomArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraToLatLngZoom(pointArg, zoomArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7387,18 +8862,24 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val scrollByDxArg = args[0] as Double val scrollByDyArg = args[1] as Double - val wrapped: List = try { - api.moveCameraByScroll(scrollByDxArg, scrollByDyArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraByScroll(scrollByDxArg, scrollByDyArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7406,19 +8887,25 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val zoomByArg = args[0] as Double val focusDxArg = args[1] as Double? val focusDyArg = args[2] as Double? - val wrapped: List = try { - api.moveCameraByZoom(zoomByArg, focusDxArg, focusDyArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraByZoom(zoomByArg, focusDxArg, focusDyArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7426,17 +8913,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val zoomArg = args[0] as Double - val wrapped: List = try { - api.moveCameraToZoom(zoomArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraToZoom(zoomArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7444,14 +8937,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getMinZoomPreference()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMinZoomPreference()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7459,14 +8958,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getMaxZoomPreference()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMaxZoomPreference()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7474,15 +8979,21 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.resetMinMaxZoomPreference() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.resetMinMaxZoomPreference() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7490,17 +9001,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val minZoomPreferenceArg = args[0] as Double - val wrapped: List = try { - api.setMinZoomPreference(minZoomPreferenceArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMinZoomPreference(minZoomPreferenceArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7508,17 +9025,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val maxZoomPreferenceArg = args[0] as Double - val wrapped: List = try { - api.setMaxZoomPreference(maxZoomPreferenceArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMaxZoomPreference(maxZoomPreferenceArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7526,17 +9049,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setMyLocationButtonEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMyLocationButtonEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7544,17 +9073,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setConsumeMyLocationButtonClickEventsEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setConsumeMyLocationButtonClickEventsEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7562,17 +9097,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setZoomGesturesEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setZoomGesturesEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7580,17 +9121,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setZoomControlsEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setZoomControlsEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7598,17 +9145,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setCompassEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setCompassEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7616,17 +9169,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setRotateGesturesEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setRotateGesturesEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7634,17 +9193,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setScrollGesturesEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setScrollGesturesEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7652,17 +9217,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setScrollGesturesDuringRotateOrZoomEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setScrollGesturesDuringRotateOrZoomEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7670,17 +9241,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setTiltGesturesEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setTiltGesturesEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7688,17 +9265,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setMapToolbarEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMapToolbarEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7706,17 +9289,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setTrafficEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setTrafficEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7724,17 +9313,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setTrafficPromptsEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setTrafficPromptsEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7742,17 +9337,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setTrafficIncidentCardsEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setTrafficIncidentCardsEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7760,17 +9361,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setNavigationTripProgressBarEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setNavigationTripProgressBarEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7778,17 +9385,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setSpeedLimitIconEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setSpeedLimitIconEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7796,17 +9409,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setSpeedometerEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setSpeedometerEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7814,17 +9433,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setNavigationUIEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setNavigationUIEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7832,14 +9457,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isMyLocationButtonEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isMyLocationButtonEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7847,14 +9478,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isConsumeMyLocationButtonClickEventsEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isConsumeMyLocationButtonClickEventsEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7862,14 +9499,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isZoomGesturesEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isZoomGesturesEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7877,14 +9520,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isZoomControlsEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isZoomControlsEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7892,14 +9541,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isCompassEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isCompassEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7907,14 +9562,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isRotateGesturesEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isRotateGesturesEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7922,14 +9583,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isScrollGesturesEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isScrollGesturesEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7937,14 +9604,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isScrollGesturesEnabledDuringRotateOrZoom()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isScrollGesturesEnabledDuringRotateOrZoom()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7952,14 +9625,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isTiltGesturesEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isTiltGesturesEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7967,14 +9646,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isMapToolbarEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isMapToolbarEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7982,14 +9667,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isTrafficEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isTrafficEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7997,14 +9688,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isTrafficPromptsEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isTrafficPromptsEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8012,14 +9709,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isTrafficIncidentCardsEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isTrafficIncidentCardsEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8027,14 +9730,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isNavigationTripProgressBarEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isNavigationTripProgressBarEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8042,14 +9751,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isSpeedLimitIconEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isSpeedLimitIconEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8057,14 +9772,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isSpeedometerEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isSpeedometerEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8072,14 +9793,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isNavigationUIEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isNavigationUIEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8087,14 +9814,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isIndoorEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isIndoorEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8102,17 +9835,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setIndoorEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setIndoorEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8120,14 +9859,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getFocusedIndoorBuilding()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getFocusedIndoorBuilding()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8135,17 +9880,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val levelIndexArg = args[0] as Long - val wrapped: List = try { - api.activateIndoorLevel(levelIndexArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.activateIndoorLevel(levelIndexArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8153,15 +9904,21 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.showRouteOverview() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.showRouteOverview() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8169,14 +9926,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getMarkers()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMarkers()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8184,16 +9947,22 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val markersArg = args[0] as List - val wrapped: List = try { - listOf(api.addMarkers(markersArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.addMarkers(markersArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8201,16 +9970,22 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val markersArg = args[0] as List - val wrapped: List = try { - listOf(api.updateMarkers(markersArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.updateMarkers(markersArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8218,17 +9993,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val markersArg = args[0] as List - val wrapped: List = try { - api.removeMarkers(markersArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.removeMarkers(markersArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8236,15 +10017,21 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.clearMarkers() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clearMarkers() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8252,15 +10039,21 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.clear() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clear() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8268,14 +10061,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getPolygons()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getPolygons()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8283,16 +10082,22 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polygonsArg = args[0] as List - val wrapped: List = try { - listOf(api.addPolygons(polygonsArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.addPolygons(polygonsArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8300,16 +10105,22 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polygonsArg = args[0] as List - val wrapped: List = try { - listOf(api.updatePolygons(polygonsArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.updatePolygons(polygonsArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8317,17 +10128,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polygonsArg = args[0] as List - val wrapped: List = try { - api.removePolygons(polygonsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.removePolygons(polygonsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8335,15 +10152,21 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.clearPolygons() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clearPolygons() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8351,14 +10174,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getPolylines()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getPolylines()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8366,16 +10195,22 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polylinesArg = args[0] as List - val wrapped: List = try { - listOf(api.addPolylines(polylinesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.addPolylines(polylinesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8383,16 +10218,22 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polylinesArg = args[0] as List - val wrapped: List = try { - listOf(api.updatePolylines(polylinesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.updatePolylines(polylinesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8400,17 +10241,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polylinesArg = args[0] as List - val wrapped: List = try { - api.removePolylines(polylinesArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.removePolylines(polylinesArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8418,15 +10265,21 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.clearPolylines() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clearPolylines() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8434,14 +10287,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getCircles()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getCircles()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8449,16 +10308,22 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val circlesArg = args[0] as List - val wrapped: List = try { - listOf(api.addCircles(circlesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.addCircles(circlesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8466,16 +10331,22 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val circlesArg = args[0] as List - val wrapped: List = try { - listOf(api.updateCircles(circlesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.updateCircles(circlesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8483,17 +10354,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val circlesArg = args[0] as List - val wrapped: List = try { - api.removeCircles(circlesArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.removeCircles(circlesArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8501,15 +10378,21 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.clearCircles() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clearCircles() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8517,15 +10400,21 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.enableOnCameraChangedEvents() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.enableOnCameraChangedEvents() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8533,14 +10422,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isAutoScreenAvailable()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isAutoScreenAvailable()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8548,17 +10443,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val paddingArg = args[0] as MapPaddingDto - val wrapped: List = try { - api.setPadding(paddingArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setPadding(paddingArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8566,14 +10467,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getPadding()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getPadding()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8581,14 +10488,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getMapColorScheme()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMapColorScheme()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8596,17 +10509,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val mapColorSchemeArg = args[0] as MapColorSchemeDto - val wrapped: List = try { - api.setMapColorScheme(mapColorSchemeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMapColorScheme(mapColorSchemeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8614,14 +10533,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getForceNightMode()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getForceNightMode()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8629,17 +10554,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val forceNightModeArg = args[0] as NavigationForceNightModeDto - val wrapped: List = try { - api.setForceNightMode(forceNightModeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setForceNightMode(forceNightModeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8647,18 +10578,24 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val eventArg = args[0] as String val dataArg = args[1] as Any - val wrapped: List = try { - api.sendCustomNavigationAutoEvent(eventArg, dataArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.sendCustomNavigationAutoEvent(eventArg, dataArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8668,18 +10605,26 @@ interface AutoMapViewApi { } } } + /** Generated class from Pigeon that represents Flutter messages that can be called from Kotlin. */ -class AutoViewEventApi(private val binaryMessenger: BinaryMessenger, private val messageChannelSuffix: String = "") { +class AutoViewEventApi( + private val binaryMessenger: BinaryMessenger, + private val messageChannelSuffix: String = "", +) { companion object { /** The codec used by AutoViewEventApi. */ - val codec: MessageCodec by lazy { - messagesPigeonCodec() - } - } - fun onCustomNavigationAutoEvent(eventArg: String, dataArg: Any, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent$separatedMessageChannelSuffix" + val codec: MessageCodec by lazy { messagesPigeonCodec() } + } + + fun onCustomNavigationAutoEvent( + eventArg: String, + dataArg: Any, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(eventArg, dataArg)) { if (it is List<*>) { @@ -8693,10 +10638,12 @@ class AutoViewEventApi(private val binaryMessenger: BinaryMessenger, private val } } } - fun onAutoScreenAvailabilityChanged(isAvailableArg: Boolean, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged$separatedMessageChannelSuffix" + + fun onAutoScreenAvailabilityChanged(isAvailableArg: Boolean, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(isAvailableArg)) { if (it is List<*>) { @@ -8710,10 +10657,12 @@ class AutoViewEventApi(private val binaryMessenger: BinaryMessenger, private val } } } - fun onPromptVisibilityChanged(promptVisibleArg: Boolean, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged$separatedMessageChannelSuffix" + + fun onPromptVisibilityChanged(promptVisibleArg: Boolean, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(promptVisibleArg)) { if (it is List<*>) { @@ -8727,10 +10676,15 @@ class AutoViewEventApi(private val binaryMessenger: BinaryMessenger, private val } } } - fun onNavigationUIEnabledChanged(navigationUIEnabledArg: Boolean, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged$separatedMessageChannelSuffix" + + fun onNavigationUIEnabledChanged( + navigationUIEnabledArg: Boolean, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(navigationUIEnabledArg)) { if (it is List<*>) { @@ -8744,10 +10698,15 @@ class AutoViewEventApi(private val binaryMessenger: BinaryMessenger, private val } } } - fun onIndoorFocusedBuildingChanged(buildingArg: IndoorBuildingDto?, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged$separatedMessageChannelSuffix" + + fun onIndoorFocusedBuildingChanged( + buildingArg: IndoorBuildingDto?, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(buildingArg)) { if (it is List<*>) { @@ -8761,10 +10720,15 @@ class AutoViewEventApi(private val binaryMessenger: BinaryMessenger, private val } } } - fun onIndoorActiveLevelChanged(buildingArg: IndoorBuildingDto?, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged$separatedMessageChannelSuffix" + + fun onIndoorActiveLevelChanged( + buildingArg: IndoorBuildingDto?, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(buildingArg)) { if (it is List<*>) { @@ -8779,30 +10743,44 @@ class AutoViewEventApi(private val binaryMessenger: BinaryMessenger, private val } } } + /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface NavigationInspector { fun isViewAttachedToSession(viewId: Long): Boolean companion object { /** The codec used by NavigationInspector. */ - val codec: MessageCodec by lazy { - messagesPigeonCodec() - } - /** Sets up an instance of `NavigationInspector` to handle messages through the `binaryMessenger`. */ + val codec: MessageCodec by lazy { messagesPigeonCodec() } + + /** + * Sets up an instance of `NavigationInspector` to handle messages through the + * `binaryMessenger`. + */ @JvmOverloads - fun setUp(binaryMessenger: BinaryMessenger, api: NavigationInspector?, messageChannelSuffix: String = "") { - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp( + binaryMessenger: BinaryMessenger, + api: NavigationInspector?, + messageChannelSuffix: String = "", + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isViewAttachedToSession(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isViewAttachedToSession(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { diff --git a/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationSessionMessageHandler.swift b/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationSessionMessageHandler.swift index 077c67aa..079432b9 100644 --- a/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationSessionMessageHandler.swift +++ b/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationSessionMessageHandler.swift @@ -66,8 +66,8 @@ class GoogleMapsNavigationSessionMessageHandler: NavigationSessionApi { func createNavigationSession( abnormalTerminationReportingEnabled: Bool, - // taskRemovedBehaviourValue is Android only value and not used on - // iOS. + // taskRemovedBehaviourValue and notificationOptions are Android only + // values and not used on iOS. behavior: TaskRemovedBehaviorDto, notificationOptions: NavigationNotificationOptionsDto?, completion: @escaping (Result) -> Void diff --git a/ios/google_navigation_flutter/Sources/google_navigation_flutter/messages.g.swift b/ios/google_navigation_flutter/Sources/google_navigation_flutter/messages.g.swift index 58b82c04..53d01f60 100644 --- a/ios/google_navigation_flutter/Sources/google_navigation_flutter/messages.g.swift +++ b/ios/google_navigation_flutter/Sources/google_navigation_flutter/messages.g.swift @@ -70,7 +70,9 @@ 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 { @@ -125,8 +127,8 @@ func deepEqualsmessages(_ lhs: Any?, _ rhs: Any?) -> Bool { func deepHashmessages(value: Any?, hasher: inout Hasher) { if let valueList = value as? [AnyHashable] { - for item in valueList { deepHashmessages(value: item, hasher: &hasher) } - return + for item in valueList { deepHashmessages(value: item, hasher: &hasher) } + return } if let valueDict = value as? [AnyHashable: AnyHashable] { @@ -144,8 +146,6 @@ func deepHashmessages(value: Any?, hasher: inout Hasher) { return hasher.combine(String(describing: value)) } - - /// Describes the type of map to construct. enum MapViewTypeDto: Int { /// Navigation view supports navigation overlay, and current navigation session is displayed on the map. @@ -517,7 +517,6 @@ struct AutoMapOptionsDto: Hashable { /// Determines the initial visibility of the navigation UI on map initialization. var navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> AutoMapOptionsDto? { let cameraPosition: CameraPositionDto? = nilOrValue(pigeonVar_list[0]) @@ -525,7 +524,8 @@ struct AutoMapOptionsDto: Hashable { let mapType: MapTypeDto? = nilOrValue(pigeonVar_list[2]) let mapColorScheme: MapColorSchemeDto? = nilOrValue(pigeonVar_list[3]) let forceNightMode: NavigationForceNightModeDto? = nilOrValue(pigeonVar_list[4]) - let navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto? = nilOrValue(pigeonVar_list[5]) + let navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto? = nilOrValue( + pigeonVar_list[5]) return AutoMapOptionsDto( cameraPosition: cameraPosition, @@ -547,7 +547,8 @@ struct AutoMapOptionsDto: Hashable { ] } static func == (lhs: AutoMapOptionsDto, rhs: AutoMapOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -592,7 +593,6 @@ struct MapOptionsDto: Hashable { /// The map color scheme mode for the map view. var mapColorScheme: MapColorSchemeDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> MapOptionsDto? { let cameraPosition = pigeonVar_list[0] as! CameraPositionDto @@ -652,7 +652,8 @@ struct MapOptionsDto: Hashable { ] } static func == (lhs: MapOptionsDto, rhs: MapOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -669,7 +670,6 @@ struct NavigationViewOptionsDto: Hashable { /// Controls the initial navigation header styling. var headerStylingOptions: NavigationHeaderStylingOptionsDto? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationViewOptionsDto? { let navigationUIEnabledPreference = pigeonVar_list[0] as! NavigationUIEnabledPreferenceDto @@ -690,7 +690,8 @@ struct NavigationViewOptionsDto: Hashable { ] } static func == (lhs: NavigationViewOptionsDto, rhs: NavigationViewOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -707,7 +708,6 @@ struct ViewCreationOptionsDto: Hashable { var mapOptions: MapOptionsDto var navigationViewOptions: NavigationViewOptionsDto? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> ViewCreationOptionsDto? { let mapViewType = pigeonVar_list[0] as! MapViewTypeDto @@ -728,7 +728,8 @@ struct ViewCreationOptionsDto: Hashable { ] } static func == (lhs: ViewCreationOptionsDto, rhs: ViewCreationOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -741,7 +742,6 @@ struct CameraPositionDto: Hashable { var tilt: Double var zoom: Double - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> CameraPositionDto? { let bearing = pigeonVar_list[0] as! Double @@ -765,7 +765,8 @@ struct CameraPositionDto: Hashable { ] } static func == (lhs: CameraPositionDto, rhs: CameraPositionDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -778,7 +779,6 @@ struct MarkerDto: Hashable { /// Options for marker var options: MarkerOptionsDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> MarkerDto? { let markerId = pigeonVar_list[0] as! String @@ -796,7 +796,8 @@ struct MarkerDto: Hashable { ] } static func == (lhs: MarkerDto, rhs: MarkerDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -816,7 +817,6 @@ struct MarkerOptionsDto: Hashable { var zIndex: Double var icon: ImageDescriptorDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> MarkerOptionsDto? { let alpha = pigeonVar_list[0] as! Double @@ -861,7 +861,8 @@ struct MarkerOptionsDto: Hashable { ] } static func == (lhs: MarkerOptionsDto, rhs: MarkerOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -875,7 +876,6 @@ struct ImageDescriptorDto: Hashable { var height: Double? = nil var type: RegisteredImageTypeDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> ImageDescriptorDto? { let registeredImageId: String? = nilOrValue(pigeonVar_list[0]) @@ -902,7 +902,8 @@ struct ImageDescriptorDto: Hashable { ] } static func == (lhs: ImageDescriptorDto, rhs: ImageDescriptorDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -914,7 +915,6 @@ struct InfoWindowDto: Hashable { var snippet: String? = nil var anchor: MarkerAnchorDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> InfoWindowDto? { let title: String? = nilOrValue(pigeonVar_list[0]) @@ -935,7 +935,8 @@ struct InfoWindowDto: Hashable { ] } static func == (lhs: InfoWindowDto, rhs: InfoWindowDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -946,7 +947,6 @@ struct MarkerAnchorDto: Hashable { var u: Double var v: Double - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> MarkerAnchorDto? { let u = pigeonVar_list[0] as! Double @@ -964,7 +964,8 @@ struct MarkerAnchorDto: Hashable { ] } static func == (lhs: MarkerAnchorDto, rhs: MarkerAnchorDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -983,7 +984,6 @@ struct PointOfInterestDto: Hashable { /// The geographical coordinates of the POI. var latLng: LatLngDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PointOfInterestDto? { let placeID = pigeonVar_list[0] as! String @@ -1004,7 +1004,8 @@ struct PointOfInterestDto: Hashable { ] } static func == (lhs: PointOfInterestDto, rhs: PointOfInterestDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1019,7 +1020,6 @@ struct IndoorLevelDto: Hashable { /// Short display name of the level. var shortName: String? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> IndoorLevelDto? { let name: String? = nilOrValue(pigeonVar_list[0]) @@ -1037,7 +1037,8 @@ struct IndoorLevelDto: Hashable { ] } static func == (lhs: IndoorLevelDto, rhs: IndoorLevelDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1056,7 +1057,6 @@ struct IndoorBuildingDto: Hashable { /// Whether building is mostly underground, if known. var isUnderground: Bool? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> IndoorBuildingDto? { let levels = pigeonVar_list[0] as! [IndoorLevelDto?] @@ -1080,7 +1080,8 @@ struct IndoorBuildingDto: Hashable { ] } static func == (lhs: IndoorBuildingDto, rhs: IndoorBuildingDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1091,7 +1092,6 @@ struct PolygonDto: Hashable { var polygonId: String var options: PolygonOptionsDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PolygonDto? { let polygonId = pigeonVar_list[0] as! String @@ -1109,7 +1109,8 @@ struct PolygonDto: Hashable { ] } static func == (lhs: PolygonDto, rhs: PolygonDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1127,7 +1128,6 @@ struct PolygonOptionsDto: Hashable { var visible: Bool var zIndex: Double - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PolygonOptionsDto? { let points = pigeonVar_list[0] as! [LatLngDto?] @@ -1166,7 +1166,8 @@ struct PolygonOptionsDto: Hashable { ] } static func == (lhs: PolygonOptionsDto, rhs: PolygonOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1176,7 +1177,6 @@ struct PolygonOptionsDto: Hashable { struct PolygonHoleDto: Hashable { var points: [LatLngDto?] - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PolygonHoleDto? { let points = pigeonVar_list[0] as! [LatLngDto?] @@ -1191,7 +1191,8 @@ struct PolygonHoleDto: Hashable { ] } static func == (lhs: PolygonHoleDto, rhs: PolygonHoleDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1203,7 +1204,6 @@ struct StyleSpanStrokeStyleDto: Hashable { var fromColor: Int64? = nil var toColor: Int64? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> StyleSpanStrokeStyleDto? { let solidColor: Int64? = nilOrValue(pigeonVar_list[0]) @@ -1224,7 +1224,8 @@ struct StyleSpanStrokeStyleDto: Hashable { ] } static func == (lhs: StyleSpanStrokeStyleDto, rhs: StyleSpanStrokeStyleDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1235,7 +1236,6 @@ struct StyleSpanDto: Hashable { var length: Double var style: StyleSpanStrokeStyleDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> StyleSpanDto? { let length = pigeonVar_list[0] as! Double @@ -1253,7 +1253,8 @@ struct StyleSpanDto: Hashable { ] } static func == (lhs: StyleSpanDto, rhs: StyleSpanDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1264,7 +1265,6 @@ struct PolylineDto: Hashable { var polylineId: String var options: PolylineOptionsDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PolylineDto? { let polylineId = pigeonVar_list[0] as! String @@ -1282,7 +1282,8 @@ struct PolylineDto: Hashable { ] } static func == (lhs: PolylineDto, rhs: PolylineDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1293,7 +1294,6 @@ struct PatternItemDto: Hashable { var type: PatternTypeDto var length: Double? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PatternItemDto? { let type = pigeonVar_list[0] as! PatternTypeDto @@ -1311,7 +1311,8 @@ struct PatternItemDto: Hashable { ] } static func == (lhs: PatternItemDto, rhs: PatternItemDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1330,7 +1331,6 @@ struct PolylineOptionsDto: Hashable { var zIndex: Double? = nil var spans: [StyleSpanDto?] - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PolylineOptionsDto? { let points: [LatLngDto?]? = nilOrValue(pigeonVar_list[0]) @@ -1372,7 +1372,8 @@ struct PolylineOptionsDto: Hashable { ] } static func == (lhs: PolylineOptionsDto, rhs: PolylineOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1385,7 +1386,6 @@ struct CircleDto: Hashable { /// Options for circle. var options: CircleOptionsDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> CircleDto? { let circleId = pigeonVar_list[0] as! String @@ -1403,7 +1403,8 @@ struct CircleDto: Hashable { ] } static func == (lhs: CircleDto, rhs: CircleDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1421,7 +1422,6 @@ struct CircleOptionsDto: Hashable { var visible: Bool var clickable: Bool - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> CircleOptionsDto? { let position = pigeonVar_list[0] as! LatLngDto @@ -1460,7 +1460,8 @@ struct CircleOptionsDto: Hashable { ] } static func == (lhs: CircleOptionsDto, rhs: CircleOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1473,7 +1474,6 @@ struct MapPaddingDto: Hashable { var bottom: Int64 var right: Int64 - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> MapPaddingDto? { let top = pigeonVar_list[0] as! Int64 @@ -1497,7 +1497,8 @@ struct MapPaddingDto: Hashable { ] } static func == (lhs: MapPaddingDto, rhs: MapPaddingDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1530,7 +1531,6 @@ struct NavigationHeaderStylingOptionsDto: Hashable { var instructionsSecondRowTextSize: Double? = nil var guidanceRecommendedLaneColor: Int64? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationHeaderStylingOptionsDto? { let primaryDayModeBackgroundColor: Int64? = nilOrValue(pigeonVar_list[0]) @@ -1589,8 +1589,11 @@ struct NavigationHeaderStylingOptionsDto: Hashable { guidanceRecommendedLaneColor, ] } - static func == (lhs: NavigationHeaderStylingOptionsDto, rhs: NavigationHeaderStylingOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + static func == (lhs: NavigationHeaderStylingOptionsDto, rhs: NavigationHeaderStylingOptionsDto) + -> Bool + { + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1601,7 +1604,6 @@ struct RouteTokenOptionsDto: Hashable { var routeToken: String var travelMode: TravelModeDto? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> RouteTokenOptionsDto? { let routeToken = pigeonVar_list[0] as! String @@ -1619,7 +1621,8 @@ struct RouteTokenOptionsDto: Hashable { ] } static func == (lhs: RouteTokenOptionsDto, rhs: RouteTokenOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1632,7 +1635,6 @@ struct DestinationsDto: Hashable { var routingOptions: RoutingOptionsDto? = nil var routeTokenOptions: RouteTokenOptionsDto? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> DestinationsDto? { let waypoints = pigeonVar_list[0] as! [NavigationWaypointDto?] @@ -1656,7 +1658,8 @@ struct DestinationsDto: Hashable { ] } static func == (lhs: DestinationsDto, rhs: DestinationsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1673,7 +1676,6 @@ struct RoutingOptionsDto: Hashable { var avoidHighways: Bool? = nil var locationTimeoutMs: Int64? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> RoutingOptionsDto? { let alternateRoutesStrategy: AlternateRoutesStrategyDto? = nilOrValue(pigeonVar_list[0]) @@ -1709,7 +1711,8 @@ struct RoutingOptionsDto: Hashable { ] } static func == (lhs: RoutingOptionsDto, rhs: RoutingOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1723,7 +1726,6 @@ struct NavigationDisplayOptionsDto: Hashable { /// Deprecated: This option now defaults to true. var showTrafficLights: Bool? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationDisplayOptionsDto? { let showDestinationMarkers: Bool? = nilOrValue(pigeonVar_list[0]) @@ -1744,7 +1746,8 @@ struct NavigationDisplayOptionsDto: Hashable { ] } static func == (lhs: NavigationDisplayOptionsDto, rhs: NavigationDisplayOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1758,7 +1761,6 @@ struct NavigationWaypointDto: Hashable { var preferSameSideOfRoad: Bool? = nil var preferredSegmentHeading: Int64? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationWaypointDto? { let title = pigeonVar_list[0] as! String @@ -1785,7 +1787,8 @@ struct NavigationWaypointDto: Hashable { ] } static func == (lhs: NavigationWaypointDto, rhs: NavigationWaypointDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1796,7 +1799,6 @@ struct ContinueToNextDestinationResponseDto: Hashable { var waypoint: NavigationWaypointDto? = nil var routeStatus: RouteStatusDto? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> ContinueToNextDestinationResponseDto? { let waypoint: NavigationWaypointDto? = nilOrValue(pigeonVar_list[0]) @@ -1813,8 +1815,11 @@ struct ContinueToNextDestinationResponseDto: Hashable { routeStatus, ] } - static func == (lhs: ContinueToNextDestinationResponseDto, rhs: ContinueToNextDestinationResponseDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + static func == ( + lhs: ContinueToNextDestinationResponseDto, rhs: ContinueToNextDestinationResponseDto + ) -> Bool { + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1826,7 +1831,6 @@ struct NavigationTimeAndDistanceDto: Hashable { var distance: Double var delaySeverity: TrafficDelaySeverityDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationTimeAndDistanceDto? { let time = pigeonVar_list[0] as! Double @@ -1847,7 +1851,8 @@ struct NavigationTimeAndDistanceDto: Hashable { ] } static func == (lhs: NavigationTimeAndDistanceDto, rhs: NavigationTimeAndDistanceDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1859,7 +1864,6 @@ struct NavigationAudioGuidanceSettingsDto: Hashable { var isVibrationEnabled: Bool? = nil var guidanceType: AudioGuidanceTypeDto? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationAudioGuidanceSettingsDto? { let isBluetoothAudioEnabled: Bool? = nilOrValue(pigeonVar_list[0]) @@ -1879,8 +1883,11 @@ struct NavigationAudioGuidanceSettingsDto: Hashable { guidanceType, ] } - static func == (lhs: NavigationAudioGuidanceSettingsDto, rhs: NavigationAudioGuidanceSettingsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + static func == (lhs: NavigationAudioGuidanceSettingsDto, rhs: NavigationAudioGuidanceSettingsDto) + -> Bool + { + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1890,7 +1897,6 @@ struct NavigationAudioGuidanceSettingsDto: Hashable { struct SimulationOptionsDto: Hashable { var speedMultiplier: Double - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> SimulationOptionsDto? { let speedMultiplier = pigeonVar_list[0] as! Double @@ -1905,7 +1911,8 @@ struct SimulationOptionsDto: Hashable { ] } static func == (lhs: SimulationOptionsDto, rhs: SimulationOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1916,7 +1923,6 @@ struct LatLngDto: Hashable { var latitude: Double var longitude: Double - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> LatLngDto? { let latitude = pigeonVar_list[0] as! Double @@ -1934,7 +1940,8 @@ struct LatLngDto: Hashable { ] } static func == (lhs: LatLngDto, rhs: LatLngDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1945,7 +1952,6 @@ struct LatLngBoundsDto: Hashable { var southwest: LatLngDto var northeast: LatLngDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> LatLngBoundsDto? { let southwest = pigeonVar_list[0] as! LatLngDto @@ -1963,7 +1969,8 @@ struct LatLngBoundsDto: Hashable { ] } static func == (lhs: LatLngBoundsDto, rhs: LatLngBoundsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1974,7 +1981,6 @@ struct SpeedingUpdatedEventDto: Hashable { var percentageAboveLimit: Double var severity: SpeedAlertSeverityDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> SpeedingUpdatedEventDto? { let percentageAboveLimit = pigeonVar_list[0] as! Double @@ -1992,7 +1998,8 @@ struct SpeedingUpdatedEventDto: Hashable { ] } static func == (lhs: SpeedingUpdatedEventDto, rhs: SpeedingUpdatedEventDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2003,7 +2010,6 @@ struct GpsAvailabilityChangeEventDto: Hashable { var isGpsLost: Bool var isGpsValidForNavigation: Bool - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> GpsAvailabilityChangeEventDto? { let isGpsLost = pigeonVar_list[0] as! Bool @@ -2021,7 +2027,8 @@ struct GpsAvailabilityChangeEventDto: Hashable { ] } static func == (lhs: GpsAvailabilityChangeEventDto, rhs: GpsAvailabilityChangeEventDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2032,7 +2039,6 @@ struct SpeedAlertOptionsThresholdPercentageDto: Hashable { var percentage: Double var severity: SpeedAlertSeverityDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> SpeedAlertOptionsThresholdPercentageDto? { let percentage = pigeonVar_list[0] as! Double @@ -2049,8 +2055,11 @@ struct SpeedAlertOptionsThresholdPercentageDto: Hashable { severity, ] } - static func == (lhs: SpeedAlertOptionsThresholdPercentageDto, rhs: SpeedAlertOptionsThresholdPercentageDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + static func == ( + lhs: SpeedAlertOptionsThresholdPercentageDto, rhs: SpeedAlertOptionsThresholdPercentageDto + ) -> Bool { + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2062,7 +2071,6 @@ struct SpeedAlertOptionsDto: Hashable { var minorSpeedAlertThresholdPercentage: Double var majorSpeedAlertThresholdPercentage: Double - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> SpeedAlertOptionsDto? { let severityUpgradeDurationSeconds = pigeonVar_list[0] as! Double @@ -2083,7 +2091,8 @@ struct SpeedAlertOptionsDto: Hashable { ] } static func == (lhs: SpeedAlertOptionsDto, rhs: SpeedAlertOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2095,9 +2104,10 @@ struct RouteSegmentTrafficDataRoadStretchRenderingDataDto: Hashable { var lengthMeters: Int64 var offsetMeters: Int64 - // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ pigeonVar_list: [Any?]) -> RouteSegmentTrafficDataRoadStretchRenderingDataDto? { + static func fromList(_ pigeonVar_list: [Any?]) + -> RouteSegmentTrafficDataRoadStretchRenderingDataDto? + { let style = pigeonVar_list[0] as! RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto let lengthMeters = pigeonVar_list[1] as! Int64 let offsetMeters = pigeonVar_list[2] as! Int64 @@ -2115,8 +2125,12 @@ struct RouteSegmentTrafficDataRoadStretchRenderingDataDto: Hashable { offsetMeters, ] } - static func == (lhs: RouteSegmentTrafficDataRoadStretchRenderingDataDto, rhs: RouteSegmentTrafficDataRoadStretchRenderingDataDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + static func == ( + lhs: RouteSegmentTrafficDataRoadStretchRenderingDataDto, + rhs: RouteSegmentTrafficDataRoadStretchRenderingDataDto + ) -> Bool { + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2127,11 +2141,11 @@ struct RouteSegmentTrafficDataDto: Hashable { var status: RouteSegmentTrafficDataStatusDto var roadStretchRenderingDataList: [RouteSegmentTrafficDataRoadStretchRenderingDataDto?] - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> RouteSegmentTrafficDataDto? { let status = pigeonVar_list[0] as! RouteSegmentTrafficDataStatusDto - let roadStretchRenderingDataList = pigeonVar_list[1] as! [RouteSegmentTrafficDataRoadStretchRenderingDataDto?] + let roadStretchRenderingDataList = + pigeonVar_list[1] as! [RouteSegmentTrafficDataRoadStretchRenderingDataDto?] return RouteSegmentTrafficDataDto( status: status, @@ -2145,7 +2159,8 @@ struct RouteSegmentTrafficDataDto: Hashable { ] } static func == (lhs: RouteSegmentTrafficDataDto, rhs: RouteSegmentTrafficDataDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2158,7 +2173,6 @@ struct RouteSegmentDto: Hashable { var latLngs: [LatLngDto?]? = nil var destinationWaypoint: NavigationWaypointDto? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> RouteSegmentDto? { let trafficData: RouteSegmentTrafficDataDto? = nilOrValue(pigeonVar_list[0]) @@ -2182,7 +2196,8 @@ struct RouteSegmentDto: Hashable { ] } static func == (lhs: RouteSegmentDto, rhs: RouteSegmentDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2197,7 +2212,6 @@ struct LaneDirectionDto: Hashable { /// Whether this lane is recommended. var isRecommended: Bool - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> LaneDirectionDto? { let laneShape = pigeonVar_list[0] as! LaneShapeDto @@ -2215,7 +2229,8 @@ struct LaneDirectionDto: Hashable { ] } static func == (lhs: LaneDirectionDto, rhs: LaneDirectionDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2228,7 +2243,6 @@ struct LaneDto: Hashable { /// List of possible directions a driver can follow when using this lane at the end of the respective route step var laneDirections: [LaneDirectionDto?] - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> LaneDto? { let laneDirections = pigeonVar_list[0] as! [LaneDirectionDto?] @@ -2243,7 +2257,8 @@ struct LaneDto: Hashable { ] } static func == (lhs: LaneDto, rhs: LaneDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2283,7 +2298,6 @@ struct StepInfoDto: Hashable { /// This image is generated only if step image generation option includes lane images. var lanesImage: ImageDescriptorDto? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> StepInfoDto? { let distanceFromPrevStepMeters: Int64? = nilOrValue(pigeonVar_list[0]) @@ -2334,7 +2348,8 @@ struct StepInfoDto: Hashable { ] } static func == (lhs: StepInfoDto, rhs: StepInfoDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2374,7 +2389,6 @@ struct NavInfoDto: Hashable { /// Android only. var timeToNextDestinationSeconds: Int64? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavInfoDto? { let navState = pigeonVar_list[0] as! NavStateDto @@ -2416,7 +2430,8 @@ struct NavInfoDto: Hashable { ] } static func == (lhs: NavInfoDto, rhs: NavInfoDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2440,7 +2455,6 @@ struct TermsAndConditionsUIParamsDto: Hashable { /// Text color for the cancel button. var cancelButtonTextColor: Int64? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> TermsAndConditionsUIParamsDto? { let backgroundColor: Int64? = nilOrValue(pigeonVar_list[0]) @@ -2467,7 +2481,8 @@ struct TermsAndConditionsUIParamsDto: Hashable { ] } static func == (lhs: TermsAndConditionsUIParamsDto, rhs: TermsAndConditionsUIParamsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2483,7 +2498,6 @@ struct NavigationNotificationOptionsDto: Hashable { var defaultMessage: String? = nil var resumeAppOnTap: Bool - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationNotificationOptionsDto? { let notificationId: Int64? = nilOrValue(pigeonVar_list[0]) @@ -2503,8 +2517,11 @@ struct NavigationNotificationOptionsDto: Hashable { resumeAppOnTap, ] } - static func == (lhs: NavigationNotificationOptionsDto, rhs: NavigationNotificationOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + static func == (lhs: NavigationNotificationOptionsDto, rhs: NavigationNotificationOptionsDto) + -> Bool + { + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2521,7 +2538,6 @@ struct StepImageGenerationOptionsDto: Hashable { /// Defaults to false if not specified. var generateLaneImages: Bool? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> StepImageGenerationOptionsDto? { let generateManeuverImages: Bool? = nilOrValue(pigeonVar_list[0]) @@ -2539,7 +2555,8 @@ struct StepImageGenerationOptionsDto: Hashable { ] } static func == (lhs: StepImageGenerationOptionsDto, rhs: StepImageGenerationOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2785,7 +2802,8 @@ private class MessagesPigeonCodecReader: FlutterStandardReader { case 194: return SpeedAlertOptionsDto.fromList(self.readValue() as! [Any?]) case 195: - return RouteSegmentTrafficDataRoadStretchRenderingDataDto.fromList(self.readValue() as! [Any?]) + return RouteSegmentTrafficDataRoadStretchRenderingDataDto.fromList( + self.readValue() as! [Any?]) case 196: return RouteSegmentTrafficDataDto.fromList(self.readValue() as! [Any?]) case 197: @@ -3060,7 +3078,6 @@ class MessagesPigeonCodec: FlutterStandardMessageCodec, @unchecked Sendable { static let shared = MessagesPigeonCodec(readerWriter: MessagesPigeonCodecReaderWriter()) } - /// Dummy interface to force generation of the platform view creation params. /// Pigeon only generates messages if the messages are used in API. /// [ViewCreationOptionsDto] is encoded and decoded directly to generate a @@ -3077,9 +3094,14 @@ protocol ViewCreationApi { class ViewCreationApiSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `ViewCreationApi` to handle messages through the `binaryMessenger`. - static func setUp(binaryMessenger: FlutterBinaryMessenger, api: ViewCreationApi?, messageChannelSuffix: String = "") { + static func setUp( + binaryMessenger: FlutterBinaryMessenger, api: ViewCreationApi?, + messageChannelSuffix: String = "" + ) { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let createChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ViewCreationApi.create\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let createChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.ViewCreationApi.create\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { createChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3110,7 +3132,8 @@ protocol MapViewApi { func isNavigationHeaderEnabled(viewId: Int64) throws -> Bool func setNavigationHeaderEnabled(viewId: Int64, enabled: Bool) throws func getNavigationHeaderStylingOptions(viewId: Int64) throws -> NavigationHeaderStylingOptionsDto - func setNavigationHeaderStylingOptions(viewId: Int64, stylingOptions: NavigationHeaderStylingOptionsDto) throws + func setNavigationHeaderStylingOptions( + viewId: Int64, stylingOptions: NavigationHeaderStylingOptionsDto) throws func isNavigationFooterEnabled(viewId: Int64) throws -> Bool func setNavigationFooterEnabled(viewId: Int64, enabled: Bool) throws func isRecenterButtonEnabled(viewId: Int64) throws -> Bool @@ -3165,13 +3188,27 @@ protocol MapViewApi { func getCameraPosition(viewId: Int64) throws -> CameraPositionDto func getVisibleRegion(viewId: Int64) throws -> LatLngBoundsDto func followMyLocation(viewId: Int64, perspective: CameraPerspectiveDto, zoomLevel: Double?) throws - func animateCameraToCameraPosition(viewId: Int64, cameraPosition: CameraPositionDto, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraToLatLng(viewId: Int64, point: LatLngDto, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraToLatLngBounds(viewId: Int64, bounds: LatLngBoundsDto, padding: Double, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraToLatLngZoom(viewId: Int64, point: LatLngDto, zoom: Double, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraByScroll(viewId: Int64, scrollByDx: Double, scrollByDy: Double, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraByZoom(viewId: Int64, zoomBy: Double, focusDx: Double?, focusDy: Double?, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraToZoom(viewId: Int64, zoom: Double, duration: Int64?, completion: @escaping (Result) -> Void) + func animateCameraToCameraPosition( + viewId: Int64, cameraPosition: CameraPositionDto, duration: Int64?, + completion: @escaping (Result) -> Void) + func animateCameraToLatLng( + viewId: Int64, point: LatLngDto, duration: Int64?, + completion: @escaping (Result) -> Void) + func animateCameraToLatLngBounds( + viewId: Int64, bounds: LatLngBoundsDto, padding: Double, duration: Int64?, + completion: @escaping (Result) -> Void) + func animateCameraToLatLngZoom( + viewId: Int64, point: LatLngDto, zoom: Double, duration: Int64?, + completion: @escaping (Result) -> Void) + func animateCameraByScroll( + viewId: Int64, scrollByDx: Double, scrollByDy: Double, duration: Int64?, + completion: @escaping (Result) -> Void) + func animateCameraByZoom( + viewId: Int64, zoomBy: Double, focusDx: Double?, focusDy: Double?, duration: Int64?, + completion: @escaping (Result) -> Void) + func animateCameraToZoom( + viewId: Int64, zoom: Double, duration: Int64?, + completion: @escaping (Result) -> Void) func moveCameraToCameraPosition(viewId: Int64, cameraPosition: CameraPositionDto) throws func moveCameraToLatLng(viewId: Int64, point: LatLngDto) throws func moveCameraToLatLngBounds(viewId: Int64, bounds: LatLngBoundsDto, padding: Double) throws @@ -3219,9 +3256,13 @@ protocol MapViewApi { class MapViewApiSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `MapViewApi` to handle messages through the `binaryMessenger`. - static func setUp(binaryMessenger: FlutterBinaryMessenger, api: MapViewApi?, messageChannelSuffix: String = "") { + static func setUp( + binaryMessenger: FlutterBinaryMessenger, api: MapViewApi?, messageChannelSuffix: String = "" + ) { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let awaitMapReadyChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let awaitMapReadyChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { awaitMapReadyChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3238,7 +3279,10 @@ class MapViewApiSetup { } else { awaitMapReadyChannel.setMessageHandler(nil) } - let isMyLocationEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isMyLocationEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMyLocationEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3253,7 +3297,10 @@ class MapViewApiSetup { } else { isMyLocationEnabledChannel.setMessageHandler(nil) } - let setMyLocationEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMyLocationEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMyLocationEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3269,7 +3316,9 @@ class MapViewApiSetup { } else { setMyLocationEnabledChannel.setMessageHandler(nil) } - let getMyLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMyLocationChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMyLocationChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3284,7 +3333,9 @@ class MapViewApiSetup { } else { getMyLocationChannel.setMessageHandler(nil) } - let getMapTypeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMapTypeChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMapTypeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3299,7 +3350,9 @@ class MapViewApiSetup { } else { getMapTypeChannel.setMessageHandler(nil) } - let setMapTypeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMapTypeChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapTypeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3315,7 +3368,9 @@ class MapViewApiSetup { } else { setMapTypeChannel.setMessageHandler(nil) } - let setMapStyleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMapStyleChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapStyleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3331,7 +3386,10 @@ class MapViewApiSetup { } else { setMapStyleChannel.setMessageHandler(nil) } - let isNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationTripProgressBarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3346,7 +3404,10 @@ class MapViewApiSetup { } else { isNavigationTripProgressBarEnabledChannel.setMessageHandler(nil) } - let setNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationTripProgressBarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3362,7 +3423,10 @@ class MapViewApiSetup { } else { setNavigationTripProgressBarEnabledChannel.setMessageHandler(nil) } - let isNavigationHeaderEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isNavigationHeaderEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationHeaderEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3377,7 +3441,10 @@ class MapViewApiSetup { } else { isNavigationHeaderEnabledChannel.setMessageHandler(nil) } - let setNavigationHeaderEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setNavigationHeaderEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationHeaderEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3393,7 +3460,10 @@ class MapViewApiSetup { } else { setNavigationHeaderEnabledChannel.setMessageHandler(nil) } - let getNavigationHeaderStylingOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getNavigationHeaderStylingOptionsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getNavigationHeaderStylingOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3408,14 +3478,18 @@ class MapViewApiSetup { } else { getNavigationHeaderStylingOptionsChannel.setMessageHandler(nil) } - let setNavigationHeaderStylingOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setNavigationHeaderStylingOptionsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationHeaderStylingOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] as! Int64 let stylingOptionsArg = args[1] as! NavigationHeaderStylingOptionsDto do { - try api.setNavigationHeaderStylingOptions(viewId: viewIdArg, stylingOptions: stylingOptionsArg) + try api.setNavigationHeaderStylingOptions( + viewId: viewIdArg, stylingOptions: stylingOptionsArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -3424,7 +3498,10 @@ class MapViewApiSetup { } else { setNavigationHeaderStylingOptionsChannel.setMessageHandler(nil) } - let isNavigationFooterEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isNavigationFooterEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationFooterEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3439,7 +3516,10 @@ class MapViewApiSetup { } else { isNavigationFooterEnabledChannel.setMessageHandler(nil) } - let setNavigationFooterEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setNavigationFooterEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationFooterEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3455,7 +3535,10 @@ class MapViewApiSetup { } else { setNavigationFooterEnabledChannel.setMessageHandler(nil) } - let isRecenterButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isRecenterButtonEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isRecenterButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3470,7 +3553,10 @@ class MapViewApiSetup { } else { isRecenterButtonEnabledChannel.setMessageHandler(nil) } - let setRecenterButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setRecenterButtonEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setRecenterButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3486,7 +3572,10 @@ class MapViewApiSetup { } else { setRecenterButtonEnabledChannel.setMessageHandler(nil) } - let isSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isSpeedLimitIconEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3501,7 +3590,10 @@ class MapViewApiSetup { } else { isSpeedLimitIconEnabledChannel.setMessageHandler(nil) } - let setSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setSpeedLimitIconEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3517,7 +3609,10 @@ class MapViewApiSetup { } else { setSpeedLimitIconEnabledChannel.setMessageHandler(nil) } - let isSpeedometerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isSpeedometerEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isSpeedometerEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3532,7 +3627,10 @@ class MapViewApiSetup { } else { isSpeedometerEnabledChannel.setMessageHandler(nil) } - let setSpeedometerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setSpeedometerEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setSpeedometerEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3548,7 +3646,10 @@ class MapViewApiSetup { } else { setSpeedometerEnabledChannel.setMessageHandler(nil) } - let isNavigationUIEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isNavigationUIEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationUIEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3563,7 +3664,10 @@ class MapViewApiSetup { } else { isNavigationUIEnabledChannel.setMessageHandler(nil) } - let setNavigationUIEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setNavigationUIEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationUIEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3579,7 +3683,10 @@ class MapViewApiSetup { } else { setNavigationUIEnabledChannel.setMessageHandler(nil) } - let isMyLocationButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isMyLocationButtonEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMyLocationButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3594,7 +3701,10 @@ class MapViewApiSetup { } else { isMyLocationButtonEnabledChannel.setMessageHandler(nil) } - let setMyLocationButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMyLocationButtonEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMyLocationButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3610,7 +3720,10 @@ class MapViewApiSetup { } else { setMyLocationButtonEnabledChannel.setMessageHandler(nil) } - let isConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3625,14 +3738,18 @@ class MapViewApiSetup { } else { isConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler(nil) } - let setConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] as! Int64 let enabledArg = args[1] as! Bool do { - try api.setConsumeMyLocationButtonClickEventsEnabled(viewId: viewIdArg, enabled: enabledArg) + try api.setConsumeMyLocationButtonClickEventsEnabled( + viewId: viewIdArg, enabled: enabledArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -3641,7 +3758,10 @@ class MapViewApiSetup { } else { setConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler(nil) } - let isZoomGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isZoomGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isZoomGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3656,7 +3776,10 @@ class MapViewApiSetup { } else { isZoomGesturesEnabledChannel.setMessageHandler(nil) } - let setZoomGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setZoomGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setZoomGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3672,7 +3795,10 @@ class MapViewApiSetup { } else { setZoomGesturesEnabledChannel.setMessageHandler(nil) } - let isZoomControlsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isZoomControlsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isZoomControlsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3687,7 +3813,10 @@ class MapViewApiSetup { } else { isZoomControlsEnabledChannel.setMessageHandler(nil) } - let setZoomControlsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setZoomControlsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setZoomControlsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3703,7 +3832,10 @@ class MapViewApiSetup { } else { setZoomControlsEnabledChannel.setMessageHandler(nil) } - let isCompassEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isCompassEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isCompassEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3718,7 +3850,10 @@ class MapViewApiSetup { } else { isCompassEnabledChannel.setMessageHandler(nil) } - let setCompassEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setCompassEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setCompassEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3734,7 +3869,10 @@ class MapViewApiSetup { } else { setCompassEnabledChannel.setMessageHandler(nil) } - let isRotateGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isRotateGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isRotateGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3749,7 +3887,10 @@ class MapViewApiSetup { } else { isRotateGesturesEnabledChannel.setMessageHandler(nil) } - let setRotateGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setRotateGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setRotateGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3765,7 +3906,10 @@ class MapViewApiSetup { } else { setRotateGesturesEnabledChannel.setMessageHandler(nil) } - let isScrollGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isScrollGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isScrollGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3780,7 +3924,10 @@ class MapViewApiSetup { } else { isScrollGesturesEnabledChannel.setMessageHandler(nil) } - let setScrollGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setScrollGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setScrollGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3796,7 +3943,10 @@ class MapViewApiSetup { } else { setScrollGesturesEnabledChannel.setMessageHandler(nil) } - let isScrollGesturesEnabledDuringRotateOrZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isScrollGesturesEnabledDuringRotateOrZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isScrollGesturesEnabledDuringRotateOrZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3811,7 +3961,10 @@ class MapViewApiSetup { } else { isScrollGesturesEnabledDuringRotateOrZoomChannel.setMessageHandler(nil) } - let setScrollGesturesDuringRotateOrZoomEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setScrollGesturesDuringRotateOrZoomEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setScrollGesturesDuringRotateOrZoomEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3827,7 +3980,10 @@ class MapViewApiSetup { } else { setScrollGesturesDuringRotateOrZoomEnabledChannel.setMessageHandler(nil) } - let isTiltGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isTiltGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTiltGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3842,7 +3998,10 @@ class MapViewApiSetup { } else { isTiltGesturesEnabledChannel.setMessageHandler(nil) } - let setTiltGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setTiltGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTiltGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3858,7 +4017,10 @@ class MapViewApiSetup { } else { setTiltGesturesEnabledChannel.setMessageHandler(nil) } - let isMapToolbarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isMapToolbarEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMapToolbarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3873,7 +4035,10 @@ class MapViewApiSetup { } else { isMapToolbarEnabledChannel.setMessageHandler(nil) } - let setMapToolbarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMapToolbarEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapToolbarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3889,7 +4054,10 @@ class MapViewApiSetup { } else { setMapToolbarEnabledChannel.setMessageHandler(nil) } - let isTrafficEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isTrafficEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3904,7 +4072,10 @@ class MapViewApiSetup { } else { isTrafficEnabledChannel.setMessageHandler(nil) } - let setTrafficEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setTrafficEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3920,7 +4091,10 @@ class MapViewApiSetup { } else { setTrafficEnabledChannel.setMessageHandler(nil) } - let isTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficIncidentCardsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3935,7 +4109,10 @@ class MapViewApiSetup { } else { isTrafficIncidentCardsEnabledChannel.setMessageHandler(nil) } - let setTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficIncidentCardsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3951,7 +4128,10 @@ class MapViewApiSetup { } else { setTrafficIncidentCardsEnabledChannel.setMessageHandler(nil) } - let isTrafficPromptsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isTrafficPromptsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficPromptsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3966,7 +4146,10 @@ class MapViewApiSetup { } else { isTrafficPromptsEnabledChannel.setMessageHandler(nil) } - let setTrafficPromptsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setTrafficPromptsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficPromptsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3982,7 +4165,10 @@ class MapViewApiSetup { } else { setTrafficPromptsEnabledChannel.setMessageHandler(nil) } - let isReportIncidentButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isReportIncidentButtonEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isReportIncidentButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3997,7 +4183,10 @@ class MapViewApiSetup { } else { isReportIncidentButtonEnabledChannel.setMessageHandler(nil) } - let setReportIncidentButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setReportIncidentButtonEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setReportIncidentButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4013,7 +4202,10 @@ class MapViewApiSetup { } else { setReportIncidentButtonEnabledChannel.setMessageHandler(nil) } - let isIncidentReportingAvailableChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isIncidentReportingAvailableChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isIncidentReportingAvailableChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4028,7 +4220,10 @@ class MapViewApiSetup { } else { isIncidentReportingAvailableChannel.setMessageHandler(nil) } - let showReportIncidentsPanelChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let showReportIncidentsPanelChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { showReportIncidentsPanelChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4043,7 +4238,10 @@ class MapViewApiSetup { } else { showReportIncidentsPanelChannel.setMessageHandler(nil) } - let isBuildingsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isBuildingsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isBuildingsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4058,7 +4256,10 @@ class MapViewApiSetup { } else { isBuildingsEnabledChannel.setMessageHandler(nil) } - let setBuildingsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setBuildingsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setBuildingsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4074,7 +4275,10 @@ class MapViewApiSetup { } else { setBuildingsEnabledChannel.setMessageHandler(nil) } - let isIndoorEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isIndoorEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isIndoorEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4089,7 +4293,10 @@ class MapViewApiSetup { } else { isIndoorEnabledChannel.setMessageHandler(nil) } - let setIndoorEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setIndoorEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setIndoorEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4105,7 +4312,10 @@ class MapViewApiSetup { } else { setIndoorEnabledChannel.setMessageHandler(nil) } - let isIndoorLevelPickerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isIndoorLevelPickerEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isIndoorLevelPickerEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4120,7 +4330,10 @@ class MapViewApiSetup { } else { isIndoorLevelPickerEnabledChannel.setMessageHandler(nil) } - let setIndoorLevelPickerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setIndoorLevelPickerEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setIndoorLevelPickerEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4136,7 +4349,10 @@ class MapViewApiSetup { } else { setIndoorLevelPickerEnabledChannel.setMessageHandler(nil) } - let getFocusedIndoorBuildingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getFocusedIndoorBuildingChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getFocusedIndoorBuildingChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4154,7 +4370,10 @@ class MapViewApiSetup { /// Activates the indoor level at [levelIndex] within the currently focused /// indoor building. Throws if no building is focused or the index is out of /// range. - let activateIndoorLevelChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let activateIndoorLevelChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { activateIndoorLevelChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4170,7 +4389,10 @@ class MapViewApiSetup { } else { activateIndoorLevelChannel.setMessageHandler(nil) } - let getCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getCameraPositionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4185,7 +4407,10 @@ class MapViewApiSetup { } else { getCameraPositionChannel.setMessageHandler(nil) } - let getVisibleRegionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getVisibleRegionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getVisibleRegionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4200,7 +4425,10 @@ class MapViewApiSetup { } else { getVisibleRegionChannel.setMessageHandler(nil) } - let followMyLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let followMyLocationChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { followMyLocationChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4208,7 +4436,8 @@ class MapViewApiSetup { let perspectiveArg = args[1] as! CameraPerspectiveDto let zoomLevelArg: Double? = nilOrValue(args[2]) do { - try api.followMyLocation(viewId: viewIdArg, perspective: perspectiveArg, zoomLevel: zoomLevelArg) + try api.followMyLocation( + viewId: viewIdArg, perspective: perspectiveArg, zoomLevel: zoomLevelArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -4217,14 +4446,19 @@ class MapViewApiSetup { } else { followMyLocationChannel.setMessageHandler(nil) } - let animateCameraToCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToCameraPositionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] as! Int64 let cameraPositionArg = args[1] as! CameraPositionDto let durationArg: Int64? = nilOrValue(args[2]) - api.animateCameraToCameraPosition(viewId: viewIdArg, cameraPosition: cameraPositionArg, duration: durationArg) { result in + api.animateCameraToCameraPosition( + viewId: viewIdArg, cameraPosition: cameraPositionArg, duration: durationArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4236,14 +4470,18 @@ class MapViewApiSetup { } else { animateCameraToCameraPositionChannel.setMessageHandler(nil) } - let animateCameraToLatLngChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] as! Int64 let pointArg = args[1] as! LatLngDto let durationArg: Int64? = nilOrValue(args[2]) - api.animateCameraToLatLng(viewId: viewIdArg, point: pointArg, duration: durationArg) { result in + api.animateCameraToLatLng(viewId: viewIdArg, point: pointArg, duration: durationArg) { + result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4255,7 +4493,10 @@ class MapViewApiSetup { } else { animateCameraToLatLngChannel.setMessageHandler(nil) } - let animateCameraToLatLngBoundsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngBoundsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngBoundsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4263,7 +4504,9 @@ class MapViewApiSetup { let boundsArg = args[1] as! LatLngBoundsDto let paddingArg = args[2] as! Double let durationArg: Int64? = nilOrValue(args[3]) - api.animateCameraToLatLngBounds(viewId: viewIdArg, bounds: boundsArg, padding: paddingArg, duration: durationArg) { result in + api.animateCameraToLatLngBounds( + viewId: viewIdArg, bounds: boundsArg, padding: paddingArg, duration: durationArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4275,7 +4518,10 @@ class MapViewApiSetup { } else { animateCameraToLatLngBoundsChannel.setMessageHandler(nil) } - let animateCameraToLatLngZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4283,7 +4529,9 @@ class MapViewApiSetup { let pointArg = args[1] as! LatLngDto let zoomArg = args[2] as! Double let durationArg: Int64? = nilOrValue(args[3]) - api.animateCameraToLatLngZoom(viewId: viewIdArg, point: pointArg, zoom: zoomArg, duration: durationArg) { result in + api.animateCameraToLatLngZoom( + viewId: viewIdArg, point: pointArg, zoom: zoomArg, duration: durationArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4295,7 +4543,10 @@ class MapViewApiSetup { } else { animateCameraToLatLngZoomChannel.setMessageHandler(nil) } - let animateCameraByScrollChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraByScrollChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraByScrollChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4303,7 +4554,10 @@ class MapViewApiSetup { let scrollByDxArg = args[1] as! Double let scrollByDyArg = args[2] as! Double let durationArg: Int64? = nilOrValue(args[3]) - api.animateCameraByScroll(viewId: viewIdArg, scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg, duration: durationArg) { result in + api.animateCameraByScroll( + viewId: viewIdArg, scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg, + duration: durationArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4315,7 +4569,10 @@ class MapViewApiSetup { } else { animateCameraByScrollChannel.setMessageHandler(nil) } - let animateCameraByZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraByZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraByZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4324,7 +4581,10 @@ class MapViewApiSetup { let focusDxArg: Double? = nilOrValue(args[2]) let focusDyArg: Double? = nilOrValue(args[3]) let durationArg: Int64? = nilOrValue(args[4]) - api.animateCameraByZoom(viewId: viewIdArg, zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg, duration: durationArg) { result in + api.animateCameraByZoom( + viewId: viewIdArg, zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg, + duration: durationArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4336,7 +4596,10 @@ class MapViewApiSetup { } else { animateCameraByZoomChannel.setMessageHandler(nil) } - let animateCameraToZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4355,7 +4618,10 @@ class MapViewApiSetup { } else { animateCameraToZoomChannel.setMessageHandler(nil) } - let moveCameraToCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToCameraPositionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4371,7 +4637,10 @@ class MapViewApiSetup { } else { moveCameraToCameraPositionChannel.setMessageHandler(nil) } - let moveCameraToLatLngChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4387,7 +4656,10 @@ class MapViewApiSetup { } else { moveCameraToLatLngChannel.setMessageHandler(nil) } - let moveCameraToLatLngBoundsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngBoundsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngBoundsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4395,7 +4667,8 @@ class MapViewApiSetup { let boundsArg = args[1] as! LatLngBoundsDto let paddingArg = args[2] as! Double do { - try api.moveCameraToLatLngBounds(viewId: viewIdArg, bounds: boundsArg, padding: paddingArg) + try api.moveCameraToLatLngBounds( + viewId: viewIdArg, bounds: boundsArg, padding: paddingArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -4404,7 +4677,10 @@ class MapViewApiSetup { } else { moveCameraToLatLngBoundsChannel.setMessageHandler(nil) } - let moveCameraToLatLngZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4421,7 +4697,10 @@ class MapViewApiSetup { } else { moveCameraToLatLngZoomChannel.setMessageHandler(nil) } - let moveCameraByScrollChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraByScrollChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraByScrollChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4429,7 +4708,8 @@ class MapViewApiSetup { let scrollByDxArg = args[1] as! Double let scrollByDyArg = args[2] as! Double do { - try api.moveCameraByScroll(viewId: viewIdArg, scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg) + try api.moveCameraByScroll( + viewId: viewIdArg, scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -4438,7 +4718,10 @@ class MapViewApiSetup { } else { moveCameraByScrollChannel.setMessageHandler(nil) } - let moveCameraByZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraByZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraByZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4447,7 +4730,8 @@ class MapViewApiSetup { let focusDxArg: Double? = nilOrValue(args[2]) let focusDyArg: Double? = nilOrValue(args[3]) do { - try api.moveCameraByZoom(viewId: viewIdArg, zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg) + try api.moveCameraByZoom( + viewId: viewIdArg, zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -4456,7 +4740,10 @@ class MapViewApiSetup { } else { moveCameraByZoomChannel.setMessageHandler(nil) } - let moveCameraToZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4472,7 +4759,10 @@ class MapViewApiSetup { } else { moveCameraToZoomChannel.setMessageHandler(nil) } - let showRouteOverviewChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let showRouteOverviewChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { showRouteOverviewChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4487,7 +4777,10 @@ class MapViewApiSetup { } else { showRouteOverviewChannel.setMessageHandler(nil) } - let getMinZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMinZoomPreferenceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMinZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4502,7 +4795,10 @@ class MapViewApiSetup { } else { getMinZoomPreferenceChannel.setMessageHandler(nil) } - let getMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMaxZoomPreferenceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMaxZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4517,7 +4813,10 @@ class MapViewApiSetup { } else { getMaxZoomPreferenceChannel.setMessageHandler(nil) } - let resetMinMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let resetMinMaxZoomPreferenceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { resetMinMaxZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4532,7 +4831,10 @@ class MapViewApiSetup { } else { resetMinMaxZoomPreferenceChannel.setMessageHandler(nil) } - let setMinZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMinZoomPreferenceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMinZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4548,7 +4850,10 @@ class MapViewApiSetup { } else { setMinZoomPreferenceChannel.setMessageHandler(nil) } - let setMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMaxZoomPreferenceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMaxZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4564,7 +4869,9 @@ class MapViewApiSetup { } else { setMaxZoomPreferenceChannel.setMessageHandler(nil) } - let getMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMarkersChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4579,7 +4886,9 @@ class MapViewApiSetup { } else { getMarkersChannel.setMessageHandler(nil) } - let addMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let addMarkersChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { addMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4595,7 +4904,9 @@ class MapViewApiSetup { } else { addMarkersChannel.setMessageHandler(nil) } - let updateMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let updateMarkersChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { updateMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4611,7 +4922,9 @@ class MapViewApiSetup { } else { updateMarkersChannel.setMessageHandler(nil) } - let removeMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let removeMarkersChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { removeMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4627,7 +4940,9 @@ class MapViewApiSetup { } else { removeMarkersChannel.setMessageHandler(nil) } - let clearMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearMarkersChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4642,7 +4957,9 @@ class MapViewApiSetup { } else { clearMarkersChannel.setMessageHandler(nil) } - let clearChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4657,7 +4974,9 @@ class MapViewApiSetup { } else { clearChannel.setMessageHandler(nil) } - let getPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getPolygonsChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4672,7 +4991,9 @@ class MapViewApiSetup { } else { getPolygonsChannel.setMessageHandler(nil) } - let addPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let addPolygonsChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { addPolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4688,7 +5009,10 @@ class MapViewApiSetup { } else { addPolygonsChannel.setMessageHandler(nil) } - let updatePolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let updatePolygonsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { updatePolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4704,7 +5028,10 @@ class MapViewApiSetup { } else { updatePolygonsChannel.setMessageHandler(nil) } - let removePolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let removePolygonsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { removePolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4720,7 +5047,9 @@ class MapViewApiSetup { } else { removePolygonsChannel.setMessageHandler(nil) } - let clearPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearPolygonsChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearPolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4735,7 +5064,9 @@ class MapViewApiSetup { } else { clearPolygonsChannel.setMessageHandler(nil) } - let getPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getPolylinesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4750,7 +5081,9 @@ class MapViewApiSetup { } else { getPolylinesChannel.setMessageHandler(nil) } - let addPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let addPolylinesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { addPolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4766,7 +5099,10 @@ class MapViewApiSetup { } else { addPolylinesChannel.setMessageHandler(nil) } - let updatePolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let updatePolylinesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { updatePolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4782,7 +5118,10 @@ class MapViewApiSetup { } else { updatePolylinesChannel.setMessageHandler(nil) } - let removePolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let removePolylinesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { removePolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4798,7 +5137,10 @@ class MapViewApiSetup { } else { removePolylinesChannel.setMessageHandler(nil) } - let clearPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearPolylinesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearPolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4813,7 +5155,9 @@ class MapViewApiSetup { } else { clearPolylinesChannel.setMessageHandler(nil) } - let getCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getCirclesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4828,7 +5172,9 @@ class MapViewApiSetup { } else { getCirclesChannel.setMessageHandler(nil) } - let addCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let addCirclesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { addCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4844,7 +5190,9 @@ class MapViewApiSetup { } else { addCirclesChannel.setMessageHandler(nil) } - let updateCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let updateCirclesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { updateCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4860,7 +5208,9 @@ class MapViewApiSetup { } else { updateCirclesChannel.setMessageHandler(nil) } - let removeCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let removeCirclesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { removeCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4876,7 +5226,9 @@ class MapViewApiSetup { } else { removeCirclesChannel.setMessageHandler(nil) } - let clearCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearCirclesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4891,7 +5243,10 @@ class MapViewApiSetup { } else { clearCirclesChannel.setMessageHandler(nil) } - let enableOnCameraChangedEventsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let enableOnCameraChangedEventsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { enableOnCameraChangedEventsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4906,7 +5261,9 @@ class MapViewApiSetup { } else { enableOnCameraChangedEventsChannel.setMessageHandler(nil) } - let setPaddingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setPaddingChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setPaddingChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4922,7 +5279,9 @@ class MapViewApiSetup { } else { setPaddingChannel.setMessageHandler(nil) } - let getPaddingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getPaddingChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPaddingChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4937,7 +5296,10 @@ class MapViewApiSetup { } else { getPaddingChannel.setMessageHandler(nil) } - let getMapColorSchemeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMapColorSchemeChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMapColorSchemeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4952,7 +5314,10 @@ class MapViewApiSetup { } else { getMapColorSchemeChannel.setMessageHandler(nil) } - let setMapColorSchemeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMapColorSchemeChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapColorSchemeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4968,7 +5333,10 @@ class MapViewApiSetup { } else { setMapColorSchemeChannel.setMessageHandler(nil) } - let getForceNightModeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getForceNightModeChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getForceNightModeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4983,7 +5351,10 @@ class MapViewApiSetup { } else { getForceNightModeChannel.setMessageHandler(nil) } - let setForceNightModeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setForceNightModeChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setForceNightModeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5003,20 +5374,30 @@ class MapViewApiSetup { } /// Generated protocol from Pigeon that represents a handler of messages from Flutter. protocol ImageRegistryApi { - func registerBitmapImage(imageId: String, bytes: FlutterStandardTypedData, imagePixelRatio: Double, width: Double?, height: Double?) throws -> ImageDescriptorDto + func registerBitmapImage( + imageId: String, bytes: FlutterStandardTypedData, imagePixelRatio: Double, width: Double?, + height: Double? + ) throws -> ImageDescriptorDto func unregisterImage(imageDescriptor: ImageDescriptorDto) throws func getRegisteredImages() throws -> [ImageDescriptorDto] func clearRegisteredImages(filter: RegisteredImageTypeDto?) throws - func getRegisteredImageData(imageDescriptor: ImageDescriptorDto) throws -> FlutterStandardTypedData? + func getRegisteredImageData(imageDescriptor: ImageDescriptorDto) throws + -> FlutterStandardTypedData? } /// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. class ImageRegistryApiSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `ImageRegistryApi` to handle messages through the `binaryMessenger`. - static func setUp(binaryMessenger: FlutterBinaryMessenger, api: ImageRegistryApi?, messageChannelSuffix: String = "") { + static func setUp( + binaryMessenger: FlutterBinaryMessenger, api: ImageRegistryApi?, + messageChannelSuffix: String = "" + ) { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let registerBitmapImageChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let registerBitmapImageChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { registerBitmapImageChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5026,7 +5407,9 @@ class ImageRegistryApiSetup { let widthArg: Double? = nilOrValue(args[3]) let heightArg: Double? = nilOrValue(args[4]) do { - let result = try api.registerBitmapImage(imageId: imageIdArg, bytes: bytesArg, imagePixelRatio: imagePixelRatioArg, width: widthArg, height: heightArg) + let result = try api.registerBitmapImage( + imageId: imageIdArg, bytes: bytesArg, imagePixelRatio: imagePixelRatioArg, + width: widthArg, height: heightArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -5035,7 +5418,10 @@ class ImageRegistryApiSetup { } else { registerBitmapImageChannel.setMessageHandler(nil) } - let unregisterImageChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let unregisterImageChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { unregisterImageChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5050,7 +5436,10 @@ class ImageRegistryApiSetup { } else { unregisterImageChannel.setMessageHandler(nil) } - let getRegisteredImagesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getRegisteredImagesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getRegisteredImagesChannel.setMessageHandler { _, reply in do { @@ -5063,7 +5452,10 @@ class ImageRegistryApiSetup { } else { getRegisteredImagesChannel.setMessageHandler(nil) } - let clearRegisteredImagesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearRegisteredImagesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearRegisteredImagesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5078,7 +5470,10 @@ class ImageRegistryApiSetup { } else { clearRegisteredImagesChannel.setMessageHandler(nil) } - let getRegisteredImageDataChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getRegisteredImageDataChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getRegisteredImageDataChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5097,22 +5492,54 @@ class ImageRegistryApiSetup { } /// Generated protocol from Pigeon that represents Flutter messages that can be called from Swift. protocol ViewEventApiProtocol { - func onMapClickEvent(viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, completion: @escaping (Result) -> Void) - func onMapLongClickEvent(viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, completion: @escaping (Result) -> Void) - func onRecenterButtonClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) - func onMarkerEvent(viewId viewIdArg: Int64, markerId markerIdArg: String, eventType eventTypeArg: MarkerEventTypeDto, completion: @escaping (Result) -> Void) - func onMarkerDragEvent(viewId viewIdArg: Int64, markerId markerIdArg: String, eventType eventTypeArg: MarkerDragEventTypeDto, position positionArg: LatLngDto, completion: @escaping (Result) -> Void) - func onPolygonClicked(viewId viewIdArg: Int64, polygonId polygonIdArg: String, completion: @escaping (Result) -> Void) - func onPolylineClicked(viewId viewIdArg: Int64, polylineId polylineIdArg: String, completion: @escaping (Result) -> Void) - func onCircleClicked(viewId viewIdArg: Int64, circleId circleIdArg: String, completion: @escaping (Result) -> Void) - func onPoiClick(viewId viewIdArg: Int64, pointOfInterest pointOfInterestArg: PointOfInterestDto, completion: @escaping (Result) -> Void) - func onNavigationUIEnabledChanged(viewId viewIdArg: Int64, navigationUIEnabled navigationUIEnabledArg: Bool, completion: @escaping (Result) -> Void) - func onPromptVisibilityChanged(viewId viewIdArg: Int64, promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void) - func onMyLocationClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) - func onMyLocationButtonClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) - func onIndoorFocusedBuildingChanged(viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) - func onIndoorActiveLevelChanged(viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) - func onCameraChanged(viewId viewIdArg: Int64, eventType eventTypeArg: CameraEventTypeDto, position positionArg: CameraPositionDto, completion: @escaping (Result) -> Void) + func onMapClickEvent( + viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, + completion: @escaping (Result) -> Void) + func onMapLongClickEvent( + viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, + completion: @escaping (Result) -> Void) + func onRecenterButtonClicked( + viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) + func onMarkerEvent( + viewId viewIdArg: Int64, markerId markerIdArg: String, + eventType eventTypeArg: MarkerEventTypeDto, + completion: @escaping (Result) -> Void) + func onMarkerDragEvent( + viewId viewIdArg: Int64, markerId markerIdArg: String, + eventType eventTypeArg: MarkerDragEventTypeDto, position positionArg: LatLngDto, + completion: @escaping (Result) -> Void) + func onPolygonClicked( + viewId viewIdArg: Int64, polygonId polygonIdArg: String, + completion: @escaping (Result) -> Void) + func onPolylineClicked( + viewId viewIdArg: Int64, polylineId polylineIdArg: String, + completion: @escaping (Result) -> Void) + func onCircleClicked( + viewId viewIdArg: Int64, circleId circleIdArg: String, + completion: @escaping (Result) -> Void) + func onPoiClick( + viewId viewIdArg: Int64, pointOfInterest pointOfInterestArg: PointOfInterestDto, + completion: @escaping (Result) -> Void) + func onNavigationUIEnabledChanged( + viewId viewIdArg: Int64, navigationUIEnabled navigationUIEnabledArg: Bool, + completion: @escaping (Result) -> Void) + func onPromptVisibilityChanged( + viewId viewIdArg: Int64, promptVisible promptVisibleArg: Bool, + completion: @escaping (Result) -> Void) + func onMyLocationClicked( + viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) + func onMyLocationButtonClicked( + viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) + func onIndoorFocusedBuildingChanged( + viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, + completion: @escaping (Result) -> Void) + func onIndoorActiveLevelChanged( + viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, + completion: @escaping (Result) -> Void) + func onCameraChanged( + viewId viewIdArg: Int64, eventType eventTypeArg: CameraEventTypeDto, + position positionArg: CameraPositionDto, + completion: @escaping (Result) -> Void) } class ViewEventApi: ViewEventApiProtocol { private let binaryMessenger: FlutterBinaryMessenger @@ -5124,9 +5551,14 @@ class ViewEventApi: ViewEventApiProtocol { var codec: MessagesPigeonCodec { return MessagesPigeonCodec.shared } - func onMapClickEvent(viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMapClickEvent( + viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, latLngArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5142,9 +5574,14 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onMapLongClickEvent(viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMapLongClickEvent( + viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, latLngArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5160,9 +5597,13 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onRecenterButtonClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onRecenterButtonClicked( + viewId viewIdArg: Int64, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5178,9 +5619,15 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onMarkerEvent(viewId viewIdArg: Int64, markerId markerIdArg: String, eventType eventTypeArg: MarkerEventTypeDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMarkerEvent( + viewId viewIdArg: Int64, markerId markerIdArg: String, + eventType eventTypeArg: MarkerEventTypeDto, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, markerIdArg, eventTypeArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5196,9 +5643,15 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onMarkerDragEvent(viewId viewIdArg: Int64, markerId markerIdArg: String, eventType eventTypeArg: MarkerDragEventTypeDto, position positionArg: LatLngDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMarkerDragEvent( + viewId viewIdArg: Int64, markerId markerIdArg: String, + eventType eventTypeArg: MarkerDragEventTypeDto, position positionArg: LatLngDto, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, markerIdArg, eventTypeArg, positionArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5214,9 +5667,14 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onPolygonClicked(viewId viewIdArg: Int64, polygonId polygonIdArg: String, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onPolygonClicked( + viewId viewIdArg: Int64, polygonId polygonIdArg: String, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, polygonIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5232,9 +5690,14 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onPolylineClicked(viewId viewIdArg: Int64, polylineId polylineIdArg: String, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onPolylineClicked( + viewId viewIdArg: Int64, polylineId polylineIdArg: String, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, polylineIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5250,9 +5713,14 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onCircleClicked(viewId viewIdArg: Int64, circleId circleIdArg: String, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onCircleClicked( + viewId viewIdArg: Int64, circleId circleIdArg: String, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, circleIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5268,9 +5736,14 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onPoiClick(viewId viewIdArg: Int64, pointOfInterest pointOfInterestArg: PointOfInterestDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onPoiClick( + viewId viewIdArg: Int64, pointOfInterest pointOfInterestArg: PointOfInterestDto, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, pointOfInterestArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5286,9 +5759,14 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onNavigationUIEnabledChanged(viewId viewIdArg: Int64, navigationUIEnabled navigationUIEnabledArg: Bool, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onNavigationUIEnabledChanged( + viewId viewIdArg: Int64, navigationUIEnabled navigationUIEnabledArg: Bool, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, navigationUIEnabledArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5304,9 +5782,14 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onPromptVisibilityChanged(viewId viewIdArg: Int64, promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onPromptVisibilityChanged( + viewId viewIdArg: Int64, promptVisible promptVisibleArg: Bool, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, promptVisibleArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5322,9 +5805,13 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onMyLocationClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMyLocationClicked( + viewId viewIdArg: Int64, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5340,9 +5827,13 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onMyLocationButtonClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMyLocationButtonClicked( + viewId viewIdArg: Int64, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5358,9 +5849,14 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onIndoorFocusedBuildingChanged(viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onIndoorFocusedBuildingChanged( + viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, buildingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5376,9 +5872,14 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onIndoorActiveLevelChanged(viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onIndoorActiveLevelChanged( + viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, buildingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5394,9 +5895,15 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onCameraChanged(viewId viewIdArg: Int64, eventType eventTypeArg: CameraEventTypeDto, position positionArg: CameraPositionDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onCameraChanged( + viewId viewIdArg: Int64, eventType eventTypeArg: CameraEventTypeDto, + position positionArg: CameraPositionDto, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, eventTypeArg, positionArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5415,19 +5922,26 @@ class ViewEventApi: ViewEventApiProtocol { } /// Generated protocol from Pigeon that represents a handler of messages from Flutter. protocol NavigationSessionApi { - func createNavigationSession(abnormalTerminationReportingEnabled: Bool, behavior: TaskRemovedBehaviorDto, notificationOptions: NavigationNotificationOptionsDto?, completion: @escaping (Result) -> Void) + func createNavigationSession( + abnormalTerminationReportingEnabled: Bool, behavior: TaskRemovedBehaviorDto, + notificationOptions: NavigationNotificationOptionsDto?, + completion: @escaping (Result) -> Void) func isInitialized() throws -> Bool func cleanup(resetSession: Bool) throws - func showTermsAndConditionsDialog(title: String, companyName: String, shouldOnlyShowDriverAwarenessDisclaimer: Bool, uiParams: TermsAndConditionsUIParamsDto?, completion: @escaping (Result) -> Void) + func showTermsAndConditionsDialog( + title: String, companyName: String, shouldOnlyShowDriverAwarenessDisclaimer: Bool, + uiParams: TermsAndConditionsUIParamsDto?, completion: @escaping (Result) -> Void) func areTermsAccepted() throws -> Bool func resetTermsAccepted() throws func getNavSDKVersion() throws -> String func isGuidanceRunning() throws -> Bool func startGuidance() throws func stopGuidance() throws - func setDestinations(destinations: DestinationsDto, completion: @escaping (Result) -> Void) + func setDestinations( + destinations: DestinationsDto, completion: @escaping (Result) -> Void) func clearDestinations() throws - func continueToNextDestination(completion: @escaping (Result) -> Void) + func continueToNextDestination( + completion: @escaping (Result) -> Void) func getCurrentTimeAndDistance() throws -> NavigationTimeAndDistanceDto func setAudioGuidance(settings: NavigationAudioGuidanceSettingsDto) throws func setSpeedAlertOptions(options: SpeedAlertOptionsDto) throws @@ -5438,34 +5952,52 @@ protocol NavigationSessionApi { func removeUserLocation() throws func simulateLocationsAlongExistingRoute() throws func simulateLocationsAlongExistingRouteWithOptions(options: SimulationOptionsDto) throws - func simulateLocationsAlongNewRoute(waypoints: [NavigationWaypointDto], completion: @escaping (Result) -> Void) - func simulateLocationsAlongNewRouteWithRoutingOptions(waypoints: [NavigationWaypointDto], routingOptions: RoutingOptionsDto, completion: @escaping (Result) -> Void) - func simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(waypoints: [NavigationWaypointDto], routingOptions: RoutingOptionsDto, simulationOptions: SimulationOptionsDto, completion: @escaping (Result) -> Void) + func simulateLocationsAlongNewRoute( + waypoints: [NavigationWaypointDto], + completion: @escaping (Result) -> Void) + func simulateLocationsAlongNewRouteWithRoutingOptions( + waypoints: [NavigationWaypointDto], routingOptions: RoutingOptionsDto, + completion: @escaping (Result) -> Void) + func simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( + waypoints: [NavigationWaypointDto], routingOptions: RoutingOptionsDto, + simulationOptions: SimulationOptionsDto, + completion: @escaping (Result) -> Void) func pauseSimulation() throws func resumeSimulation() throws /// iOS-only method. func allowBackgroundLocationUpdates(allow: Bool) throws func enableRoadSnappedLocationUpdates() throws func disableRoadSnappedLocationUpdates() throws - func enableTurnByTurnNavigationEvents(numNextStepsToPreview: Int64?, options: StepImageGenerationOptionsDto?) throws + func enableTurnByTurnNavigationEvents( + numNextStepsToPreview: Int64?, options: StepImageGenerationOptionsDto?) throws func disableTurnByTurnNavigationEvents() throws - func registerRemainingTimeOrDistanceChangedListener(remainingTimeThresholdSeconds: Int64, remainingDistanceThresholdMeters: Int64) throws + func registerRemainingTimeOrDistanceChangedListener( + remainingTimeThresholdSeconds: Int64, remainingDistanceThresholdMeters: Int64) throws } /// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. class NavigationSessionApiSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `NavigationSessionApi` to handle messages through the `binaryMessenger`. - static func setUp(binaryMessenger: FlutterBinaryMessenger, api: NavigationSessionApi?, messageChannelSuffix: String = "") { + static func setUp( + binaryMessenger: FlutterBinaryMessenger, api: NavigationSessionApi?, + messageChannelSuffix: String = "" + ) { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let createNavigationSessionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let createNavigationSessionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { createNavigationSessionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let abnormalTerminationReportingEnabledArg = args[0] as! Bool let behaviorArg = args[1] as! TaskRemovedBehaviorDto let notificationOptionsArg: NavigationNotificationOptionsDto? = nilOrValue(args[2]) - api.createNavigationSession(abnormalTerminationReportingEnabled: abnormalTerminationReportingEnabledArg, behavior: behaviorArg, notificationOptions: notificationOptionsArg) { result in + api.createNavigationSession( + abnormalTerminationReportingEnabled: abnormalTerminationReportingEnabledArg, + behavior: behaviorArg, notificationOptions: notificationOptionsArg + ) { result in switch result { case .success: reply(wrapResult(nil)) @@ -5477,7 +6009,10 @@ class NavigationSessionApiSetup { } else { createNavigationSessionChannel.setMessageHandler(nil) } - let isInitializedChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isInitializedChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isInitializedChannel.setMessageHandler { _, reply in do { @@ -5490,7 +6025,10 @@ class NavigationSessionApiSetup { } else { isInitializedChannel.setMessageHandler(nil) } - let cleanupChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let cleanupChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { cleanupChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5505,7 +6043,10 @@ class NavigationSessionApiSetup { } else { cleanupChannel.setMessageHandler(nil) } - let showTermsAndConditionsDialogChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let showTermsAndConditionsDialogChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { showTermsAndConditionsDialogChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5513,7 +6054,11 @@ class NavigationSessionApiSetup { let companyNameArg = args[1] as! String let shouldOnlyShowDriverAwarenessDisclaimerArg = args[2] as! Bool let uiParamsArg: TermsAndConditionsUIParamsDto? = nilOrValue(args[3]) - api.showTermsAndConditionsDialog(title: titleArg, companyName: companyNameArg, shouldOnlyShowDriverAwarenessDisclaimer: shouldOnlyShowDriverAwarenessDisclaimerArg, uiParams: uiParamsArg) { result in + api.showTermsAndConditionsDialog( + title: titleArg, companyName: companyNameArg, + shouldOnlyShowDriverAwarenessDisclaimer: shouldOnlyShowDriverAwarenessDisclaimerArg, + uiParams: uiParamsArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -5525,7 +6070,10 @@ class NavigationSessionApiSetup { } else { showTermsAndConditionsDialogChannel.setMessageHandler(nil) } - let areTermsAcceptedChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let areTermsAcceptedChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { areTermsAcceptedChannel.setMessageHandler { _, reply in do { @@ -5538,7 +6086,10 @@ class NavigationSessionApiSetup { } else { areTermsAcceptedChannel.setMessageHandler(nil) } - let resetTermsAcceptedChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let resetTermsAcceptedChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { resetTermsAcceptedChannel.setMessageHandler { _, reply in do { @@ -5551,7 +6102,10 @@ class NavigationSessionApiSetup { } else { resetTermsAcceptedChannel.setMessageHandler(nil) } - let getNavSDKVersionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getNavSDKVersionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getNavSDKVersionChannel.setMessageHandler { _, reply in do { @@ -5564,7 +6118,10 @@ class NavigationSessionApiSetup { } else { getNavSDKVersionChannel.setMessageHandler(nil) } - let isGuidanceRunningChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isGuidanceRunningChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isGuidanceRunningChannel.setMessageHandler { _, reply in do { @@ -5577,7 +6134,10 @@ class NavigationSessionApiSetup { } else { isGuidanceRunningChannel.setMessageHandler(nil) } - let startGuidanceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let startGuidanceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { startGuidanceChannel.setMessageHandler { _, reply in do { @@ -5590,7 +6150,10 @@ class NavigationSessionApiSetup { } else { startGuidanceChannel.setMessageHandler(nil) } - let stopGuidanceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let stopGuidanceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { stopGuidanceChannel.setMessageHandler { _, reply in do { @@ -5603,7 +6166,10 @@ class NavigationSessionApiSetup { } else { stopGuidanceChannel.setMessageHandler(nil) } - let setDestinationsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setDestinationsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setDestinationsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5620,7 +6186,10 @@ class NavigationSessionApiSetup { } else { setDestinationsChannel.setMessageHandler(nil) } - let clearDestinationsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearDestinationsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearDestinationsChannel.setMessageHandler { _, reply in do { @@ -5633,7 +6202,10 @@ class NavigationSessionApiSetup { } else { clearDestinationsChannel.setMessageHandler(nil) } - let continueToNextDestinationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let continueToNextDestinationChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { continueToNextDestinationChannel.setMessageHandler { _, reply in api.continueToNextDestination { result in @@ -5648,7 +6220,10 @@ class NavigationSessionApiSetup { } else { continueToNextDestinationChannel.setMessageHandler(nil) } - let getCurrentTimeAndDistanceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getCurrentTimeAndDistanceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCurrentTimeAndDistanceChannel.setMessageHandler { _, reply in do { @@ -5661,7 +6236,10 @@ class NavigationSessionApiSetup { } else { getCurrentTimeAndDistanceChannel.setMessageHandler(nil) } - let setAudioGuidanceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setAudioGuidanceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setAudioGuidanceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5676,7 +6254,10 @@ class NavigationSessionApiSetup { } else { setAudioGuidanceChannel.setMessageHandler(nil) } - let setSpeedAlertOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setSpeedAlertOptionsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setSpeedAlertOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5691,7 +6272,10 @@ class NavigationSessionApiSetup { } else { setSpeedAlertOptionsChannel.setMessageHandler(nil) } - let getRouteSegmentsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getRouteSegmentsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getRouteSegmentsChannel.setMessageHandler { _, reply in do { @@ -5704,7 +6288,10 @@ class NavigationSessionApiSetup { } else { getRouteSegmentsChannel.setMessageHandler(nil) } - let getTraveledRouteChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getTraveledRouteChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getTraveledRouteChannel.setMessageHandler { _, reply in do { @@ -5717,7 +6304,10 @@ class NavigationSessionApiSetup { } else { getTraveledRouteChannel.setMessageHandler(nil) } - let getCurrentRouteSegmentChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getCurrentRouteSegmentChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCurrentRouteSegmentChannel.setMessageHandler { _, reply in do { @@ -5730,7 +6320,10 @@ class NavigationSessionApiSetup { } else { getCurrentRouteSegmentChannel.setMessageHandler(nil) } - let setUserLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setUserLocationChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setUserLocationChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5745,7 +6338,10 @@ class NavigationSessionApiSetup { } else { setUserLocationChannel.setMessageHandler(nil) } - let removeUserLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let removeUserLocationChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { removeUserLocationChannel.setMessageHandler { _, reply in do { @@ -5758,7 +6354,10 @@ class NavigationSessionApiSetup { } else { removeUserLocationChannel.setMessageHandler(nil) } - let simulateLocationsAlongExistingRouteChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let simulateLocationsAlongExistingRouteChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { simulateLocationsAlongExistingRouteChannel.setMessageHandler { _, reply in do { @@ -5771,7 +6370,10 @@ class NavigationSessionApiSetup { } else { simulateLocationsAlongExistingRouteChannel.setMessageHandler(nil) } - let simulateLocationsAlongExistingRouteWithOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let simulateLocationsAlongExistingRouteWithOptionsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { simulateLocationsAlongExistingRouteWithOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5786,7 +6388,10 @@ class NavigationSessionApiSetup { } else { simulateLocationsAlongExistingRouteWithOptionsChannel.setMessageHandler(nil) } - let simulateLocationsAlongNewRouteChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let simulateLocationsAlongNewRouteChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { simulateLocationsAlongNewRouteChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5803,13 +6408,18 @@ class NavigationSessionApiSetup { } else { simulateLocationsAlongNewRouteChannel.setMessageHandler(nil) } - let simulateLocationsAlongNewRouteWithRoutingOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let simulateLocationsAlongNewRouteWithRoutingOptionsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { simulateLocationsAlongNewRouteWithRoutingOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let waypointsArg = args[0] as! [NavigationWaypointDto] let routingOptionsArg = args[1] as! RoutingOptionsDto - api.simulateLocationsAlongNewRouteWithRoutingOptions(waypoints: waypointsArg, routingOptions: routingOptionsArg) { result in + api.simulateLocationsAlongNewRouteWithRoutingOptions( + waypoints: waypointsArg, routingOptions: routingOptionsArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -5821,14 +6431,22 @@ class NavigationSessionApiSetup { } else { simulateLocationsAlongNewRouteWithRoutingOptionsChannel.setMessageHandler(nil) } - let simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel = + FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { - simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel.setMessageHandler { message, reply in + simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel.setMessageHandler { + message, reply in let args = message as! [Any?] let waypointsArg = args[0] as! [NavigationWaypointDto] let routingOptionsArg = args[1] as! RoutingOptionsDto let simulationOptionsArg = args[2] as! SimulationOptionsDto - api.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(waypoints: waypointsArg, routingOptions: routingOptionsArg, simulationOptions: simulationOptionsArg) { result in + api.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( + waypoints: waypointsArg, routingOptions: routingOptionsArg, + simulationOptions: simulationOptionsArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -5840,7 +6458,10 @@ class NavigationSessionApiSetup { } else { simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel.setMessageHandler(nil) } - let pauseSimulationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let pauseSimulationChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { pauseSimulationChannel.setMessageHandler { _, reply in do { @@ -5853,7 +6474,10 @@ class NavigationSessionApiSetup { } else { pauseSimulationChannel.setMessageHandler(nil) } - let resumeSimulationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let resumeSimulationChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { resumeSimulationChannel.setMessageHandler { _, reply in do { @@ -5867,7 +6491,10 @@ class NavigationSessionApiSetup { resumeSimulationChannel.setMessageHandler(nil) } /// iOS-only method. - let allowBackgroundLocationUpdatesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let allowBackgroundLocationUpdatesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { allowBackgroundLocationUpdatesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5882,7 +6509,10 @@ class NavigationSessionApiSetup { } else { allowBackgroundLocationUpdatesChannel.setMessageHandler(nil) } - let enableRoadSnappedLocationUpdatesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let enableRoadSnappedLocationUpdatesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { enableRoadSnappedLocationUpdatesChannel.setMessageHandler { _, reply in do { @@ -5895,7 +6525,10 @@ class NavigationSessionApiSetup { } else { enableRoadSnappedLocationUpdatesChannel.setMessageHandler(nil) } - let disableRoadSnappedLocationUpdatesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let disableRoadSnappedLocationUpdatesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { disableRoadSnappedLocationUpdatesChannel.setMessageHandler { _, reply in do { @@ -5908,14 +6541,18 @@ class NavigationSessionApiSetup { } else { disableRoadSnappedLocationUpdatesChannel.setMessageHandler(nil) } - let enableTurnByTurnNavigationEventsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let enableTurnByTurnNavigationEventsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { enableTurnByTurnNavigationEventsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let numNextStepsToPreviewArg: Int64? = nilOrValue(args[0]) let optionsArg: StepImageGenerationOptionsDto? = nilOrValue(args[1]) do { - try api.enableTurnByTurnNavigationEvents(numNextStepsToPreview: numNextStepsToPreviewArg, options: optionsArg) + try api.enableTurnByTurnNavigationEvents( + numNextStepsToPreview: numNextStepsToPreviewArg, options: optionsArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -5924,7 +6561,10 @@ class NavigationSessionApiSetup { } else { enableTurnByTurnNavigationEventsChannel.setMessageHandler(nil) } - let disableTurnByTurnNavigationEventsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let disableTurnByTurnNavigationEventsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { disableTurnByTurnNavigationEventsChannel.setMessageHandler { _, reply in do { @@ -5937,14 +6577,19 @@ class NavigationSessionApiSetup { } else { disableTurnByTurnNavigationEventsChannel.setMessageHandler(nil) } - let registerRemainingTimeOrDistanceChangedListenerChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let registerRemainingTimeOrDistanceChangedListenerChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { registerRemainingTimeOrDistanceChangedListenerChannel.setMessageHandler { message, reply in let args = message as! [Any?] let remainingTimeThresholdSecondsArg = args[0] as! Int64 let remainingDistanceThresholdMetersArg = args[1] as! Int64 do { - try api.registerRemainingTimeOrDistanceChangedListener(remainingTimeThresholdSeconds: remainingTimeThresholdSecondsArg, remainingDistanceThresholdMeters: remainingDistanceThresholdMetersArg) + try api.registerRemainingTimeOrDistanceChangedListener( + remainingTimeThresholdSeconds: remainingTimeThresholdSecondsArg, + remainingDistanceThresholdMeters: remainingDistanceThresholdMetersArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -5957,22 +6602,34 @@ class NavigationSessionApiSetup { } /// Generated protocol from Pigeon that represents Flutter messages that can be called from Swift. protocol NavigationSessionEventApiProtocol { - func onSpeedingUpdated(msg msgArg: SpeedingUpdatedEventDto, completion: @escaping (Result) -> Void) - func onRoadSnappedLocationUpdated(location locationArg: LatLngDto, completion: @escaping (Result) -> Void) - func onRoadSnappedRawLocationUpdated(location locationArg: LatLngDto, completion: @escaping (Result) -> Void) - func onArrival(waypoint waypointArg: NavigationWaypointDto, completion: @escaping (Result) -> Void) + func onSpeedingUpdated( + msg msgArg: SpeedingUpdatedEventDto, completion: @escaping (Result) -> Void) + func onRoadSnappedLocationUpdated( + location locationArg: LatLngDto, completion: @escaping (Result) -> Void) + func onRoadSnappedRawLocationUpdated( + location locationArg: LatLngDto, completion: @escaping (Result) -> Void) + func onArrival( + waypoint waypointArg: NavigationWaypointDto, + completion: @escaping (Result) -> Void) func onRouteChanged(completion: @escaping (Result) -> Void) - func onRemainingTimeOrDistanceChanged(remainingTime remainingTimeArg: Double, remainingDistance remainingDistanceArg: Double, delaySeverity delaySeverityArg: TrafficDelaySeverityDto, completion: @escaping (Result) -> Void) + func onRemainingTimeOrDistanceChanged( + remainingTime remainingTimeArg: Double, remainingDistance remainingDistanceArg: Double, + delaySeverity delaySeverityArg: TrafficDelaySeverityDto, + completion: @escaping (Result) -> Void) /// Android-only event. func onTrafficUpdated(completion: @escaping (Result) -> Void) /// Android-only event. func onRerouting(completion: @escaping (Result) -> Void) /// Android-only event. - func onGpsAvailabilityUpdate(available availableArg: Bool, completion: @escaping (Result) -> Void) + func onGpsAvailabilityUpdate( + available availableArg: Bool, completion: @escaping (Result) -> Void) /// Android-only event. - func onGpsAvailabilityChange(event eventArg: GpsAvailabilityChangeEventDto, completion: @escaping (Result) -> Void) + func onGpsAvailabilityChange( + event eventArg: GpsAvailabilityChangeEventDto, + completion: @escaping (Result) -> Void) /// Turn-by-Turn navigation events. - func onNavInfo(navInfo navInfoArg: NavInfoDto, completion: @escaping (Result) -> Void) + func onNavInfo( + navInfo navInfoArg: NavInfoDto, completion: @escaping (Result) -> Void) /// Navigation session event. Called when a new navigation /// session starts with active guidance. func onNewNavigationSession(completion: @escaping (Result) -> Void) @@ -5987,9 +6644,13 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { var codec: MessagesPigeonCodec { return MessagesPigeonCodec.shared } - func onSpeedingUpdated(msg msgArg: SpeedingUpdatedEventDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onSpeedingUpdated( + msg msgArg: SpeedingUpdatedEventDto, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated\(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))) @@ -6005,9 +6666,13 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } } - func onRoadSnappedLocationUpdated(location locationArg: LatLngDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onRoadSnappedLocationUpdated( + location locationArg: LatLngDto, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([locationArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6023,9 +6688,13 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } } - func onRoadSnappedRawLocationUpdated(location locationArg: LatLngDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onRoadSnappedRawLocationUpdated( + location locationArg: LatLngDto, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([locationArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6041,9 +6710,14 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } } - func onArrival(waypoint waypointArg: NavigationWaypointDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onArrival( + waypoint waypointArg: NavigationWaypointDto, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([waypointArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6060,8 +6734,10 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } func onRouteChanged(completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged\(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))) @@ -6077,10 +6753,17 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } } - func onRemainingTimeOrDistanceChanged(remainingTime remainingTimeArg: Double, remainingDistance remainingDistanceArg: Double, delaySeverity delaySeverityArg: TrafficDelaySeverityDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([remainingTimeArg, remainingDistanceArg, delaySeverityArg] as [Any?]) { response in + func onRemainingTimeOrDistanceChanged( + remainingTime remainingTimeArg: Double, remainingDistance remainingDistanceArg: Double, + delaySeverity delaySeverityArg: TrafficDelaySeverityDto, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([remainingTimeArg, remainingDistanceArg, delaySeverityArg] as [Any?]) { + response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) return @@ -6097,8 +6780,10 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } /// Android-only event. func onTrafficUpdated(completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated\(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))) @@ -6116,8 +6801,10 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } /// Android-only event. func onRerouting(completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting\(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))) @@ -6134,9 +6821,13 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } /// Android-only event. - func onGpsAvailabilityUpdate(available availableArg: Bool, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onGpsAvailabilityUpdate( + available availableArg: Bool, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([availableArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6153,9 +6844,14 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } /// Android-only event. - func onGpsAvailabilityChange(event eventArg: GpsAvailabilityChangeEventDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onGpsAvailabilityChange( + event eventArg: GpsAvailabilityChangeEventDto, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([eventArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6172,9 +6868,13 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } /// Turn-by-Turn navigation events. - func onNavInfo(navInfo navInfoArg: NavInfoDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onNavInfo( + navInfo navInfoArg: NavInfoDto, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([navInfoArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6193,8 +6893,10 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { /// Navigation session event. Called when a new navigation /// session starts with active guidance. func onNewNavigationSession(completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNewNavigationSession\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNewNavigationSession\(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))) @@ -6226,13 +6928,25 @@ protocol AutoMapViewApi { func getCameraPosition() throws -> CameraPositionDto func getVisibleRegion() throws -> LatLngBoundsDto func followMyLocation(perspective: CameraPerspectiveDto, zoomLevel: Double?) throws - func animateCameraToCameraPosition(cameraPosition: CameraPositionDto, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraToLatLng(point: LatLngDto, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraToLatLngBounds(bounds: LatLngBoundsDto, padding: Double, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraToLatLngZoom(point: LatLngDto, zoom: Double, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraByScroll(scrollByDx: Double, scrollByDy: Double, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraByZoom(zoomBy: Double, focusDx: Double?, focusDy: Double?, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraToZoom(zoom: Double, duration: Int64?, completion: @escaping (Result) -> Void) + func animateCameraToCameraPosition( + cameraPosition: CameraPositionDto, duration: Int64?, + completion: @escaping (Result) -> Void) + func animateCameraToLatLng( + point: LatLngDto, duration: Int64?, completion: @escaping (Result) -> Void) + func animateCameraToLatLngBounds( + bounds: LatLngBoundsDto, padding: Double, duration: Int64?, + completion: @escaping (Result) -> Void) + func animateCameraToLatLngZoom( + point: LatLngDto, zoom: Double, duration: Int64?, + completion: @escaping (Result) -> Void) + func animateCameraByScroll( + scrollByDx: Double, scrollByDy: Double, duration: Int64?, + completion: @escaping (Result) -> Void) + func animateCameraByZoom( + zoomBy: Double, focusDx: Double?, focusDy: Double?, duration: Int64?, + completion: @escaping (Result) -> Void) + func animateCameraToZoom( + zoom: Double, duration: Int64?, completion: @escaping (Result) -> Void) func moveCameraToCameraPosition(cameraPosition: CameraPositionDto) throws func moveCameraToLatLng(point: LatLngDto) throws func moveCameraToLatLngBounds(bounds: LatLngBoundsDto, padding: Double) throws @@ -6320,12 +7034,17 @@ protocol AutoMapViewApi { class AutoMapViewApiSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `AutoMapViewApi` to handle messages through the `binaryMessenger`. - static func setUp(binaryMessenger: FlutterBinaryMessenger, api: AutoMapViewApi?, messageChannelSuffix: String = "") { + static func setUp( + binaryMessenger: FlutterBinaryMessenger, api: AutoMapViewApi?, messageChannelSuffix: String = "" + ) { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" /// Sets the map options to be used for Android Auto and CarPlay views. /// Should be called before the Auto/CarPlay screen is created. /// This allows customization of mapId and basic map settings. - let setAutoMapOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setAutoMapOptionsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setAutoMapOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6340,7 +7059,10 @@ class AutoMapViewApiSetup { } else { setAutoMapOptionsChannel.setMessageHandler(nil) } - let isMyLocationEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isMyLocationEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMyLocationEnabledChannel.setMessageHandler { _, reply in do { @@ -6353,7 +7075,10 @@ class AutoMapViewApiSetup { } else { isMyLocationEnabledChannel.setMessageHandler(nil) } - let setMyLocationEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMyLocationEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMyLocationEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6368,7 +7093,10 @@ class AutoMapViewApiSetup { } else { setMyLocationEnabledChannel.setMessageHandler(nil) } - let getMyLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMyLocationChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMyLocationChannel.setMessageHandler { _, reply in do { @@ -6381,7 +7109,10 @@ class AutoMapViewApiSetup { } else { getMyLocationChannel.setMessageHandler(nil) } - let getMapTypeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMapTypeChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMapTypeChannel.setMessageHandler { _, reply in do { @@ -6394,7 +7125,10 @@ class AutoMapViewApiSetup { } else { getMapTypeChannel.setMessageHandler(nil) } - let setMapTypeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMapTypeChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapTypeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6409,7 +7143,10 @@ class AutoMapViewApiSetup { } else { setMapTypeChannel.setMessageHandler(nil) } - let setMapStyleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMapStyleChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapStyleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6424,7 +7161,10 @@ class AutoMapViewApiSetup { } else { setMapStyleChannel.setMessageHandler(nil) } - let getCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getCameraPositionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCameraPositionChannel.setMessageHandler { _, reply in do { @@ -6437,7 +7177,10 @@ class AutoMapViewApiSetup { } else { getCameraPositionChannel.setMessageHandler(nil) } - let getVisibleRegionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getVisibleRegionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getVisibleRegionChannel.setMessageHandler { _, reply in do { @@ -6450,7 +7193,10 @@ class AutoMapViewApiSetup { } else { getVisibleRegionChannel.setMessageHandler(nil) } - let followMyLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let followMyLocationChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { followMyLocationChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6466,13 +7212,17 @@ class AutoMapViewApiSetup { } else { followMyLocationChannel.setMessageHandler(nil) } - let animateCameraToCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToCameraPositionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let cameraPositionArg = args[0] as! CameraPositionDto let durationArg: Int64? = nilOrValue(args[1]) - api.animateCameraToCameraPosition(cameraPosition: cameraPositionArg, duration: durationArg) { result in + api.animateCameraToCameraPosition(cameraPosition: cameraPositionArg, duration: durationArg) + { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -6484,7 +7234,10 @@ class AutoMapViewApiSetup { } else { animateCameraToCameraPositionChannel.setMessageHandler(nil) } - let animateCameraToLatLngChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6502,14 +7255,19 @@ class AutoMapViewApiSetup { } else { animateCameraToLatLngChannel.setMessageHandler(nil) } - let animateCameraToLatLngBoundsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngBoundsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngBoundsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let boundsArg = args[0] as! LatLngBoundsDto let paddingArg = args[1] as! Double let durationArg: Int64? = nilOrValue(args[2]) - api.animateCameraToLatLngBounds(bounds: boundsArg, padding: paddingArg, duration: durationArg) { result in + api.animateCameraToLatLngBounds( + bounds: boundsArg, padding: paddingArg, duration: durationArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -6521,14 +7279,18 @@ class AutoMapViewApiSetup { } else { animateCameraToLatLngBoundsChannel.setMessageHandler(nil) } - let animateCameraToLatLngZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pointArg = args[0] as! LatLngDto let zoomArg = args[1] as! Double let durationArg: Int64? = nilOrValue(args[2]) - api.animateCameraToLatLngZoom(point: pointArg, zoom: zoomArg, duration: durationArg) { result in + api.animateCameraToLatLngZoom(point: pointArg, zoom: zoomArg, duration: durationArg) { + result in switch result { case .success(let res): reply(wrapResult(res)) @@ -6540,14 +7302,19 @@ class AutoMapViewApiSetup { } else { animateCameraToLatLngZoomChannel.setMessageHandler(nil) } - let animateCameraByScrollChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraByScrollChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraByScrollChannel.setMessageHandler { message, reply in let args = message as! [Any?] let scrollByDxArg = args[0] as! Double let scrollByDyArg = args[1] as! Double let durationArg: Int64? = nilOrValue(args[2]) - api.animateCameraByScroll(scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg, duration: durationArg) { result in + api.animateCameraByScroll( + scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg, duration: durationArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -6559,7 +7326,10 @@ class AutoMapViewApiSetup { } else { animateCameraByScrollChannel.setMessageHandler(nil) } - let animateCameraByZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraByZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraByZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6567,7 +7337,9 @@ class AutoMapViewApiSetup { let focusDxArg: Double? = nilOrValue(args[1]) let focusDyArg: Double? = nilOrValue(args[2]) let durationArg: Int64? = nilOrValue(args[3]) - api.animateCameraByZoom(zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg, duration: durationArg) { result in + api.animateCameraByZoom( + zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg, duration: durationArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -6579,7 +7351,10 @@ class AutoMapViewApiSetup { } else { animateCameraByZoomChannel.setMessageHandler(nil) } - let animateCameraToZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6597,7 +7372,10 @@ class AutoMapViewApiSetup { } else { animateCameraToZoomChannel.setMessageHandler(nil) } - let moveCameraToCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToCameraPositionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6612,7 +7390,10 @@ class AutoMapViewApiSetup { } else { moveCameraToCameraPositionChannel.setMessageHandler(nil) } - let moveCameraToLatLngChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6627,7 +7408,10 @@ class AutoMapViewApiSetup { } else { moveCameraToLatLngChannel.setMessageHandler(nil) } - let moveCameraToLatLngBoundsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngBoundsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngBoundsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6643,7 +7427,10 @@ class AutoMapViewApiSetup { } else { moveCameraToLatLngBoundsChannel.setMessageHandler(nil) } - let moveCameraToLatLngZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6659,7 +7446,10 @@ class AutoMapViewApiSetup { } else { moveCameraToLatLngZoomChannel.setMessageHandler(nil) } - let moveCameraByScrollChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraByScrollChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraByScrollChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6675,7 +7465,10 @@ class AutoMapViewApiSetup { } else { moveCameraByScrollChannel.setMessageHandler(nil) } - let moveCameraByZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraByZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraByZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6692,7 +7485,10 @@ class AutoMapViewApiSetup { } else { moveCameraByZoomChannel.setMessageHandler(nil) } - let moveCameraToZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6707,7 +7503,10 @@ class AutoMapViewApiSetup { } else { moveCameraToZoomChannel.setMessageHandler(nil) } - let getMinZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMinZoomPreferenceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMinZoomPreferenceChannel.setMessageHandler { _, reply in do { @@ -6720,7 +7519,10 @@ class AutoMapViewApiSetup { } else { getMinZoomPreferenceChannel.setMessageHandler(nil) } - let getMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMaxZoomPreferenceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMaxZoomPreferenceChannel.setMessageHandler { _, reply in do { @@ -6733,7 +7535,10 @@ class AutoMapViewApiSetup { } else { getMaxZoomPreferenceChannel.setMessageHandler(nil) } - let resetMinMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let resetMinMaxZoomPreferenceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { resetMinMaxZoomPreferenceChannel.setMessageHandler { _, reply in do { @@ -6746,7 +7551,10 @@ class AutoMapViewApiSetup { } else { resetMinMaxZoomPreferenceChannel.setMessageHandler(nil) } - let setMinZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMinZoomPreferenceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMinZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6761,7 +7569,10 @@ class AutoMapViewApiSetup { } else { setMinZoomPreferenceChannel.setMessageHandler(nil) } - let setMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMaxZoomPreferenceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMaxZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6776,7 +7587,10 @@ class AutoMapViewApiSetup { } else { setMaxZoomPreferenceChannel.setMessageHandler(nil) } - let setMyLocationButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMyLocationButtonEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMyLocationButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6791,7 +7605,10 @@ class AutoMapViewApiSetup { } else { setMyLocationButtonEnabledChannel.setMessageHandler(nil) } - let setConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6806,7 +7623,10 @@ class AutoMapViewApiSetup { } else { setConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler(nil) } - let setZoomGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setZoomGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setZoomGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6821,7 +7641,10 @@ class AutoMapViewApiSetup { } else { setZoomGesturesEnabledChannel.setMessageHandler(nil) } - let setZoomControlsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setZoomControlsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setZoomControlsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6836,7 +7659,10 @@ class AutoMapViewApiSetup { } else { setZoomControlsEnabledChannel.setMessageHandler(nil) } - let setCompassEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setCompassEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setCompassEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6851,7 +7677,10 @@ class AutoMapViewApiSetup { } else { setCompassEnabledChannel.setMessageHandler(nil) } - let setRotateGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setRotateGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setRotateGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6866,7 +7695,10 @@ class AutoMapViewApiSetup { } else { setRotateGesturesEnabledChannel.setMessageHandler(nil) } - let setScrollGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setScrollGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setScrollGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6881,7 +7713,10 @@ class AutoMapViewApiSetup { } else { setScrollGesturesEnabledChannel.setMessageHandler(nil) } - let setScrollGesturesDuringRotateOrZoomEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setScrollGesturesDuringRotateOrZoomEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setScrollGesturesDuringRotateOrZoomEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6896,7 +7731,10 @@ class AutoMapViewApiSetup { } else { setScrollGesturesDuringRotateOrZoomEnabledChannel.setMessageHandler(nil) } - let setTiltGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setTiltGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTiltGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6911,7 +7749,10 @@ class AutoMapViewApiSetup { } else { setTiltGesturesEnabledChannel.setMessageHandler(nil) } - let setMapToolbarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMapToolbarEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapToolbarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6926,7 +7767,10 @@ class AutoMapViewApiSetup { } else { setMapToolbarEnabledChannel.setMessageHandler(nil) } - let setTrafficEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setTrafficEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6941,7 +7785,10 @@ class AutoMapViewApiSetup { } else { setTrafficEnabledChannel.setMessageHandler(nil) } - let setTrafficPromptsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setTrafficPromptsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficPromptsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6956,7 +7803,10 @@ class AutoMapViewApiSetup { } else { setTrafficPromptsEnabledChannel.setMessageHandler(nil) } - let setTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficIncidentCardsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6971,7 +7821,10 @@ class AutoMapViewApiSetup { } else { setTrafficIncidentCardsEnabledChannel.setMessageHandler(nil) } - let setNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationTripProgressBarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6986,7 +7839,10 @@ class AutoMapViewApiSetup { } else { setNavigationTripProgressBarEnabledChannel.setMessageHandler(nil) } - let setSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setSpeedLimitIconEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7001,7 +7857,10 @@ class AutoMapViewApiSetup { } else { setSpeedLimitIconEnabledChannel.setMessageHandler(nil) } - let setSpeedometerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setSpeedometerEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setSpeedometerEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7016,7 +7875,10 @@ class AutoMapViewApiSetup { } else { setSpeedometerEnabledChannel.setMessageHandler(nil) } - let setNavigationUIEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setNavigationUIEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationUIEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7031,7 +7893,10 @@ class AutoMapViewApiSetup { } else { setNavigationUIEnabledChannel.setMessageHandler(nil) } - let isMyLocationButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isMyLocationButtonEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMyLocationButtonEnabledChannel.setMessageHandler { _, reply in do { @@ -7044,7 +7909,10 @@ class AutoMapViewApiSetup { } else { isMyLocationButtonEnabledChannel.setMessageHandler(nil) } - let isConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler { _, reply in do { @@ -7057,7 +7925,10 @@ class AutoMapViewApiSetup { } else { isConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler(nil) } - let isZoomGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isZoomGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isZoomGesturesEnabledChannel.setMessageHandler { _, reply in do { @@ -7070,7 +7941,10 @@ class AutoMapViewApiSetup { } else { isZoomGesturesEnabledChannel.setMessageHandler(nil) } - let isZoomControlsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isZoomControlsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isZoomControlsEnabledChannel.setMessageHandler { _, reply in do { @@ -7083,7 +7957,10 @@ class AutoMapViewApiSetup { } else { isZoomControlsEnabledChannel.setMessageHandler(nil) } - let isCompassEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isCompassEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isCompassEnabledChannel.setMessageHandler { _, reply in do { @@ -7096,7 +7973,10 @@ class AutoMapViewApiSetup { } else { isCompassEnabledChannel.setMessageHandler(nil) } - let isRotateGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isRotateGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isRotateGesturesEnabledChannel.setMessageHandler { _, reply in do { @@ -7109,7 +7989,10 @@ class AutoMapViewApiSetup { } else { isRotateGesturesEnabledChannel.setMessageHandler(nil) } - let isScrollGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isScrollGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isScrollGesturesEnabledChannel.setMessageHandler { _, reply in do { @@ -7122,7 +8005,10 @@ class AutoMapViewApiSetup { } else { isScrollGesturesEnabledChannel.setMessageHandler(nil) } - let isScrollGesturesEnabledDuringRotateOrZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isScrollGesturesEnabledDuringRotateOrZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isScrollGesturesEnabledDuringRotateOrZoomChannel.setMessageHandler { _, reply in do { @@ -7135,7 +8021,10 @@ class AutoMapViewApiSetup { } else { isScrollGesturesEnabledDuringRotateOrZoomChannel.setMessageHandler(nil) } - let isTiltGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isTiltGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTiltGesturesEnabledChannel.setMessageHandler { _, reply in do { @@ -7148,7 +8037,10 @@ class AutoMapViewApiSetup { } else { isTiltGesturesEnabledChannel.setMessageHandler(nil) } - let isMapToolbarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isMapToolbarEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMapToolbarEnabledChannel.setMessageHandler { _, reply in do { @@ -7161,7 +8053,10 @@ class AutoMapViewApiSetup { } else { isMapToolbarEnabledChannel.setMessageHandler(nil) } - let isTrafficEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isTrafficEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficEnabledChannel.setMessageHandler { _, reply in do { @@ -7174,7 +8069,10 @@ class AutoMapViewApiSetup { } else { isTrafficEnabledChannel.setMessageHandler(nil) } - let isTrafficPromptsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isTrafficPromptsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficPromptsEnabledChannel.setMessageHandler { _, reply in do { @@ -7187,7 +8085,10 @@ class AutoMapViewApiSetup { } else { isTrafficPromptsEnabledChannel.setMessageHandler(nil) } - let isTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficIncidentCardsEnabledChannel.setMessageHandler { _, reply in do { @@ -7200,7 +8101,10 @@ class AutoMapViewApiSetup { } else { isTrafficIncidentCardsEnabledChannel.setMessageHandler(nil) } - let isNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationTripProgressBarEnabledChannel.setMessageHandler { _, reply in do { @@ -7213,7 +8117,10 @@ class AutoMapViewApiSetup { } else { isNavigationTripProgressBarEnabledChannel.setMessageHandler(nil) } - let isSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isSpeedLimitIconEnabledChannel.setMessageHandler { _, reply in do { @@ -7226,7 +8133,10 @@ class AutoMapViewApiSetup { } else { isSpeedLimitIconEnabledChannel.setMessageHandler(nil) } - let isSpeedometerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isSpeedometerEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isSpeedometerEnabledChannel.setMessageHandler { _, reply in do { @@ -7239,7 +8149,10 @@ class AutoMapViewApiSetup { } else { isSpeedometerEnabledChannel.setMessageHandler(nil) } - let isNavigationUIEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isNavigationUIEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationUIEnabledChannel.setMessageHandler { _, reply in do { @@ -7252,7 +8165,10 @@ class AutoMapViewApiSetup { } else { isNavigationUIEnabledChannel.setMessageHandler(nil) } - let isIndoorEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isIndoorEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isIndoorEnabledChannel.setMessageHandler { _, reply in do { @@ -7265,7 +8181,10 @@ class AutoMapViewApiSetup { } else { isIndoorEnabledChannel.setMessageHandler(nil) } - let setIndoorEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setIndoorEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setIndoorEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7280,7 +8199,10 @@ class AutoMapViewApiSetup { } else { setIndoorEnabledChannel.setMessageHandler(nil) } - let getFocusedIndoorBuildingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getFocusedIndoorBuildingChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getFocusedIndoorBuildingChannel.setMessageHandler { _, reply in do { @@ -7293,7 +8215,10 @@ class AutoMapViewApiSetup { } else { getFocusedIndoorBuildingChannel.setMessageHandler(nil) } - let activateIndoorLevelChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let activateIndoorLevelChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { activateIndoorLevelChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7308,7 +8233,10 @@ class AutoMapViewApiSetup { } else { activateIndoorLevelChannel.setMessageHandler(nil) } - let showRouteOverviewChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let showRouteOverviewChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { showRouteOverviewChannel.setMessageHandler { _, reply in do { @@ -7321,7 +8249,10 @@ class AutoMapViewApiSetup { } else { showRouteOverviewChannel.setMessageHandler(nil) } - let getMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMarkersChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMarkersChannel.setMessageHandler { _, reply in do { @@ -7334,7 +8265,10 @@ class AutoMapViewApiSetup { } else { getMarkersChannel.setMessageHandler(nil) } - let addMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let addMarkersChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { addMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7349,7 +8283,10 @@ class AutoMapViewApiSetup { } else { addMarkersChannel.setMessageHandler(nil) } - let updateMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let updateMarkersChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { updateMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7364,7 +8301,10 @@ class AutoMapViewApiSetup { } else { updateMarkersChannel.setMessageHandler(nil) } - let removeMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let removeMarkersChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { removeMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7379,7 +8319,10 @@ class AutoMapViewApiSetup { } else { removeMarkersChannel.setMessageHandler(nil) } - let clearMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearMarkersChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearMarkersChannel.setMessageHandler { _, reply in do { @@ -7392,7 +8335,9 @@ class AutoMapViewApiSetup { } else { clearMarkersChannel.setMessageHandler(nil) } - let clearChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearChannel.setMessageHandler { _, reply in do { @@ -7405,7 +8350,10 @@ class AutoMapViewApiSetup { } else { clearChannel.setMessageHandler(nil) } - let getPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getPolygonsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPolygonsChannel.setMessageHandler { _, reply in do { @@ -7418,7 +8366,10 @@ class AutoMapViewApiSetup { } else { getPolygonsChannel.setMessageHandler(nil) } - let addPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let addPolygonsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { addPolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7433,7 +8384,10 @@ class AutoMapViewApiSetup { } else { addPolygonsChannel.setMessageHandler(nil) } - let updatePolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let updatePolygonsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { updatePolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7448,7 +8402,10 @@ class AutoMapViewApiSetup { } else { updatePolygonsChannel.setMessageHandler(nil) } - let removePolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let removePolygonsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { removePolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7463,7 +8420,10 @@ class AutoMapViewApiSetup { } else { removePolygonsChannel.setMessageHandler(nil) } - let clearPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearPolygonsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearPolygonsChannel.setMessageHandler { _, reply in do { @@ -7476,7 +8436,10 @@ class AutoMapViewApiSetup { } else { clearPolygonsChannel.setMessageHandler(nil) } - let getPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getPolylinesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPolylinesChannel.setMessageHandler { _, reply in do { @@ -7489,7 +8452,10 @@ class AutoMapViewApiSetup { } else { getPolylinesChannel.setMessageHandler(nil) } - let addPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let addPolylinesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { addPolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7504,7 +8470,10 @@ class AutoMapViewApiSetup { } else { addPolylinesChannel.setMessageHandler(nil) } - let updatePolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let updatePolylinesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { updatePolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7519,7 +8488,10 @@ class AutoMapViewApiSetup { } else { updatePolylinesChannel.setMessageHandler(nil) } - let removePolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let removePolylinesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { removePolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7534,7 +8506,10 @@ class AutoMapViewApiSetup { } else { removePolylinesChannel.setMessageHandler(nil) } - let clearPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearPolylinesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearPolylinesChannel.setMessageHandler { _, reply in do { @@ -7547,7 +8522,10 @@ class AutoMapViewApiSetup { } else { clearPolylinesChannel.setMessageHandler(nil) } - let getCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getCirclesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCirclesChannel.setMessageHandler { _, reply in do { @@ -7560,7 +8538,10 @@ class AutoMapViewApiSetup { } else { getCirclesChannel.setMessageHandler(nil) } - let addCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let addCirclesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { addCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7575,7 +8556,10 @@ class AutoMapViewApiSetup { } else { addCirclesChannel.setMessageHandler(nil) } - let updateCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let updateCirclesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { updateCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7590,7 +8574,10 @@ class AutoMapViewApiSetup { } else { updateCirclesChannel.setMessageHandler(nil) } - let removeCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let removeCirclesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { removeCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7605,7 +8592,10 @@ class AutoMapViewApiSetup { } else { removeCirclesChannel.setMessageHandler(nil) } - let clearCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearCirclesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearCirclesChannel.setMessageHandler { _, reply in do { @@ -7618,7 +8608,10 @@ class AutoMapViewApiSetup { } else { clearCirclesChannel.setMessageHandler(nil) } - let enableOnCameraChangedEventsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let enableOnCameraChangedEventsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { enableOnCameraChangedEventsChannel.setMessageHandler { _, reply in do { @@ -7631,7 +8624,10 @@ class AutoMapViewApiSetup { } else { enableOnCameraChangedEventsChannel.setMessageHandler(nil) } - let isAutoScreenAvailableChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isAutoScreenAvailableChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isAutoScreenAvailableChannel.setMessageHandler { _, reply in do { @@ -7644,7 +8640,10 @@ class AutoMapViewApiSetup { } else { isAutoScreenAvailableChannel.setMessageHandler(nil) } - let setPaddingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setPaddingChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setPaddingChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7659,7 +8658,10 @@ class AutoMapViewApiSetup { } else { setPaddingChannel.setMessageHandler(nil) } - let getPaddingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getPaddingChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPaddingChannel.setMessageHandler { _, reply in do { @@ -7672,7 +8674,10 @@ class AutoMapViewApiSetup { } else { getPaddingChannel.setMessageHandler(nil) } - let getMapColorSchemeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMapColorSchemeChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMapColorSchemeChannel.setMessageHandler { _, reply in do { @@ -7685,7 +8690,10 @@ class AutoMapViewApiSetup { } else { getMapColorSchemeChannel.setMessageHandler(nil) } - let setMapColorSchemeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMapColorSchemeChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapColorSchemeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7700,7 +8708,10 @@ class AutoMapViewApiSetup { } else { setMapColorSchemeChannel.setMessageHandler(nil) } - let getForceNightModeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getForceNightModeChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getForceNightModeChannel.setMessageHandler { _, reply in do { @@ -7713,7 +8724,10 @@ class AutoMapViewApiSetup { } else { getForceNightModeChannel.setMessageHandler(nil) } - let setForceNightModeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setForceNightModeChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setForceNightModeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7728,7 +8742,10 @@ class AutoMapViewApiSetup { } else { setForceNightModeChannel.setMessageHandler(nil) } - let sendCustomNavigationAutoEventChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let sendCustomNavigationAutoEventChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { sendCustomNavigationAutoEventChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7748,12 +8765,22 @@ class AutoMapViewApiSetup { } /// Generated protocol from Pigeon that represents Flutter messages that can be called from Swift. protocol AutoViewEventApiProtocol { - func onCustomNavigationAutoEvent(event eventArg: String, data dataArg: Any, completion: @escaping (Result) -> Void) - func onAutoScreenAvailabilityChanged(isAvailable isAvailableArg: Bool, completion: @escaping (Result) -> Void) - func onPromptVisibilityChanged(promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void) - func onNavigationUIEnabledChanged(navigationUIEnabled navigationUIEnabledArg: Bool, completion: @escaping (Result) -> Void) - func onIndoorFocusedBuildingChanged(building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) - func onIndoorActiveLevelChanged(building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) + func onCustomNavigationAutoEvent( + event eventArg: String, data dataArg: Any, + completion: @escaping (Result) -> Void) + func onAutoScreenAvailabilityChanged( + isAvailable isAvailableArg: Bool, completion: @escaping (Result) -> Void) + func onPromptVisibilityChanged( + promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void) + func onNavigationUIEnabledChanged( + navigationUIEnabled navigationUIEnabledArg: Bool, + completion: @escaping (Result) -> Void) + func onIndoorFocusedBuildingChanged( + building buildingArg: IndoorBuildingDto?, + completion: @escaping (Result) -> Void) + func onIndoorActiveLevelChanged( + building buildingArg: IndoorBuildingDto?, + completion: @escaping (Result) -> Void) } class AutoViewEventApi: AutoViewEventApiProtocol { private let binaryMessenger: FlutterBinaryMessenger @@ -7765,9 +8792,14 @@ class AutoViewEventApi: AutoViewEventApiProtocol { var codec: MessagesPigeonCodec { return MessagesPigeonCodec.shared } - func onCustomNavigationAutoEvent(event eventArg: String, data dataArg: Any, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onCustomNavigationAutoEvent( + event eventArg: String, data dataArg: Any, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([eventArg, dataArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -7783,9 +8815,13 @@ class AutoViewEventApi: AutoViewEventApiProtocol { } } } - func onAutoScreenAvailabilityChanged(isAvailable isAvailableArg: Bool, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onAutoScreenAvailabilityChanged( + isAvailable isAvailableArg: Bool, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([isAvailableArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -7801,9 +8837,13 @@ class AutoViewEventApi: AutoViewEventApiProtocol { } } } - func onPromptVisibilityChanged(promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onPromptVisibilityChanged( + promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([promptVisibleArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -7819,9 +8859,14 @@ class AutoViewEventApi: AutoViewEventApiProtocol { } } } - func onNavigationUIEnabledChanged(navigationUIEnabled navigationUIEnabledArg: Bool, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onNavigationUIEnabledChanged( + navigationUIEnabled navigationUIEnabledArg: Bool, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([navigationUIEnabledArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -7837,9 +8882,14 @@ class AutoViewEventApi: AutoViewEventApiProtocol { } } } - func onIndoorFocusedBuildingChanged(building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onIndoorFocusedBuildingChanged( + building buildingArg: IndoorBuildingDto?, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([buildingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -7855,9 +8905,14 @@ class AutoViewEventApi: AutoViewEventApiProtocol { } } } - func onIndoorActiveLevelChanged(building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onIndoorActiveLevelChanged( + building buildingArg: IndoorBuildingDto?, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([buildingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -7883,9 +8938,15 @@ protocol NavigationInspector { class NavigationInspectorSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `NavigationInspector` to handle messages through the `binaryMessenger`. - static func setUp(binaryMessenger: FlutterBinaryMessenger, api: NavigationInspector?, messageChannelSuffix: String = "") { + static func setUp( + binaryMessenger: FlutterBinaryMessenger, api: NavigationInspector?, + messageChannelSuffix: String = "" + ) { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let isViewAttachedToSessionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isViewAttachedToSessionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isViewAttachedToSessionChannel.setMessageHandler { message, reply in let args = message as! [Any?] diff --git a/lib/src/method_channel/convert/navigation.dart b/lib/src/method_channel/convert/navigation.dart index f41d1b9e..e6aafd99 100644 --- a/lib/src/method_channel/convert/navigation.dart +++ b/lib/src/method_channel/convert/navigation.dart @@ -19,7 +19,8 @@ import '../method_channel.dart'; /// [NavigationNotificationOptions] convert extension. /// @nodoc -extension ConvertNavigationNotificationOptions on NavigationNotificationOptions { +extension ConvertNavigationNotificationOptions + on NavigationNotificationOptions { /// Converts [NavigationNotificationOptions] to its platform representation. NavigationNotificationOptionsDto toDto() => NavigationNotificationOptionsDto( notificationId: notificationId, diff --git a/lib/src/method_channel/messages.g.dart b/lib/src/method_channel/messages.g.dart index 554a7867..b259adc1 100644 --- a/lib/src/method_channel/messages.g.dart +++ b/lib/src/method_channel/messages.g.dart @@ -29,7 +29,11 @@ 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 []; } @@ -38,25 +42,30 @@ List wrapResponse({Object? result, PlatformException? error, bool empty } return [error.code, error.message, error.details]; } + bool _deepEquals(Object? a, Object? b) { if (a is List && b is List) { return a.length == b.length && - a.indexed - .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); + a.indexed.every( + ((int, dynamic) item) => _deepEquals(item.$2, b[item.$1]), + ); } if (a is Map && b is Map) { - return a.length == b.length && a.entries.every((MapEntry entry) => - (b as Map).containsKey(entry.key) && - _deepEquals(entry.value, b[entry.key])); + return a.length == b.length && + a.entries.every( + (MapEntry entry) => + (b as Map).containsKey(entry.key) && + _deepEquals(entry.value, b[entry.key]), + ); } return a == b; } - /// Describes the type of map to construct. enum MapViewTypeDto { /// Navigation view supports navigation overlay, and current navigation session is displayed on the map. navigation, + /// Classic map view, without navigation overlay. map, } @@ -66,24 +75,21 @@ enum NavigationUIEnabledPreferenceDto { /// Navigation UI gets enabled if the navigation /// session has already been successfully started. automatic, + /// Navigation UI is disabled. disabled, } -enum MapTypeDto { - none, - normal, - satellite, - terrain, - hybrid, -} +enum MapTypeDto { none, normal, satellite, terrain, hybrid } /// Map color scheme mode. enum MapColorSchemeDto { /// Follow system or SDK default (automatic). followSystem, + /// Force light color scheme. light, + /// Force dark color scheme. dark, } @@ -92,23 +98,23 @@ enum MapColorSchemeDto { enum NavigationForceNightModeDto { /// Let the SDK automatically determine day or night. auto, + /// Force day mode regardless of time or location. forceDay, + /// Force night mode regardless of time or location. forceNight, } -enum CameraPerspectiveDto { - tilted, - topDownHeadingUp, - topDownNorthUp, -} +enum CameraPerspectiveDto { tilted, topDownHeadingUp, topDownNorthUp } enum RegisteredImageTypeDto { /// Default type used when custom bitmaps are uploaded to registry regular, + /// Maneuver image generated from StepInfo data maneuver, + /// Lanes guidance image generated from StepInfo data lanes, } @@ -120,23 +126,11 @@ enum MarkerEventTypeDto { infoWindowLongClicked, } -enum MarkerDragEventTypeDto { - drag, - dragStart, - dragEnd, -} +enum MarkerDragEventTypeDto { drag, dragStart, dragEnd } -enum StrokeJointTypeDto { - bevel, - defaultJoint, - round, -} +enum StrokeJointTypeDto { bevel, defaultJoint, round } -enum PatternTypeDto { - dash, - dot, - gap, -} +enum PatternTypeDto { dash, dot, gap } enum CameraEventTypeDto { moveStartedByApi, @@ -147,25 +141,11 @@ enum CameraEventTypeDto { onCameraStoppedFollowingLocation, } -enum AlternateRoutesStrategyDto { - all, - none, - one, -} +enum AlternateRoutesStrategyDto { all, none, one } -enum RoutingStrategyDto { - defaultBest, - deltaToTargetDistance, - shorter, -} +enum RoutingStrategyDto { defaultBest, deltaToTargetDistance, shorter } -enum TravelModeDto { - driving, - cycling, - walking, - twoWheeler, - taxi, -} +enum TravelModeDto { driving, cycling, walking, twoWheeler, taxi } enum RouteStatusDto { internalError, @@ -185,30 +165,13 @@ enum RouteStatusDto { unknown, } -enum TrafficDelaySeverityDto { - light, - medium, - heavy, - noData, -} +enum TrafficDelaySeverityDto { light, medium, heavy, noData } -enum AudioGuidanceTypeDto { - silent, - alertsOnly, - alertsAndGuidance, -} +enum AudioGuidanceTypeDto { silent, alertsOnly, alertsAndGuidance } -enum SpeedAlertSeverityDto { - unknown, - notSpeeding, - minor, - major, -} +enum SpeedAlertSeverityDto { unknown, notSpeeding, minor, major } -enum RouteSegmentTrafficDataStatusDto { - ok, - unavailable, -} +enum RouteSegmentTrafficDataStatusDto { ok, unavailable } enum RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto { unknown, @@ -220,134 +183,199 @@ enum RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto { enum ManeuverDto { /// Arrival at a destination. destination, + /// Starting point of the maneuver. depart, + /// Arrival at a destination located on the left side of the road. destinationLeft, + /// Arrival at a destination located on the right side of the road. destinationRight, + /// Take the boat ferry. ferryBoat, + /// Take the train ferry. ferryTrain, + /// Current road joins another road slightly on the left. forkLeft, + /// Current road joins another road slightly on the right. forkRight, + /// Current road joins another on the left. mergeLeft, + /// Current road joins another on the right. mergeRight, + /// Current road joins another. mergeUnspecified, + /// The street name changes. nameChange, + /// Keep to the left side of the road when exiting a turnpike or freeway as the road diverges. offRampKeepLeft, + /// Keep to the right side of the road when exiting a turnpike or freeway as the road diverges. offRampKeepRight, + /// Regular left turn to exit a turnpike or freeway. offRampLeft, + /// Regular right turn to exit a turnpike or freeway. offRampRight, + /// Sharp left turn to exit a turnpike or freeway. offRampSharpLeft, + /// Sharp right turn to exit a turnpike or freeway. offRampSharpRight, + /// Slight left turn to exit a turnpike or freeway. offRampSlightLeft, + /// Slight right turn to exit a turnpike or freeway. offRampSlightRight, + /// Exit a turnpike or freeway. offRampUnspecified, + /// Clockwise turn onto the opposite side of the street to exit a turnpike or freeway. offRampUTurnClockwise, + /// Counterclockwise turn onto the opposite side of the street to exit a turnpike or freeway. offRampUTurnCounterclockwise, + /// Keep to the left side of the road when entering a turnpike or freeway as the road diverges. onRampKeepLeft, + /// Keep to the right side of the road when entering a turnpike or freeway as the road diverges. onRampKeepRight, + /// Regular left turn to enter a turnpike or freeway. onRampLeft, + /// Regular right turn to enter a turnpike or freeway. onRampRight, + /// Sharp left turn to enter a turnpike or freeway. onRampSharpLeft, + /// Sharp right turn to enter a turnpike or freeway. onRampSharpRight, + /// Slight left turn to enter a turnpike or freeway. onRampSlightLeft, + /// Slight right turn to enter a turnpike or freeway. onRampSlightRight, + /// Enter a turnpike or freeway. onRampUnspecified, + /// Clockwise turn onto the opposite side of the street to enter a turnpike or freeway. onRampUTurnClockwise, + /// Counterclockwise turn onto the opposite side of the street to enter a turnpike or freeway. onRampUTurnCounterclockwise, + /// Enter a roundabout in the clockwise direction. roundaboutClockwise, + /// Enter a roundabout in the counterclockwise direction. roundaboutCounterclockwise, + /// Exit a roundabout in the clockwise direction. roundaboutExitClockwise, + /// Exit a roundabout in the counterclockwise direction. roundaboutExitCounterclockwise, + /// Enter a roundabout in the clockwise direction and turn left. roundaboutLeftClockwise, + /// Enter a roundabout in the counterclockwise direction and turn left. roundaboutLeftCounterclockwise, + /// Enter a roundabout in the clockwise direction and turn right. roundaboutRightClockwise, + /// Enter a roundabout in the counterclockwise direction and turn right. roundaboutRightCounterclockwise, + /// Enter a roundabout in the clockwise direction and turn sharply to the left. roundaboutSharpLeftClockwise, + /// Enter a roundabout in the counterclockwise direction and turn sharply to the left. roundaboutSharpLeftCounterclockwise, + /// Enter a roundabout in the clockwise direction and turn sharply to the right. roundaboutSharpRightClockwise, + /// Enter a roundabout in the counterclockwise direction and turn sharply to the right. roundaboutSharpRightCounterclockwise, + /// Enter a roundabout in the clockwise direction and turn slightly left. roundaboutSlightLeftClockwise, + /// Enter a roundabout in the counterclockwise direction and turn slightly to the left. roundaboutSlightLeftCounterclockwise, + /// Enter a roundabout in the clockwise direction and turn slightly to the right. roundaboutSlightRightClockwise, + /// Enter a roundabout in the counterclockwise direction and turn slightly to the right. roundaboutSlightRightCounterclockwise, + /// Enter a roundabout in the clockwise direction and continue straight. roundaboutStraightClockwise, + /// Enter a roundabout in the counterclockwise direction and continue straight. roundaboutStraightCounterclockwise, + /// Enter a roundabout in the clockwise direction and turn clockwise onto the opposite side of the street. roundaboutUTurnClockwise, + /// Enter a roundabout in the counterclockwise direction and turn counterclockwise onto the opposite side of the street. roundaboutUTurnCounterclockwise, + /// Continue straight. straight, + /// Keep left as the road diverges. turnKeepLeft, + /// Keep right as the road diverges. turnKeepRight, + /// Regular left turn at an intersection. turnLeft, + /// Regular right turn at an intersection. turnRight, + /// Sharp left turn at an intersection. turnSharpLeft, + /// Sharp right turn at an intersection. turnSharpRight, + /// Slight left turn at an intersection. turnSlightLeft, + /// Slight right turn at an intersection. turnSlightRight, + /// Clockwise turn onto the opposite side of the street. turnUTurnClockwise, + /// Counterclockwise turn onto the opposite side of the street. turnUTurnCounterclockwise, + /// Unknown maneuver. unknown, } @@ -356,8 +384,10 @@ enum ManeuverDto { enum DrivingSideDto { /// Drive-on-left side. left, + /// Unspecified side. none, + /// Drive-on-right side. right, } @@ -366,10 +396,13 @@ enum DrivingSideDto { enum NavStateDto { /// Actively navigating. enroute, + /// Actively navigating but searching for a new route. rerouting, + /// Navigation has ended. stopped, + /// Error or unspecified state. unknown, } @@ -378,22 +411,31 @@ enum NavStateDto { enum LaneShapeDto { /// Normal left turn (45-135 degrees). normalLeft, + /// Normal right turn (45-135 degrees). normalRight, + /// Sharp left turn (135-175 degrees). sharpLeft, + /// Sharp right turn (135-175 degrees). sharpRight, + /// Slight left turn (10-45 degrees). slightLeft, + /// Slight right turn (10-45 degrees). slightRight, + /// No turn. straight, + /// Shape is unknown. unknown, + /// A left turn onto the opposite side of the same street (175-180 degrees). uTurnLeft, + /// A right turn onto the opposite side of the same street (175-180 degrees). uTurnRight, } @@ -403,6 +445,7 @@ enum TaskRemovedBehaviorDto { /// The default state, indicating that navigation guidance, /// location updates, and notification should persist after user removes the application task. continueService, + /// Indicates that navigation guidance, location updates, and notification should shut down immediately when the user removes the application task. quitService, } @@ -448,7 +491,8 @@ class AutoMapOptionsDto { } Object encode() { - return _toList(); } + return _toList(); + } static AutoMapOptionsDto decode(Object result) { result as List; @@ -458,7 +502,8 @@ class AutoMapOptionsDto { mapType: result[2] as MapTypeDto?, mapColorScheme: result[3] as MapColorSchemeDto?, forceNightMode: result[4] as NavigationForceNightModeDto?, - navigationUIEnabledPreference: result[5] as NavigationUIEnabledPreferenceDto?, + navigationUIEnabledPreference: + result[5] as NavigationUIEnabledPreferenceDto?, ); } @@ -476,8 +521,7 @@ class AutoMapOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } /// Object containing map options used to initialize Google Map view. @@ -573,7 +617,8 @@ class MapOptionsDto { } Object encode() { - return _toList(); } + return _toList(); + } static MapOptionsDto decode(Object result) { result as List; @@ -611,8 +656,7 @@ class MapOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } /// Object containing navigation options used to initialize Google Navigation view. @@ -641,12 +685,14 @@ class NavigationViewOptionsDto { } Object encode() { - return _toList(); } + return _toList(); + } static NavigationViewOptionsDto decode(Object result) { result as List; return NavigationViewOptionsDto( - navigationUIEnabledPreference: result[0]! as NavigationUIEnabledPreferenceDto, + navigationUIEnabledPreference: + result[0]! as NavigationUIEnabledPreferenceDto, forceNightMode: result[1]! as NavigationForceNightModeDto, headerStylingOptions: result[2] as NavigationHeaderStylingOptionsDto?, ); @@ -655,7 +701,8 @@ class NavigationViewOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! NavigationViewOptionsDto || other.runtimeType != runtimeType) { + if (other is! NavigationViewOptionsDto || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -666,8 +713,7 @@ class NavigationViewOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } /// A message for creating a new navigation view. @@ -688,15 +734,12 @@ class ViewCreationOptionsDto { NavigationViewOptionsDto? navigationViewOptions; List _toList() { - return [ - mapViewType, - mapOptions, - navigationViewOptions, - ]; + return [mapViewType, mapOptions, navigationViewOptions]; } Object encode() { - return _toList(); } + return _toList(); + } static ViewCreationOptionsDto decode(Object result) { result as List; @@ -721,8 +764,7 @@ class ViewCreationOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class CameraPositionDto { @@ -742,16 +784,12 @@ class CameraPositionDto { double zoom; List _toList() { - return [ - bearing, - target, - tilt, - zoom, - ]; + return [bearing, target, tilt, zoom]; } Object encode() { - return _toList(); } + return _toList(); + } static CameraPositionDto decode(Object result) { result as List; @@ -777,15 +815,11 @@ class CameraPositionDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class MarkerDto { - MarkerDto({ - required this.markerId, - required this.options, - }); + MarkerDto({required this.markerId, required this.options}); /// Identifies marker String markerId; @@ -794,14 +828,12 @@ class MarkerDto { MarkerOptionsDto options; List _toList() { - return [ - markerId, - options, - ]; + return [markerId, options]; } Object encode() { - return _toList(); } + return _toList(); + } static MarkerDto decode(Object result) { result as List; @@ -825,8 +857,7 @@ class MarkerDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class MarkerOptionsDto { @@ -883,7 +914,8 @@ class MarkerOptionsDto { } Object encode() { - return _toList(); } + return _toList(); + } static MarkerOptionsDto decode(Object result) { result as List; @@ -916,8 +948,7 @@ class MarkerOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class ImageDescriptorDto { @@ -940,17 +971,12 @@ class ImageDescriptorDto { RegisteredImageTypeDto type; List _toList() { - return [ - registeredImageId, - imagePixelRatio, - width, - height, - type, - ]; + return [registeredImageId, imagePixelRatio, width, height, type]; } Object encode() { - return _toList(); } + return _toList(); + } static ImageDescriptorDto decode(Object result) { result as List; @@ -977,16 +1003,11 @@ class ImageDescriptorDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class InfoWindowDto { - InfoWindowDto({ - this.title, - this.snippet, - required this.anchor, - }); + InfoWindowDto({this.title, this.snippet, required this.anchor}); String? title; @@ -995,15 +1016,12 @@ class InfoWindowDto { MarkerAnchorDto anchor; List _toList() { - return [ - title, - snippet, - anchor, - ]; + return [title, snippet, anchor]; } Object encode() { - return _toList(); } + return _toList(); + } static InfoWindowDto decode(Object result) { result as List; @@ -1028,36 +1046,27 @@ class InfoWindowDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class MarkerAnchorDto { - MarkerAnchorDto({ - required this.u, - required this.v, - }); + MarkerAnchorDto({required this.u, required this.v}); double u; double v; List _toList() { - return [ - u, - v, - ]; + return [u, v]; } Object encode() { - return _toList(); } + return _toList(); + } static MarkerAnchorDto decode(Object result) { result as List; - return MarkerAnchorDto( - u: result[0]! as double, - v: result[1]! as double, - ); + return MarkerAnchorDto(u: result[0]! as double, v: result[1]! as double); } @override @@ -1074,8 +1083,7 @@ class MarkerAnchorDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } /// Represents a point of interest (POI) on the map. @@ -1098,15 +1106,12 @@ class PointOfInterestDto { LatLngDto latLng; List _toList() { - return [ - placeID, - name, - latLng, - ]; + return [placeID, name, latLng]; } Object encode() { - return _toList(); } + return _toList(); + } static PointOfInterestDto decode(Object result) { result as List; @@ -1131,16 +1136,12 @@ class PointOfInterestDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } /// Represents one indoor level of a focused indoor building. class IndoorLevelDto { - IndoorLevelDto({ - this.name, - this.shortName, - }); + IndoorLevelDto({this.name, this.shortName}); /// Full display name of the level. String? name; @@ -1149,14 +1150,12 @@ class IndoorLevelDto { String? shortName; List _toList() { - return [ - name, - shortName, - ]; + return [name, shortName]; } Object encode() { - return _toList(); } + return _toList(); + } static IndoorLevelDto decode(Object result) { result as List; @@ -1180,8 +1179,7 @@ class IndoorLevelDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } /// Represents focused indoor building metadata. @@ -1215,7 +1213,8 @@ class IndoorBuildingDto { } Object encode() { - return _toList(); } + return _toList(); + } static IndoorBuildingDto decode(Object result) { result as List; @@ -1241,29 +1240,23 @@ class IndoorBuildingDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class PolygonDto { - PolygonDto({ - required this.polygonId, - required this.options, - }); + PolygonDto({required this.polygonId, required this.options}); String polygonId; PolygonOptionsDto options; List _toList() { - return [ - polygonId, - options, - ]; + return [polygonId, options]; } Object encode() { - return _toList(); } + return _toList(); + } static PolygonDto decode(Object result) { result as List; @@ -1287,8 +1280,7 @@ class PolygonDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class PolygonOptionsDto { @@ -1337,7 +1329,8 @@ class PolygonOptionsDto { } Object encode() { - return _toList(); } + return _toList(); + } static PolygonOptionsDto decode(Object result) { result as List; @@ -1368,25 +1361,21 @@ class PolygonOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class PolygonHoleDto { - PolygonHoleDto({ - required this.points, - }); + PolygonHoleDto({required this.points}); List points; List _toList() { - return [ - points, - ]; + return [points]; } Object encode() { - return _toList(); } + return _toList(); + } static PolygonHoleDto decode(Object result) { result as List; @@ -1409,16 +1398,11 @@ class PolygonHoleDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class StyleSpanStrokeStyleDto { - StyleSpanStrokeStyleDto({ - this.solidColor, - this.fromColor, - this.toColor, - }); + StyleSpanStrokeStyleDto({this.solidColor, this.fromColor, this.toColor}); int? solidColor; @@ -1427,15 +1411,12 @@ class StyleSpanStrokeStyleDto { int? toColor; List _toList() { - return [ - solidColor, - fromColor, - toColor, - ]; + return [solidColor, fromColor, toColor]; } Object encode() { - return _toList(); } + return _toList(); + } static StyleSpanStrokeStyleDto decode(Object result) { result as List; @@ -1460,29 +1441,23 @@ class StyleSpanStrokeStyleDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class StyleSpanDto { - StyleSpanDto({ - required this.length, - required this.style, - }); + StyleSpanDto({required this.length, required this.style}); double length; StyleSpanStrokeStyleDto style; List _toList() { - return [ - length, - style, - ]; + return [length, style]; } Object encode() { - return _toList(); } + return _toList(); + } static StyleSpanDto decode(Object result) { result as List; @@ -1506,29 +1481,23 @@ class StyleSpanDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class PolylineDto { - PolylineDto({ - required this.polylineId, - required this.options, - }); + PolylineDto({required this.polylineId, required this.options}); String polylineId; PolylineOptionsDto options; List _toList() { - return [ - polylineId, - options, - ]; + return [polylineId, options]; } Object encode() { - return _toList(); } + return _toList(); + } static PolylineDto decode(Object result) { result as List; @@ -1552,29 +1521,23 @@ class PolylineDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class PatternItemDto { - PatternItemDto({ - required this.type, - this.length, - }); + PatternItemDto({required this.type, this.length}); PatternTypeDto type; double? length; List _toList() { - return [ - type, - length, - ]; + return [type, length]; } Object encode() { - return _toList(); } + return _toList(); + } static PatternItemDto decode(Object result) { result as List; @@ -1598,8 +1561,7 @@ class PatternItemDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class PolylineOptionsDto { @@ -1652,7 +1614,8 @@ class PolylineOptionsDto { } Object encode() { - return _toList(); } + return _toList(); + } static PolylineOptionsDto decode(Object result) { result as List; @@ -1684,15 +1647,11 @@ class PolylineOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class CircleDto { - CircleDto({ - required this.circleId, - required this.options, - }); + CircleDto({required this.circleId, required this.options}); /// Identifies circle. String circleId; @@ -1701,14 +1660,12 @@ class CircleDto { CircleOptionsDto options; List _toList() { - return [ - circleId, - options, - ]; + return [circleId, options]; } Object encode() { - return _toList(); } + return _toList(); + } static CircleDto decode(Object result) { result as List; @@ -1732,8 +1689,7 @@ class CircleDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class CircleOptionsDto { @@ -1782,7 +1738,8 @@ class CircleOptionsDto { } Object encode() { - return _toList(); } + return _toList(); + } static CircleOptionsDto decode(Object result) { result as List; @@ -1813,8 +1770,7 @@ class CircleOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class MapPaddingDto { @@ -1834,16 +1790,12 @@ class MapPaddingDto { int right; List _toList() { - return [ - top, - left, - bottom, - right, - ]; + return [top, left, bottom, right]; } Object encode() { - return _toList(); } + return _toList(); + } static MapPaddingDto decode(Object result) { result as List; @@ -1869,8 +1821,7 @@ class MapPaddingDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } /// Navigation header styling options. @@ -1954,7 +1905,8 @@ class NavigationHeaderStylingOptionsDto { } Object encode() { - return _toList(); } + return _toList(); + } static NavigationHeaderStylingOptionsDto decode(Object result) { result as List; @@ -1981,7 +1933,8 @@ class NavigationHeaderStylingOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! NavigationHeaderStylingOptionsDto || other.runtimeType != runtimeType) { + if (other is! NavigationHeaderStylingOptionsDto || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -1992,29 +1945,23 @@ class NavigationHeaderStylingOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class RouteTokenOptionsDto { - RouteTokenOptionsDto({ - required this.routeToken, - this.travelMode, - }); + RouteTokenOptionsDto({required this.routeToken, this.travelMode}); String routeToken; TravelModeDto? travelMode; List _toList() { - return [ - routeToken, - travelMode, - ]; + return [routeToken, travelMode]; } Object encode() { - return _toList(); } + return _toList(); + } static RouteTokenOptionsDto decode(Object result) { result as List; @@ -2038,8 +1985,7 @@ class RouteTokenOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class DestinationsDto { @@ -2068,7 +2014,8 @@ class DestinationsDto { } Object encode() { - return _toList(); } + return _toList(); + } static DestinationsDto decode(Object result) { result as List; @@ -2094,8 +2041,7 @@ class DestinationsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class RoutingOptionsDto { @@ -2140,7 +2086,8 @@ class RoutingOptionsDto { } Object encode() { - return _toList(); } + return _toList(); + } static RoutingOptionsDto decode(Object result) { result as List; @@ -2170,8 +2117,7 @@ class RoutingOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class NavigationDisplayOptionsDto { @@ -2190,15 +2136,12 @@ class NavigationDisplayOptionsDto { bool? showTrafficLights; List _toList() { - return [ - showDestinationMarkers, - showStopSigns, - showTrafficLights, - ]; + return [showDestinationMarkers, showStopSigns, showTrafficLights]; } Object encode() { - return _toList(); } + return _toList(); + } static NavigationDisplayOptionsDto decode(Object result) { result as List; @@ -2212,7 +2155,8 @@ class NavigationDisplayOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! NavigationDisplayOptionsDto || other.runtimeType != runtimeType) { + if (other is! NavigationDisplayOptionsDto || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -2223,8 +2167,7 @@ class NavigationDisplayOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class NavigationWaypointDto { @@ -2257,7 +2200,8 @@ class NavigationWaypointDto { } Object encode() { - return _toList(); } + return _toList(); + } static NavigationWaypointDto decode(Object result) { result as List; @@ -2284,29 +2228,23 @@ class NavigationWaypointDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class ContinueToNextDestinationResponseDto { - ContinueToNextDestinationResponseDto({ - this.waypoint, - this.routeStatus, - }); + ContinueToNextDestinationResponseDto({this.waypoint, this.routeStatus}); NavigationWaypointDto? waypoint; RouteStatusDto? routeStatus; List _toList() { - return [ - waypoint, - routeStatus, - ]; + return [waypoint, routeStatus]; } Object encode() { - return _toList(); } + return _toList(); + } static ContinueToNextDestinationResponseDto decode(Object result) { result as List; @@ -2319,7 +2257,8 @@ class ContinueToNextDestinationResponseDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! ContinueToNextDestinationResponseDto || other.runtimeType != runtimeType) { + if (other is! ContinueToNextDestinationResponseDto || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -2330,8 +2269,7 @@ class ContinueToNextDestinationResponseDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class NavigationTimeAndDistanceDto { @@ -2348,15 +2286,12 @@ class NavigationTimeAndDistanceDto { TrafficDelaySeverityDto delaySeverity; List _toList() { - return [ - time, - distance, - delaySeverity, - ]; + return [time, distance, delaySeverity]; } Object encode() { - return _toList(); } + return _toList(); + } static NavigationTimeAndDistanceDto decode(Object result) { result as List; @@ -2370,7 +2305,8 @@ class NavigationTimeAndDistanceDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! NavigationTimeAndDistanceDto || other.runtimeType != runtimeType) { + if (other is! NavigationTimeAndDistanceDto || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -2381,8 +2317,7 @@ class NavigationTimeAndDistanceDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class NavigationAudioGuidanceSettingsDto { @@ -2399,15 +2334,12 @@ class NavigationAudioGuidanceSettingsDto { AudioGuidanceTypeDto? guidanceType; List _toList() { - return [ - isBluetoothAudioEnabled, - isVibrationEnabled, - guidanceType, - ]; + return [isBluetoothAudioEnabled, isVibrationEnabled, guidanceType]; } Object encode() { - return _toList(); } + return _toList(); + } static NavigationAudioGuidanceSettingsDto decode(Object result) { result as List; @@ -2421,7 +2353,8 @@ class NavigationAudioGuidanceSettingsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! NavigationAudioGuidanceSettingsDto || other.runtimeType != runtimeType) { + if (other is! NavigationAudioGuidanceSettingsDto || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -2432,31 +2365,25 @@ class NavigationAudioGuidanceSettingsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class SimulationOptionsDto { - SimulationOptionsDto({ - required this.speedMultiplier, - }); + SimulationOptionsDto({required this.speedMultiplier}); double speedMultiplier; List _toList() { - return [ - speedMultiplier, - ]; + return [speedMultiplier]; } Object encode() { - return _toList(); } + return _toList(); + } static SimulationOptionsDto decode(Object result) { result as List; - return SimulationOptionsDto( - speedMultiplier: result[0]! as double, - ); + return SimulationOptionsDto(speedMultiplier: result[0]! as double); } @override @@ -2473,29 +2400,23 @@ class SimulationOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class LatLngDto { - LatLngDto({ - required this.latitude, - required this.longitude, - }); + LatLngDto({required this.latitude, required this.longitude}); double latitude; double longitude; List _toList() { - return [ - latitude, - longitude, - ]; + return [latitude, longitude]; } Object encode() { - return _toList(); } + return _toList(); + } static LatLngDto decode(Object result) { result as List; @@ -2519,29 +2440,23 @@ class LatLngDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class LatLngBoundsDto { - LatLngBoundsDto({ - required this.southwest, - required this.northeast, - }); + LatLngBoundsDto({required this.southwest, required this.northeast}); LatLngDto southwest; LatLngDto northeast; List _toList() { - return [ - southwest, - northeast, - ]; + return [southwest, northeast]; } Object encode() { - return _toList(); } + return _toList(); + } static LatLngBoundsDto decode(Object result) { result as List; @@ -2565,8 +2480,7 @@ class LatLngBoundsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class SpeedingUpdatedEventDto { @@ -2580,14 +2494,12 @@ class SpeedingUpdatedEventDto { SpeedAlertSeverityDto severity; List _toList() { - return [ - percentageAboveLimit, - severity, - ]; + return [percentageAboveLimit, severity]; } Object encode() { - return _toList(); } + return _toList(); + } static SpeedingUpdatedEventDto decode(Object result) { result as List; @@ -2611,8 +2523,7 @@ class SpeedingUpdatedEventDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class GpsAvailabilityChangeEventDto { @@ -2626,14 +2537,12 @@ class GpsAvailabilityChangeEventDto { bool isGpsValidForNavigation; List _toList() { - return [ - isGpsLost, - isGpsValidForNavigation, - ]; + return [isGpsLost, isGpsValidForNavigation]; } Object encode() { - return _toList(); } + return _toList(); + } static GpsAvailabilityChangeEventDto decode(Object result) { result as List; @@ -2646,7 +2555,8 @@ class GpsAvailabilityChangeEventDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! GpsAvailabilityChangeEventDto || other.runtimeType != runtimeType) { + if (other is! GpsAvailabilityChangeEventDto || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -2657,8 +2567,7 @@ class GpsAvailabilityChangeEventDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class SpeedAlertOptionsThresholdPercentageDto { @@ -2672,14 +2581,12 @@ class SpeedAlertOptionsThresholdPercentageDto { SpeedAlertSeverityDto severity; List _toList() { - return [ - percentage, - severity, - ]; + return [percentage, severity]; } Object encode() { - return _toList(); } + return _toList(); + } static SpeedAlertOptionsThresholdPercentageDto decode(Object result) { result as List; @@ -2692,7 +2599,8 @@ class SpeedAlertOptionsThresholdPercentageDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! SpeedAlertOptionsThresholdPercentageDto || other.runtimeType != runtimeType) { + if (other is! SpeedAlertOptionsThresholdPercentageDto || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -2703,8 +2611,7 @@ class SpeedAlertOptionsThresholdPercentageDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class SpeedAlertOptionsDto { @@ -2729,7 +2636,8 @@ class SpeedAlertOptionsDto { } Object encode() { - return _toList(); } + return _toList(); + } static SpeedAlertOptionsDto decode(Object result) { result as List; @@ -2754,8 +2662,7 @@ class SpeedAlertOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class RouteSegmentTrafficDataRoadStretchRenderingDataDto { @@ -2772,20 +2679,20 @@ class RouteSegmentTrafficDataRoadStretchRenderingDataDto { int offsetMeters; List _toList() { - return [ - style, - lengthMeters, - offsetMeters, - ]; + return [style, lengthMeters, offsetMeters]; } Object encode() { - return _toList(); } + return _toList(); + } - static RouteSegmentTrafficDataRoadStretchRenderingDataDto decode(Object result) { + static RouteSegmentTrafficDataRoadStretchRenderingDataDto decode( + Object result, + ) { result as List; return RouteSegmentTrafficDataRoadStretchRenderingDataDto( - style: result[0]! as RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto, + style: + result[0]! as RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto, lengthMeters: result[1]! as int, offsetMeters: result[2]! as int, ); @@ -2794,7 +2701,8 @@ class RouteSegmentTrafficDataRoadStretchRenderingDataDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! RouteSegmentTrafficDataRoadStretchRenderingDataDto || other.runtimeType != runtimeType) { + if (other is! RouteSegmentTrafficDataRoadStretchRenderingDataDto || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -2805,8 +2713,7 @@ class RouteSegmentTrafficDataRoadStretchRenderingDataDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class RouteSegmentTrafficDataDto { @@ -2817,30 +2724,31 @@ class RouteSegmentTrafficDataDto { RouteSegmentTrafficDataStatusDto status; - List roadStretchRenderingDataList; + List + roadStretchRenderingDataList; List _toList() { - return [ - status, - roadStretchRenderingDataList, - ]; + return [status, roadStretchRenderingDataList]; } Object encode() { - return _toList(); } + return _toList(); + } static RouteSegmentTrafficDataDto decode(Object result) { result as List; return RouteSegmentTrafficDataDto( status: result[0]! as RouteSegmentTrafficDataStatusDto, - roadStretchRenderingDataList: (result[1] as List?)!.cast(), + roadStretchRenderingDataList: (result[1] as List?)! + .cast(), ); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! RouteSegmentTrafficDataDto || other.runtimeType != runtimeType) { + if (other is! RouteSegmentTrafficDataDto || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -2851,8 +2759,7 @@ class RouteSegmentTrafficDataDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class RouteSegmentDto { @@ -2881,7 +2788,8 @@ class RouteSegmentDto { } Object encode() { - return _toList(); } + return _toList(); + } static RouteSegmentDto decode(Object result) { result as List; @@ -2907,16 +2815,12 @@ class RouteSegmentDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } /// One of the possible directions from a lane at the end of a route step, and whether it is on the recommended route. class LaneDirectionDto { - LaneDirectionDto({ - required this.laneShape, - required this.isRecommended, - }); + LaneDirectionDto({required this.laneShape, required this.isRecommended}); /// Shape for this lane direction. LaneShapeDto laneShape; @@ -2925,14 +2829,12 @@ class LaneDirectionDto { bool isRecommended; List _toList() { - return [ - laneShape, - isRecommended, - ]; + return [laneShape, isRecommended]; } Object encode() { - return _toList(); } + return _toList(); + } static LaneDirectionDto decode(Object result) { result as List; @@ -2956,27 +2858,23 @@ class LaneDirectionDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } /// Single lane on the road at the end of a route step. class LaneDto { - LaneDto({ - required this.laneDirections, - }); + LaneDto({required this.laneDirections}); /// List of possible directions a driver can follow when using this lane at the end of the respective route step List laneDirections; List _toList() { - return [ - laneDirections, - ]; + return [laneDirections]; } Object encode() { - return _toList(); } + return _toList(); + } static LaneDto decode(Object result) { result as List; @@ -2999,8 +2897,7 @@ class LaneDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } /// Information about a single step along a navigation route. @@ -3082,7 +2979,8 @@ class StepInfoDto { } Object encode() { - return _toList(); } + return _toList(); + } static StepInfoDto decode(Object result) { result as List; @@ -3117,8 +3015,7 @@ class StepInfoDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } /// Contains information about the state of navigation, the current nav step if @@ -3191,7 +3088,8 @@ class NavInfoDto { } Object encode() { - return _toList(); } + return _toList(); + } static NavInfoDto decode(Object result) { result as List; @@ -3223,8 +3121,7 @@ class NavInfoDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } /// UI customization parameters for the Terms and Conditions dialog. @@ -3266,7 +3163,8 @@ class TermsAndConditionsUIParamsDto { } Object encode() { - return _toList(); } + return _toList(); + } static TermsAndConditionsUIParamsDto decode(Object result) { result as List; @@ -3282,7 +3180,8 @@ class TermsAndConditionsUIParamsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! TermsAndConditionsUIParamsDto || other.runtimeType != runtimeType) { + if (other is! TermsAndConditionsUIParamsDto || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -3293,8 +3192,7 @@ class TermsAndConditionsUIParamsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } /// Android foreground-service notification configuration. @@ -3314,15 +3212,12 @@ class NavigationNotificationOptionsDto { bool resumeAppOnTap; List _toList() { - return [ - notificationId, - defaultMessage, - resumeAppOnTap, - ]; + return [notificationId, defaultMessage, resumeAppOnTap]; } Object encode() { - return _toList(); } + return _toList(); + } static NavigationNotificationOptionsDto decode(Object result) { result as List; @@ -3336,7 +3231,8 @@ class NavigationNotificationOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! NavigationNotificationOptionsDto || other.runtimeType != runtimeType) { + if (other is! NavigationNotificationOptionsDto || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -3347,8 +3243,7 @@ class NavigationNotificationOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } /// Options for step image generation in turn-by-turn navigation events. @@ -3367,14 +3262,12 @@ class StepImageGenerationOptionsDto { bool? generateLaneImages; List _toList() { - return [ - generateManeuverImages, - generateLaneImages, - ]; + return [generateManeuverImages, generateLaneImages]; } Object encode() { - return _toList(); } + return _toList(); + } static StepImageGenerationOptionsDto decode(Object result) { result as List; @@ -3387,7 +3280,8 @@ class StepImageGenerationOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! StepImageGenerationOptionsDto || other.runtimeType != runtimeType) { + if (other is! StepImageGenerationOptionsDto || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -3398,11 +3292,9 @@ class StepImageGenerationOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -3410,232 +3302,233 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is MapViewTypeDto) { + } else if (value is MapViewTypeDto) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is NavigationUIEnabledPreferenceDto) { + } else if (value is NavigationUIEnabledPreferenceDto) { buffer.putUint8(130); writeValue(buffer, value.index); - } else if (value is MapTypeDto) { + } else if (value is MapTypeDto) { buffer.putUint8(131); writeValue(buffer, value.index); - } else if (value is MapColorSchemeDto) { + } else if (value is MapColorSchemeDto) { buffer.putUint8(132); writeValue(buffer, value.index); - } else if (value is NavigationForceNightModeDto) { + } else if (value is NavigationForceNightModeDto) { buffer.putUint8(133); writeValue(buffer, value.index); - } else if (value is CameraPerspectiveDto) { + } else if (value is CameraPerspectiveDto) { buffer.putUint8(134); writeValue(buffer, value.index); - } else if (value is RegisteredImageTypeDto) { + } else if (value is RegisteredImageTypeDto) { buffer.putUint8(135); writeValue(buffer, value.index); - } else if (value is MarkerEventTypeDto) { + } else if (value is MarkerEventTypeDto) { buffer.putUint8(136); writeValue(buffer, value.index); - } else if (value is MarkerDragEventTypeDto) { + } else if (value is MarkerDragEventTypeDto) { buffer.putUint8(137); writeValue(buffer, value.index); - } else if (value is StrokeJointTypeDto) { + } else if (value is StrokeJointTypeDto) { buffer.putUint8(138); writeValue(buffer, value.index); - } else if (value is PatternTypeDto) { + } else if (value is PatternTypeDto) { buffer.putUint8(139); writeValue(buffer, value.index); - } else if (value is CameraEventTypeDto) { + } else if (value is CameraEventTypeDto) { buffer.putUint8(140); writeValue(buffer, value.index); - } else if (value is AlternateRoutesStrategyDto) { + } else if (value is AlternateRoutesStrategyDto) { buffer.putUint8(141); writeValue(buffer, value.index); - } else if (value is RoutingStrategyDto) { + } else if (value is RoutingStrategyDto) { buffer.putUint8(142); writeValue(buffer, value.index); - } else if (value is TravelModeDto) { + } else if (value is TravelModeDto) { buffer.putUint8(143); writeValue(buffer, value.index); - } else if (value is RouteStatusDto) { + } else if (value is RouteStatusDto) { buffer.putUint8(144); writeValue(buffer, value.index); - } else if (value is TrafficDelaySeverityDto) { + } else if (value is TrafficDelaySeverityDto) { buffer.putUint8(145); writeValue(buffer, value.index); - } else if (value is AudioGuidanceTypeDto) { + } else if (value is AudioGuidanceTypeDto) { buffer.putUint8(146); writeValue(buffer, value.index); - } else if (value is SpeedAlertSeverityDto) { + } else if (value is SpeedAlertSeverityDto) { buffer.putUint8(147); writeValue(buffer, value.index); - } else if (value is RouteSegmentTrafficDataStatusDto) { + } else if (value is RouteSegmentTrafficDataStatusDto) { buffer.putUint8(148); writeValue(buffer, value.index); - } else if (value is RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto) { + } else if (value + is RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto) { buffer.putUint8(149); writeValue(buffer, value.index); - } else if (value is ManeuverDto) { + } else if (value is ManeuverDto) { buffer.putUint8(150); writeValue(buffer, value.index); - } else if (value is DrivingSideDto) { + } else if (value is DrivingSideDto) { buffer.putUint8(151); writeValue(buffer, value.index); - } else if (value is NavStateDto) { + } else if (value is NavStateDto) { buffer.putUint8(152); writeValue(buffer, value.index); - } else if (value is LaneShapeDto) { + } else if (value is LaneShapeDto) { buffer.putUint8(153); writeValue(buffer, value.index); - } else if (value is TaskRemovedBehaviorDto) { + } else if (value is TaskRemovedBehaviorDto) { buffer.putUint8(154); writeValue(buffer, value.index); - } else if (value is AutoMapOptionsDto) { + } else if (value is AutoMapOptionsDto) { buffer.putUint8(155); writeValue(buffer, value.encode()); - } else if (value is MapOptionsDto) { + } else if (value is MapOptionsDto) { buffer.putUint8(156); writeValue(buffer, value.encode()); - } else if (value is NavigationViewOptionsDto) { + } else if (value is NavigationViewOptionsDto) { buffer.putUint8(157); writeValue(buffer, value.encode()); - } else if (value is ViewCreationOptionsDto) { + } else if (value is ViewCreationOptionsDto) { buffer.putUint8(158); writeValue(buffer, value.encode()); - } else if (value is CameraPositionDto) { + } else if (value is CameraPositionDto) { buffer.putUint8(159); writeValue(buffer, value.encode()); - } else if (value is MarkerDto) { + } else if (value is MarkerDto) { buffer.putUint8(160); writeValue(buffer, value.encode()); - } else if (value is MarkerOptionsDto) { + } else if (value is MarkerOptionsDto) { buffer.putUint8(161); writeValue(buffer, value.encode()); - } else if (value is ImageDescriptorDto) { + } else if (value is ImageDescriptorDto) { buffer.putUint8(162); writeValue(buffer, value.encode()); - } else if (value is InfoWindowDto) { + } else if (value is InfoWindowDto) { buffer.putUint8(163); writeValue(buffer, value.encode()); - } else if (value is MarkerAnchorDto) { + } else if (value is MarkerAnchorDto) { buffer.putUint8(164); writeValue(buffer, value.encode()); - } else if (value is PointOfInterestDto) { + } else if (value is PointOfInterestDto) { buffer.putUint8(165); writeValue(buffer, value.encode()); - } else if (value is IndoorLevelDto) { + } else if (value is IndoorLevelDto) { buffer.putUint8(166); writeValue(buffer, value.encode()); - } else if (value is IndoorBuildingDto) { + } else if (value is IndoorBuildingDto) { buffer.putUint8(167); writeValue(buffer, value.encode()); - } else if (value is PolygonDto) { + } else if (value is PolygonDto) { buffer.putUint8(168); writeValue(buffer, value.encode()); - } else if (value is PolygonOptionsDto) { + } else if (value is PolygonOptionsDto) { buffer.putUint8(169); writeValue(buffer, value.encode()); - } else if (value is PolygonHoleDto) { + } else if (value is PolygonHoleDto) { buffer.putUint8(170); writeValue(buffer, value.encode()); - } else if (value is StyleSpanStrokeStyleDto) { + } else if (value is StyleSpanStrokeStyleDto) { buffer.putUint8(171); writeValue(buffer, value.encode()); - } else if (value is StyleSpanDto) { + } else if (value is StyleSpanDto) { buffer.putUint8(172); writeValue(buffer, value.encode()); - } else if (value is PolylineDto) { + } else if (value is PolylineDto) { buffer.putUint8(173); writeValue(buffer, value.encode()); - } else if (value is PatternItemDto) { + } else if (value is PatternItemDto) { buffer.putUint8(174); writeValue(buffer, value.encode()); - } else if (value is PolylineOptionsDto) { + } else if (value is PolylineOptionsDto) { buffer.putUint8(175); writeValue(buffer, value.encode()); - } else if (value is CircleDto) { + } else if (value is CircleDto) { buffer.putUint8(176); writeValue(buffer, value.encode()); - } else if (value is CircleOptionsDto) { + } else if (value is CircleOptionsDto) { buffer.putUint8(177); writeValue(buffer, value.encode()); - } else if (value is MapPaddingDto) { + } else if (value is MapPaddingDto) { buffer.putUint8(178); writeValue(buffer, value.encode()); - } else if (value is NavigationHeaderStylingOptionsDto) { + } else if (value is NavigationHeaderStylingOptionsDto) { buffer.putUint8(179); writeValue(buffer, value.encode()); - } else if (value is RouteTokenOptionsDto) { + } else if (value is RouteTokenOptionsDto) { buffer.putUint8(180); writeValue(buffer, value.encode()); - } else if (value is DestinationsDto) { + } else if (value is DestinationsDto) { buffer.putUint8(181); writeValue(buffer, value.encode()); - } else if (value is RoutingOptionsDto) { + } else if (value is RoutingOptionsDto) { buffer.putUint8(182); writeValue(buffer, value.encode()); - } else if (value is NavigationDisplayOptionsDto) { + } else if (value is NavigationDisplayOptionsDto) { buffer.putUint8(183); writeValue(buffer, value.encode()); - } else if (value is NavigationWaypointDto) { + } else if (value is NavigationWaypointDto) { buffer.putUint8(184); writeValue(buffer, value.encode()); - } else if (value is ContinueToNextDestinationResponseDto) { + } else if (value is ContinueToNextDestinationResponseDto) { buffer.putUint8(185); writeValue(buffer, value.encode()); - } else if (value is NavigationTimeAndDistanceDto) { + } else if (value is NavigationTimeAndDistanceDto) { buffer.putUint8(186); writeValue(buffer, value.encode()); - } else if (value is NavigationAudioGuidanceSettingsDto) { + } else if (value is NavigationAudioGuidanceSettingsDto) { buffer.putUint8(187); writeValue(buffer, value.encode()); - } else if (value is SimulationOptionsDto) { + } else if (value is SimulationOptionsDto) { buffer.putUint8(188); writeValue(buffer, value.encode()); - } else if (value is LatLngDto) { + } else if (value is LatLngDto) { buffer.putUint8(189); writeValue(buffer, value.encode()); - } else if (value is LatLngBoundsDto) { + } else if (value is LatLngBoundsDto) { buffer.putUint8(190); writeValue(buffer, value.encode()); - } else if (value is SpeedingUpdatedEventDto) { + } else if (value is SpeedingUpdatedEventDto) { buffer.putUint8(191); writeValue(buffer, value.encode()); - } else if (value is GpsAvailabilityChangeEventDto) { + } else if (value is GpsAvailabilityChangeEventDto) { buffer.putUint8(192); writeValue(buffer, value.encode()); - } else if (value is SpeedAlertOptionsThresholdPercentageDto) { + } else if (value is SpeedAlertOptionsThresholdPercentageDto) { buffer.putUint8(193); writeValue(buffer, value.encode()); - } else if (value is SpeedAlertOptionsDto) { + } else if (value is SpeedAlertOptionsDto) { buffer.putUint8(194); writeValue(buffer, value.encode()); - } else if (value is RouteSegmentTrafficDataRoadStretchRenderingDataDto) { + } else if (value is RouteSegmentTrafficDataRoadStretchRenderingDataDto) { buffer.putUint8(195); writeValue(buffer, value.encode()); - } else if (value is RouteSegmentTrafficDataDto) { + } else if (value is RouteSegmentTrafficDataDto) { buffer.putUint8(196); writeValue(buffer, value.encode()); - } else if (value is RouteSegmentDto) { + } else if (value is RouteSegmentDto) { buffer.putUint8(197); writeValue(buffer, value.encode()); - } else if (value is LaneDirectionDto) { + } else if (value is LaneDirectionDto) { buffer.putUint8(198); writeValue(buffer, value.encode()); - } else if (value is LaneDto) { + } else if (value is LaneDto) { buffer.putUint8(199); writeValue(buffer, value.encode()); - } else if (value is StepInfoDto) { + } else if (value is StepInfoDto) { buffer.putUint8(200); writeValue(buffer, value.encode()); - } else if (value is NavInfoDto) { + } else if (value is NavInfoDto) { buffer.putUint8(201); writeValue(buffer, value.encode()); - } else if (value is TermsAndConditionsUIParamsDto) { + } else if (value is TermsAndConditionsUIParamsDto) { buffer.putUint8(202); writeValue(buffer, value.encode()); - } else if (value is NavigationNotificationOptionsDto) { + } else if (value is NavigationNotificationOptionsDto) { buffer.putUint8(203); writeValue(buffer, value.encode()); - } else if (value is StepImageGenerationOptionsDto) { + } else if (value is StepImageGenerationOptionsDto) { buffer.putUint8(204); writeValue(buffer, value.encode()); } else { @@ -3651,7 +3544,9 @@ class _PigeonCodec extends StandardMessageCodec { return value == null ? null : MapViewTypeDto.values[value]; case 130: final int? value = readValue(buffer) as int?; - return value == null ? null : NavigationUIEnabledPreferenceDto.values[value]; + return value == null + ? null + : NavigationUIEnabledPreferenceDto.values[value]; case 131: final int? value = readValue(buffer) as int?; return value == null ? null : MapTypeDto.values[value]; @@ -3705,10 +3600,15 @@ class _PigeonCodec extends StandardMessageCodec { return value == null ? null : SpeedAlertSeverityDto.values[value]; case 148: final int? value = readValue(buffer) as int?; - return value == null ? null : RouteSegmentTrafficDataStatusDto.values[value]; + return value == null + ? null + : RouteSegmentTrafficDataStatusDto.values[value]; case 149: final int? value = readValue(buffer) as int?; - return value == null ? null : RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto.values[value]; + return value == null + ? null + : RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto + .values[value]; case 150: final int? value = readValue(buffer) as int?; return value == null ? null : ManeuverDto.values[value]; @@ -3801,11 +3701,15 @@ class _PigeonCodec extends StandardMessageCodec { case 192: return GpsAvailabilityChangeEventDto.decode(readValue(buffer)!); case 193: - return SpeedAlertOptionsThresholdPercentageDto.decode(readValue(buffer)!); + return SpeedAlertOptionsThresholdPercentageDto.decode( + readValue(buffer)!, + ); case 194: return SpeedAlertOptionsDto.decode(readValue(buffer)!); case 195: - return RouteSegmentTrafficDataRoadStretchRenderingDataDto.decode(readValue(buffer)!); + return RouteSegmentTrafficDataRoadStretchRenderingDataDto.decode( + readValue(buffer)!, + ); case 196: return RouteSegmentTrafficDataDto.decode(readValue(buffer)!); case 197: @@ -3840,9 +3744,13 @@ class ViewCreationApi { /// Constructor for [ViewCreationApi]. 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. - ViewCreationApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + ViewCreationApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -3850,13 +3758,17 @@ class ViewCreationApi { final String pigeonVar_messageChannelSuffix; Future create(ViewCreationOptionsDto msg) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.ViewCreationApi.create$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.ViewCreationApi.create$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [msg], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([msg]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3877,9 +3789,13 @@ class MapViewApi { /// Constructor for [MapViewApi]. 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. - MapViewApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + MapViewApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -3887,13 +3803,17 @@ class MapViewApi { final String pigeonVar_messageChannelSuffix; Future awaitMapReady(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3910,13 +3830,17 @@ class MapViewApi { } Future isMyLocationEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3938,13 +3862,17 @@ class MapViewApi { } Future setMyLocationEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3961,13 +3889,17 @@ class MapViewApi { } Future getMyLocation(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3984,13 +3916,17 @@ class MapViewApi { } Future getMapType(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4012,13 +3948,17 @@ class MapViewApi { } Future setMapType(int viewId, MapTypeDto mapType) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, mapType], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, mapType]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4035,13 +3975,17 @@ class MapViewApi { } Future setMapStyle(int viewId, String styleJson) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, styleJson], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, styleJson]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4058,13 +4002,17 @@ class MapViewApi { } Future isNavigationTripProgressBarEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4085,14 +4033,21 @@ class MapViewApi { } } - Future setNavigationTripProgressBarEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future setNavigationTripProgressBarEnabled( + int viewId, + bool enabled, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4109,13 +4064,17 @@ class MapViewApi { } Future isNavigationHeaderEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4137,13 +4096,17 @@ class MapViewApi { } Future setNavigationHeaderEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4159,14 +4122,20 @@ class MapViewApi { } } - Future getNavigationHeaderStylingOptions(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future getNavigationHeaderStylingOptions( + int viewId, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4187,14 +4156,21 @@ class MapViewApi { } } - Future setNavigationHeaderStylingOptions(int viewId, NavigationHeaderStylingOptionsDto stylingOptions) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future setNavigationHeaderStylingOptions( + int viewId, + NavigationHeaderStylingOptionsDto stylingOptions, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, stylingOptions], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, stylingOptions]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4211,13 +4187,17 @@ class MapViewApi { } Future isNavigationFooterEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4239,13 +4219,17 @@ class MapViewApi { } Future setNavigationFooterEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4262,13 +4246,17 @@ class MapViewApi { } Future isRecenterButtonEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4290,13 +4278,17 @@ class MapViewApi { } Future setRecenterButtonEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4313,13 +4305,17 @@ class MapViewApi { } Future isSpeedLimitIconEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4341,13 +4337,17 @@ class MapViewApi { } Future setSpeedLimitIconEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4364,13 +4364,17 @@ class MapViewApi { } Future isSpeedometerEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4392,13 +4396,17 @@ class MapViewApi { } Future setSpeedometerEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4415,13 +4423,17 @@ class MapViewApi { } Future isNavigationUIEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4443,13 +4455,17 @@ class MapViewApi { } Future setNavigationUIEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4466,13 +4482,17 @@ class MapViewApi { } Future isMyLocationButtonEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4494,13 +4514,17 @@ class MapViewApi { } Future setMyLocationButtonEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4517,13 +4541,17 @@ class MapViewApi { } Future isConsumeMyLocationButtonClickEventsEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4544,14 +4572,21 @@ class MapViewApi { } } - Future setConsumeMyLocationButtonClickEventsEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future setConsumeMyLocationButtonClickEventsEnabled( + int viewId, + bool enabled, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4568,13 +4603,17 @@ class MapViewApi { } Future isZoomGesturesEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4596,13 +4635,17 @@ class MapViewApi { } Future setZoomGesturesEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4619,13 +4662,17 @@ class MapViewApi { } Future isZoomControlsEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4647,13 +4694,17 @@ class MapViewApi { } Future setZoomControlsEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4670,13 +4721,17 @@ class MapViewApi { } Future isCompassEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4698,13 +4753,17 @@ class MapViewApi { } Future setCompassEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4721,13 +4780,17 @@ class MapViewApi { } Future isRotateGesturesEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4749,13 +4812,17 @@ class MapViewApi { } Future setRotateGesturesEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4772,13 +4839,17 @@ class MapViewApi { } Future isScrollGesturesEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4800,13 +4871,17 @@ class MapViewApi { } Future setScrollGesturesEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4823,13 +4898,17 @@ class MapViewApi { } Future isScrollGesturesEnabledDuringRotateOrZoom(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4850,14 +4929,21 @@ class MapViewApi { } } - Future setScrollGesturesDuringRotateOrZoomEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future setScrollGesturesDuringRotateOrZoomEnabled( + int viewId, + bool enabled, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4874,13 +4960,17 @@ class MapViewApi { } Future isTiltGesturesEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4902,13 +4992,17 @@ class MapViewApi { } Future setTiltGesturesEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4925,13 +5019,17 @@ class MapViewApi { } Future isMapToolbarEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4953,13 +5051,17 @@ class MapViewApi { } Future setMapToolbarEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4976,13 +5078,17 @@ class MapViewApi { } Future isTrafficEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5004,13 +5110,17 @@ class MapViewApi { } Future setTrafficEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5027,13 +5137,17 @@ class MapViewApi { } Future isTrafficIncidentCardsEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5055,13 +5169,17 @@ class MapViewApi { } Future setTrafficIncidentCardsEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5078,13 +5196,17 @@ class MapViewApi { } Future isTrafficPromptsEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5106,13 +5228,17 @@ class MapViewApi { } Future setTrafficPromptsEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5129,13 +5255,17 @@ class MapViewApi { } Future isReportIncidentButtonEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5157,13 +5287,17 @@ class MapViewApi { } Future setReportIncidentButtonEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5180,13 +5314,17 @@ class MapViewApi { } Future isIncidentReportingAvailable(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5208,13 +5346,17 @@ class MapViewApi { } Future showReportIncidentsPanel(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5231,13 +5373,17 @@ class MapViewApi { } Future isBuildingsEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5259,13 +5405,17 @@ class MapViewApi { } Future setBuildingsEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5282,13 +5432,17 @@ class MapViewApi { } Future isIndoorEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5310,13 +5464,17 @@ class MapViewApi { } Future setIndoorEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5333,13 +5491,17 @@ class MapViewApi { } Future isIndoorLevelPickerEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5361,13 +5523,17 @@ class MapViewApi { } Future setIndoorLevelPickerEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5384,13 +5550,17 @@ class MapViewApi { } Future getFocusedIndoorBuilding(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5410,13 +5580,17 @@ class MapViewApi { /// indoor building. Throws if no building is focused or the index is out of /// range. Future activateIndoorLevel(int viewId, int levelIndex) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, levelIndex], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, levelIndex]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5433,13 +5607,17 @@ class MapViewApi { } Future getCameraPosition(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5461,13 +5639,17 @@ class MapViewApi { } Future getVisibleRegion(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5488,14 +5670,22 @@ class MapViewApi { } } - Future followMyLocation(int viewId, CameraPerspectiveDto perspective, double? zoomLevel) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future followMyLocation( + int viewId, + CameraPerspectiveDto perspective, + double? zoomLevel, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, perspective, zoomLevel], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, perspective, zoomLevel]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5511,14 +5701,22 @@ class MapViewApi { } } - Future animateCameraToCameraPosition(int viewId, CameraPositionDto cameraPosition, int? duration) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future animateCameraToCameraPosition( + int viewId, + CameraPositionDto cameraPosition, + int? duration, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, cameraPosition, duration], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, cameraPosition, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5539,14 +5737,22 @@ class MapViewApi { } } - Future animateCameraToLatLng(int viewId, LatLngDto point, int? duration) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future animateCameraToLatLng( + int viewId, + LatLngDto point, + int? duration, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, point, duration], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, point, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5567,14 +5773,23 @@ class MapViewApi { } } - Future animateCameraToLatLngBounds(int viewId, LatLngBoundsDto bounds, double padding, int? duration) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future animateCameraToLatLngBounds( + int viewId, + LatLngBoundsDto bounds, + double padding, + int? duration, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, bounds, padding, duration], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, bounds, padding, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5595,14 +5810,23 @@ class MapViewApi { } } - Future animateCameraToLatLngZoom(int viewId, LatLngDto point, double zoom, int? duration) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future animateCameraToLatLngZoom( + int viewId, + LatLngDto point, + double zoom, + int? duration, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, point, zoom, duration], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, point, zoom, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5623,14 +5847,23 @@ class MapViewApi { } } - Future animateCameraByScroll(int viewId, double scrollByDx, double scrollByDy, int? duration) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future animateCameraByScroll( + int viewId, + double scrollByDx, + double scrollByDy, + int? duration, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, scrollByDx, scrollByDy, duration], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, scrollByDx, scrollByDy, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5651,14 +5884,24 @@ class MapViewApi { } } - Future animateCameraByZoom(int viewId, double zoomBy, double? focusDx, double? focusDy, int? duration) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future animateCameraByZoom( + int viewId, + double zoomBy, + double? focusDx, + double? focusDy, + int? duration, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, zoomBy, focusDx, focusDy, duration], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, zoomBy, focusDx, focusDy, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5679,14 +5922,22 @@ class MapViewApi { } } - Future animateCameraToZoom(int viewId, double zoom, int? duration) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future animateCameraToZoom( + int viewId, + double zoom, + int? duration, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, zoom, duration], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, zoom, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5707,14 +5958,21 @@ class MapViewApi { } } - Future moveCameraToCameraPosition(int viewId, CameraPositionDto cameraPosition) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future moveCameraToCameraPosition( + int viewId, + CameraPositionDto cameraPosition, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, cameraPosition], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, cameraPosition]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5731,13 +5989,17 @@ class MapViewApi { } Future moveCameraToLatLng(int viewId, LatLngDto point) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, point], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, point]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5753,14 +6015,22 @@ class MapViewApi { } } - Future moveCameraToLatLngBounds(int viewId, LatLngBoundsDto bounds, double padding) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future moveCameraToLatLngBounds( + int viewId, + LatLngBoundsDto bounds, + double padding, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, bounds, padding], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, bounds, padding]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5776,14 +6046,22 @@ class MapViewApi { } } - Future moveCameraToLatLngZoom(int viewId, LatLngDto point, double zoom) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future moveCameraToLatLngZoom( + int viewId, + LatLngDto point, + double zoom, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, point, zoom], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, point, zoom]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5799,14 +6077,22 @@ class MapViewApi { } } - Future moveCameraByScroll(int viewId, double scrollByDx, double scrollByDy) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future moveCameraByScroll( + int viewId, + double scrollByDx, + double scrollByDy, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, scrollByDx, scrollByDy], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, scrollByDx, scrollByDy]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5822,14 +6108,23 @@ class MapViewApi { } } - Future moveCameraByZoom(int viewId, double zoomBy, double? focusDx, double? focusDy) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future moveCameraByZoom( + int viewId, + double zoomBy, + double? focusDx, + double? focusDy, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, zoomBy, focusDx, focusDy], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, zoomBy, focusDx, focusDy]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5846,13 +6141,17 @@ class MapViewApi { } Future moveCameraToZoom(int viewId, double zoom) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, zoom], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, zoom]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5869,13 +6168,17 @@ class MapViewApi { } Future showRouteOverview(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5892,13 +6195,17 @@ class MapViewApi { } Future getMinZoomPreference(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5920,13 +6227,17 @@ class MapViewApi { } Future getMaxZoomPreference(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5948,13 +6259,17 @@ class MapViewApi { } Future resetMinMaxZoomPreference(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5970,14 +6285,21 @@ class MapViewApi { } } - Future setMinZoomPreference(int viewId, double minZoomPreference) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future setMinZoomPreference( + int viewId, + double minZoomPreference, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, minZoomPreference], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, minZoomPreference]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5993,14 +6315,21 @@ class MapViewApi { } } - Future setMaxZoomPreference(int viewId, double maxZoomPreference) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future setMaxZoomPreference( + int viewId, + double maxZoomPreference, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, maxZoomPreference], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, maxZoomPreference]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6017,13 +6346,17 @@ class MapViewApi { } Future> getMarkers(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6044,14 +6377,21 @@ class MapViewApi { } } - Future> addMarkers(int viewId, List markers) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future> addMarkers( + int viewId, + List markers, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, markers], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, markers]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6072,14 +6412,21 @@ class MapViewApi { } } - Future> updateMarkers(int viewId, List markers) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future> updateMarkers( + int viewId, + List markers, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, markers], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, markers]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6101,13 +6448,17 @@ class MapViewApi { } Future removeMarkers(int viewId, List markers) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, markers], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, markers]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6124,13 +6475,17 @@ class MapViewApi { } Future clearMarkers(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6147,13 +6502,17 @@ class MapViewApi { } Future clear(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6170,13 +6529,17 @@ class MapViewApi { } Future> getPolygons(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6197,14 +6560,21 @@ class MapViewApi { } } - Future> addPolygons(int viewId, List polygons) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future> addPolygons( + int viewId, + List polygons, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, polygons], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, polygons]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6225,14 +6595,21 @@ class MapViewApi { } } - Future> updatePolygons(int viewId, List polygons) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future> updatePolygons( + int viewId, + List polygons, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, polygons], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, polygons]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6254,13 +6631,17 @@ class MapViewApi { } Future removePolygons(int viewId, List polygons) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, polygons], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, polygons]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6277,13 +6658,17 @@ class MapViewApi { } Future clearPolygons(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6300,13 +6685,17 @@ class MapViewApi { } Future> getPolylines(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6327,14 +6716,21 @@ class MapViewApi { } } - Future> addPolylines(int viewId, List polylines) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future> addPolylines( + int viewId, + List polylines, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, polylines], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, polylines]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6355,14 +6751,21 @@ class MapViewApi { } } - Future> updatePolylines(int viewId, List polylines) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future> updatePolylines( + int viewId, + List polylines, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, polylines], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, polylines]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6384,13 +6787,17 @@ class MapViewApi { } Future removePolylines(int viewId, List polylines) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, polylines], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, polylines]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6407,13 +6814,17 @@ class MapViewApi { } Future clearPolylines(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6430,13 +6841,17 @@ class MapViewApi { } Future> getCircles(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6457,14 +6872,21 @@ class MapViewApi { } } - Future> addCircles(int viewId, List circles) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future> addCircles( + int viewId, + List circles, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, circles], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, circles]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6485,14 +6907,21 @@ class MapViewApi { } } - Future> updateCircles(int viewId, List circles) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future> updateCircles( + int viewId, + List circles, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, circles], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, circles]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6514,13 +6943,17 @@ class MapViewApi { } Future removeCircles(int viewId, List circles) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, circles], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, circles]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6537,13 +6970,17 @@ class MapViewApi { } Future clearCircles(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6560,13 +6997,17 @@ class MapViewApi { } Future enableOnCameraChangedEvents(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6583,13 +7024,17 @@ class MapViewApi { } Future setPadding(int viewId, MapPaddingDto padding) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, padding], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, padding]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6606,13 +7051,17 @@ class MapViewApi { } Future getPadding(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6634,13 +7083,17 @@ class MapViewApi { } Future getMapColorScheme(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6661,14 +7114,21 @@ class MapViewApi { } } - Future setMapColorScheme(int viewId, MapColorSchemeDto mapColorScheme) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future setMapColorScheme( + int viewId, + MapColorSchemeDto mapColorScheme, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, mapColorScheme], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, mapColorScheme]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6685,13 +7145,17 @@ class MapViewApi { } Future getForceNightMode(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6712,14 +7176,21 @@ class MapViewApi { } } - Future setForceNightMode(int viewId, NavigationForceNightModeDto forceNightMode) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future setForceNightMode( + int viewId, + NavigationForceNightModeDto forceNightMode, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, forceNightMode], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, forceNightMode]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6740,23 +7211,37 @@ class ImageRegistryApi { /// Constructor for [ImageRegistryApi]. 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. - ImageRegistryApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + ImageRegistryApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); final String pigeonVar_messageChannelSuffix; - Future registerBitmapImage(String imageId, Uint8List bytes, double imagePixelRatio, double? width, double? height) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future registerBitmapImage( + String imageId, + Uint8List bytes, + double imagePixelRatio, + double? width, + double? height, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [imageId, bytes, imagePixelRatio, width, height], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([imageId, bytes, imagePixelRatio, width, height]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6778,13 +7263,17 @@ class ImageRegistryApi { } Future unregisterImage(ImageDescriptorDto imageDescriptor) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [imageDescriptor], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([imageDescriptor]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6801,12 +7290,14 @@ class ImageRegistryApi { } Future> getRegisteredImages() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -6824,18 +7315,23 @@ class ImageRegistryApi { 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 clearRegisteredImages(RegisteredImageTypeDto? filter) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [filter], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([filter]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6851,14 +7347,20 @@ class ImageRegistryApi { } } - Future getRegisteredImageData(ImageDescriptorDto imageDescriptor) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future getRegisteredImageData( + ImageDescriptorDto imageDescriptor, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [imageDescriptor], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([imageDescriptor]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6886,7 +7388,12 @@ abstract class ViewEventApi { void onMarkerEvent(int viewId, String markerId, MarkerEventTypeDto eventType); - void onMarkerDragEvent(int viewId, String markerId, MarkerDragEventTypeDto eventType, LatLngDto position); + void onMarkerDragEvent( + int viewId, + String markerId, + MarkerDragEventTypeDto eventType, + LatLngDto position, + ); void onPolygonClicked(int viewId, String polygonId); @@ -6908,453 +7415,652 @@ abstract class ViewEventApi { void onIndoorActiveLevelChanged(int viewId, IndoorBuildingDto? building); - void onCameraChanged(int viewId, CameraEventTypeDto eventType, CameraPositionDto position); + void onCameraChanged( + int viewId, + CameraEventTypeDto eventType, + CameraPositionDto position, + ); - static void setUp(ViewEventApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + ViewEventApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent$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.google_navigation_flutter.ViewEventApi.onMapClickEvent was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent was null, expected non-null int.', + ); final LatLngDto? arg_latLng = (args[1] as LatLngDto?); - assert(arg_latLng != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent was null, expected non-null LatLngDto.'); + assert( + arg_latLng != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent was null, expected non-null LatLngDto.', + ); try { api.onMapClickEvent(arg_viewId!, arg_latLng!); 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent$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.google_navigation_flutter.ViewEventApi.onMapLongClickEvent was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent was null, expected non-null int.', + ); final LatLngDto? arg_latLng = (args[1] as LatLngDto?); - assert(arg_latLng != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent was null, expected non-null LatLngDto.'); + assert( + arg_latLng != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent was null, expected non-null LatLngDto.', + ); try { api.onMapLongClickEvent(arg_viewId!, arg_latLng!); 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked$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.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked was null, expected non-null int.', + ); try { api.onRecenterButtonClicked(arg_viewId!); 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent$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.google_navigation_flutter.ViewEventApi.onMarkerEvent was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent was null, expected non-null int.', + ); final String? arg_markerId = (args[1] as String?); - assert(arg_markerId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent was null, expected non-null String.'); - final MarkerEventTypeDto? arg_eventType = (args[2] as MarkerEventTypeDto?); - assert(arg_eventType != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent was null, expected non-null MarkerEventTypeDto.'); + assert( + arg_markerId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent was null, expected non-null String.', + ); + final MarkerEventTypeDto? arg_eventType = + (args[2] as MarkerEventTypeDto?); + assert( + arg_eventType != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent was null, expected non-null MarkerEventTypeDto.', + ); try { api.onMarkerEvent(arg_viewId!, arg_markerId!, arg_eventType!); 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent$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.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null, expected non-null int.', + ); final String? arg_markerId = (args[1] as String?); - assert(arg_markerId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null, expected non-null String.'); - final MarkerDragEventTypeDto? arg_eventType = (args[2] as MarkerDragEventTypeDto?); - assert(arg_eventType != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null, expected non-null MarkerDragEventTypeDto.'); + assert( + arg_markerId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null, expected non-null String.', + ); + final MarkerDragEventTypeDto? arg_eventType = + (args[2] as MarkerDragEventTypeDto?); + assert( + arg_eventType != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null, expected non-null MarkerDragEventTypeDto.', + ); final LatLngDto? arg_position = (args[3] as LatLngDto?); - assert(arg_position != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null, expected non-null LatLngDto.'); + assert( + arg_position != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null, expected non-null LatLngDto.', + ); try { - api.onMarkerDragEvent(arg_viewId!, arg_markerId!, arg_eventType!, arg_position!); + api.onMarkerDragEvent( + arg_viewId!, + arg_markerId!, + arg_eventType!, + arg_position!, + ); 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked$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.google_navigation_flutter.ViewEventApi.onPolygonClicked was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked was null, expected non-null int.', + ); final String? arg_polygonId = (args[1] as String?); - assert(arg_polygonId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked was null, expected non-null String.'); + assert( + arg_polygonId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked was null, expected non-null String.', + ); try { api.onPolygonClicked(arg_viewId!, arg_polygonId!); 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked$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.google_navigation_flutter.ViewEventApi.onPolylineClicked was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked was null, expected non-null int.', + ); final String? arg_polylineId = (args[1] as String?); - assert(arg_polylineId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked was null, expected non-null String.'); + assert( + arg_polylineId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked was null, expected non-null String.', + ); try { api.onPolylineClicked(arg_viewId!, arg_polylineId!); 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked$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.google_navigation_flutter.ViewEventApi.onCircleClicked was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked was null, expected non-null int.', + ); final String? arg_circleId = (args[1] as String?); - assert(arg_circleId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked was null, expected non-null String.'); + assert( + arg_circleId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked was null, expected non-null String.', + ); try { api.onCircleClicked(arg_viewId!, arg_circleId!); 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick$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.google_navigation_flutter.ViewEventApi.onPoiClick was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick was null, expected non-null int.'); - final PointOfInterestDto? arg_pointOfInterest = (args[1] as PointOfInterestDto?); - assert(arg_pointOfInterest != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick was null, expected non-null PointOfInterestDto.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick was null, expected non-null int.', + ); + final PointOfInterestDto? arg_pointOfInterest = + (args[1] as PointOfInterestDto?); + assert( + arg_pointOfInterest != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick was null, expected non-null PointOfInterestDto.', + ); try { api.onPoiClick(arg_viewId!, arg_pointOfInterest!); 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged$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.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged was null, expected non-null int.', + ); final bool? arg_navigationUIEnabled = (args[1] as bool?); - assert(arg_navigationUIEnabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged was null, expected non-null bool.'); + assert( + arg_navigationUIEnabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged was null, expected non-null bool.', + ); try { - api.onNavigationUIEnabledChanged(arg_viewId!, arg_navigationUIEnabled!); + api.onNavigationUIEnabledChanged( + arg_viewId!, + arg_navigationUIEnabled!, + ); 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged$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.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged was null, expected non-null int.', + ); final bool? arg_promptVisible = (args[1] as bool?); - assert(arg_promptVisible != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged was null, expected non-null bool.'); + assert( + arg_promptVisible != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged was null, expected non-null bool.', + ); try { api.onPromptVisibilityChanged(arg_viewId!, arg_promptVisible!); 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked$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.google_navigation_flutter.ViewEventApi.onMyLocationClicked was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked was null, expected non-null int.', + ); try { api.onMyLocationClicked(arg_viewId!); 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked$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.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked was null, expected non-null int.', + ); try { api.onMyLocationButtonClicked(arg_viewId!); 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged$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.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged was null, expected non-null int.'); - final IndoorBuildingDto? arg_building = (args[1] as IndoorBuildingDto?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged was null, expected non-null int.', + ); + final IndoorBuildingDto? arg_building = + (args[1] as IndoorBuildingDto?); try { api.onIndoorFocusedBuildingChanged(arg_viewId!, arg_building); 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged$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.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged was null, expected non-null int.'); - final IndoorBuildingDto? arg_building = (args[1] as IndoorBuildingDto?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged was null, expected non-null int.', + ); + final IndoorBuildingDto? arg_building = + (args[1] as IndoorBuildingDto?); try { api.onIndoorActiveLevelChanged(arg_viewId!, arg_building); 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged$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.google_navigation_flutter.ViewEventApi.onCameraChanged was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged was null, expected non-null int.'); - final CameraEventTypeDto? arg_eventType = (args[1] as CameraEventTypeDto?); - assert(arg_eventType != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged was null, expected non-null CameraEventTypeDto.'); - final CameraPositionDto? arg_position = (args[2] as CameraPositionDto?); - assert(arg_position != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged was null, expected non-null CameraPositionDto.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged was null, expected non-null int.', + ); + final CameraEventTypeDto? arg_eventType = + (args[1] as CameraEventTypeDto?); + assert( + arg_eventType != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged was null, expected non-null CameraEventTypeDto.', + ); + final CameraPositionDto? arg_position = + (args[2] as CameraPositionDto?); + assert( + arg_position != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged was null, expected non-null CameraPositionDto.', + ); try { api.onCameraChanged(arg_viewId!, arg_eventType!, arg_position!); 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()), + ); } }); } @@ -7366,23 +8072,39 @@ class NavigationSessionApi { /// Constructor for [NavigationSessionApi]. 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. - NavigationSessionApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + NavigationSessionApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); final String pigeonVar_messageChannelSuffix; - Future createNavigationSession(bool abnormalTerminationReportingEnabled, TaskRemovedBehaviorDto behavior, NavigationNotificationOptionsDto? notificationOptions) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future createNavigationSession( + bool abnormalTerminationReportingEnabled, + TaskRemovedBehaviorDto behavior, + NavigationNotificationOptionsDto? notificationOptions, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [ + abnormalTerminationReportingEnabled, + behavior, + notificationOptions, + ], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([abnormalTerminationReportingEnabled, behavior, notificationOptions]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7399,12 +8121,14 @@ class NavigationSessionApi { } Future isInitialized() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7427,13 +8151,17 @@ class NavigationSessionApi { } Future cleanup(bool resetSession) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [resetSession], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([resetSession]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7449,14 +8177,28 @@ class NavigationSessionApi { } } - Future showTermsAndConditionsDialog(String title, String companyName, bool shouldOnlyShowDriverAwarenessDisclaimer, TermsAndConditionsUIParamsDto? uiParams) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future showTermsAndConditionsDialog( + String title, + String companyName, + bool shouldOnlyShowDriverAwarenessDisclaimer, + TermsAndConditionsUIParamsDto? uiParams, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [ + title, + companyName, + shouldOnlyShowDriverAwarenessDisclaimer, + uiParams, + ], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([title, companyName, shouldOnlyShowDriverAwarenessDisclaimer, uiParams]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7478,12 +8220,14 @@ class NavigationSessionApi { } Future areTermsAccepted() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7506,12 +8250,14 @@ class NavigationSessionApi { } Future resetTermsAccepted() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7529,12 +8275,14 @@ class NavigationSessionApi { } Future getNavSDKVersion() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7557,12 +8305,14 @@ class NavigationSessionApi { } Future isGuidanceRunning() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7585,12 +8335,14 @@ class NavigationSessionApi { } Future startGuidance() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7608,12 +8360,14 @@ class NavigationSessionApi { } Future stopGuidance() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7631,13 +8385,17 @@ class NavigationSessionApi { } Future setDestinations(DestinationsDto destinations) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [destinations], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([destinations]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7659,12 +8417,14 @@ class NavigationSessionApi { } Future clearDestinations() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7681,13 +8441,16 @@ class NavigationSessionApi { } } - Future continueToNextDestination() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + Future + continueToNextDestination() async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7710,12 +8473,14 @@ class NavigationSessionApi { } Future getCurrentTimeAndDistance() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7737,14 +8502,20 @@ class NavigationSessionApi { } } - Future setAudioGuidance(NavigationAudioGuidanceSettingsDto settings) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future setAudioGuidance( + NavigationAudioGuidanceSettingsDto settings, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [settings], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([settings]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7761,13 +8532,17 @@ class NavigationSessionApi { } Future setSpeedAlertOptions(SpeedAlertOptionsDto options) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [options], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([options]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7784,12 +8559,14 @@ class NavigationSessionApi { } Future> getRouteSegments() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7807,17 +8584,20 @@ class NavigationSessionApi { 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> getTraveledRoute() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7840,12 +8620,14 @@ class NavigationSessionApi { } Future getCurrentRouteSegment() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7863,13 +8645,17 @@ class NavigationSessionApi { } Future setUserLocation(LatLngDto location) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [location], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([location]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7886,12 +8672,14 @@ class NavigationSessionApi { } Future removeUserLocation() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7909,12 +8697,14 @@ class NavigationSessionApi { } Future simulateLocationsAlongExistingRoute() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7931,14 +8721,20 @@ class NavigationSessionApi { } } - Future simulateLocationsAlongExistingRouteWithOptions(SimulationOptionsDto options) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future simulateLocationsAlongExistingRouteWithOptions( + SimulationOptionsDto options, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [options], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([options]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7954,14 +8750,20 @@ class NavigationSessionApi { } } - Future simulateLocationsAlongNewRoute(List waypoints) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future simulateLocationsAlongNewRoute( + List waypoints, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [waypoints], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([waypoints]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7982,14 +8784,21 @@ class NavigationSessionApi { } } - Future simulateLocationsAlongNewRouteWithRoutingOptions(List waypoints, RoutingOptionsDto routingOptions) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future simulateLocationsAlongNewRouteWithRoutingOptions( + List waypoints, + RoutingOptionsDto routingOptions, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [waypoints, routingOptions], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([waypoints, routingOptions]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8010,14 +8819,23 @@ class NavigationSessionApi { } } - Future simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(List waypoints, RoutingOptionsDto routingOptions, SimulationOptionsDto simulationOptions) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future + simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( + List waypoints, + RoutingOptionsDto routingOptions, + SimulationOptionsDto simulationOptions, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [waypoints, routingOptions, simulationOptions], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([waypoints, routingOptions, simulationOptions]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8039,12 +8857,14 @@ class NavigationSessionApi { } Future pauseSimulation() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8062,12 +8882,14 @@ class NavigationSessionApi { } Future resumeSimulation() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8086,13 +8908,17 @@ class NavigationSessionApi { /// iOS-only method. Future allowBackgroundLocationUpdates(bool allow) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [allow], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([allow]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8109,12 +8935,14 @@ class NavigationSessionApi { } Future enableRoadSnappedLocationUpdates() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8132,12 +8960,14 @@ class NavigationSessionApi { } Future disableRoadSnappedLocationUpdates() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8154,14 +8984,21 @@ class NavigationSessionApi { } } - Future enableTurnByTurnNavigationEvents(int? numNextStepsToPreview, StepImageGenerationOptionsDto? options) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future enableTurnByTurnNavigationEvents( + int? numNextStepsToPreview, + StepImageGenerationOptionsDto? options, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [numNextStepsToPreview, options], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([numNextStepsToPreview, options]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8178,12 +9015,14 @@ class NavigationSessionApi { } Future disableTurnByTurnNavigationEvents() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8200,14 +9039,24 @@ class NavigationSessionApi { } } - Future registerRemainingTimeOrDistanceChangedListener(int remainingTimeThresholdSeconds, int remainingDistanceThresholdMeters) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future registerRemainingTimeOrDistanceChangedListener( + int remainingTimeThresholdSeconds, + int remainingDistanceThresholdMeters, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [ + remainingTimeThresholdSeconds, + remainingDistanceThresholdMeters, + ], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([remainingTimeThresholdSeconds, remainingDistanceThresholdMeters]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8237,7 +9086,11 @@ abstract class NavigationSessionEventApi { void onRouteChanged(); - void onRemainingTimeOrDistanceChanged(double remainingTime, double remainingDistance, TrafficDelaySeverityDto delaySeverity); + void onRemainingTimeOrDistanceChanged( + double remainingTime, + double remainingDistance, + TrafficDelaySeverityDto delaySeverity, + ); /// Android-only event. void onTrafficUpdated(); @@ -8258,112 +9111,159 @@ abstract class NavigationSessionEventApi { /// session starts with active guidance. void onNewNavigationSession(); - static void setUp(NavigationSessionEventApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + NavigationSessionEventApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated$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.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated was null.', + ); final List args = (message as List?)!; - final SpeedingUpdatedEventDto? arg_msg = (args[0] as SpeedingUpdatedEventDto?); - assert(arg_msg != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated was null, expected non-null SpeedingUpdatedEventDto.'); + final SpeedingUpdatedEventDto? arg_msg = + (args[0] as SpeedingUpdatedEventDto?); + assert( + arg_msg != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated was null, expected non-null SpeedingUpdatedEventDto.', + ); try { api.onSpeedingUpdated(arg_msg!); 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated$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.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated was null.', + ); final List args = (message as List?)!; final LatLngDto? arg_location = (args[0] as LatLngDto?); - assert(arg_location != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated was null, expected non-null LatLngDto.'); + assert( + arg_location != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated was null, expected non-null LatLngDto.', + ); try { api.onRoadSnappedLocationUpdated(arg_location!); 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated$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.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated was null.', + ); final List args = (message as List?)!; final LatLngDto? arg_location = (args[0] as LatLngDto?); - assert(arg_location != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated was null, expected non-null LatLngDto.'); + assert( + arg_location != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated was null, expected non-null LatLngDto.', + ); try { api.onRoadSnappedRawLocationUpdated(arg_location!); 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival$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.google_navigation_flutter.NavigationSessionEventApi.onArrival was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival was null.', + ); final List args = (message as List?)!; - final NavigationWaypointDto? arg_waypoint = (args[0] as NavigationWaypointDto?); - assert(arg_waypoint != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival was null, expected non-null NavigationWaypointDto.'); + final NavigationWaypointDto? arg_waypoint = + (args[0] as NavigationWaypointDto?); + assert( + arg_waypoint != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival was null, expected non-null NavigationWaypointDto.', + ); try { api.onArrival(arg_waypoint!); 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -8373,47 +9273,70 @@ abstract class NavigationSessionEventApi { 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged$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.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was null.', + ); final List args = (message as List?)!; final double? arg_remainingTime = (args[0] as double?); - assert(arg_remainingTime != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was null, expected non-null double.'); + assert( + arg_remainingTime != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was null, expected non-null double.', + ); final double? arg_remainingDistance = (args[1] as double?); - assert(arg_remainingDistance != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was null, expected non-null double.'); - final TrafficDelaySeverityDto? arg_delaySeverity = (args[2] as TrafficDelaySeverityDto?); - assert(arg_delaySeverity != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was null, expected non-null TrafficDelaySeverityDto.'); + assert( + arg_remainingDistance != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was null, expected non-null double.', + ); + final TrafficDelaySeverityDto? arg_delaySeverity = + (args[2] as TrafficDelaySeverityDto?); + assert( + arg_delaySeverity != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was null, expected non-null TrafficDelaySeverityDto.', + ); try { - api.onRemainingTimeOrDistanceChanged(arg_remainingTime!, arg_remainingDistance!, arg_delaySeverity!); + api.onRemainingTimeOrDistanceChanged( + arg_remainingTime!, + arg_remainingDistance!, + arg_delaySeverity!, + ); 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -8423,16 +9346,21 @@ abstract class NavigationSessionEventApi { 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -8442,91 +9370,124 @@ abstract class NavigationSessionEventApi { 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate$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.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate was null.', + ); final List args = (message as List?)!; final bool? arg_available = (args[0] as bool?); - assert(arg_available != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate was null, expected non-null bool.'); + assert( + arg_available != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate was null, expected non-null bool.', + ); try { api.onGpsAvailabilityUpdate(arg_available!); 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange$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.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange was null.', + ); final List args = (message as List?)!; - final GpsAvailabilityChangeEventDto? arg_event = (args[0] as GpsAvailabilityChangeEventDto?); - assert(arg_event != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange was null, expected non-null GpsAvailabilityChangeEventDto.'); + final GpsAvailabilityChangeEventDto? arg_event = + (args[0] as GpsAvailabilityChangeEventDto?); + assert( + arg_event != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange was null, expected non-null GpsAvailabilityChangeEventDto.', + ); try { api.onGpsAvailabilityChange(arg_event!); 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo$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.google_navigation_flutter.NavigationSessionEventApi.onNavInfo was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo was null.', + ); final List args = (message as List?)!; final NavInfoDto? arg_navInfo = (args[0] as NavInfoDto?); - assert(arg_navInfo != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo was null, expected non-null NavInfoDto.'); + assert( + arg_navInfo != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo was null, expected non-null NavInfoDto.', + ); try { api.onNavInfo(arg_navInfo!); 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNewNavigationSession$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNewNavigationSession$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -8536,8 +9497,10 @@ abstract class NavigationSessionEventApi { 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()), + ); } }); } @@ -8549,9 +9512,13 @@ class AutoMapViewApi { /// Constructor for [AutoMapViewApi]. 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. - AutoMapViewApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + AutoMapViewApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -8562,13 +9529,17 @@ class AutoMapViewApi { /// Should be called before the Auto/CarPlay screen is created. /// This allows customization of mapId and basic map settings. Future setAutoMapOptions(AutoMapOptionsDto mapOptions) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [mapOptions], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([mapOptions]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8585,12 +9556,14 @@ class AutoMapViewApi { } Future isMyLocationEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8613,13 +9586,17 @@ class AutoMapViewApi { } Future setMyLocationEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8636,12 +9613,14 @@ class AutoMapViewApi { } Future getMyLocation() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8659,12 +9638,14 @@ class AutoMapViewApi { } Future getMapType() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8687,13 +9668,17 @@ class AutoMapViewApi { } Future setMapType(MapTypeDto mapType) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [mapType], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([mapType]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8710,13 +9695,17 @@ class AutoMapViewApi { } Future setMapStyle(String styleJson) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [styleJson], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([styleJson]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8733,12 +9722,14 @@ class AutoMapViewApi { } Future getCameraPosition() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8761,12 +9752,14 @@ class AutoMapViewApi { } Future getVisibleRegion() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8788,14 +9781,21 @@ class AutoMapViewApi { } } - Future followMyLocation(CameraPerspectiveDto perspective, double? zoomLevel) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future followMyLocation( + CameraPerspectiveDto perspective, + double? zoomLevel, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [perspective, zoomLevel], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([perspective, zoomLevel]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8811,14 +9811,21 @@ class AutoMapViewApi { } } - Future animateCameraToCameraPosition(CameraPositionDto cameraPosition, int? duration) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future animateCameraToCameraPosition( + CameraPositionDto cameraPosition, + int? duration, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [cameraPosition, duration], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([cameraPosition, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8840,13 +9847,17 @@ class AutoMapViewApi { } Future animateCameraToLatLng(LatLngDto point, int? duration) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [point, duration], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([point, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8867,14 +9878,22 @@ class AutoMapViewApi { } } - Future animateCameraToLatLngBounds(LatLngBoundsDto bounds, double padding, int? duration) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future animateCameraToLatLngBounds( + LatLngBoundsDto bounds, + double padding, + int? duration, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [bounds, padding, duration], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([bounds, padding, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8895,14 +9914,22 @@ class AutoMapViewApi { } } - Future animateCameraToLatLngZoom(LatLngDto point, double zoom, int? duration) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future animateCameraToLatLngZoom( + LatLngDto point, + double zoom, + int? duration, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [point, zoom, duration], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([point, zoom, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8923,14 +9950,22 @@ class AutoMapViewApi { } } - Future animateCameraByScroll(double scrollByDx, double scrollByDy, int? duration) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future animateCameraByScroll( + double scrollByDx, + double scrollByDy, + int? duration, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [scrollByDx, scrollByDy, duration], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([scrollByDx, scrollByDy, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8951,14 +9986,23 @@ class AutoMapViewApi { } } - Future animateCameraByZoom(double zoomBy, double? focusDx, double? focusDy, int? duration) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future animateCameraByZoom( + double zoomBy, + double? focusDx, + double? focusDy, + int? duration, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [zoomBy, focusDx, focusDy, duration], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([zoomBy, focusDx, focusDy, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8980,13 +10024,17 @@ class AutoMapViewApi { } Future animateCameraToZoom(double zoom, int? duration) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [zoom, duration], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([zoom, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9007,14 +10055,20 @@ class AutoMapViewApi { } } - Future moveCameraToCameraPosition(CameraPositionDto cameraPosition) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future moveCameraToCameraPosition( + CameraPositionDto cameraPosition, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [cameraPosition], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([cameraPosition]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9031,13 +10085,17 @@ class AutoMapViewApi { } Future moveCameraToLatLng(LatLngDto point) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [point], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([point]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9053,14 +10111,21 @@ class AutoMapViewApi { } } - Future moveCameraToLatLngBounds(LatLngBoundsDto bounds, double padding) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future moveCameraToLatLngBounds( + LatLngBoundsDto bounds, + double padding, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [bounds, padding], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([bounds, padding]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9077,13 +10142,17 @@ class AutoMapViewApi { } Future moveCameraToLatLngZoom(LatLngDto point, double zoom) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [point, zoom], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([point, zoom]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9100,13 +10169,17 @@ class AutoMapViewApi { } Future moveCameraByScroll(double scrollByDx, double scrollByDy) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [scrollByDx, scrollByDy], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([scrollByDx, scrollByDy]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9122,14 +10195,22 @@ class AutoMapViewApi { } } - Future moveCameraByZoom(double zoomBy, double? focusDx, double? focusDy) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future moveCameraByZoom( + double zoomBy, + double? focusDx, + double? focusDy, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [zoomBy, focusDx, focusDy], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([zoomBy, focusDx, focusDy]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9146,13 +10227,17 @@ class AutoMapViewApi { } Future moveCameraToZoom(double zoom) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [zoom], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([zoom]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9169,12 +10254,14 @@ class AutoMapViewApi { } Future getMinZoomPreference() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9197,12 +10284,14 @@ class AutoMapViewApi { } Future getMaxZoomPreference() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9225,12 +10314,14 @@ class AutoMapViewApi { } Future resetMinMaxZoomPreference() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9248,13 +10339,17 @@ class AutoMapViewApi { } Future setMinZoomPreference(double minZoomPreference) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [minZoomPreference], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([minZoomPreference]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9271,13 +10366,17 @@ class AutoMapViewApi { } Future setMaxZoomPreference(double maxZoomPreference) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [maxZoomPreference], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([maxZoomPreference]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9294,13 +10393,17 @@ class AutoMapViewApi { } Future setMyLocationButtonEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9316,14 +10419,20 @@ class AutoMapViewApi { } } - Future setConsumeMyLocationButtonClickEventsEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future setConsumeMyLocationButtonClickEventsEnabled( + bool enabled, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9340,13 +10449,17 @@ class AutoMapViewApi { } Future setZoomGesturesEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9363,13 +10476,17 @@ class AutoMapViewApi { } Future setZoomControlsEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9386,13 +10503,17 @@ class AutoMapViewApi { } Future setCompassEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9409,13 +10530,17 @@ class AutoMapViewApi { } Future setRotateGesturesEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9432,13 +10557,17 @@ class AutoMapViewApi { } Future setScrollGesturesEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9455,13 +10584,17 @@ class AutoMapViewApi { } Future setScrollGesturesDuringRotateOrZoomEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9478,13 +10611,17 @@ class AutoMapViewApi { } Future setTiltGesturesEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9501,13 +10638,17 @@ class AutoMapViewApi { } Future setMapToolbarEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9524,13 +10665,17 @@ class AutoMapViewApi { } Future setTrafficEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9547,13 +10692,17 @@ class AutoMapViewApi { } Future setTrafficPromptsEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9570,13 +10719,17 @@ class AutoMapViewApi { } Future setTrafficIncidentCardsEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9593,13 +10746,17 @@ class AutoMapViewApi { } Future setNavigationTripProgressBarEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9616,13 +10773,17 @@ class AutoMapViewApi { } Future setSpeedLimitIconEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9639,13 +10800,17 @@ class AutoMapViewApi { } Future setSpeedometerEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9662,13 +10827,17 @@ class AutoMapViewApi { } Future setNavigationUIEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9685,12 +10854,14 @@ class AutoMapViewApi { } Future isMyLocationButtonEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9713,12 +10884,14 @@ class AutoMapViewApi { } Future isConsumeMyLocationButtonClickEventsEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9741,12 +10914,14 @@ class AutoMapViewApi { } Future isZoomGesturesEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9769,12 +10944,14 @@ class AutoMapViewApi { } Future isZoomControlsEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9797,12 +10974,14 @@ class AutoMapViewApi { } Future isCompassEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9825,12 +11004,14 @@ class AutoMapViewApi { } Future isRotateGesturesEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9853,12 +11034,14 @@ class AutoMapViewApi { } Future isScrollGesturesEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9881,12 +11064,14 @@ class AutoMapViewApi { } Future isScrollGesturesEnabledDuringRotateOrZoom() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9909,12 +11094,14 @@ class AutoMapViewApi { } Future isTiltGesturesEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9937,12 +11124,14 @@ class AutoMapViewApi { } Future isMapToolbarEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9965,12 +11154,14 @@ class AutoMapViewApi { } Future isTrafficEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9993,12 +11184,14 @@ class AutoMapViewApi { } Future isTrafficPromptsEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10021,12 +11214,14 @@ class AutoMapViewApi { } Future isTrafficIncidentCardsEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10049,12 +11244,14 @@ class AutoMapViewApi { } Future isNavigationTripProgressBarEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10077,12 +11274,14 @@ class AutoMapViewApi { } Future isSpeedLimitIconEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10105,12 +11304,14 @@ class AutoMapViewApi { } Future isSpeedometerEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10133,12 +11334,14 @@ class AutoMapViewApi { } Future isNavigationUIEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10161,12 +11364,14 @@ class AutoMapViewApi { } Future isIndoorEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10189,13 +11394,17 @@ class AutoMapViewApi { } Future setIndoorEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10212,12 +11421,14 @@ class AutoMapViewApi { } Future getFocusedIndoorBuilding() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10235,13 +11446,17 @@ class AutoMapViewApi { } Future activateIndoorLevel(int levelIndex) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [levelIndex], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([levelIndex]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10258,12 +11473,14 @@ class AutoMapViewApi { } Future showRouteOverview() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10281,12 +11498,14 @@ class AutoMapViewApi { } Future> getMarkers() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10309,13 +11528,17 @@ class AutoMapViewApi { } Future> addMarkers(List markers) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [markers], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([markers]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10337,13 +11560,17 @@ class AutoMapViewApi { } Future> updateMarkers(List markers) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [markers], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([markers]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10365,13 +11592,17 @@ class AutoMapViewApi { } Future removeMarkers(List markers) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [markers], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([markers]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10388,12 +11619,14 @@ class AutoMapViewApi { } Future clearMarkers() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10411,12 +11644,14 @@ class AutoMapViewApi { } Future clear() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10434,12 +11669,14 @@ class AutoMapViewApi { } Future> getPolygons() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10462,13 +11699,17 @@ class AutoMapViewApi { } Future> addPolygons(List polygons) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [polygons], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([polygons]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10490,13 +11731,17 @@ class AutoMapViewApi { } Future> updatePolygons(List polygons) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [polygons], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([polygons]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10518,13 +11763,17 @@ class AutoMapViewApi { } Future removePolygons(List polygons) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [polygons], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([polygons]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10541,12 +11790,14 @@ class AutoMapViewApi { } Future clearPolygons() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10564,12 +11815,14 @@ class AutoMapViewApi { } Future> getPolylines() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10592,13 +11845,17 @@ class AutoMapViewApi { } Future> addPolylines(List polylines) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [polylines], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([polylines]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10620,13 +11877,17 @@ class AutoMapViewApi { } Future> updatePolylines(List polylines) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [polylines], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([polylines]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10648,13 +11909,17 @@ class AutoMapViewApi { } Future removePolylines(List polylines) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [polylines], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([polylines]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10671,12 +11936,14 @@ class AutoMapViewApi { } Future clearPolylines() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10694,12 +11961,14 @@ class AutoMapViewApi { } Future> getCircles() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10722,13 +11991,17 @@ class AutoMapViewApi { } Future> addCircles(List circles) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [circles], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([circles]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10750,13 +12023,17 @@ class AutoMapViewApi { } Future> updateCircles(List circles) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [circles], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([circles]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10778,13 +12055,17 @@ class AutoMapViewApi { } Future removeCircles(List circles) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [circles], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([circles]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10801,12 +12082,14 @@ class AutoMapViewApi { } Future clearCircles() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10824,12 +12107,14 @@ class AutoMapViewApi { } Future enableOnCameraChangedEvents() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10847,12 +12132,14 @@ class AutoMapViewApi { } Future isAutoScreenAvailable() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10875,13 +12162,17 @@ class AutoMapViewApi { } Future setPadding(MapPaddingDto padding) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [padding], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([padding]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10898,12 +12189,14 @@ class AutoMapViewApi { } Future getPadding() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10926,12 +12219,14 @@ class AutoMapViewApi { } Future getMapColorScheme() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10954,13 +12249,17 @@ class AutoMapViewApi { } Future setMapColorScheme(MapColorSchemeDto mapColorScheme) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [mapColorScheme], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([mapColorScheme]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10977,12 +12276,14 @@ class AutoMapViewApi { } Future getForceNightMode() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11004,14 +12305,20 @@ class AutoMapViewApi { } } - Future setForceNightMode(NavigationForceNightModeDto forceNightMode) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future setForceNightMode( + NavigationForceNightModeDto forceNightMode, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [forceNightMode], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([forceNightMode]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -11028,13 +12335,17 @@ class AutoMapViewApi { } Future sendCustomNavigationAutoEvent(String event, Object data) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [event, data], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([event, data]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -11066,153 +12377,213 @@ abstract class AutoViewEventApi { void onIndoorActiveLevelChanged(IndoorBuildingDto? building); - static void setUp(AutoViewEventApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + AutoViewEventApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent$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.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent was null.', + ); final List args = (message as List?)!; final String? arg_event = (args[0] as String?); - assert(arg_event != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent was null, expected non-null String.'); + assert( + arg_event != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent was null, expected non-null String.', + ); final Object? arg_data = (args[1] as Object?); - assert(arg_data != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent was null, expected non-null Object.'); + assert( + arg_data != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent was null, expected non-null Object.', + ); try { api.onCustomNavigationAutoEvent(arg_event!, arg_data!); 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged$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.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged was null.', + ); final List args = (message as List?)!; final bool? arg_isAvailable = (args[0] as bool?); - assert(arg_isAvailable != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged was null, expected non-null bool.'); + assert( + arg_isAvailable != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged was null, expected non-null bool.', + ); try { api.onAutoScreenAvailabilityChanged(arg_isAvailable!); 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged$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.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged was null.', + ); final List args = (message as List?)!; final bool? arg_promptVisible = (args[0] as bool?); - assert(arg_promptVisible != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged was null, expected non-null bool.'); + assert( + arg_promptVisible != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged was null, expected non-null bool.', + ); try { api.onPromptVisibilityChanged(arg_promptVisible!); 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged$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.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged was null.', + ); final List args = (message as List?)!; final bool? arg_navigationUIEnabled = (args[0] as bool?); - assert(arg_navigationUIEnabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged was null, expected non-null bool.'); + assert( + arg_navigationUIEnabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged was null, expected non-null bool.', + ); try { api.onNavigationUIEnabledChanged(arg_navigationUIEnabled!); 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged$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.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged was null.', + ); final List args = (message as List?)!; - final IndoorBuildingDto? arg_building = (args[0] as IndoorBuildingDto?); + final IndoorBuildingDto? arg_building = + (args[0] as IndoorBuildingDto?); try { api.onIndoorFocusedBuildingChanged(arg_building); 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged$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.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged was null.', + ); final List args = (message as List?)!; - final IndoorBuildingDto? arg_building = (args[0] as IndoorBuildingDto?); + final IndoorBuildingDto? arg_building = + (args[0] as IndoorBuildingDto?); try { api.onIndoorActiveLevelChanged(arg_building); 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()), + ); } }); } @@ -11224,9 +12595,13 @@ class NavigationInspector { /// Constructor for [NavigationInspector]. 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. - NavigationInspector({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + NavigationInspector({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -11234,13 +12609,17 @@ class NavigationInspector { final String pigeonVar_messageChannelSuffix; Future isViewAttachedToSession(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { diff --git a/test/google_navigation_flutter_test.mocks.dart b/test/google_navigation_flutter_test.mocks.dart index d013ef47..f19a4eee 100644 --- a/test/google_navigation_flutter_test.mocks.dart +++ b/test/google_navigation_flutter_test.mocks.dart @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Mocks generated by Mockito 5.4.6 from annotations // in google_navigation_flutter/test/google_navigation_flutter_test.dart. // Do not manually edit this file. diff --git a/test/messages_test.g.dart b/test/messages_test.g.dart index ac748d34..b371b58d 100644 --- a/test/messages_test.g.dart +++ b/test/messages_test.g.dart @@ -24,7 +24,6 @@ import 'package:flutter_test/flutter_test.dart'; import 'package:google_navigation_flutter/src/method_channel/messages.g.dart'; - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -32,232 +31,233 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is MapViewTypeDto) { + } else if (value is MapViewTypeDto) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is NavigationUIEnabledPreferenceDto) { + } else if (value is NavigationUIEnabledPreferenceDto) { buffer.putUint8(130); writeValue(buffer, value.index); - } else if (value is MapTypeDto) { + } else if (value is MapTypeDto) { buffer.putUint8(131); writeValue(buffer, value.index); - } else if (value is MapColorSchemeDto) { + } else if (value is MapColorSchemeDto) { buffer.putUint8(132); writeValue(buffer, value.index); - } else if (value is NavigationForceNightModeDto) { + } else if (value is NavigationForceNightModeDto) { buffer.putUint8(133); writeValue(buffer, value.index); - } else if (value is CameraPerspectiveDto) { + } else if (value is CameraPerspectiveDto) { buffer.putUint8(134); writeValue(buffer, value.index); - } else if (value is RegisteredImageTypeDto) { + } else if (value is RegisteredImageTypeDto) { buffer.putUint8(135); writeValue(buffer, value.index); - } else if (value is MarkerEventTypeDto) { + } else if (value is MarkerEventTypeDto) { buffer.putUint8(136); writeValue(buffer, value.index); - } else if (value is MarkerDragEventTypeDto) { + } else if (value is MarkerDragEventTypeDto) { buffer.putUint8(137); writeValue(buffer, value.index); - } else if (value is StrokeJointTypeDto) { + } else if (value is StrokeJointTypeDto) { buffer.putUint8(138); writeValue(buffer, value.index); - } else if (value is PatternTypeDto) { + } else if (value is PatternTypeDto) { buffer.putUint8(139); writeValue(buffer, value.index); - } else if (value is CameraEventTypeDto) { + } else if (value is CameraEventTypeDto) { buffer.putUint8(140); writeValue(buffer, value.index); - } else if (value is AlternateRoutesStrategyDto) { + } else if (value is AlternateRoutesStrategyDto) { buffer.putUint8(141); writeValue(buffer, value.index); - } else if (value is RoutingStrategyDto) { + } else if (value is RoutingStrategyDto) { buffer.putUint8(142); writeValue(buffer, value.index); - } else if (value is TravelModeDto) { + } else if (value is TravelModeDto) { buffer.putUint8(143); writeValue(buffer, value.index); - } else if (value is RouteStatusDto) { + } else if (value is RouteStatusDto) { buffer.putUint8(144); writeValue(buffer, value.index); - } else if (value is TrafficDelaySeverityDto) { + } else if (value is TrafficDelaySeverityDto) { buffer.putUint8(145); writeValue(buffer, value.index); - } else if (value is AudioGuidanceTypeDto) { + } else if (value is AudioGuidanceTypeDto) { buffer.putUint8(146); writeValue(buffer, value.index); - } else if (value is SpeedAlertSeverityDto) { + } else if (value is SpeedAlertSeverityDto) { buffer.putUint8(147); writeValue(buffer, value.index); - } else if (value is RouteSegmentTrafficDataStatusDto) { + } else if (value is RouteSegmentTrafficDataStatusDto) { buffer.putUint8(148); writeValue(buffer, value.index); - } else if (value is RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto) { + } else if (value + is RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto) { buffer.putUint8(149); writeValue(buffer, value.index); - } else if (value is ManeuverDto) { + } else if (value is ManeuverDto) { buffer.putUint8(150); writeValue(buffer, value.index); - } else if (value is DrivingSideDto) { + } else if (value is DrivingSideDto) { buffer.putUint8(151); writeValue(buffer, value.index); - } else if (value is NavStateDto) { + } else if (value is NavStateDto) { buffer.putUint8(152); writeValue(buffer, value.index); - } else if (value is LaneShapeDto) { + } else if (value is LaneShapeDto) { buffer.putUint8(153); writeValue(buffer, value.index); - } else if (value is TaskRemovedBehaviorDto) { + } else if (value is TaskRemovedBehaviorDto) { buffer.putUint8(154); writeValue(buffer, value.index); - } else if (value is AutoMapOptionsDto) { + } else if (value is AutoMapOptionsDto) { buffer.putUint8(155); writeValue(buffer, value.encode()); - } else if (value is MapOptionsDto) { + } else if (value is MapOptionsDto) { buffer.putUint8(156); writeValue(buffer, value.encode()); - } else if (value is NavigationViewOptionsDto) { + } else if (value is NavigationViewOptionsDto) { buffer.putUint8(157); writeValue(buffer, value.encode()); - } else if (value is ViewCreationOptionsDto) { + } else if (value is ViewCreationOptionsDto) { buffer.putUint8(158); writeValue(buffer, value.encode()); - } else if (value is CameraPositionDto) { + } else if (value is CameraPositionDto) { buffer.putUint8(159); writeValue(buffer, value.encode()); - } else if (value is MarkerDto) { + } else if (value is MarkerDto) { buffer.putUint8(160); writeValue(buffer, value.encode()); - } else if (value is MarkerOptionsDto) { + } else if (value is MarkerOptionsDto) { buffer.putUint8(161); writeValue(buffer, value.encode()); - } else if (value is ImageDescriptorDto) { + } else if (value is ImageDescriptorDto) { buffer.putUint8(162); writeValue(buffer, value.encode()); - } else if (value is InfoWindowDto) { + } else if (value is InfoWindowDto) { buffer.putUint8(163); writeValue(buffer, value.encode()); - } else if (value is MarkerAnchorDto) { + } else if (value is MarkerAnchorDto) { buffer.putUint8(164); writeValue(buffer, value.encode()); - } else if (value is PointOfInterestDto) { + } else if (value is PointOfInterestDto) { buffer.putUint8(165); writeValue(buffer, value.encode()); - } else if (value is IndoorLevelDto) { + } else if (value is IndoorLevelDto) { buffer.putUint8(166); writeValue(buffer, value.encode()); - } else if (value is IndoorBuildingDto) { + } else if (value is IndoorBuildingDto) { buffer.putUint8(167); writeValue(buffer, value.encode()); - } else if (value is PolygonDto) { + } else if (value is PolygonDto) { buffer.putUint8(168); writeValue(buffer, value.encode()); - } else if (value is PolygonOptionsDto) { + } else if (value is PolygonOptionsDto) { buffer.putUint8(169); writeValue(buffer, value.encode()); - } else if (value is PolygonHoleDto) { + } else if (value is PolygonHoleDto) { buffer.putUint8(170); writeValue(buffer, value.encode()); - } else if (value is StyleSpanStrokeStyleDto) { + } else if (value is StyleSpanStrokeStyleDto) { buffer.putUint8(171); writeValue(buffer, value.encode()); - } else if (value is StyleSpanDto) { + } else if (value is StyleSpanDto) { buffer.putUint8(172); writeValue(buffer, value.encode()); - } else if (value is PolylineDto) { + } else if (value is PolylineDto) { buffer.putUint8(173); writeValue(buffer, value.encode()); - } else if (value is PatternItemDto) { + } else if (value is PatternItemDto) { buffer.putUint8(174); writeValue(buffer, value.encode()); - } else if (value is PolylineOptionsDto) { + } else if (value is PolylineOptionsDto) { buffer.putUint8(175); writeValue(buffer, value.encode()); - } else if (value is CircleDto) { + } else if (value is CircleDto) { buffer.putUint8(176); writeValue(buffer, value.encode()); - } else if (value is CircleOptionsDto) { + } else if (value is CircleOptionsDto) { buffer.putUint8(177); writeValue(buffer, value.encode()); - } else if (value is MapPaddingDto) { + } else if (value is MapPaddingDto) { buffer.putUint8(178); writeValue(buffer, value.encode()); - } else if (value is NavigationHeaderStylingOptionsDto) { + } else if (value is NavigationHeaderStylingOptionsDto) { buffer.putUint8(179); writeValue(buffer, value.encode()); - } else if (value is RouteTokenOptionsDto) { + } else if (value is RouteTokenOptionsDto) { buffer.putUint8(180); writeValue(buffer, value.encode()); - } else if (value is DestinationsDto) { + } else if (value is DestinationsDto) { buffer.putUint8(181); writeValue(buffer, value.encode()); - } else if (value is RoutingOptionsDto) { + } else if (value is RoutingOptionsDto) { buffer.putUint8(182); writeValue(buffer, value.encode()); - } else if (value is NavigationDisplayOptionsDto) { + } else if (value is NavigationDisplayOptionsDto) { buffer.putUint8(183); writeValue(buffer, value.encode()); - } else if (value is NavigationWaypointDto) { + } else if (value is NavigationWaypointDto) { buffer.putUint8(184); writeValue(buffer, value.encode()); - } else if (value is ContinueToNextDestinationResponseDto) { + } else if (value is ContinueToNextDestinationResponseDto) { buffer.putUint8(185); writeValue(buffer, value.encode()); - } else if (value is NavigationTimeAndDistanceDto) { + } else if (value is NavigationTimeAndDistanceDto) { buffer.putUint8(186); writeValue(buffer, value.encode()); - } else if (value is NavigationAudioGuidanceSettingsDto) { + } else if (value is NavigationAudioGuidanceSettingsDto) { buffer.putUint8(187); writeValue(buffer, value.encode()); - } else if (value is SimulationOptionsDto) { + } else if (value is SimulationOptionsDto) { buffer.putUint8(188); writeValue(buffer, value.encode()); - } else if (value is LatLngDto) { + } else if (value is LatLngDto) { buffer.putUint8(189); writeValue(buffer, value.encode()); - } else if (value is LatLngBoundsDto) { + } else if (value is LatLngBoundsDto) { buffer.putUint8(190); writeValue(buffer, value.encode()); - } else if (value is SpeedingUpdatedEventDto) { + } else if (value is SpeedingUpdatedEventDto) { buffer.putUint8(191); writeValue(buffer, value.encode()); - } else if (value is GpsAvailabilityChangeEventDto) { + } else if (value is GpsAvailabilityChangeEventDto) { buffer.putUint8(192); writeValue(buffer, value.encode()); - } else if (value is SpeedAlertOptionsThresholdPercentageDto) { + } else if (value is SpeedAlertOptionsThresholdPercentageDto) { buffer.putUint8(193); writeValue(buffer, value.encode()); - } else if (value is SpeedAlertOptionsDto) { + } else if (value is SpeedAlertOptionsDto) { buffer.putUint8(194); writeValue(buffer, value.encode()); - } else if (value is RouteSegmentTrafficDataRoadStretchRenderingDataDto) { + } else if (value is RouteSegmentTrafficDataRoadStretchRenderingDataDto) { buffer.putUint8(195); writeValue(buffer, value.encode()); - } else if (value is RouteSegmentTrafficDataDto) { + } else if (value is RouteSegmentTrafficDataDto) { buffer.putUint8(196); writeValue(buffer, value.encode()); - } else if (value is RouteSegmentDto) { + } else if (value is RouteSegmentDto) { buffer.putUint8(197); writeValue(buffer, value.encode()); - } else if (value is LaneDirectionDto) { + } else if (value is LaneDirectionDto) { buffer.putUint8(198); writeValue(buffer, value.encode()); - } else if (value is LaneDto) { + } else if (value is LaneDto) { buffer.putUint8(199); writeValue(buffer, value.encode()); - } else if (value is StepInfoDto) { + } else if (value is StepInfoDto) { buffer.putUint8(200); writeValue(buffer, value.encode()); - } else if (value is NavInfoDto) { + } else if (value is NavInfoDto) { buffer.putUint8(201); writeValue(buffer, value.encode()); - } else if (value is TermsAndConditionsUIParamsDto) { + } else if (value is TermsAndConditionsUIParamsDto) { buffer.putUint8(202); writeValue(buffer, value.encode()); - } else if (value is NavigationNotificationOptionsDto) { + } else if (value is NavigationNotificationOptionsDto) { buffer.putUint8(203); writeValue(buffer, value.encode()); - } else if (value is StepImageGenerationOptionsDto) { + } else if (value is StepImageGenerationOptionsDto) { buffer.putUint8(204); writeValue(buffer, value.encode()); } else { @@ -273,7 +273,9 @@ class _PigeonCodec extends StandardMessageCodec { return value == null ? null : MapViewTypeDto.values[value]; case 130: final int? value = readValue(buffer) as int?; - return value == null ? null : NavigationUIEnabledPreferenceDto.values[value]; + return value == null + ? null + : NavigationUIEnabledPreferenceDto.values[value]; case 131: final int? value = readValue(buffer) as int?; return value == null ? null : MapTypeDto.values[value]; @@ -327,10 +329,15 @@ class _PigeonCodec extends StandardMessageCodec { return value == null ? null : SpeedAlertSeverityDto.values[value]; case 148: final int? value = readValue(buffer) as int?; - return value == null ? null : RouteSegmentTrafficDataStatusDto.values[value]; + return value == null + ? null + : RouteSegmentTrafficDataStatusDto.values[value]; case 149: final int? value = readValue(buffer) as int?; - return value == null ? null : RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto.values[value]; + return value == null + ? null + : RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto + .values[value]; case 150: final int? value = readValue(buffer) as int?; return value == null ? null : ManeuverDto.values[value]; @@ -423,11 +430,15 @@ class _PigeonCodec extends StandardMessageCodec { case 192: return GpsAvailabilityChangeEventDto.decode(readValue(buffer)!); case 193: - return SpeedAlertOptionsThresholdPercentageDto.decode(readValue(buffer)!); + return SpeedAlertOptionsThresholdPercentageDto.decode( + readValue(buffer)!, + ); case 194: return SpeedAlertOptionsDto.decode(readValue(buffer)!); case 195: - return RouteSegmentTrafficDataRoadStretchRenderingDataDto.decode(readValue(buffer)!); + return RouteSegmentTrafficDataRoadStretchRenderingDataDto.decode( + readValue(buffer)!, + ); case 196: return RouteSegmentTrafficDataDto.decode(readValue(buffer)!); case 197: @@ -453,7 +464,8 @@ class _PigeonCodec extends StandardMessageCodec { } abstract class TestMapViewApi { - static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => TestDefaultBinaryMessengerBinding.instance; + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => + TestDefaultBinaryMessengerBinding.instance; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); Future awaitMapReady(int viewId); @@ -478,9 +490,14 @@ abstract class TestMapViewApi { void setNavigationHeaderEnabled(int viewId, bool enabled); - NavigationHeaderStylingOptionsDto getNavigationHeaderStylingOptions(int viewId); + NavigationHeaderStylingOptionsDto getNavigationHeaderStylingOptions( + int viewId, + ); - void setNavigationHeaderStylingOptions(int viewId, NavigationHeaderStylingOptionsDto stylingOptions); + void setNavigationHeaderStylingOptions( + int viewId, + NavigationHeaderStylingOptionsDto stylingOptions, + ); bool isNavigationFooterEnabled(int viewId); @@ -585,19 +602,52 @@ abstract class TestMapViewApi { LatLngBoundsDto getVisibleRegion(int viewId); - void followMyLocation(int viewId, CameraPerspectiveDto perspective, double? zoomLevel); - - Future animateCameraToCameraPosition(int viewId, CameraPositionDto cameraPosition, int? duration); - - Future animateCameraToLatLng(int viewId, LatLngDto point, int? duration); - - Future animateCameraToLatLngBounds(int viewId, LatLngBoundsDto bounds, double padding, int? duration); - - Future animateCameraToLatLngZoom(int viewId, LatLngDto point, double zoom, int? duration); - - Future animateCameraByScroll(int viewId, double scrollByDx, double scrollByDy, int? duration); - - Future animateCameraByZoom(int viewId, double zoomBy, double? focusDx, double? focusDy, int? duration); + void followMyLocation( + int viewId, + CameraPerspectiveDto perspective, + double? zoomLevel, + ); + + Future animateCameraToCameraPosition( + int viewId, + CameraPositionDto cameraPosition, + int? duration, + ); + + Future animateCameraToLatLng( + int viewId, + LatLngDto point, + int? duration, + ); + + Future animateCameraToLatLngBounds( + int viewId, + LatLngBoundsDto bounds, + double padding, + int? duration, + ); + + Future animateCameraToLatLngZoom( + int viewId, + LatLngDto point, + double zoom, + int? duration, + ); + + Future animateCameraByScroll( + int viewId, + double scrollByDx, + double scrollByDy, + int? duration, + ); + + Future animateCameraByZoom( + int viewId, + double zoomBy, + double? focusDx, + double? focusDy, + int? duration, + ); Future animateCameraToZoom(int viewId, double zoom, int? duration); @@ -605,13 +655,22 @@ abstract class TestMapViewApi { void moveCameraToLatLng(int viewId, LatLngDto point); - void moveCameraToLatLngBounds(int viewId, LatLngBoundsDto bounds, double padding); + void moveCameraToLatLngBounds( + int viewId, + LatLngBoundsDto bounds, + double padding, + ); void moveCameraToLatLngZoom(int viewId, LatLngDto point, double zoom); void moveCameraByScroll(int viewId, double scrollByDx, double scrollByDy); - void moveCameraByZoom(int viewId, double zoomBy, double? focusDx, double? focusDy); + void moveCameraByZoom( + int viewId, + double zoomBy, + double? focusDx, + double? focusDy, + ); void moveCameraToZoom(int viewId, double zoom); @@ -681,6432 +740,10343 @@ abstract class TestMapViewApi { NavigationForceNightModeDto getForceNightMode(int viewId); - void setForceNightMode(int viewId, NavigationForceNightModeDto forceNightMode); - - static void setUp(TestMapViewApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady was null.'); + void setForceNightMode( + int viewId, + NavigationForceNightModeDto forceNightMode, + ); + + static void setUp( + TestMapViewApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady was null, expected non-null int.', + ); + try { + await api.awaitMapReady(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isMyLocationEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled was null, expected non-null int.', + ); + final bool? arg_enabled = (args[1] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled was null, expected non-null bool.', + ); try { - await api.awaitMapReady(arg_viewId!); + api.setMyLocationEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation was null, expected non-null int.', + ); + try { + final LatLngDto? output = api.getMyLocation(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType was null, expected non-null int.', + ); + try { + final MapTypeDto output = api.getMapType(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType was null, expected non-null int.', + ); + final MapTypeDto? arg_mapType = (args[1] as MapTypeDto?); + assert( + arg_mapType != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType was null, expected non-null MapTypeDto.', + ); try { - final bool output = api.isMyLocationEnabled(arg_viewId!); - return [output]; + api.setMapType(arg_viewId!, arg_mapType!); + 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle$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 { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled was null, expected non-null int.'); - final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled was null, expected non-null bool.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle was null, expected non-null int.', + ); + final String? arg_styleJson = (args[1] as String?); + assert( + arg_styleJson != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle was null, expected non-null String.', + ); try { - api.setMyLocationEnabled(arg_viewId!, arg_enabled!); + api.setMapStyle(arg_viewId!, arg_styleJson!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isNavigationTripProgressBarEnabled( + arg_viewId!, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled was null, expected non-null int.', + ); + final bool? arg_enabled = (args[1] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled was null, expected non-null bool.', + ); try { - final LatLngDto? output = api.getMyLocation(arg_viewId!); - return [output]; + api.setNavigationTripProgressBarEnabled(arg_viewId!, arg_enabled!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isNavigationHeaderEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled was null, expected non-null int.', + ); + final bool? arg_enabled = (args[1] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled was null, expected non-null bool.', + ); try { - final MapTypeDto output = api.getMapType(arg_viewId!); - return [output]; + api.setNavigationHeaderEnabled(arg_viewId!, arg_enabled!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions was null, expected non-null int.', + ); + try { + final NavigationHeaderStylingOptionsDto output = api + .getNavigationHeaderStylingOptions(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType was null, expected non-null int.'); - final MapTypeDto? arg_mapType = (args[1] as MapTypeDto?); - assert(arg_mapType != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType was null, expected non-null MapTypeDto.'); - try { - api.setMapType(arg_viewId!, arg_mapType!); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions was null, expected non-null int.', + ); + final NavigationHeaderStylingOptionsDto? arg_stylingOptions = + (args[1] as NavigationHeaderStylingOptionsDto?); + assert( + arg_stylingOptions != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions was null, expected non-null NavigationHeaderStylingOptionsDto.', + ); + try { + api.setNavigationHeaderStylingOptions( + arg_viewId!, + arg_stylingOptions!, + ); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isNavigationFooterEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle was null, expected non-null int.'); - final String? arg_styleJson = (args[1] as String?); - assert(arg_styleJson != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle was null, expected non-null String.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled was null, expected non-null int.', + ); + final bool? arg_enabled = (args[1] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled was null, expected non-null bool.', + ); try { - api.setMapStyle(arg_viewId!, arg_styleJson!); + api.setNavigationFooterEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isRecenterButtonEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled was null, expected non-null int.', + ); + final bool? arg_enabled = (args[1] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled was null, expected non-null bool.', + ); try { - final bool output = api.isNavigationTripProgressBarEnabled(arg_viewId!); - return [output]; + api.setRecenterButtonEnabled(arg_viewId!, arg_enabled!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isSpeedLimitIconEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled was null, expected non-null int.', + ); final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled was null, expected non-null bool.'); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled was null, expected non-null bool.', + ); try { - api.setNavigationTripProgressBarEnabled(arg_viewId!, arg_enabled!); + api.setSpeedLimitIconEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isSpeedometerEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled was null, expected non-null int.', + ); + final bool? arg_enabled = (args[1] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled was null, expected non-null bool.', + ); try { - final bool output = api.isNavigationHeaderEnabled(arg_viewId!); - return [output]; + api.setSpeedometerEnabled(arg_viewId!, arg_enabled!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isNavigationUIEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled was null, expected non-null int.', + ); final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled was null, expected non-null bool.'); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled was null, expected non-null bool.', + ); try { - api.setNavigationHeaderEnabled(arg_viewId!, arg_enabled!); + api.setNavigationUIEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isMyLocationButtonEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled was null, expected non-null int.', + ); + final bool? arg_enabled = (args[1] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled was null, expected non-null bool.', + ); try { - final NavigationHeaderStylingOptionsDto output = api.getNavigationHeaderStylingOptions(arg_viewId!); - return [output]; + api.setMyLocationButtonEnabled(arg_viewId!, arg_enabled!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled was null, expected non-null int.', + ); + try { + final bool output = api + .isConsumeMyLocationButtonClickEventsEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions was null, expected non-null int.'); - final NavigationHeaderStylingOptionsDto? arg_stylingOptions = (args[1] as NavigationHeaderStylingOptionsDto?); - assert(arg_stylingOptions != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions was null, expected non-null NavigationHeaderStylingOptionsDto.'); - try { - api.setNavigationHeaderStylingOptions(arg_viewId!, arg_stylingOptions!); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null, expected non-null int.', + ); + final bool? arg_enabled = (args[1] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null, expected non-null bool.', + ); + try { + api.setConsumeMyLocationButtonClickEventsEnabled( + arg_viewId!, + arg_enabled!, + ); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isZoomGesturesEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled was null, expected non-null int.', + ); + final bool? arg_enabled = (args[1] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled was null, expected non-null bool.', + ); try { - final bool output = api.isNavigationFooterEnabled(arg_viewId!); - return [output]; + api.setZoomGesturesEnabled(arg_viewId!, arg_enabled!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isZoomControlsEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled was null, expected non-null int.', + ); final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled was null, expected non-null bool.'); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled was null, expected non-null bool.', + ); try { - api.setNavigationFooterEnabled(arg_viewId!, arg_enabled!); + api.setZoomControlsEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isCompassEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled was null, expected non-null int.', + ); + final bool? arg_enabled = (args[1] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled was null, expected non-null bool.', + ); try { - final bool output = api.isRecenterButtonEnabled(arg_viewId!); - return [output]; + api.setCompassEnabled(arg_viewId!, arg_enabled!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isRotateGesturesEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled was null, expected non-null int.', + ); final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled was null, expected non-null bool.'); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled was null, expected non-null bool.', + ); try { - api.setRecenterButtonEnabled(arg_viewId!, arg_enabled!); + api.setRotateGesturesEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isScrollGesturesEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled was null, expected non-null int.', + ); + final bool? arg_enabled = (args[1] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled was null, expected non-null bool.', + ); try { - final bool output = api.isSpeedLimitIconEnabled(arg_viewId!); - return [output]; + api.setScrollGesturesEnabled(arg_viewId!, arg_enabled!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom was null, expected non-null int.', + ); + try { + final bool output = api + .isScrollGesturesEnabledDuringRotateOrZoom(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null, expected non-null int.', + ); final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled was null, expected non-null bool.'); - try { - api.setSpeedLimitIconEnabled(arg_viewId!, arg_enabled!); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null, expected non-null bool.', + ); + try { + api.setScrollGesturesDuringRotateOrZoomEnabled( + arg_viewId!, + arg_enabled!, + ); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isTiltGesturesEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled was null, expected non-null int.', + ); + final bool? arg_enabled = (args[1] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled was null, expected non-null bool.', + ); try { - final bool output = api.isSpeedometerEnabled(arg_viewId!); - return [output]; + api.setTiltGesturesEnabled(arg_viewId!, arg_enabled!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isMapToolbarEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled was null, expected non-null int.', + ); final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled was null, expected non-null bool.'); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled was null, expected non-null bool.', + ); try { - api.setSpeedometerEnabled(arg_viewId!, arg_enabled!); + api.setMapToolbarEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isTrafficEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled was null, expected non-null int.', + ); + final bool? arg_enabled = (args[1] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled was null, expected non-null bool.', + ); try { - final bool output = api.isNavigationUIEnabled(arg_viewId!); - return [output]; + api.setTrafficEnabled(arg_viewId!, arg_enabled!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isTrafficIncidentCardsEnabled( + arg_viewId!, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled was null, expected non-null int.', + ); final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled was null, expected non-null bool.'); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled was null, expected non-null bool.', + ); try { - api.setNavigationUIEnabled(arg_viewId!, arg_enabled!); + api.setTrafficIncidentCardsEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isTrafficPromptsEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled was null, expected non-null int.', + ); + final bool? arg_enabled = (args[1] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled was null, expected non-null bool.', + ); try { - final bool output = api.isMyLocationButtonEnabled(arg_viewId!); - return [output]; + api.setTrafficPromptsEnabled(arg_viewId!, arg_enabled!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isReportIncidentButtonEnabled( + arg_viewId!, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled was null, expected non-null int.', + ); final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled was null, expected non-null bool.'); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled was null, expected non-null bool.', + ); try { - api.setMyLocationButtonEnabled(arg_viewId!, arg_enabled!); + api.setReportIncidentButtonEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled was null, expected non-null int.'); - try { - final bool output = api.isConsumeMyLocationButtonClickEventsEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable was null, expected non-null int.', + ); + try { + final bool output = api.isIncidentReportingAvailable( + arg_viewId!, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel was null, expected non-null int.', + ); + try { + api.showReportIncidentsPanel(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isBuildingsEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled was null, expected non-null int.', + ); final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null, expected non-null bool.'); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled was null, expected non-null bool.', + ); try { - api.setConsumeMyLocationButtonClickEventsEnabled(arg_viewId!, arg_enabled!); + api.setBuildingsEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isIndoorEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled was null, expected non-null int.', + ); + final bool? arg_enabled = (args[1] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled was null, expected non-null bool.', + ); try { - final bool output = api.isZoomGesturesEnabled(arg_viewId!); - return [output]; + api.setIndoorEnabled(arg_viewId!, arg_enabled!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isIndoorLevelPickerEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled was null, expected non-null int.', + ); final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled was null, expected non-null bool.'); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled was null, expected non-null bool.', + ); try { - api.setZoomGesturesEnabled(arg_viewId!, arg_enabled!); + api.setIndoorLevelPickerEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding was null, expected non-null int.', + ); + try { + final IndoorBuildingDto? output = api.getFocusedIndoorBuilding( + arg_viewId!, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel was null, expected non-null int.', + ); + final int? arg_levelIndex = (args[1] as int?); + assert( + arg_levelIndex != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel was null, expected non-null int.', + ); try { - final bool output = api.isZoomControlsEnabled(arg_viewId!); - return [output]; + api.activateIndoorLevel(arg_viewId!, arg_levelIndex!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition was null, expected non-null int.', + ); + try { + final CameraPositionDto output = api.getCameraPosition( + arg_viewId!, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion was null, expected non-null int.', + ); + try { + final LatLngBoundsDto output = api.getVisibleRegion( + arg_viewId!, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled was null, expected non-null int.'); - final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled was null, expected non-null bool.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation was null, expected non-null int.', + ); + final CameraPerspectiveDto? arg_perspective = + (args[1] as CameraPerspectiveDto?); + assert( + arg_perspective != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation was null, expected non-null CameraPerspectiveDto.', + ); + final double? arg_zoomLevel = (args[2] as double?); try { - api.setZoomControlsEnabled(arg_viewId!, arg_enabled!); + api.followMyLocation(arg_viewId!, arg_perspective!, arg_zoomLevel); 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition$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 { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition was null, expected non-null int.', + ); + final CameraPositionDto? arg_cameraPosition = + (args[1] as CameraPositionDto?); + assert( + arg_cameraPosition != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition was null, expected non-null CameraPositionDto.', + ); + final int? arg_duration = (args[2] as int?); try { - final bool output = api.isCompassEnabled(arg_viewId!); + final bool output = await api.animateCameraToCameraPosition( + arg_viewId!, + arg_cameraPosition!, + arg_duration, + ); 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()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng$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 { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled was null, expected non-null int.'); - final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled was null, expected non-null bool.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng was null, expected non-null int.', + ); + final LatLngDto? arg_point = (args[1] as LatLngDto?); + assert( + arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng was null, expected non-null LatLngDto.', + ); + final int? arg_duration = (args[2] as int?); try { - api.setCompassEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + final bool output = await api.animateCameraToLatLng( + arg_viewId!, + arg_point!, + arg_duration, + ); + 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()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds$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 { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds was null, expected non-null int.', + ); + final LatLngBoundsDto? arg_bounds = (args[1] as LatLngBoundsDto?); + assert( + arg_bounds != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds was null, expected non-null LatLngBoundsDto.', + ); + final double? arg_padding = (args[2] as double?); + assert( + arg_padding != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds was null, expected non-null double.', + ); + final int? arg_duration = (args[3] as int?); try { - final bool output = api.isRotateGesturesEnabled(arg_viewId!); + final bool output = await api.animateCameraToLatLngBounds( + arg_viewId!, + arg_bounds!, + arg_padding!, + arg_duration, + ); 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()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom$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 { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled was null, expected non-null int.'); - final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled was null, expected non-null bool.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom was null, expected non-null int.', + ); + final LatLngDto? arg_point = (args[1] as LatLngDto?); + assert( + arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom was null, expected non-null LatLngDto.', + ); + final double? arg_zoom = (args[2] as double?); + assert( + arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom was null, expected non-null double.', + ); + final int? arg_duration = (args[3] as int?); try { - api.setRotateGesturesEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + final bool output = await api.animateCameraToLatLngZoom( + arg_viewId!, + arg_point!, + arg_zoom!, + arg_duration, + ); + 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()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll$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 { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll was null, expected non-null int.', + ); + final double? arg_scrollByDx = (args[1] as double?); + assert( + arg_scrollByDx != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll was null, expected non-null double.', + ); + final double? arg_scrollByDy = (args[2] as double?); + assert( + arg_scrollByDy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll was null, expected non-null double.', + ); + final int? arg_duration = (args[3] as int?); try { - final bool output = api.isScrollGesturesEnabled(arg_viewId!); + final bool output = await api.animateCameraByScroll( + arg_viewId!, + arg_scrollByDx!, + arg_scrollByDy!, + arg_duration, + ); 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()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom$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 { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled was null, expected non-null int.'); - final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled was null, expected non-null bool.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom was null, expected non-null int.', + ); + final double? arg_zoomBy = (args[1] as double?); + assert( + arg_zoomBy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom was null, expected non-null double.', + ); + final double? arg_focusDx = (args[2] as double?); + final double? arg_focusDy = (args[3] as double?); + final int? arg_duration = (args[4] as int?); try { - api.setScrollGesturesEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + final bool output = await api.animateCameraByZoom( + arg_viewId!, + arg_zoomBy!, + arg_focusDx, + arg_focusDy, + arg_duration, + ); + 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()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom$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 { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom was null, expected non-null int.', + ); + final double? arg_zoom = (args[1] as double?); + assert( + arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom was null, expected non-null double.', + ); + final int? arg_duration = (args[2] as int?); try { - final bool output = api.isScrollGesturesEnabledDuringRotateOrZoom(arg_viewId!); + final bool output = await api.animateCameraToZoom( + arg_viewId!, + arg_zoom!, + arg_duration, + ); 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()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition$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 { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null, expected non-null int.'); - final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null, expected non-null bool.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition was null, expected non-null int.', + ); + final CameraPositionDto? arg_cameraPosition = + (args[1] as CameraPositionDto?); + assert( + arg_cameraPosition != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition was null, expected non-null CameraPositionDto.', + ); try { - api.setScrollGesturesDuringRotateOrZoomEnabled(arg_viewId!, arg_enabled!); + api.moveCameraToCameraPosition(arg_viewId!, arg_cameraPosition!); 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng$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 { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng was null, expected non-null int.', + ); + final LatLngDto? arg_point = (args[1] as LatLngDto?); + assert( + arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng was null, expected non-null LatLngDto.', + ); try { - final bool output = api.isTiltGesturesEnabled(arg_viewId!); - return [output]; + api.moveCameraToLatLng(arg_viewId!, arg_point!); + 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds$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 { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled was null, expected non-null int.'); - final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled was null, expected non-null bool.'); - try { - api.setTiltGesturesEnabled(arg_viewId!, arg_enabled!); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds was null, expected non-null int.', + ); + final LatLngBoundsDto? arg_bounds = (args[1] as LatLngBoundsDto?); + assert( + arg_bounds != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds was null, expected non-null LatLngBoundsDto.', + ); + final double? arg_padding = (args[2] as double?); + assert( + arg_padding != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds was null, expected non-null double.', + ); + try { + api.moveCameraToLatLngBounds( + arg_viewId!, + arg_bounds!, + arg_padding!, + ); 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom$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 { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom was null, expected non-null int.', + ); + final LatLngDto? arg_point = (args[1] as LatLngDto?); + assert( + arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom was null, expected non-null LatLngDto.', + ); + final double? arg_zoom = (args[2] as double?); + assert( + arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom was null, expected non-null double.', + ); try { - final bool output = api.isMapToolbarEnabled(arg_viewId!); - return [output]; + api.moveCameraToLatLngZoom(arg_viewId!, arg_point!, arg_zoom!); + 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll$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 { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled was null, expected non-null int.'); - final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled was null, expected non-null bool.'); - try { - api.setMapToolbarEnabled(arg_viewId!, arg_enabled!); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll was null, expected non-null int.', + ); + final double? arg_scrollByDx = (args[1] as double?); + assert( + arg_scrollByDx != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll was null, expected non-null double.', + ); + final double? arg_scrollByDy = (args[2] as double?); + assert( + arg_scrollByDy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll was null, expected non-null double.', + ); + try { + api.moveCameraByScroll( + arg_viewId!, + arg_scrollByDx!, + arg_scrollByDy!, + ); 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom$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 { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom was null, expected non-null int.', + ); + final double? arg_zoomBy = (args[1] as double?); + assert( + arg_zoomBy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom was null, expected non-null double.', + ); + final double? arg_focusDx = (args[2] as double?); + final double? arg_focusDy = (args[3] as double?); try { - final bool output = api.isTrafficEnabled(arg_viewId!); - return [output]; + api.moveCameraByZoom( + arg_viewId!, + arg_zoomBy!, + arg_focusDx, + arg_focusDy, + ); + 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom$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 { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled was null, expected non-null int.'); - final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled was null, expected non-null bool.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom was null, expected non-null int.', + ); + final double? arg_zoom = (args[1] as double?); + assert( + arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom was null, expected non-null double.', + ); try { - api.setTrafficEnabled(arg_viewId!, arg_enabled!); + api.moveCameraToZoom(arg_viewId!, arg_zoom!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview was null, expected non-null int.', + ); + try { + api.showRouteOverview(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference was null, expected non-null int.', + ); + try { + final double output = api.getMinZoomPreference(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference was null, expected non-null int.', + ); + try { + final double output = api.getMaxZoomPreference(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference was null, expected non-null int.', + ); + try { + api.resetMinMaxZoomPreference(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference was null, expected non-null int.', + ); + final double? arg_minZoomPreference = (args[1] as double?); + assert( + arg_minZoomPreference != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference was null, expected non-null double.', + ); try { - final bool output = api.isTrafficIncidentCardsEnabled(arg_viewId!); - return [output]; + api.setMinZoomPreference(arg_viewId!, arg_minZoomPreference!); + 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference$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 { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled was null, expected non-null int.'); - final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled was null, expected non-null bool.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference was null, expected non-null int.', + ); + final double? arg_maxZoomPreference = (args[1] as double?); + assert( + arg_maxZoomPreference != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference was null, expected non-null double.', + ); try { - api.setTrafficIncidentCardsEnabled(arg_viewId!, arg_enabled!); + api.setMaxZoomPreference(arg_viewId!, arg_maxZoomPreference!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers was null, expected non-null int.', + ); + try { + final List output = api.getMarkers(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled was null, expected non-null int.'); - try { - final bool output = api.isTrafficPromptsEnabled(arg_viewId!); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers was null, expected non-null int.', + ); + final List? arg_markers = (args[1] as List?) + ?.cast(); + assert( + arg_markers != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers was null, expected non-null List.', + ); + try { + final List output = api.addMarkers( + arg_viewId!, + arg_markers!, + ); 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()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers$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 { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled was null, expected non-null int.'); - final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled was null, expected non-null bool.'); - try { - api.setTrafficPromptsEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers was null, expected non-null int.', + ); + final List? arg_markers = (args[1] as List?) + ?.cast(); + assert( + arg_markers != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers was null, expected non-null List.', + ); + try { + final List output = api.updateMarkers( + arg_viewId!, + arg_markers!, + ); + 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()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers$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 { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers was null, expected non-null int.', + ); + final List? arg_markers = (args[1] as List?) + ?.cast(); + assert( + arg_markers != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers was null, expected non-null List.', + ); try { - final bool output = api.isReportIncidentButtonEnabled(arg_viewId!); - return [output]; + api.removeMarkers(arg_viewId!, arg_markers!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers was null, expected non-null int.', + ); + try { + api.clearMarkers(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear was null, expected non-null int.', + ); + try { + api.clear(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons was null, expected non-null int.', + ); + try { + final List output = api.getPolygons(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled was null, expected non-null int.'); - final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled was null, expected non-null bool.'); - try { - api.setReportIncidentButtonEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons was null, expected non-null int.', + ); + final List? arg_polygons = (args[1] as List?) + ?.cast(); + assert( + arg_polygons != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons was null, expected non-null List.', + ); + try { + final List output = api.addPolygons( + arg_viewId!, + arg_polygons!, + ); + 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()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons$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 { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable was null, expected non-null int.'); - try { - final bool output = api.isIncidentReportingAvailable(arg_viewId!); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons was null, expected non-null int.', + ); + final List? arg_polygons = (args[1] as List?) + ?.cast(); + assert( + arg_polygons != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons was null, expected non-null List.', + ); + try { + final List output = api.updatePolygons( + arg_viewId!, + arg_polygons!, + ); 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()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons$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 { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons was null, expected non-null int.', + ); + final List? arg_polygons = (args[1] as List?) + ?.cast(); + assert( + arg_polygons != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons was null, expected non-null List.', + ); try { - api.showReportIncidentsPanel(arg_viewId!); + api.removePolygons(arg_viewId!, arg_polygons!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons was null, expected non-null int.', + ); + try { + api.clearPolygons(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines was null, expected non-null int.', + ); + try { + final List output = api.getPolylines(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled was null, expected non-null int.'); - try { - final bool output = api.isBuildingsEnabled(arg_viewId!); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines was null, expected non-null int.', + ); + final List? arg_polylines = (args[1] as List?) + ?.cast(); + assert( + arg_polylines != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines was null, expected non-null List.', + ); + try { + final List output = api.addPolylines( + arg_viewId!, + arg_polylines!, + ); 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()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines$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 { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled was null, expected non-null int.'); - final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled was null, expected non-null bool.'); - try { - api.setBuildingsEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines was null, expected non-null int.', + ); + final List? arg_polylines = (args[1] as List?) + ?.cast(); + assert( + arg_polylines != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines was null, expected non-null List.', + ); + try { + final List output = api.updatePolylines( + arg_viewId!, + arg_polylines!, + ); + 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()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines$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 { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines was null, expected non-null int.', + ); + final List? arg_polylines = (args[1] as List?) + ?.cast(); + assert( + arg_polylines != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines was null, expected non-null List.', + ); try { - final bool output = api.isIndoorEnabled(arg_viewId!); - return [output]; + api.removePolylines(arg_viewId!, arg_polylines!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines was null, expected non-null int.', + ); + try { + api.clearPolylines(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles was null, expected non-null int.', + ); + try { + final List output = api.getCircles(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled was null, expected non-null int.'); - final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled was null, expected non-null bool.'); - try { - api.setIndoorEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles was null, expected non-null int.', + ); + final List? arg_circles = (args[1] as List?) + ?.cast(); + assert( + arg_circles != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles was null, expected non-null List.', + ); + try { + final List output = api.addCircles( + arg_viewId!, + arg_circles!, + ); + 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()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles$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 { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled was null, expected non-null int.'); - try { - final bool output = api.isIndoorLevelPickerEnabled(arg_viewId!); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles was null, expected non-null int.', + ); + final List? arg_circles = (args[1] as List?) + ?.cast(); + assert( + arg_circles != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles was null, expected non-null List.', + ); + try { + final List output = api.updateCircles( + arg_viewId!, + arg_circles!, + ); 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()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles$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 { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled was null, expected non-null int.'); - final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled was null, expected non-null bool.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles was null, expected non-null int.', + ); + final List? arg_circles = (args[1] as List?) + ?.cast(); + assert( + arg_circles != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles was null, expected non-null List.', + ); try { - api.setIndoorLevelPickerEnabled(arg_viewId!, arg_enabled!); + api.removeCircles(arg_viewId!, arg_circles!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles was null, expected non-null int.', + ); + try { + api.clearCircles(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents was null, expected non-null int.', + ); + try { + api.enableOnCameraChangedEvents(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding was null, expected non-null int.', + ); + final MapPaddingDto? arg_padding = (args[1] as MapPaddingDto?); + assert( + arg_padding != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding was null, expected non-null MapPaddingDto.', + ); try { - final IndoorBuildingDto? output = api.getFocusedIndoorBuilding(arg_viewId!); - return [output]; + api.setPadding(arg_viewId!, arg_padding!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding was null, expected non-null int.', + ); + try { + final MapPaddingDto output = api.getPadding(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme was null, expected non-null int.', + ); + try { + final MapColorSchemeDto output = api.getMapColorScheme( + arg_viewId!, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel was null, expected non-null int.'); - final int? arg_levelIndex = (args[1] as int?); - assert(arg_levelIndex != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme was null, expected non-null int.', + ); + final MapColorSchemeDto? arg_mapColorScheme = + (args[1] as MapColorSchemeDto?); + assert( + arg_mapColorScheme != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme was null, expected non-null MapColorSchemeDto.', + ); try { - api.activateIndoorLevel(arg_viewId!, arg_levelIndex!); + api.setMapColorScheme(arg_viewId!, arg_mapColorScheme!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode was null, expected non-null int.', + ); + try { + final NavigationForceNightModeDto output = api + .getForceNightMode(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode was null, expected non-null int.', + ); + final NavigationForceNightModeDto? arg_forceNightMode = + (args[1] as NavigationForceNightModeDto?); + assert( + arg_forceNightMode != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode was null, expected non-null NavigationForceNightModeDto.', + ); try { - final CameraPositionDto output = api.getCameraPosition(arg_viewId!); - return [output]; + api.setForceNightMode(arg_viewId!, arg_forceNightMode!); + 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion was null.'); + } +} + +abstract class TestImageRegistryApi { + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => + TestDefaultBinaryMessengerBinding.instance; + static const MessageCodec pigeonChannelCodec = _PigeonCodec(); + + ImageDescriptorDto registerBitmapImage( + String imageId, + Uint8List bytes, + double imagePixelRatio, + double? width, + double? height, + ); + + void unregisterImage(ImageDescriptorDto imageDescriptor); + + List getRegisteredImages(); + + void clearRegisteredImages(RegisteredImageTypeDto? filter); + + Uint8List? getRegisteredImageData(ImageDescriptorDto imageDescriptor); + + static void setUp( + TestImageRegistryApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage was null.', + ); final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion was null, expected non-null int.'); + final String? arg_imageId = (args[0] as String?); + assert( + arg_imageId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage was null, expected non-null String.', + ); + final Uint8List? arg_bytes = (args[1] as Uint8List?); + assert( + arg_bytes != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage was null, expected non-null Uint8List.', + ); + final double? arg_imagePixelRatio = (args[2] as double?); + assert( + arg_imagePixelRatio != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage was null, expected non-null double.', + ); + final double? arg_width = (args[3] as double?); + final double? arg_height = (args[4] as double?); try { - final LatLngBoundsDto output = api.getVisibleRegion(arg_viewId!); + final ImageDescriptorDto output = api.registerBitmapImage( + arg_imageId!, + arg_bytes!, + arg_imagePixelRatio!, + arg_width, + arg_height, + ); 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()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage was null.', + ); + final List args = (message as List?)!; + final ImageDescriptorDto? arg_imageDescriptor = + (args[0] as ImageDescriptorDto?); + assert( + arg_imageDescriptor != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage was null, expected non-null ImageDescriptorDto.', + ); + try { + api.unregisterImage(arg_imageDescriptor!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final List output = api + .getRegisteredImages(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages was null.', + ); + final List args = (message as List?)!; + final RegisteredImageTypeDto? arg_filter = + (args[0] as RegisteredImageTypeDto?); + try { + api.clearRegisteredImages(arg_filter); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData was null.', + ); + final List args = (message as List?)!; + final ImageDescriptorDto? arg_imageDescriptor = + (args[0] as ImageDescriptorDto?); + assert( + arg_imageDescriptor != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData was null, expected non-null ImageDescriptorDto.', + ); + try { + final Uint8List? output = api.getRegisteredImageData( + arg_imageDescriptor!, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); } } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation was null, expected non-null int.'); - final CameraPerspectiveDto? arg_perspective = (args[1] as CameraPerspectiveDto?); - assert(arg_perspective != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation was null, expected non-null CameraPerspectiveDto.'); - final double? arg_zoomLevel = (args[2] as double?); - try { - api.followMyLocation(arg_viewId!, arg_perspective!, arg_zoomLevel); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition was null, expected non-null int.'); - final CameraPositionDto? arg_cameraPosition = (args[1] as CameraPositionDto?); - assert(arg_cameraPosition != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition was null, expected non-null CameraPositionDto.'); - final int? arg_duration = (args[2] as int?); - try { - final bool output = await api.animateCameraToCameraPosition(arg_viewId!, arg_cameraPosition!, arg_duration); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng was null, expected non-null int.'); - final LatLngDto? arg_point = (args[1] as LatLngDto?); - assert(arg_point != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng was null, expected non-null LatLngDto.'); - final int? arg_duration = (args[2] as int?); - try { - final bool output = await api.animateCameraToLatLng(arg_viewId!, arg_point!, arg_duration); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds was null, expected non-null int.'); - final LatLngBoundsDto? arg_bounds = (args[1] as LatLngBoundsDto?); - assert(arg_bounds != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds was null, expected non-null LatLngBoundsDto.'); - final double? arg_padding = (args[2] as double?); - assert(arg_padding != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds was null, expected non-null double.'); - final int? arg_duration = (args[3] as int?); - try { - final bool output = await api.animateCameraToLatLngBounds(arg_viewId!, arg_bounds!, arg_padding!, arg_duration); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom was null, expected non-null int.'); - final LatLngDto? arg_point = (args[1] as LatLngDto?); - assert(arg_point != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom was null, expected non-null LatLngDto.'); - final double? arg_zoom = (args[2] as double?); - assert(arg_zoom != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom was null, expected non-null double.'); - final int? arg_duration = (args[3] as int?); - try { - final bool output = await api.animateCameraToLatLngZoom(arg_viewId!, arg_point!, arg_zoom!, arg_duration); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll was null, expected non-null int.'); - final double? arg_scrollByDx = (args[1] as double?); - assert(arg_scrollByDx != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll was null, expected non-null double.'); - final double? arg_scrollByDy = (args[2] as double?); - assert(arg_scrollByDy != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll was null, expected non-null double.'); - final int? arg_duration = (args[3] as int?); - try { - final bool output = await api.animateCameraByScroll(arg_viewId!, arg_scrollByDx!, arg_scrollByDy!, arg_duration); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom was null, expected non-null int.'); - final double? arg_zoomBy = (args[1] as double?); - assert(arg_zoomBy != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom was null, expected non-null double.'); - final double? arg_focusDx = (args[2] as double?); - final double? arg_focusDy = (args[3] as double?); - final int? arg_duration = (args[4] as int?); - try { - final bool output = await api.animateCameraByZoom(arg_viewId!, arg_zoomBy!, arg_focusDx, arg_focusDy, arg_duration); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom was null, expected non-null int.'); - final double? arg_zoom = (args[1] as double?); - assert(arg_zoom != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom was null, expected non-null double.'); - final int? arg_duration = (args[2] as int?); - try { - final bool output = await api.animateCameraToZoom(arg_viewId!, arg_zoom!, arg_duration); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition was null, expected non-null int.'); - final CameraPositionDto? arg_cameraPosition = (args[1] as CameraPositionDto?); - assert(arg_cameraPosition != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition was null, expected non-null CameraPositionDto.'); - try { - api.moveCameraToCameraPosition(arg_viewId!, arg_cameraPosition!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng was null, expected non-null int.'); - final LatLngDto? arg_point = (args[1] as LatLngDto?); - assert(arg_point != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng was null, expected non-null LatLngDto.'); - try { - api.moveCameraToLatLng(arg_viewId!, arg_point!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds was null, expected non-null int.'); - final LatLngBoundsDto? arg_bounds = (args[1] as LatLngBoundsDto?); - assert(arg_bounds != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds was null, expected non-null LatLngBoundsDto.'); - final double? arg_padding = (args[2] as double?); - assert(arg_padding != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds was null, expected non-null double.'); - try { - api.moveCameraToLatLngBounds(arg_viewId!, arg_bounds!, arg_padding!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom was null, expected non-null int.'); - final LatLngDto? arg_point = (args[1] as LatLngDto?); - assert(arg_point != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom was null, expected non-null LatLngDto.'); - final double? arg_zoom = (args[2] as double?); - assert(arg_zoom != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom was null, expected non-null double.'); - try { - api.moveCameraToLatLngZoom(arg_viewId!, arg_point!, arg_zoom!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll was null, expected non-null int.'); - final double? arg_scrollByDx = (args[1] as double?); - assert(arg_scrollByDx != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll was null, expected non-null double.'); - final double? arg_scrollByDy = (args[2] as double?); - assert(arg_scrollByDy != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll was null, expected non-null double.'); - try { - api.moveCameraByScroll(arg_viewId!, arg_scrollByDx!, arg_scrollByDy!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom was null, expected non-null int.'); - final double? arg_zoomBy = (args[1] as double?); - assert(arg_zoomBy != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom was null, expected non-null double.'); - final double? arg_focusDx = (args[2] as double?); - final double? arg_focusDy = (args[3] as double?); - try { - api.moveCameraByZoom(arg_viewId!, arg_zoomBy!, arg_focusDx, arg_focusDy); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom was null, expected non-null int.'); - final double? arg_zoom = (args[1] as double?); - assert(arg_zoom != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom was null, expected non-null double.'); - try { - api.moveCameraToZoom(arg_viewId!, arg_zoom!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview was null, expected non-null int.'); - try { - api.showRouteOverview(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference was null, expected non-null int.'); - try { - final double output = api.getMinZoomPreference(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference was null, expected non-null int.'); - try { - final double output = api.getMaxZoomPreference(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference was null, expected non-null int.'); - try { - api.resetMinMaxZoomPreference(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference was null, expected non-null int.'); - final double? arg_minZoomPreference = (args[1] as double?); - assert(arg_minZoomPreference != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference was null, expected non-null double.'); - try { - api.setMinZoomPreference(arg_viewId!, arg_minZoomPreference!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference was null, expected non-null int.'); - final double? arg_maxZoomPreference = (args[1] as double?); - assert(arg_maxZoomPreference != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference was null, expected non-null double.'); - try { - api.setMaxZoomPreference(arg_viewId!, arg_maxZoomPreference!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers was null, expected non-null int.'); - try { - final List output = api.getMarkers(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers was null, expected non-null int.'); - final List? arg_markers = (args[1] as List?)?.cast(); - assert(arg_markers != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers was null, expected non-null List.'); - try { - final List output = api.addMarkers(arg_viewId!, arg_markers!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers was null, expected non-null int.'); - final List? arg_markers = (args[1] as List?)?.cast(); - assert(arg_markers != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers was null, expected non-null List.'); - try { - final List output = api.updateMarkers(arg_viewId!, arg_markers!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers was null, expected non-null int.'); - final List? arg_markers = (args[1] as List?)?.cast(); - assert(arg_markers != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers was null, expected non-null List.'); - try { - api.removeMarkers(arg_viewId!, arg_markers!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers was null, expected non-null int.'); - try { - api.clearMarkers(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear was null, expected non-null int.'); - try { - api.clear(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons was null, expected non-null int.'); - try { - final List output = api.getPolygons(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons was null, expected non-null int.'); - final List? arg_polygons = (args[1] as List?)?.cast(); - assert(arg_polygons != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons was null, expected non-null List.'); - try { - final List output = api.addPolygons(arg_viewId!, arg_polygons!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons was null, expected non-null int.'); - final List? arg_polygons = (args[1] as List?)?.cast(); - assert(arg_polygons != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons was null, expected non-null List.'); - try { - final List output = api.updatePolygons(arg_viewId!, arg_polygons!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons was null, expected non-null int.'); - final List? arg_polygons = (args[1] as List?)?.cast(); - assert(arg_polygons != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons was null, expected non-null List.'); - try { - api.removePolygons(arg_viewId!, arg_polygons!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons was null, expected non-null int.'); - try { - api.clearPolygons(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines was null, expected non-null int.'); - try { - final List output = api.getPolylines(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines was null, expected non-null int.'); - final List? arg_polylines = (args[1] as List?)?.cast(); - assert(arg_polylines != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines was null, expected non-null List.'); - try { - final List output = api.addPolylines(arg_viewId!, arg_polylines!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines was null, expected non-null int.'); - final List? arg_polylines = (args[1] as List?)?.cast(); - assert(arg_polylines != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines was null, expected non-null List.'); - try { - final List output = api.updatePolylines(arg_viewId!, arg_polylines!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines was null, expected non-null int.'); - final List? arg_polylines = (args[1] as List?)?.cast(); - assert(arg_polylines != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines was null, expected non-null List.'); - try { - api.removePolylines(arg_viewId!, arg_polylines!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines was null, expected non-null int.'); - try { - api.clearPolylines(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles was null, expected non-null int.'); - try { - final List output = api.getCircles(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles was null, expected non-null int.'); - final List? arg_circles = (args[1] as List?)?.cast(); - assert(arg_circles != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles was null, expected non-null List.'); - try { - final List output = api.addCircles(arg_viewId!, arg_circles!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles was null, expected non-null int.'); - final List? arg_circles = (args[1] as List?)?.cast(); - assert(arg_circles != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles was null, expected non-null List.'); - try { - final List output = api.updateCircles(arg_viewId!, arg_circles!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles was null, expected non-null int.'); - final List? arg_circles = (args[1] as List?)?.cast(); - assert(arg_circles != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles was null, expected non-null List.'); - try { - api.removeCircles(arg_viewId!, arg_circles!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles was null, expected non-null int.'); - try { - api.clearCircles(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents was null, expected non-null int.'); - try { - api.enableOnCameraChangedEvents(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding was null, expected non-null int.'); - final MapPaddingDto? arg_padding = (args[1] as MapPaddingDto?); - assert(arg_padding != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding was null, expected non-null MapPaddingDto.'); - try { - api.setPadding(arg_viewId!, arg_padding!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding was null, expected non-null int.'); - try { - final MapPaddingDto output = api.getPadding(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme was null, expected non-null int.'); - try { - final MapColorSchemeDto output = api.getMapColorScheme(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme was null, expected non-null int.'); - final MapColorSchemeDto? arg_mapColorScheme = (args[1] as MapColorSchemeDto?); - assert(arg_mapColorScheme != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme was null, expected non-null MapColorSchemeDto.'); - try { - api.setMapColorScheme(arg_viewId!, arg_mapColorScheme!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode was null, expected non-null int.'); - try { - final NavigationForceNightModeDto output = api.getForceNightMode(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode was null, expected non-null int.'); - final NavigationForceNightModeDto? arg_forceNightMode = (args[1] as NavigationForceNightModeDto?); - assert(arg_forceNightMode != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode was null, expected non-null NavigationForceNightModeDto.'); - try { - api.setForceNightMode(arg_viewId!, arg_forceNightMode!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - } -} - -abstract class TestImageRegistryApi { - static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => TestDefaultBinaryMessengerBinding.instance; - static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - - ImageDescriptorDto registerBitmapImage(String imageId, Uint8List bytes, double imagePixelRatio, double? width, double? height); - - void unregisterImage(ImageDescriptorDto imageDescriptor); - - List getRegisteredImages(); - - void clearRegisteredImages(RegisteredImageTypeDto? filter); - - Uint8List? getRegisteredImageData(ImageDescriptorDto imageDescriptor); - - static void setUp(TestImageRegistryApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage was null.'); - final List args = (message as List?)!; - final String? arg_imageId = (args[0] as String?); - assert(arg_imageId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage was null, expected non-null String.'); - final Uint8List? arg_bytes = (args[1] as Uint8List?); - assert(arg_bytes != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage was null, expected non-null Uint8List.'); - final double? arg_imagePixelRatio = (args[2] as double?); - assert(arg_imagePixelRatio != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage was null, expected non-null double.'); - final double? arg_width = (args[3] as double?); - final double? arg_height = (args[4] as double?); - try { - final ImageDescriptorDto output = api.registerBitmapImage(arg_imageId!, arg_bytes!, arg_imagePixelRatio!, arg_width, arg_height); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage was null.'); - final List args = (message as List?)!; - final ImageDescriptorDto? arg_imageDescriptor = (args[0] as ImageDescriptorDto?); - assert(arg_imageDescriptor != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage was null, expected non-null ImageDescriptorDto.'); - try { - api.unregisterImage(arg_imageDescriptor!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final List output = api.getRegisteredImages(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages was null.'); - final List args = (message as List?)!; - final RegisteredImageTypeDto? arg_filter = (args[0] as RegisteredImageTypeDto?); - try { - api.clearRegisteredImages(arg_filter); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData was null.'); - final List args = (message as List?)!; - final ImageDescriptorDto? arg_imageDescriptor = (args[0] as ImageDescriptorDto?); - assert(arg_imageDescriptor != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData was null, expected non-null ImageDescriptorDto.'); - try { - final Uint8List? output = api.getRegisteredImageData(arg_imageDescriptor!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - } -} - -abstract class TestNavigationSessionApi { - static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => TestDefaultBinaryMessengerBinding.instance; - static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - - Future createNavigationSession(bool abnormalTerminationReportingEnabled, TaskRemovedBehaviorDto behavior, NavigationNotificationOptionsDto? notificationOptions); - - bool isInitialized(); - - void cleanup(bool resetSession); - - Future showTermsAndConditionsDialog(String title, String companyName, bool shouldOnlyShowDriverAwarenessDisclaimer, TermsAndConditionsUIParamsDto? uiParams); - - bool areTermsAccepted(); - - void resetTermsAccepted(); - - String getNavSDKVersion(); - - bool isGuidanceRunning(); - - void startGuidance(); - - void stopGuidance(); - - Future setDestinations(DestinationsDto destinations); - - void clearDestinations(); - - Future continueToNextDestination(); - - NavigationTimeAndDistanceDto getCurrentTimeAndDistance(); - - void setAudioGuidance(NavigationAudioGuidanceSettingsDto settings); - - void setSpeedAlertOptions(SpeedAlertOptionsDto options); - - List getRouteSegments(); - - List getTraveledRoute(); - - RouteSegmentDto? getCurrentRouteSegment(); - - void setUserLocation(LatLngDto location); - - void removeUserLocation(); - - void simulateLocationsAlongExistingRoute(); - - void simulateLocationsAlongExistingRouteWithOptions(SimulationOptionsDto options); - - Future simulateLocationsAlongNewRoute(List waypoints); - - Future simulateLocationsAlongNewRouteWithRoutingOptions(List waypoints, RoutingOptionsDto routingOptions); - - Future simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(List waypoints, RoutingOptionsDto routingOptions, SimulationOptionsDto simulationOptions); - - void pauseSimulation(); - - void resumeSimulation(); - - /// iOS-only method. - void allowBackgroundLocationUpdates(bool allow); - - void enableRoadSnappedLocationUpdates(); - - void disableRoadSnappedLocationUpdates(); - - void enableTurnByTurnNavigationEvents(int? numNextStepsToPreview, StepImageGenerationOptionsDto? options); - - void disableTurnByTurnNavigationEvents(); - - void registerRemainingTimeOrDistanceChangedListener(int remainingTimeThresholdSeconds, int remainingDistanceThresholdMeters); - - static void setUp(TestNavigationSessionApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession was null.'); - final List args = (message as List?)!; - final bool? arg_abnormalTerminationReportingEnabled = (args[0] as bool?); - assert(arg_abnormalTerminationReportingEnabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession was null, expected non-null bool.'); - final TaskRemovedBehaviorDto? arg_behavior = (args[1] as TaskRemovedBehaviorDto?); - assert(arg_behavior != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession was null, expected non-null TaskRemovedBehaviorDto.'); - final NavigationNotificationOptionsDto? arg_notificationOptions = (args[2] as NavigationNotificationOptionsDto?); - try { - await api.createNavigationSession(arg_abnormalTerminationReportingEnabled!, arg_behavior!, arg_notificationOptions); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isInitialized(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup was null.'); - final List args = (message as List?)!; - final bool? arg_resetSession = (args[0] as bool?); - assert(arg_resetSession != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup was null, expected non-null bool.'); - try { - api.cleanup(arg_resetSession!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog was null.'); - final List args = (message as List?)!; - final String? arg_title = (args[0] as String?); - assert(arg_title != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog was null, expected non-null String.'); - final String? arg_companyName = (args[1] as String?); - assert(arg_companyName != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog was null, expected non-null String.'); - final bool? arg_shouldOnlyShowDriverAwarenessDisclaimer = (args[2] as bool?); - assert(arg_shouldOnlyShowDriverAwarenessDisclaimer != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog was null, expected non-null bool.'); - final TermsAndConditionsUIParamsDto? arg_uiParams = (args[3] as TermsAndConditionsUIParamsDto?); - try { - final bool output = await api.showTermsAndConditionsDialog(arg_title!, arg_companyName!, arg_shouldOnlyShowDriverAwarenessDisclaimer!, arg_uiParams); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.areTermsAccepted(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.resetTermsAccepted(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final String output = api.getNavSDKVersion(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isGuidanceRunning(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.startGuidance(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.stopGuidance(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations was null.'); - final List args = (message as List?)!; - final DestinationsDto? arg_destinations = (args[0] as DestinationsDto?); - assert(arg_destinations != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations was null, expected non-null DestinationsDto.'); - try { - final RouteStatusDto output = await api.setDestinations(arg_destinations!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.clearDestinations(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final ContinueToNextDestinationResponseDto output = await api.continueToNextDestination(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final NavigationTimeAndDistanceDto output = api.getCurrentTimeAndDistance(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance was null.'); - final List args = (message as List?)!; - final NavigationAudioGuidanceSettingsDto? arg_settings = (args[0] as NavigationAudioGuidanceSettingsDto?); - assert(arg_settings != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance was null, expected non-null NavigationAudioGuidanceSettingsDto.'); - try { - api.setAudioGuidance(arg_settings!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions was null.'); - final List args = (message as List?)!; - final SpeedAlertOptionsDto? arg_options = (args[0] as SpeedAlertOptionsDto?); - assert(arg_options != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions was null, expected non-null SpeedAlertOptionsDto.'); - try { - api.setSpeedAlertOptions(arg_options!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final List output = api.getRouteSegments(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final List output = api.getTraveledRoute(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final RouteSegmentDto? output = api.getCurrentRouteSegment(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation was null.'); - final List args = (message as List?)!; - final LatLngDto? arg_location = (args[0] as LatLngDto?); - assert(arg_location != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation was null, expected non-null LatLngDto.'); - try { - api.setUserLocation(arg_location!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.removeUserLocation(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.simulateLocationsAlongExistingRoute(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions was null.'); - final List args = (message as List?)!; - final SimulationOptionsDto? arg_options = (args[0] as SimulationOptionsDto?); - assert(arg_options != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions was null, expected non-null SimulationOptionsDto.'); - try { - api.simulateLocationsAlongExistingRouteWithOptions(arg_options!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute was null.'); - final List args = (message as List?)!; - final List? arg_waypoints = (args[0] as List?)?.cast(); - assert(arg_waypoints != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute was null, expected non-null List.'); - try { - final RouteStatusDto output = await api.simulateLocationsAlongNewRoute(arg_waypoints!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions was null.'); - final List args = (message as List?)!; - final List? arg_waypoints = (args[0] as List?)?.cast(); - assert(arg_waypoints != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions was null, expected non-null List.'); - final RoutingOptionsDto? arg_routingOptions = (args[1] as RoutingOptionsDto?); - assert(arg_routingOptions != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions was null, expected non-null RoutingOptionsDto.'); - try { - final RouteStatusDto output = await api.simulateLocationsAlongNewRouteWithRoutingOptions(arg_waypoints!, arg_routingOptions!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions was null.'); - final List args = (message as List?)!; - final List? arg_waypoints = (args[0] as List?)?.cast(); - assert(arg_waypoints != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions was null, expected non-null List.'); - final RoutingOptionsDto? arg_routingOptions = (args[1] as RoutingOptionsDto?); - assert(arg_routingOptions != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions was null, expected non-null RoutingOptionsDto.'); - final SimulationOptionsDto? arg_simulationOptions = (args[2] as SimulationOptionsDto?); - assert(arg_simulationOptions != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions was null, expected non-null SimulationOptionsDto.'); - try { - final RouteStatusDto output = await api.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(arg_waypoints!, arg_routingOptions!, arg_simulationOptions!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.pauseSimulation(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.resumeSimulation(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates was null.'); - final List args = (message as List?)!; - final bool? arg_allow = (args[0] as bool?); - assert(arg_allow != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates was null, expected non-null bool.'); - try { - api.allowBackgroundLocationUpdates(arg_allow!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.enableRoadSnappedLocationUpdates(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.disableRoadSnappedLocationUpdates(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents was null.'); - final List args = (message as List?)!; - final int? arg_numNextStepsToPreview = (args[0] as int?); - final StepImageGenerationOptionsDto? arg_options = (args[1] as StepImageGenerationOptionsDto?); - try { - api.enableTurnByTurnNavigationEvents(arg_numNextStepsToPreview, arg_options); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.disableTurnByTurnNavigationEvents(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener was null.'); - final List args = (message as List?)!; - final int? arg_remainingTimeThresholdSeconds = (args[0] as int?); - assert(arg_remainingTimeThresholdSeconds != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener was null, expected non-null int.'); - final int? arg_remainingDistanceThresholdMeters = (args[1] as int?); - assert(arg_remainingDistanceThresholdMeters != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener was null, expected non-null int.'); - try { - api.registerRemainingTimeOrDistanceChangedListener(arg_remainingTimeThresholdSeconds!, arg_remainingDistanceThresholdMeters!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - } -} - -abstract class TestAutoMapViewApi { - static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => TestDefaultBinaryMessengerBinding.instance; - static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - - /// Sets the map options to be used for Android Auto and CarPlay views. - /// Should be called before the Auto/CarPlay screen is created. - /// This allows customization of mapId and basic map settings. - void setAutoMapOptions(AutoMapOptionsDto mapOptions); - - bool isMyLocationEnabled(); - - void setMyLocationEnabled(bool enabled); - - LatLngDto? getMyLocation(); - - MapTypeDto getMapType(); - - void setMapType(MapTypeDto mapType); - - void setMapStyle(String styleJson); - - CameraPositionDto getCameraPosition(); - - LatLngBoundsDto getVisibleRegion(); - - void followMyLocation(CameraPerspectiveDto perspective, double? zoomLevel); - - Future animateCameraToCameraPosition(CameraPositionDto cameraPosition, int? duration); - - Future animateCameraToLatLng(LatLngDto point, int? duration); - - Future animateCameraToLatLngBounds(LatLngBoundsDto bounds, double padding, int? duration); - - Future animateCameraToLatLngZoom(LatLngDto point, double zoom, int? duration); - - Future animateCameraByScroll(double scrollByDx, double scrollByDy, int? duration); - - Future animateCameraByZoom(double zoomBy, double? focusDx, double? focusDy, int? duration); - - Future animateCameraToZoom(double zoom, int? duration); - - void moveCameraToCameraPosition(CameraPositionDto cameraPosition); - - void moveCameraToLatLng(LatLngDto point); - - void moveCameraToLatLngBounds(LatLngBoundsDto bounds, double padding); - - void moveCameraToLatLngZoom(LatLngDto point, double zoom); - - void moveCameraByScroll(double scrollByDx, double scrollByDy); - - void moveCameraByZoom(double zoomBy, double? focusDx, double? focusDy); - - void moveCameraToZoom(double zoom); - - double getMinZoomPreference(); - - double getMaxZoomPreference(); - - void resetMinMaxZoomPreference(); - - void setMinZoomPreference(double minZoomPreference); - - void setMaxZoomPreference(double maxZoomPreference); - - void setMyLocationButtonEnabled(bool enabled); - - void setConsumeMyLocationButtonClickEventsEnabled(bool enabled); - - void setZoomGesturesEnabled(bool enabled); - - void setZoomControlsEnabled(bool enabled); - - void setCompassEnabled(bool enabled); - - void setRotateGesturesEnabled(bool enabled); - - void setScrollGesturesEnabled(bool enabled); - - void setScrollGesturesDuringRotateOrZoomEnabled(bool enabled); - - void setTiltGesturesEnabled(bool enabled); - - void setMapToolbarEnabled(bool enabled); - - void setTrafficEnabled(bool enabled); - - void setTrafficPromptsEnabled(bool enabled); - - void setTrafficIncidentCardsEnabled(bool enabled); - - void setNavigationTripProgressBarEnabled(bool enabled); - - void setSpeedLimitIconEnabled(bool enabled); - - void setSpeedometerEnabled(bool enabled); - - void setNavigationUIEnabled(bool enabled); - - bool isMyLocationButtonEnabled(); - - bool isConsumeMyLocationButtonClickEventsEnabled(); - - bool isZoomGesturesEnabled(); - - bool isZoomControlsEnabled(); - - bool isCompassEnabled(); - - bool isRotateGesturesEnabled(); - - bool isScrollGesturesEnabled(); - - bool isScrollGesturesEnabledDuringRotateOrZoom(); - - bool isTiltGesturesEnabled(); - - bool isMapToolbarEnabled(); - - bool isTrafficEnabled(); - - bool isTrafficPromptsEnabled(); - - bool isTrafficIncidentCardsEnabled(); - - bool isNavigationTripProgressBarEnabled(); - - bool isSpeedLimitIconEnabled(); - - bool isSpeedometerEnabled(); - - bool isNavigationUIEnabled(); - - bool isIndoorEnabled(); - - void setIndoorEnabled(bool enabled); - - IndoorBuildingDto? getFocusedIndoorBuilding(); - - void activateIndoorLevel(int levelIndex); - - void showRouteOverview(); - - List getMarkers(); - - List addMarkers(List markers); - - List updateMarkers(List markers); - - void removeMarkers(List markers); - - void clearMarkers(); - - void clear(); - - List getPolygons(); - - List addPolygons(List polygons); - - List updatePolygons(List polygons); - - void removePolygons(List polygons); - - void clearPolygons(); - - List getPolylines(); - - List addPolylines(List polylines); - - List updatePolylines(List polylines); - - void removePolylines(List polylines); - - void clearPolylines(); - - List getCircles(); - - List addCircles(List circles); - - List updateCircles(List circles); - - void removeCircles(List circles); - - void clearCircles(); - - void enableOnCameraChangedEvents(); - - bool isAutoScreenAvailable(); - - void setPadding(MapPaddingDto padding); - - MapPaddingDto getPadding(); - - MapColorSchemeDto getMapColorScheme(); - - void setMapColorScheme(MapColorSchemeDto mapColorScheme); - - NavigationForceNightModeDto getForceNightMode(); - - void setForceNightMode(NavigationForceNightModeDto forceNightMode); - - void sendCustomNavigationAutoEvent(String event, Object data); - - static void setUp(TestAutoMapViewApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions was null.'); - final List args = (message as List?)!; - final AutoMapOptionsDto? arg_mapOptions = (args[0] as AutoMapOptionsDto?); - assert(arg_mapOptions != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions was null, expected non-null AutoMapOptionsDto.'); - try { - api.setAutoMapOptions(arg_mapOptions!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isMyLocationEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled was null, expected non-null bool.'); - try { - api.setMyLocationEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final LatLngDto? output = api.getMyLocation(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final MapTypeDto output = api.getMapType(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType was null.'); - final List args = (message as List?)!; - final MapTypeDto? arg_mapType = (args[0] as MapTypeDto?); - assert(arg_mapType != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType was null, expected non-null MapTypeDto.'); - try { - api.setMapType(arg_mapType!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle was null.'); - final List args = (message as List?)!; - final String? arg_styleJson = (args[0] as String?); - assert(arg_styleJson != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle was null, expected non-null String.'); - try { - api.setMapStyle(arg_styleJson!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final CameraPositionDto output = api.getCameraPosition(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final LatLngBoundsDto output = api.getVisibleRegion(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation was null.'); - final List args = (message as List?)!; - final CameraPerspectiveDto? arg_perspective = (args[0] as CameraPerspectiveDto?); - assert(arg_perspective != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation was null, expected non-null CameraPerspectiveDto.'); - final double? arg_zoomLevel = (args[1] as double?); - try { - api.followMyLocation(arg_perspective!, arg_zoomLevel); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition was null.'); - final List args = (message as List?)!; - final CameraPositionDto? arg_cameraPosition = (args[0] as CameraPositionDto?); - assert(arg_cameraPosition != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition was null, expected non-null CameraPositionDto.'); - final int? arg_duration = (args[1] as int?); - try { - final bool output = await api.animateCameraToCameraPosition(arg_cameraPosition!, arg_duration); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng was null.'); - final List args = (message as List?)!; - final LatLngDto? arg_point = (args[0] as LatLngDto?); - assert(arg_point != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng was null, expected non-null LatLngDto.'); - final int? arg_duration = (args[1] as int?); - try { - final bool output = await api.animateCameraToLatLng(arg_point!, arg_duration); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds was null.'); - final List args = (message as List?)!; - final LatLngBoundsDto? arg_bounds = (args[0] as LatLngBoundsDto?); - assert(arg_bounds != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds was null, expected non-null LatLngBoundsDto.'); - final double? arg_padding = (args[1] as double?); - assert(arg_padding != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds was null, expected non-null double.'); - final int? arg_duration = (args[2] as int?); - try { - final bool output = await api.animateCameraToLatLngBounds(arg_bounds!, arg_padding!, arg_duration); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom was null.'); - final List args = (message as List?)!; - final LatLngDto? arg_point = (args[0] as LatLngDto?); - assert(arg_point != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom was null, expected non-null LatLngDto.'); - final double? arg_zoom = (args[1] as double?); - assert(arg_zoom != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom was null, expected non-null double.'); - final int? arg_duration = (args[2] as int?); - try { - final bool output = await api.animateCameraToLatLngZoom(arg_point!, arg_zoom!, arg_duration); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll was null.'); - final List args = (message as List?)!; - final double? arg_scrollByDx = (args[0] as double?); - assert(arg_scrollByDx != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll was null, expected non-null double.'); - final double? arg_scrollByDy = (args[1] as double?); - assert(arg_scrollByDy != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll was null, expected non-null double.'); - final int? arg_duration = (args[2] as int?); - try { - final bool output = await api.animateCameraByScroll(arg_scrollByDx!, arg_scrollByDy!, arg_duration); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom was null.'); - final List args = (message as List?)!; - final double? arg_zoomBy = (args[0] as double?); - assert(arg_zoomBy != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom was null, expected non-null double.'); - final double? arg_focusDx = (args[1] as double?); - final double? arg_focusDy = (args[2] as double?); - final int? arg_duration = (args[3] as int?); - try { - final bool output = await api.animateCameraByZoom(arg_zoomBy!, arg_focusDx, arg_focusDy, arg_duration); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom was null.'); - final List args = (message as List?)!; - final double? arg_zoom = (args[0] as double?); - assert(arg_zoom != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom was null, expected non-null double.'); - final int? arg_duration = (args[1] as int?); - try { - final bool output = await api.animateCameraToZoom(arg_zoom!, arg_duration); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition was null.'); - final List args = (message as List?)!; - final CameraPositionDto? arg_cameraPosition = (args[0] as CameraPositionDto?); - assert(arg_cameraPosition != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition was null, expected non-null CameraPositionDto.'); - try { - api.moveCameraToCameraPosition(arg_cameraPosition!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng was null.'); - final List args = (message as List?)!; - final LatLngDto? arg_point = (args[0] as LatLngDto?); - assert(arg_point != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng was null, expected non-null LatLngDto.'); - try { - api.moveCameraToLatLng(arg_point!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds was null.'); - final List args = (message as List?)!; - final LatLngBoundsDto? arg_bounds = (args[0] as LatLngBoundsDto?); - assert(arg_bounds != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds was null, expected non-null LatLngBoundsDto.'); - final double? arg_padding = (args[1] as double?); - assert(arg_padding != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds was null, expected non-null double.'); - try { - api.moveCameraToLatLngBounds(arg_bounds!, arg_padding!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom was null.'); - final List args = (message as List?)!; - final LatLngDto? arg_point = (args[0] as LatLngDto?); - assert(arg_point != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom was null, expected non-null LatLngDto.'); - final double? arg_zoom = (args[1] as double?); - assert(arg_zoom != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom was null, expected non-null double.'); - try { - api.moveCameraToLatLngZoom(arg_point!, arg_zoom!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll was null.'); - final List args = (message as List?)!; - final double? arg_scrollByDx = (args[0] as double?); - assert(arg_scrollByDx != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll was null, expected non-null double.'); - final double? arg_scrollByDy = (args[1] as double?); - assert(arg_scrollByDy != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll was null, expected non-null double.'); - try { - api.moveCameraByScroll(arg_scrollByDx!, arg_scrollByDy!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom was null.'); - final List args = (message as List?)!; - final double? arg_zoomBy = (args[0] as double?); - assert(arg_zoomBy != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom was null, expected non-null double.'); - final double? arg_focusDx = (args[1] as double?); - final double? arg_focusDy = (args[2] as double?); - try { - api.moveCameraByZoom(arg_zoomBy!, arg_focusDx, arg_focusDy); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom was null.'); - final List args = (message as List?)!; - final double? arg_zoom = (args[0] as double?); - assert(arg_zoom != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom was null, expected non-null double.'); - try { - api.moveCameraToZoom(arg_zoom!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final double output = api.getMinZoomPreference(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final double output = api.getMaxZoomPreference(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.resetMinMaxZoomPreference(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference was null.'); - final List args = (message as List?)!; - final double? arg_minZoomPreference = (args[0] as double?); - assert(arg_minZoomPreference != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference was null, expected non-null double.'); - try { - api.setMinZoomPreference(arg_minZoomPreference!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference was null.'); - final List args = (message as List?)!; - final double? arg_maxZoomPreference = (args[0] as double?); - assert(arg_maxZoomPreference != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference was null, expected non-null double.'); - try { - api.setMaxZoomPreference(arg_maxZoomPreference!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled was null, expected non-null bool.'); - try { - api.setMyLocationButtonEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null, expected non-null bool.'); - try { - api.setConsumeMyLocationButtonClickEventsEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled was null, expected non-null bool.'); - try { - api.setZoomGesturesEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled was null, expected non-null bool.'); - try { - api.setZoomControlsEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled was null, expected non-null bool.'); - try { - api.setCompassEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled was null, expected non-null bool.'); - try { - api.setRotateGesturesEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled was null, expected non-null bool.'); - try { - api.setScrollGesturesEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null, expected non-null bool.'); - try { - api.setScrollGesturesDuringRotateOrZoomEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled was null, expected non-null bool.'); - try { - api.setTiltGesturesEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled was null, expected non-null bool.'); - try { - api.setMapToolbarEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled was null, expected non-null bool.'); - try { - api.setTrafficEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled was null, expected non-null bool.'); - try { - api.setTrafficPromptsEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled was null, expected non-null bool.'); - try { - api.setTrafficIncidentCardsEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled was null, expected non-null bool.'); - try { - api.setNavigationTripProgressBarEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled was null, expected non-null bool.'); - try { - api.setSpeedLimitIconEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled was null, expected non-null bool.'); - try { - api.setSpeedometerEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled was null, expected non-null bool.'); - try { - api.setNavigationUIEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isMyLocationButtonEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isConsumeMyLocationButtonClickEventsEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isZoomGesturesEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isZoomControlsEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isCompassEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isRotateGesturesEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isScrollGesturesEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isScrollGesturesEnabledDuringRotateOrZoom(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isTiltGesturesEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isMapToolbarEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isTrafficEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isTrafficPromptsEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isTrafficIncidentCardsEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isNavigationTripProgressBarEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isSpeedLimitIconEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isSpeedometerEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isNavigationUIEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isIndoorEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled was null, expected non-null bool.'); - try { - api.setIndoorEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final IndoorBuildingDto? output = api.getFocusedIndoorBuilding(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel was null.'); - final List args = (message as List?)!; - final int? arg_levelIndex = (args[0] as int?); - assert(arg_levelIndex != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel was null, expected non-null int.'); - try { - api.activateIndoorLevel(arg_levelIndex!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.showRouteOverview(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final List output = api.getMarkers(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers was null.'); - final List args = (message as List?)!; - final List? arg_markers = (args[0] as List?)?.cast(); - assert(arg_markers != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers was null, expected non-null List.'); - try { - final List output = api.addMarkers(arg_markers!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers was null.'); - final List args = (message as List?)!; - final List? arg_markers = (args[0] as List?)?.cast(); - assert(arg_markers != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers was null, expected non-null List.'); - try { - final List output = api.updateMarkers(arg_markers!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers was null.'); - final List args = (message as List?)!; - final List? arg_markers = (args[0] as List?)?.cast(); - assert(arg_markers != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers was null, expected non-null List.'); - try { - api.removeMarkers(arg_markers!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.clearMarkers(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.clear(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final List output = api.getPolygons(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons was null.'); - final List args = (message as List?)!; - final List? arg_polygons = (args[0] as List?)?.cast(); - assert(arg_polygons != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons was null, expected non-null List.'); - try { - final List output = api.addPolygons(arg_polygons!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons was null.'); - final List args = (message as List?)!; - final List? arg_polygons = (args[0] as List?)?.cast(); - assert(arg_polygons != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons was null, expected non-null List.'); - try { - final List output = api.updatePolygons(arg_polygons!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons was null.'); - final List args = (message as List?)!; - final List? arg_polygons = (args[0] as List?)?.cast(); - assert(arg_polygons != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons was null, expected non-null List.'); - try { - api.removePolygons(arg_polygons!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.clearPolygons(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final List output = api.getPolylines(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines was null.'); - final List args = (message as List?)!; - final List? arg_polylines = (args[0] as List?)?.cast(); - assert(arg_polylines != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines was null, expected non-null List.'); - try { - final List output = api.addPolylines(arg_polylines!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines was null.'); - final List args = (message as List?)!; - final List? arg_polylines = (args[0] as List?)?.cast(); - assert(arg_polylines != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines was null, expected non-null List.'); - try { - final List output = api.updatePolylines(arg_polylines!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines was null.'); - final List args = (message as List?)!; - final List? arg_polylines = (args[0] as List?)?.cast(); - assert(arg_polylines != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines was null, expected non-null List.'); - try { - api.removePolylines(arg_polylines!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.clearPolylines(); + } +} + +abstract class TestNavigationSessionApi { + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => + TestDefaultBinaryMessengerBinding.instance; + static const MessageCodec pigeonChannelCodec = _PigeonCodec(); + + Future createNavigationSession( + bool abnormalTerminationReportingEnabled, + TaskRemovedBehaviorDto behavior, + NavigationNotificationOptionsDto? notificationOptions, + ); + + bool isInitialized(); + + void cleanup(bool resetSession); + + Future showTermsAndConditionsDialog( + String title, + String companyName, + bool shouldOnlyShowDriverAwarenessDisclaimer, + TermsAndConditionsUIParamsDto? uiParams, + ); + + bool areTermsAccepted(); + + void resetTermsAccepted(); + + String getNavSDKVersion(); + + bool isGuidanceRunning(); + + void startGuidance(); + + void stopGuidance(); + + Future setDestinations(DestinationsDto destinations); + + void clearDestinations(); + + Future continueToNextDestination(); + + NavigationTimeAndDistanceDto getCurrentTimeAndDistance(); + + void setAudioGuidance(NavigationAudioGuidanceSettingsDto settings); + + void setSpeedAlertOptions(SpeedAlertOptionsDto options); + + List getRouteSegments(); + + List getTraveledRoute(); + + RouteSegmentDto? getCurrentRouteSegment(); + + void setUserLocation(LatLngDto location); + + void removeUserLocation(); + + void simulateLocationsAlongExistingRoute(); + + void simulateLocationsAlongExistingRouteWithOptions( + SimulationOptionsDto options, + ); + + Future simulateLocationsAlongNewRoute( + List waypoints, + ); + + Future simulateLocationsAlongNewRouteWithRoutingOptions( + List waypoints, + RoutingOptionsDto routingOptions, + ); + + Future + simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( + List waypoints, + RoutingOptionsDto routingOptions, + SimulationOptionsDto simulationOptions, + ); + + void pauseSimulation(); + + void resumeSimulation(); + + /// iOS-only method. + void allowBackgroundLocationUpdates(bool allow); + + void enableRoadSnappedLocationUpdates(); + + void disableRoadSnappedLocationUpdates(); + + void enableTurnByTurnNavigationEvents( + int? numNextStepsToPreview, + StepImageGenerationOptionsDto? options, + ); + + void disableTurnByTurnNavigationEvents(); + + void registerRemainingTimeOrDistanceChangedListener( + int remainingTimeThresholdSeconds, + int remainingDistanceThresholdMeters, + ); + + static void setUp( + TestNavigationSessionApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession was null.', + ); + final List args = (message as List?)!; + final bool? arg_abnormalTerminationReportingEnabled = + (args[0] as bool?); + assert( + arg_abnormalTerminationReportingEnabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession was null, expected non-null bool.', + ); + final TaskRemovedBehaviorDto? arg_behavior = + (args[1] as TaskRemovedBehaviorDto?); + assert( + arg_behavior != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession was null, expected non-null TaskRemovedBehaviorDto.', + ); + final NavigationNotificationOptionsDto? arg_notificationOptions = + (args[2] as NavigationNotificationOptionsDto?); + try { + await api.createNavigationSession( + arg_abnormalTerminationReportingEnabled!, + arg_behavior!, + arg_notificationOptions, + ); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final List output = api.getCircles(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles was null.'); - final List args = (message as List?)!; - final List? arg_circles = (args[0] as List?)?.cast(); - assert(arg_circles != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles was null, expected non-null List.'); - try { - final List output = api.addCircles(arg_circles!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isInitialized(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup was null.', + ); + final List args = (message as List?)!; + final bool? arg_resetSession = (args[0] as bool?); + assert( + arg_resetSession != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup was null, expected non-null bool.', + ); + try { + api.cleanup(arg_resetSession!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog was null.', + ); final List args = (message as List?)!; - final List? arg_circles = (args[0] as List?)?.cast(); - assert(arg_circles != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles was null, expected non-null List.'); - try { - final List output = api.updateCircles(arg_circles!); + final String? arg_title = (args[0] as String?); + assert( + arg_title != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog was null, expected non-null String.', + ); + final String? arg_companyName = (args[1] as String?); + assert( + arg_companyName != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog was null, expected non-null String.', + ); + final bool? arg_shouldOnlyShowDriverAwarenessDisclaimer = + (args[2] as bool?); + assert( + arg_shouldOnlyShowDriverAwarenessDisclaimer != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog was null, expected non-null bool.', + ); + final TermsAndConditionsUIParamsDto? arg_uiParams = + (args[3] as TermsAndConditionsUIParamsDto?); + try { + final bool output = await api.showTermsAndConditionsDialog( + arg_title!, + arg_companyName!, + arg_shouldOnlyShowDriverAwarenessDisclaimer!, + arg_uiParams, + ); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles was null.'); - final List args = (message as List?)!; - final List? arg_circles = (args[0] as List?)?.cast(); - assert(arg_circles != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles was null, expected non-null List.'); - try { - api.removeCircles(arg_circles!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.clearCircles(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.enableOnCameraChangedEvents(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isAutoScreenAvailable(); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.areTermsAccepted(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.resetTermsAccepted(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final String output = api.getNavSDKVersion(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isGuidanceRunning(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.startGuidance(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.stopGuidance(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations was null.', + ); + final List args = (message as List?)!; + final DestinationsDto? arg_destinations = + (args[0] as DestinationsDto?); + assert( + arg_destinations != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations was null, expected non-null DestinationsDto.', + ); + try { + final RouteStatusDto output = await api.setDestinations( + arg_destinations!, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.clearDestinations(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final ContinueToNextDestinationResponseDto output = await api + .continueToNextDestination(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final NavigationTimeAndDistanceDto output = api + .getCurrentTimeAndDistance(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance was null.', + ); + final List args = (message as List?)!; + final NavigationAudioGuidanceSettingsDto? arg_settings = + (args[0] as NavigationAudioGuidanceSettingsDto?); + assert( + arg_settings != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance was null, expected non-null NavigationAudioGuidanceSettingsDto.', + ); + try { + api.setAudioGuidance(arg_settings!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions was null.', + ); + final List args = (message as List?)!; + final SpeedAlertOptionsDto? arg_options = + (args[0] as SpeedAlertOptionsDto?); + assert( + arg_options != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions was null, expected non-null SpeedAlertOptionsDto.', + ); + try { + api.setSpeedAlertOptions(arg_options!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final List output = api.getRouteSegments(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final List output = api.getTraveledRoute(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final RouteSegmentDto? output = api.getCurrentRouteSegment(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation was null.', + ); + final List args = (message as List?)!; + final LatLngDto? arg_location = (args[0] as LatLngDto?); + assert( + arg_location != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation was null, expected non-null LatLngDto.', + ); + try { + api.setUserLocation(arg_location!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.removeUserLocation(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.simulateLocationsAlongExistingRoute(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions was null.', + ); + final List args = (message as List?)!; + final SimulationOptionsDto? arg_options = + (args[0] as SimulationOptionsDto?); + assert( + arg_options != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions was null, expected non-null SimulationOptionsDto.', + ); + try { + api.simulateLocationsAlongExistingRouteWithOptions( + arg_options!, + ); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute was null.', + ); + final List args = (message as List?)!; + final List? arg_waypoints = + (args[0] as List?)?.cast(); + assert( + arg_waypoints != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute was null, expected non-null List.', + ); + try { + final RouteStatusDto output = await api + .simulateLocationsAlongNewRoute(arg_waypoints!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions was null.', + ); + final List args = (message as List?)!; + final List? arg_waypoints = + (args[0] as List?)?.cast(); + assert( + arg_waypoints != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions was null, expected non-null List.', + ); + final RoutingOptionsDto? arg_routingOptions = + (args[1] as RoutingOptionsDto?); + assert( + arg_routingOptions != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions was null, expected non-null RoutingOptionsDto.', + ); + try { + final RouteStatusDto output = await api + .simulateLocationsAlongNewRouteWithRoutingOptions( + arg_waypoints!, + arg_routingOptions!, + ); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions was null.', + ); + final List args = (message as List?)!; + final List? arg_waypoints = + (args[0] as List?)?.cast(); + assert( + arg_waypoints != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions was null, expected non-null List.', + ); + final RoutingOptionsDto? arg_routingOptions = + (args[1] as RoutingOptionsDto?); + assert( + arg_routingOptions != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions was null, expected non-null RoutingOptionsDto.', + ); + final SimulationOptionsDto? arg_simulationOptions = + (args[2] as SimulationOptionsDto?); + assert( + arg_simulationOptions != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions was null, expected non-null SimulationOptionsDto.', + ); + try { + final RouteStatusDto output = await api + .simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( + arg_waypoints!, + arg_routingOptions!, + arg_simulationOptions!, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.pauseSimulation(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.resumeSimulation(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates was null.', + ); + final List args = (message as List?)!; + final bool? arg_allow = (args[0] as bool?); + assert( + arg_allow != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates was null, expected non-null bool.', + ); + try { + api.allowBackgroundLocationUpdates(arg_allow!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.enableRoadSnappedLocationUpdates(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.disableRoadSnappedLocationUpdates(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents was null.', + ); + final List args = (message as List?)!; + final int? arg_numNextStepsToPreview = (args[0] as int?); + final StepImageGenerationOptionsDto? arg_options = + (args[1] as StepImageGenerationOptionsDto?); + try { + api.enableTurnByTurnNavigationEvents( + arg_numNextStepsToPreview, + arg_options, + ); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.disableTurnByTurnNavigationEvents(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener was null.', + ); final List args = (message as List?)!; - final MapPaddingDto? arg_padding = (args[0] as MapPaddingDto?); - assert(arg_padding != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding was null, expected non-null MapPaddingDto.'); - try { - api.setPadding(arg_padding!); + final int? arg_remainingTimeThresholdSeconds = (args[0] as int?); + assert( + arg_remainingTimeThresholdSeconds != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener was null, expected non-null int.', + ); + final int? arg_remainingDistanceThresholdMeters = (args[1] as int?); + assert( + arg_remainingDistanceThresholdMeters != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener was null, expected non-null int.', + ); + try { + api.registerRemainingTimeOrDistanceChangedListener( + arg_remainingTimeThresholdSeconds!, + arg_remainingDistanceThresholdMeters!, + ); 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + } +} + +abstract class TestAutoMapViewApi { + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => + TestDefaultBinaryMessengerBinding.instance; + static const MessageCodec pigeonChannelCodec = _PigeonCodec(); + + /// Sets the map options to be used for Android Auto and CarPlay views. + /// Should be called before the Auto/CarPlay screen is created. + /// This allows customization of mapId and basic map settings. + void setAutoMapOptions(AutoMapOptionsDto mapOptions); + + bool isMyLocationEnabled(); + + void setMyLocationEnabled(bool enabled); + + LatLngDto? getMyLocation(); + + MapTypeDto getMapType(); + + void setMapType(MapTypeDto mapType); + + void setMapStyle(String styleJson); + + CameraPositionDto getCameraPosition(); + + LatLngBoundsDto getVisibleRegion(); + + void followMyLocation(CameraPerspectiveDto perspective, double? zoomLevel); + + Future animateCameraToCameraPosition( + CameraPositionDto cameraPosition, + int? duration, + ); + + Future animateCameraToLatLng(LatLngDto point, int? duration); + + Future animateCameraToLatLngBounds( + LatLngBoundsDto bounds, + double padding, + int? duration, + ); + + Future animateCameraToLatLngZoom( + LatLngDto point, + double zoom, + int? duration, + ); + + Future animateCameraByScroll( + double scrollByDx, + double scrollByDy, + int? duration, + ); + + Future animateCameraByZoom( + double zoomBy, + double? focusDx, + double? focusDy, + int? duration, + ); + + Future animateCameraToZoom(double zoom, int? duration); + + void moveCameraToCameraPosition(CameraPositionDto cameraPosition); + + void moveCameraToLatLng(LatLngDto point); + + void moveCameraToLatLngBounds(LatLngBoundsDto bounds, double padding); + + void moveCameraToLatLngZoom(LatLngDto point, double zoom); + + void moveCameraByScroll(double scrollByDx, double scrollByDy); + + void moveCameraByZoom(double zoomBy, double? focusDx, double? focusDy); + + void moveCameraToZoom(double zoom); + + double getMinZoomPreference(); + + double getMaxZoomPreference(); + + void resetMinMaxZoomPreference(); + + void setMinZoomPreference(double minZoomPreference); + + void setMaxZoomPreference(double maxZoomPreference); + + void setMyLocationButtonEnabled(bool enabled); + + void setConsumeMyLocationButtonClickEventsEnabled(bool enabled); + + void setZoomGesturesEnabled(bool enabled); + + void setZoomControlsEnabled(bool enabled); + + void setCompassEnabled(bool enabled); + + void setRotateGesturesEnabled(bool enabled); + + void setScrollGesturesEnabled(bool enabled); + + void setScrollGesturesDuringRotateOrZoomEnabled(bool enabled); + + void setTiltGesturesEnabled(bool enabled); + + void setMapToolbarEnabled(bool enabled); + + void setTrafficEnabled(bool enabled); + + void setTrafficPromptsEnabled(bool enabled); + + void setTrafficIncidentCardsEnabled(bool enabled); + + void setNavigationTripProgressBarEnabled(bool enabled); + + void setSpeedLimitIconEnabled(bool enabled); + + void setSpeedometerEnabled(bool enabled); + + void setNavigationUIEnabled(bool enabled); + + bool isMyLocationButtonEnabled(); + + bool isConsumeMyLocationButtonClickEventsEnabled(); + + bool isZoomGesturesEnabled(); + + bool isZoomControlsEnabled(); + + bool isCompassEnabled(); + + bool isRotateGesturesEnabled(); + + bool isScrollGesturesEnabled(); + + bool isScrollGesturesEnabledDuringRotateOrZoom(); + + bool isTiltGesturesEnabled(); + + bool isMapToolbarEnabled(); + + bool isTrafficEnabled(); + + bool isTrafficPromptsEnabled(); + + bool isTrafficIncidentCardsEnabled(); + + bool isNavigationTripProgressBarEnabled(); + + bool isSpeedLimitIconEnabled(); + + bool isSpeedometerEnabled(); + + bool isNavigationUIEnabled(); + + bool isIndoorEnabled(); + + void setIndoorEnabled(bool enabled); + + IndoorBuildingDto? getFocusedIndoorBuilding(); + + void activateIndoorLevel(int levelIndex); + + void showRouteOverview(); + + List getMarkers(); + + List addMarkers(List markers); + + List updateMarkers(List markers); + + void removeMarkers(List markers); + + void clearMarkers(); + + void clear(); + + List getPolygons(); + + List addPolygons(List polygons); + + List updatePolygons(List polygons); + + void removePolygons(List polygons); + + void clearPolygons(); + + List getPolylines(); + + List addPolylines(List polylines); + + List updatePolylines(List polylines); + + void removePolylines(List polylines); + + void clearPolylines(); + + List getCircles(); + + List addCircles(List circles); + + List updateCircles(List circles); + + void removeCircles(List circles); + + void clearCircles(); + + void enableOnCameraChangedEvents(); + + bool isAutoScreenAvailable(); + + void setPadding(MapPaddingDto padding); + + MapPaddingDto getPadding(); + + MapColorSchemeDto getMapColorScheme(); + + void setMapColorScheme(MapColorSchemeDto mapColorScheme); + + NavigationForceNightModeDto getForceNightMode(); + + void setForceNightMode(NavigationForceNightModeDto forceNightMode); + + void sendCustomNavigationAutoEvent(String event, Object data); + + static void setUp( + TestAutoMapViewApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions was null.', + ); + final List args = (message as List?)!; + final AutoMapOptionsDto? arg_mapOptions = + (args[0] as AutoMapOptionsDto?); + assert( + arg_mapOptions != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions was null, expected non-null AutoMapOptionsDto.', + ); + try { + api.setAutoMapOptions(arg_mapOptions!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isMyLocationEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled was null, expected non-null bool.', + ); + try { + api.setMyLocationEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final LatLngDto? output = api.getMyLocation(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final MapTypeDto output = api.getMapType(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType was null.', + ); + final List args = (message as List?)!; + final MapTypeDto? arg_mapType = (args[0] as MapTypeDto?); + assert( + arg_mapType != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType was null, expected non-null MapTypeDto.', + ); + try { + api.setMapType(arg_mapType!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle was null.', + ); + final List args = (message as List?)!; + final String? arg_styleJson = (args[0] as String?); + assert( + arg_styleJson != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle was null, expected non-null String.', + ); + try { + api.setMapStyle(arg_styleJson!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final CameraPositionDto output = api.getCameraPosition(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final LatLngBoundsDto output = api.getVisibleRegion(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation was null.', + ); + final List args = (message as List?)!; + final CameraPerspectiveDto? arg_perspective = + (args[0] as CameraPerspectiveDto?); + assert( + arg_perspective != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation was null, expected non-null CameraPerspectiveDto.', + ); + final double? arg_zoomLevel = (args[1] as double?); + try { + api.followMyLocation(arg_perspective!, arg_zoomLevel); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition was null.', + ); + final List args = (message as List?)!; + final CameraPositionDto? arg_cameraPosition = + (args[0] as CameraPositionDto?); + assert( + arg_cameraPosition != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition was null, expected non-null CameraPositionDto.', + ); + final int? arg_duration = (args[1] as int?); + try { + final bool output = await api.animateCameraToCameraPosition( + arg_cameraPosition!, + arg_duration, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng was null.', + ); + final List args = (message as List?)!; + final LatLngDto? arg_point = (args[0] as LatLngDto?); + assert( + arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng was null, expected non-null LatLngDto.', + ); + final int? arg_duration = (args[1] as int?); + try { + final bool output = await api.animateCameraToLatLng( + arg_point!, + arg_duration, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds was null.', + ); + final List args = (message as List?)!; + final LatLngBoundsDto? arg_bounds = (args[0] as LatLngBoundsDto?); + assert( + arg_bounds != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds was null, expected non-null LatLngBoundsDto.', + ); + final double? arg_padding = (args[1] as double?); + assert( + arg_padding != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds was null, expected non-null double.', + ); + final int? arg_duration = (args[2] as int?); try { - final MapPaddingDto output = api.getPadding(); + final bool output = await api.animateCameraToLatLngBounds( + arg_bounds!, + arg_padding!, + arg_duration, + ); 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()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom$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< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom was null.', + ); + final List args = (message as List?)!; + final LatLngDto? arg_point = (args[0] as LatLngDto?); + assert( + arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom was null, expected non-null LatLngDto.', + ); + final double? arg_zoom = (args[1] as double?); + assert( + arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom was null, expected non-null double.', + ); + final int? arg_duration = (args[2] as int?); try { - final MapColorSchemeDto output = api.getMapColorScheme(); + final bool output = await api.animateCameraToLatLngZoom( + arg_point!, + arg_zoom!, + arg_duration, + ); 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()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll$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 { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll was null.', + ); + final List args = (message as List?)!; + final double? arg_scrollByDx = (args[0] as double?); + assert( + arg_scrollByDx != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll was null, expected non-null double.', + ); + final double? arg_scrollByDy = (args[1] as double?); + assert( + arg_scrollByDy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll was null, expected non-null double.', + ); + final int? arg_duration = (args[2] as int?); + try { + final bool output = await api.animateCameraByScroll( + arg_scrollByDx!, + arg_scrollByDy!, + arg_duration, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom was null.', + ); + final List args = (message as List?)!; + final double? arg_zoomBy = (args[0] as double?); + assert( + arg_zoomBy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom was null, expected non-null double.', + ); + final double? arg_focusDx = (args[1] as double?); + final double? arg_focusDy = (args[2] as double?); + final int? arg_duration = (args[3] as int?); + try { + final bool output = await api.animateCameraByZoom( + arg_zoomBy!, + arg_focusDx, + arg_focusDy, + arg_duration, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom was null.', + ); + final List args = (message as List?)!; + final double? arg_zoom = (args[0] as double?); + assert( + arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom was null, expected non-null double.', + ); + final int? arg_duration = (args[1] as int?); + try { + final bool output = await api.animateCameraToZoom( + arg_zoom!, + arg_duration, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition was null.', + ); + final List args = (message as List?)!; + final CameraPositionDto? arg_cameraPosition = + (args[0] as CameraPositionDto?); + assert( + arg_cameraPosition != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition was null, expected non-null CameraPositionDto.', + ); + try { + api.moveCameraToCameraPosition(arg_cameraPosition!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng was null.', + ); + final List args = (message as List?)!; + final LatLngDto? arg_point = (args[0] as LatLngDto?); + assert( + arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng was null, expected non-null LatLngDto.', + ); + try { + api.moveCameraToLatLng(arg_point!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds was null.', + ); final List args = (message as List?)!; - final MapColorSchemeDto? arg_mapColorScheme = (args[0] as MapColorSchemeDto?); - assert(arg_mapColorScheme != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme was null, expected non-null MapColorSchemeDto.'); + final LatLngBoundsDto? arg_bounds = (args[0] as LatLngBoundsDto?); + assert( + arg_bounds != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds was null, expected non-null LatLngBoundsDto.', + ); + final double? arg_padding = (args[1] as double?); + assert( + arg_padding != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds was null, expected non-null double.', + ); try { - api.setMapColorScheme(arg_mapColorScheme!); + api.moveCameraToLatLngBounds(arg_bounds!, arg_padding!); 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom$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< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom was null.', + ); + final List args = (message as List?)!; + final LatLngDto? arg_point = (args[0] as LatLngDto?); + assert( + arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom was null, expected non-null LatLngDto.', + ); + final double? arg_zoom = (args[1] as double?); + assert( + arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom was null, expected non-null double.', + ); try { - final NavigationForceNightModeDto output = api.getForceNightMode(); - return [output]; + api.moveCameraToLatLngZoom(arg_point!, arg_zoom!); + 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 pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll$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 { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll was null.', + ); final List args = (message as List?)!; - final NavigationForceNightModeDto? arg_forceNightMode = (args[0] as NavigationForceNightModeDto?); - assert(arg_forceNightMode != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode was null, expected non-null NavigationForceNightModeDto.'); + final double? arg_scrollByDx = (args[0] as double?); + assert( + arg_scrollByDx != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll was null, expected non-null double.', + ); + final double? arg_scrollByDy = (args[1] as double?); + assert( + arg_scrollByDy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll was null, expected non-null double.', + ); try { - api.setForceNightMode(arg_forceNightMode!); + api.moveCameraByScroll(arg_scrollByDx!, arg_scrollByDy!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom was null.', + ); + final List args = (message as List?)!; + final double? arg_zoomBy = (args[0] as double?); + assert( + arg_zoomBy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom was null, expected non-null double.', + ); + final double? arg_focusDx = (args[1] as double?); + final double? arg_focusDy = (args[2] as double?); + try { + api.moveCameraByZoom(arg_zoomBy!, arg_focusDx, arg_focusDy); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom was null.', + ); + final List args = (message as List?)!; + final double? arg_zoom = (args[0] as double?); + assert( + arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom was null, expected non-null double.', + ); + try { + api.moveCameraToZoom(arg_zoom!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final double output = api.getMinZoomPreference(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final double output = api.getMaxZoomPreference(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.resetMinMaxZoomPreference(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference was null.', + ); + final List args = (message as List?)!; + final double? arg_minZoomPreference = (args[0] as double?); + assert( + arg_minZoomPreference != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference was null, expected non-null double.', + ); + try { + api.setMinZoomPreference(arg_minZoomPreference!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference was null.', + ); + final List args = (message as List?)!; + final double? arg_maxZoomPreference = (args[0] as double?); + assert( + arg_maxZoomPreference != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference was null, expected non-null double.', + ); + try { + api.setMaxZoomPreference(arg_maxZoomPreference!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled was null, expected non-null bool.', + ); + try { + api.setMyLocationButtonEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null, expected non-null bool.', + ); + try { + api.setConsumeMyLocationButtonClickEventsEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled was null, expected non-null bool.', + ); + try { + api.setZoomGesturesEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled was null, expected non-null bool.', + ); + try { + api.setZoomControlsEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled was null, expected non-null bool.', + ); + try { + api.setCompassEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled was null, expected non-null bool.', + ); + try { + api.setRotateGesturesEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled was null, expected non-null bool.', + ); + try { + api.setScrollGesturesEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null, expected non-null bool.', + ); + try { + api.setScrollGesturesDuringRotateOrZoomEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled was null, expected non-null bool.', + ); + try { + api.setTiltGesturesEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled was null, expected non-null bool.', + ); + try { + api.setMapToolbarEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled was null, expected non-null bool.', + ); + try { + api.setTrafficEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled was null, expected non-null bool.', + ); + try { + api.setTrafficPromptsEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled was null, expected non-null bool.', + ); + try { + api.setTrafficIncidentCardsEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled was null, expected non-null bool.', + ); + try { + api.setNavigationTripProgressBarEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled was null, expected non-null bool.', + ); + try { + api.setSpeedLimitIconEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled was null, expected non-null bool.', + ); + try { + api.setSpeedometerEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled was null, expected non-null bool.', + ); + try { + api.setNavigationUIEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isMyLocationButtonEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api + .isConsumeMyLocationButtonClickEventsEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isZoomGesturesEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isZoomControlsEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isCompassEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isRotateGesturesEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isScrollGesturesEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api + .isScrollGesturesEnabledDuringRotateOrZoom(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isTiltGesturesEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isMapToolbarEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isTrafficEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isTrafficPromptsEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isTrafficIncidentCardsEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isNavigationTripProgressBarEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isSpeedLimitIconEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isSpeedometerEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isNavigationUIEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isIndoorEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled was null, expected non-null bool.', + ); + try { + api.setIndoorEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final IndoorBuildingDto? output = api + .getFocusedIndoorBuilding(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel was null.', + ); + final List args = (message as List?)!; + final int? arg_levelIndex = (args[0] as int?); + assert( + arg_levelIndex != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel was null, expected non-null int.', + ); + try { + api.activateIndoorLevel(arg_levelIndex!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.showRouteOverview(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final List output = api.getMarkers(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers was null.', + ); + final List args = (message as List?)!; + final List? arg_markers = (args[0] as List?) + ?.cast(); + assert( + arg_markers != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers was null, expected non-null List.', + ); + try { + final List output = api.addMarkers(arg_markers!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers was null.', + ); + final List args = (message as List?)!; + final List? arg_markers = (args[0] as List?) + ?.cast(); + assert( + arg_markers != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers was null, expected non-null List.', + ); + try { + final List output = api.updateMarkers(arg_markers!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers was null.', + ); + final List args = (message as List?)!; + final List? arg_markers = (args[0] as List?) + ?.cast(); + assert( + arg_markers != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers was null, expected non-null List.', + ); + try { + api.removeMarkers(arg_markers!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.clearMarkers(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.clear(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final List output = api.getPolygons(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons was null.', + ); + final List args = (message as List?)!; + final List? arg_polygons = (args[0] as List?) + ?.cast(); + assert( + arg_polygons != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons was null, expected non-null List.', + ); + try { + final List output = api.addPolygons(arg_polygons!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons was null.', + ); + final List args = (message as List?)!; + final List? arg_polygons = (args[0] as List?) + ?.cast(); + assert( + arg_polygons != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons was null, expected non-null List.', + ); + try { + final List output = api.updatePolygons( + arg_polygons!, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons was null.', + ); + final List args = (message as List?)!; + final List? arg_polygons = (args[0] as List?) + ?.cast(); + assert( + arg_polygons != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons was null, expected non-null List.', + ); + try { + api.removePolygons(arg_polygons!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.clearPolygons(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final List output = api.getPolylines(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines was null.', + ); + final List args = (message as List?)!; + final List? arg_polylines = + (args[0] as List?)?.cast(); + assert( + arg_polylines != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines was null, expected non-null List.', + ); + try { + final List output = api.addPolylines( + arg_polylines!, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines was null.', + ); + final List args = (message as List?)!; + final List? arg_polylines = + (args[0] as List?)?.cast(); + assert( + arg_polylines != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines was null, expected non-null List.', + ); + try { + final List output = api.updatePolylines( + arg_polylines!, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines was null.', + ); + final List args = (message as List?)!; + final List? arg_polylines = + (args[0] as List?)?.cast(); + assert( + arg_polylines != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines was null, expected non-null List.', + ); + try { + api.removePolylines(arg_polylines!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.clearPolylines(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final List output = api.getCircles(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles was null.', + ); + final List args = (message as List?)!; + final List? arg_circles = (args[0] as List?) + ?.cast(); + assert( + arg_circles != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles was null, expected non-null List.', + ); + try { + final List output = api.addCircles(arg_circles!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles was null.', + ); + final List args = (message as List?)!; + final List? arg_circles = (args[0] as List?) + ?.cast(); + assert( + arg_circles != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles was null, expected non-null List.', + ); + try { + final List output = api.updateCircles(arg_circles!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles was null.', + ); + final List args = (message as List?)!; + final List? arg_circles = (args[0] as List?) + ?.cast(); + assert( + arg_circles != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles was null, expected non-null List.', + ); + try { + api.removeCircles(arg_circles!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.clearCircles(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.enableOnCameraChangedEvents(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isAutoScreenAvailable(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding was null.', + ); + final List args = (message as List?)!; + final MapPaddingDto? arg_padding = (args[0] as MapPaddingDto?); + assert( + arg_padding != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding was null, expected non-null MapPaddingDto.', + ); + try { + api.setPadding(arg_padding!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final MapPaddingDto output = api.getPadding(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final MapColorSchemeDto output = api.getMapColorScheme(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme was null.', + ); + final List args = (message as List?)!; + final MapColorSchemeDto? arg_mapColorScheme = + (args[0] as MapColorSchemeDto?); + assert( + arg_mapColorScheme != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme was null, expected non-null MapColorSchemeDto.', + ); + try { + api.setMapColorScheme(arg_mapColorScheme!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final NavigationForceNightModeDto output = api + .getForceNightMode(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode was null.', + ); + final List args = (message as List?)!; + final NavigationForceNightModeDto? arg_forceNightMode = + (args[0] as NavigationForceNightModeDto?); + assert( + arg_forceNightMode != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode was null, expected non-null NavigationForceNightModeDto.', + ); + try { + api.setForceNightMode(arg_forceNightMode!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent was null.', + ); final List args = (message as List?)!; final String? arg_event = (args[0] as String?); - assert(arg_event != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent was null, expected non-null String.'); + assert( + arg_event != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent was null, expected non-null String.', + ); final Object? arg_data = (args[1] as Object?); - assert(arg_data != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent was null, expected non-null Object.'); + assert( + arg_data != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent was null, expected non-null Object.', + ); try { api.sendCustomNavigationAutoEvent(arg_event!, arg_data!); 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()), + ); } }); }