From f2ee0297abe32f8dd3e223d9515ab6fd8fc5cd20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20V=C3=A4limaa?= Date: Wed, 26 Feb 2025 15:26:47 +0800 Subject: [PATCH 1/6] feat: support navigation disposal on app exit on android --- .../google/maps/flutter/navigation/Convert.kt | 9 + .../GoogleMapsNavigationSessionManager.kt | 6 +- ...ogleMapsNavigationSessionMessageHandler.kt | 3 +- .../maps/flutter/navigation/messages.g.kt | 3244 +++++---------- .../maps/flutter/navigation/ConvertTest.kt | 8 + ...eMapsNavigationSessionMessageHandler.swift | 2 + .../messages.g.swift | 3611 ++++++----------- .../method_channel/convert/navigation.dart | 11 + lib/src/method_channel/messages.g.dart | 2430 ++++------- lib/src/method_channel/session_api.dart | 8 +- .../google_navigation_flutter_navigator.dart | 7 +- .../navigation_initialization_params.dart | 24 + lib/src/types/types.dart | 1 + pigeons/messages.dart | 12 +- test/messages_test.g.dart | 2922 +++++-------- 15 files changed, 4203 insertions(+), 8095 deletions(-) create mode 100644 lib/src/types/navigation_initialization_params.dart diff --git a/android/src/main/kotlin/com/google/maps/flutter/navigation/Convert.kt b/android/src/main/kotlin/com/google/maps/flutter/navigation/Convert.kt index ae580f08..2841bf80 100644 --- a/android/src/main/kotlin/com/google/maps/flutter/navigation/Convert.kt +++ b/android/src/main/kotlin/com/google/maps/flutter/navigation/Convert.kt @@ -45,6 +45,7 @@ import com.google.android.libraries.navigation.NavigationRoadStretchRenderingDat import com.google.android.libraries.navigation.NavigationTrafficData import com.google.android.libraries.navigation.Navigator import com.google.android.libraries.navigation.Navigator.AudioGuidance +import com.google.android.libraries.navigation.Navigator.TaskRemovedBehavior import com.google.android.libraries.navigation.RouteSegment import com.google.android.libraries.navigation.RoutingOptions import com.google.android.libraries.navigation.RoutingOptions.RoutingStrategy @@ -1055,4 +1056,12 @@ object Convert { ImageDescriptorDto() } } + + fun taskRemovedBehaviorDtoToTaskRemovedBehavior(behavior: TaskRemovedBehaviorDto?): @TaskRemovedBehavior Int { + return when (behavior) { + TaskRemovedBehaviorDto.CONTINUESERVICE -> TaskRemovedBehavior.CONTINUE_SERVICE; + TaskRemovedBehaviorDto.QUITSERVICE -> TaskRemovedBehavior.QUIT_SERVICE; + else -> TaskRemovedBehavior.CONTINUE_SERVICE; + }; + } } 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 c80449d5..c2832028 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 @@ -31,6 +31,7 @@ import com.google.android.libraries.navigation.NavigationApi.NavigatorListener import com.google.android.libraries.navigation.NavigationUpdatesOptions import com.google.android.libraries.navigation.NavigationUpdatesOptions.GeneratedStepImagesType import com.google.android.libraries.navigation.Navigator +import com.google.android.libraries.navigation.Navigator.TaskRemovedBehavior import com.google.android.libraries.navigation.RoadSnappedLocationProvider import com.google.android.libraries.navigation.RouteSegment import com.google.android.libraries.navigation.RoutingOptions @@ -43,7 +44,6 @@ import com.google.android.libraries.navigation.TermsAndConditionsUIParams import com.google.android.libraries.navigation.TimeAndDistance import com.google.android.libraries.navigation.Waypoint import com.google.maps.flutter.navigation.Convert.convertTravelModeFromDto -import com.google.maps.flutter.navigation.GoogleMapsNavigationSessionManager.Companion.navigationReadyListener import io.flutter.plugin.common.BinaryMessenger import java.lang.ref.WeakReference @@ -117,6 +117,7 @@ private constructor(private val navigationSessionEventApi: NavigationSessionEven private var weakActivity: WeakReference? = null private var turnByTurnEventsEnabled: Boolean = false private var weakLifecycleOwner: WeakReference? = null + private var taskRemovedBehavior: @TaskRemovedBehavior Int = 0 override fun onCreate(owner: LifecycleOwner) { weakLifecycleOwner = WeakReference(owner) @@ -170,6 +171,7 @@ private constructor(private val navigationSessionEventApi: NavigationSessionEven /** Creates Navigator instance. */ fun createNavigationSession( abnormalTerminationReportingEnabled: Boolean, + behavior: TaskRemovedBehaviorDto, callback: (Result) -> Unit, ) { if (navigator != null) { @@ -180,6 +182,7 @@ private constructor(private val navigationSessionEventApi: NavigationSessionEven callback(Result.success(Unit)) return } + taskRemovedBehavior = Convert.taskRemovedBehaviorDtoToTaskRemovedBehavior(behavior) // Align API behavior with iOS: // If the terms haven't yet been accepted throw an error. @@ -202,6 +205,7 @@ private constructor(private val navigationSessionEventApi: NavigationSessionEven object : NavigatorListener { override fun onNavigatorReady(newNavigator: Navigator) { navigator = newNavigator + navigator?.setTaskRemovedBehavior(taskRemovedBehavior) registerNavigationListeners() isNavigationSessionInitialized = true navigationReadyListener?.onNavigationReady(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 219097f0..b443bfee 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,10 @@ class GoogleMapsNavigationSessionMessageHandler : NavigationSessionApi { override fun createNavigationSession( abnormalTerminationReportingEnabled: Boolean, + behavior: TaskRemovedBehaviorDto, callback: (Result) -> Unit, ) { - manager().createNavigationSession(abnormalTerminationReportingEnabled, callback) + manager().createNavigationSession(abnormalTerminationReportingEnabled, behavior, 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 71014ecc..2fcd1fee 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 @@ -1,17 +1,17 @@ // Copyright 2023 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. -// +// // Autogenerated from Pigeon (v15.0.0), do not edit directly. // See also: https://pub.dev/packages/pigeon @@ -31,43 +31,38 @@ private fun wrapResult(result: Any?): List { private fun wrapError(exception: Throwable): List { if (exception is FlutterError) { - return listOf(exception.code, exception.message, exception.details) + return listOf( + exception.code, + exception.message, + exception.details + ) } else { return listOf( exception.javaClass.simpleName, exception.toString(), - "Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception), + "Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception) ) } } private fun createConnectionError(channelName: String): FlutterError { - return FlutterError( - "channel-error", - "Unable to establish connection on channel: '$channelName'.", - "", - ) -} + return FlutterError("channel-error", "Unable to establish connection on channel: '$channelName'.", "")} /** * Error class for passing custom error details to Flutter via a thrown PlatformException. - * * @property code The error code. * @property message The error message. * @property details The error details. Must be a datatype supported by the api codec. */ -class FlutterError( +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); @@ -81,7 +76,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); @@ -343,9 +341,7 @@ enum class ManeuverDto(val raw: Int) { OFFRAMPUTURNCOUNTERCLOCKWISE(22), /** Keep to the left side of the road when entering a turnpike or freeway as the road diverges. */ ONRAMPKEEPLEFT(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. */ ONRAMPKEEPRIGHT(24), /** Regular left turn to enter a turnpike or freeway. */ ONRAMPLEFT(25), @@ -401,15 +397,9 @@ enum class ManeuverDto(val raw: Int) { ROUNDABOUTSTRAIGHTCLOCKWISE(50), /** Enter a roundabout in the counterclockwise direction and continue straight. */ ROUNDABOUTSTRAIGHTCOUNTERCLOCKWISE(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. */ ROUNDABOUTUTURNCLOCKWISE(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. */ ROUNDABOUTUTURNCOUNTERCLOCKWISE(53), /** Continue straight. */ STRAIGHT(54), @@ -507,12 +497,29 @@ 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. + */ + CONTINUESERVICE(0), + /** Indicates that navigation guidance, location updates, and notification should shut down immediately when the user removes the application task. */ + QUITSERVICE(1); + + companion object { + fun ofRaw(raw: Int): TaskRemovedBehaviorDto? { + return values().firstOrNull { it.raw == raw } + } + } +} + /** * Object containing map options used to initialize Google Map view. * * 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.). */ @@ -543,7 +550,8 @@ data class MapOptionsDto( */ val cameraTargetBounds: LatLngBoundsDto? = null, /** Specifies the padding for the map. */ - val padding: MapPaddingDto? = null, + val padding: MapPaddingDto? = null + ) { companion object { @Suppress("UNCHECKED_CAST") @@ -560,28 +568,15 @@ data class MapOptionsDto( val minZoomPreference = list[9] as Double? val maxZoomPreference = list[10] as Double? val zoomControlsEnabled = list[11] as Boolean - val cameraTargetBounds: LatLngBoundsDto? = - (list[12] as List?)?.let { LatLngBoundsDto.fromList(it) } - val padding: MapPaddingDto? = (list[13] as List?)?.let { MapPaddingDto.fromList(it) } - return MapOptionsDto( - cameraPosition, - mapType, - compassEnabled, - rotateGesturesEnabled, - scrollGesturesEnabled, - tiltGesturesEnabled, - zoomGesturesEnabled, - scrollGesturesEnabledDuringRotateOrZoom, - mapToolbarEnabled, - minZoomPreference, - maxZoomPreference, - zoomControlsEnabled, - cameraTargetBounds, - padding, - ) + val cameraTargetBounds: LatLngBoundsDto? = (list[12] as List?)?.let { + LatLngBoundsDto.fromList(it) + } + val padding: MapPaddingDto? = (list[13] as List?)?.let { + MapPaddingDto.fromList(it) + } + return MapOptionsDto(cameraPosition, mapType, compassEnabled, rotateGesturesEnabled, scrollGesturesEnabled, tiltGesturesEnabled, zoomGesturesEnabled, scrollGesturesEnabledDuringRotateOrZoom, mapToolbarEnabled, minZoomPreference, maxZoomPreference, zoomControlsEnabled, cameraTargetBounds, padding) } } - fun toList(): List { return listOf( cameraPosition.toList(), @@ -607,9 +602,10 @@ 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 + ) { companion object { @Suppress("UNCHECKED_CAST") @@ -618,46 +614,54 @@ data class NavigationViewOptionsDto( return NavigationViewOptionsDto(navigationUIEnabledPreference) } } - fun toList(): List { - return listOf(navigationUIEnabledPreference.raw) + return listOf( + navigationUIEnabledPreference.raw, + ) } } /** * 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 { @Suppress("UNCHECKED_CAST") fun fromList(list: List): ViewCreationOptionsDto { val mapViewType = MapViewTypeDto.ofRaw(list[0] as Int)!! val mapOptions = MapOptionsDto.fromList(list[1] as List) - val navigationViewOptions: NavigationViewOptionsDto? = - (list[2] as List?)?.let { NavigationViewOptionsDto.fromList(it) } + val navigationViewOptions: NavigationViewOptionsDto? = (list[2] as List?)?.let { + NavigationViewOptionsDto.fromList(it) + } return ViewCreationOptionsDto(mapViewType, mapOptions, navigationViewOptions) } } - fun toList(): List { - return listOf(mapViewType.raw, mapOptions.toList(), navigationViewOptions?.toList()) + return listOf( + mapViewType.raw, + mapOptions.toList(), + navigationViewOptions?.toList(), + ) } } /** 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 { @Suppress("UNCHECKED_CAST") @@ -669,18 +673,23 @@ data class CameraPositionDto( return CameraPositionDto(bearing, target, tilt, zoom) } } - fun toList(): List { - return listOf(bearing, target.toList(), tilt, zoom) + return listOf( + bearing, + target.toList(), + tilt, + zoom, + ) } } /** 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 { @Suppress("UNCHECKED_CAST") @@ -690,14 +699,16 @@ data class MarkerDto( return MarkerDto(markerId, options) } } - fun toList(): List { - return listOf(markerId, options.toList()) + return listOf( + markerId, + options.toList(), + ) } } /** 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, @@ -708,7 +719,8 @@ data class MarkerOptionsDto( val infoWindow: InfoWindowDto, val visible: Boolean, val zIndex: Double, - val icon: ImageDescriptorDto, + val icon: ImageDescriptorDto + ) { companion object { @Suppress("UNCHECKED_CAST") @@ -724,22 +736,9 @@ data class MarkerOptionsDto( val visible = list[8] as Boolean val zIndex = list[9] as Double val icon = ImageDescriptorDto.fromList(list[10] as List) - 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, @@ -758,11 +757,12 @@ data class MarkerOptionsDto( } /** 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 height: Double? = null + ) { companion object { @Suppress("UNCHECKED_CAST") @@ -774,17 +774,22 @@ data class ImageDescriptorDto( return ImageDescriptorDto(registeredImageId, imagePixelRatio, width, height) } } - fun toList(): List { - return listOf(registeredImageId, imagePixelRatio, width, height) + return listOf( + registeredImageId, + imagePixelRatio, + width, + height, + ) } } /** 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 { @Suppress("UNCHECKED_CAST") @@ -795,15 +800,21 @@ data class InfoWindowDto( return InfoWindowDto(title, snippet, anchor) } } - fun toList(): List { - return listOf(title, snippet, anchor.toList()) + return listOf( + title, + snippet, + anchor.toList(), + ) } } /** 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 { @Suppress("UNCHECKED_CAST") fun fromList(list: List): MarkerAnchorDto { @@ -812,15 +823,20 @@ data class MarkerAnchorDto(val u: Double, val v: Double) { return MarkerAnchorDto(u, v) } } - fun toList(): List { - return listOf(u, v) + return listOf( + u, + v, + ) } } /** 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 { @Suppress("UNCHECKED_CAST") fun fromList(list: List): PolygonDto { @@ -829,14 +845,16 @@ data class PolygonDto(val polygonId: String, val options: PolygonOptionsDto) { return PolygonDto(polygonId, options) } } - fun toList(): List { - return listOf(polygonId, options.toList()) + return listOf( + polygonId, + options.toList(), + ) } } /** 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, @@ -845,7 +863,8 @@ data class PolygonOptionsDto( val strokeColor: Long, val strokeWidth: Double, val visible: Boolean, - val zIndex: Double, + val zIndex: Double + ) { companion object { @Suppress("UNCHECKED_CAST") @@ -859,20 +878,9 @@ data class PolygonOptionsDto( val strokeWidth = list[6] as Double val visible = list[7] as Boolean val zIndex = 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, @@ -889,8 +897,10 @@ data class PolygonOptionsDto( } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolygonHoleDto(val points: List) { +data class PolygonHoleDto ( + val points: List +) { companion object { @Suppress("UNCHECKED_CAST") fun fromList(list: List): PolygonHoleDto { @@ -898,17 +908,19 @@ data class PolygonHoleDto(val points: List) { return PolygonHoleDto(points) } } - fun toList(): List { - return listOf(points) + return listOf( + points, + ) } } /** 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 { @Suppress("UNCHECKED_CAST") @@ -919,15 +931,21 @@ data class StyleSpanStrokeStyleDto( return StyleSpanStrokeStyleDto(solidColor, fromColor, toColor) } } - fun toList(): List { - return listOf(solidColor, fromColor, toColor) + return listOf( + solidColor, + fromColor, + toColor, + ) } } /** 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 { @Suppress("UNCHECKED_CAST") fun fromList(list: List): StyleSpanDto { @@ -936,15 +954,20 @@ data class StyleSpanDto(val length: Double, val style: StyleSpanStrokeStyleDto) return StyleSpanDto(length, style) } } - fun toList(): List { - return listOf(length, style.toList()) + return listOf( + length, + style.toList(), + ) } } /** 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 { @Suppress("UNCHECKED_CAST") fun fromList(list: List): PolylineDto { @@ -953,15 +976,20 @@ data class PolylineDto(val polylineId: String, val options: PolylineOptionsDto) return PolylineDto(polylineId, options) } } - fun toList(): List { - return listOf(polylineId, options.toList()) + return listOf( + polylineId, + options.toList(), + ) } } /** 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 { @Suppress("UNCHECKED_CAST") fun fromList(list: List): PatternItemDto { @@ -970,14 +998,16 @@ data class PatternItemDto(val type: PatternTypeDto, val length: Double? = null) return PatternItemDto(type, length) } } - fun toList(): List { - return listOf(type.raw, length) + return listOf( + type.raw, + length, + ) } } /** 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, @@ -987,7 +1017,8 @@ data class PolylineOptionsDto( val strokeWidth: Double? = null, val visible: Boolean? = null, val zIndex: Double? = null, - val spans: List, + val spans: List + ) { companion object { @Suppress("UNCHECKED_CAST") @@ -996,28 +1027,17 @@ data class PolylineOptionsDto( val clickable = list[1] as Boolean? val geodesic = list[2] as Boolean? val strokeColor = list[3].let { if (it is Int) it.toLong() else it as Long? } - val strokeJointType: StrokeJointTypeDto? = - (list[4] as Int?)?.let { StrokeJointTypeDto.ofRaw(it) } + val strokeJointType: StrokeJointTypeDto? = (list[4] as Int?)?.let { + StrokeJointTypeDto.ofRaw(it) + } val strokePattern = list[5] as List? val strokeWidth = list[6] as Double? val visible = list[7] as Boolean? val zIndex = list[8] as Double? val spans = 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, @@ -1035,11 +1055,12 @@ data class PolylineOptionsDto( } /** 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 { @Suppress("UNCHECKED_CAST") @@ -1049,14 +1070,16 @@ data class CircleDto( return CircleDto(circleId, options) } } - fun toList(): List { - return listOf(circleId, options.toList()) + return listOf( + circleId, + options.toList(), + ) } } /** 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, @@ -1065,7 +1088,8 @@ data class CircleOptionsDto( val fillColor: Long, val zIndex: Double, val visible: Boolean, - val clickable: Boolean, + val clickable: Boolean + ) { companion object { @Suppress("UNCHECKED_CAST") @@ -1079,20 +1103,9 @@ data class CircleOptionsDto( val zIndex = list[6] as Double val visible = list[7] as Boolean val clickable = 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.toList(), @@ -1109,8 +1122,13 @@ data class CircleOptionsDto( } /** 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 { @Suppress("UNCHECKED_CAST") fun fromList(list: List): MapPaddingDto { @@ -1121,49 +1139,62 @@ 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, + ) } } /** 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 { @Suppress("UNCHECKED_CAST") fun fromList(list: List): RouteTokenOptionsDto { val routeToken = list[0] as String - val travelMode: TravelModeDto? = (list[1] as Int?)?.let { TravelModeDto.ofRaw(it) } + val travelMode: TravelModeDto? = (list[1] as Int?)?.let { + TravelModeDto.ofRaw(it) + } return RouteTokenOptionsDto(routeToken, travelMode) } } - fun toList(): List { - return listOf(routeToken, travelMode?.raw) + return listOf( + routeToken, + travelMode?.raw, + ) } } /** 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 { @Suppress("UNCHECKED_CAST") fun fromList(list: List): DestinationsDto { val waypoints = list[0] as List val displayOptions = NavigationDisplayOptionsDto.fromList(list[1] as List) - val routingOptions: RoutingOptionsDto? = - (list[2] as List?)?.let { RoutingOptionsDto.fromList(it) } - val routeTokenOptions: RouteTokenOptionsDto? = - (list[3] as List?)?.let { RouteTokenOptionsDto.fromList(it) } + val routingOptions: RoutingOptionsDto? = (list[2] as List?)?.let { + RoutingOptionsDto.fromList(it) + } + val routeTokenOptions: RouteTokenOptionsDto? = (list[3] as List?)?.let { + RouteTokenOptionsDto.fromList(it) + } return DestinationsDto(waypoints, displayOptions, routingOptions, routeTokenOptions) } } - fun toList(): List { return listOf( waypoints, @@ -1175,7 +1206,7 @@ data class DestinationsDto( } /** 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, @@ -1183,34 +1214,29 @@ 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 { @Suppress("UNCHECKED_CAST") fun fromList(list: List): RoutingOptionsDto { - val alternateRoutesStrategy: AlternateRoutesStrategyDto? = - (list[0] as Int?)?.let { AlternateRoutesStrategyDto.ofRaw(it) } - val routingStrategy: RoutingStrategyDto? = - (list[1] as Int?)?.let { RoutingStrategyDto.ofRaw(it) } + val alternateRoutesStrategy: AlternateRoutesStrategyDto? = (list[0] as Int?)?.let { + AlternateRoutesStrategyDto.ofRaw(it) + } + val routingStrategy: RoutingStrategyDto? = (list[1] as Int?)?.let { + RoutingStrategyDto.ofRaw(it) + } val targetDistanceMeters = list[2] as List? - val travelMode: TravelModeDto? = (list[3] as Int?)?.let { TravelModeDto.ofRaw(it) } + val travelMode: TravelModeDto? = (list[3] as Int?)?.let { + TravelModeDto.ofRaw(it) + } val avoidTolls = list[4] as Boolean? val avoidFerries = list[5] as Boolean? val avoidHighways = list[6] as Boolean? val locationTimeoutMs = list[7].let { if (it is Int) it.toLong() else it 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?.raw, @@ -1226,10 +1252,11 @@ data class RoutingOptionsDto( } /** Generated class from Pigeon that represents data sent in messages. */ -data class NavigationDisplayOptionsDto( +data class NavigationDisplayOptionsDto ( val showDestinationMarkers: Boolean? = null, val showStopSigns: Boolean? = null, - val showTrafficLights: Boolean? = null, + val showTrafficLights: Boolean? = null + ) { companion object { @Suppress("UNCHECKED_CAST") @@ -1240,38 +1267,37 @@ data class NavigationDisplayOptionsDto( return NavigationDisplayOptionsDto(showDestinationMarkers, showStopSigns, showTrafficLights) } } - fun toList(): List { - return listOf(showDestinationMarkers, showStopSigns, showTrafficLights) + return listOf( + showDestinationMarkers, + showStopSigns, + showTrafficLights, + ) } } /** 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 { @Suppress("UNCHECKED_CAST") fun fromList(list: List): NavigationWaypointDto { val title = list[0] as String - val target: LatLngDto? = (list[1] as List?)?.let { LatLngDto.fromList(it) } + val target: LatLngDto? = (list[1] as List?)?.let { + LatLngDto.fromList(it) + } val placeID = list[2] as String? val preferSameSideOfRoad = list[3] as Boolean? val preferredSegmentHeading = list[4].let { if (it is Int) it.toLong() else it as Long? } - return NavigationWaypointDto( - title, - target, - placeID, - preferSameSideOfRoad, - preferredSegmentHeading, - ) + return NavigationWaypointDto(title, target, placeID, preferSameSideOfRoad, preferredSegmentHeading) } } - fun toList(): List { return listOf( title, @@ -1284,8 +1310,11 @@ data class NavigationWaypointDto( } /** Generated class from Pigeon that represents data sent in messages. */ -data class NavigationTimeAndDistanceDto(val time: Double, val distance: Double) { +data class NavigationTimeAndDistanceDto ( + val time: Double, + val distance: Double +) { companion object { @Suppress("UNCHECKED_CAST") fun fromList(list: List): NavigationTimeAndDistanceDto { @@ -1294,41 +1323,46 @@ data class NavigationTimeAndDistanceDto(val time: Double, val distance: Double) return NavigationTimeAndDistanceDto(time, distance) } } - fun toList(): List { - return listOf(time, distance) + return listOf( + time, + distance, + ) } } /** 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 { @Suppress("UNCHECKED_CAST") fun fromList(list: List): NavigationAudioGuidanceSettingsDto { val isBluetoothAudioEnabled = list[0] as Boolean? val isVibrationEnabled = list[1] as Boolean? - val guidanceType: AudioGuidanceTypeDto? = - (list[2] as Int?)?.let { AudioGuidanceTypeDto.ofRaw(it) } - return NavigationAudioGuidanceSettingsDto( - isBluetoothAudioEnabled, - isVibrationEnabled, - guidanceType, - ) + val guidanceType: AudioGuidanceTypeDto? = (list[2] as Int?)?.let { + AudioGuidanceTypeDto.ofRaw(it) + } + return NavigationAudioGuidanceSettingsDto(isBluetoothAudioEnabled, isVibrationEnabled, guidanceType) } } - fun toList(): List { - return listOf(isBluetoothAudioEnabled, isVibrationEnabled, guidanceType?.raw) + return listOf( + isBluetoothAudioEnabled, + isVibrationEnabled, + guidanceType?.raw, + ) } } /** Generated class from Pigeon that represents data sent in messages. */ -data class SimulationOptionsDto(val speedMultiplier: Double) { +data class SimulationOptionsDto ( + val speedMultiplier: Double +) { companion object { @Suppress("UNCHECKED_CAST") fun fromList(list: List): SimulationOptionsDto { @@ -1336,15 +1370,19 @@ data class SimulationOptionsDto(val speedMultiplier: Double) { return SimulationOptionsDto(speedMultiplier) } } - fun toList(): List { - return listOf(speedMultiplier) + return listOf( + speedMultiplier, + ) } } /** 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 { @Suppress("UNCHECKED_CAST") fun fromList(list: List): LatLngDto { @@ -1353,15 +1391,20 @@ data class LatLngDto(val latitude: Double, val longitude: Double) { return LatLngDto(latitude, longitude) } } - fun toList(): List { - return listOf(latitude, longitude) + return listOf( + latitude, + longitude, + ) } } /** 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 { @Suppress("UNCHECKED_CAST") fun fromList(list: List): LatLngBoundsDto { @@ -1370,16 +1413,19 @@ data class LatLngBoundsDto(val southwest: LatLngDto, val northeast: LatLngDto) { return LatLngBoundsDto(southwest, northeast) } } - fun toList(): List { - return listOf(southwest.toList(), northeast.toList()) + return listOf( + southwest.toList(), + northeast.toList(), + ) } } /** 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 { @Suppress("UNCHECKED_CAST") @@ -1389,17 +1435,20 @@ data class SpeedingUpdatedEventDto( return SpeedingUpdatedEventDto(percentageAboveLimit, severity) } } - fun toList(): List { - return listOf(percentageAboveLimit, severity.raw) + return listOf( + percentageAboveLimit, + severity.raw, + ) } } /** 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 { @Suppress("UNCHECKED_CAST") @@ -1407,14 +1456,9 @@ data class SpeedAlertOptionsDto( val severityUpgradeDurationSeconds = list[0] as Double val minorSpeedAlertThresholdPercentage = list[1] as Double val majorSpeedAlertThresholdPercentage = list[2] as Double - return SpeedAlertOptionsDto( - severityUpgradeDurationSeconds, - minorSpeedAlertThresholdPercentage, - majorSpeedAlertThresholdPercentage, - ) + return SpeedAlertOptionsDto(severityUpgradeDurationSeconds, minorSpeedAlertThresholdPercentage, majorSpeedAlertThresholdPercentage) } } - fun toList(): List { return listOf( severityUpgradeDurationSeconds, @@ -1425,10 +1469,11 @@ data class SpeedAlertOptionsDto( } /** 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 { @Suppress("UNCHECKED_CAST") @@ -1439,52 +1484,59 @@ data class RouteSegmentTrafficDataRoadStretchRenderingDataDto( return RouteSegmentTrafficDataRoadStretchRenderingDataDto(style, lengthMeters, offsetMeters) } } - fun toList(): List { - return listOf(style.raw, lengthMeters, offsetMeters) + return listOf( + style.raw, + lengthMeters, + offsetMeters, + ) } } /** 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 { @Suppress("UNCHECKED_CAST") fun fromList(list: List): RouteSegmentTrafficDataDto { val status = RouteSegmentTrafficDataStatusDto.ofRaw(list[0] as Int)!! - val roadStretchRenderingDataList = - list[1] as List + val roadStretchRenderingDataList = list[1] as List return RouteSegmentTrafficDataDto(status, roadStretchRenderingDataList) } } - fun toList(): List { - return listOf(status.raw, roadStretchRenderingDataList) + return listOf( + status.raw, + roadStretchRenderingDataList, + ) } } /** 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 { @Suppress("UNCHECKED_CAST") fun fromList(list: List): RouteSegmentDto { - val trafficData: RouteSegmentTrafficDataDto? = - (list[0] as List?)?.let { RouteSegmentTrafficDataDto.fromList(it) } + val trafficData: RouteSegmentTrafficDataDto? = (list[0] as List?)?.let { + RouteSegmentTrafficDataDto.fromList(it) + } val destinationLatLng = LatLngDto.fromList(list[1] as List) val latLngs = list[2] as List? - val destinationWaypoint: NavigationWaypointDto? = - (list[3] as List?)?.let { NavigationWaypointDto.fromList(it) } + val destinationWaypoint: NavigationWaypointDto? = (list[3] as List?)?.let { + NavigationWaypointDto.fromList(it) + } return RouteSegmentDto(trafficData, destinationLatLng, latLngs, destinationWaypoint) } } - fun toList(): List { return listOf( trafficData?.toList(), @@ -1496,16 +1548,16 @@ data class RouteSegmentDto( } /** - * 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 { @Suppress("UNCHECKED_CAST") @@ -1515,9 +1567,11 @@ data class LaneDirectionDto( return LaneDirectionDto(laneShape, isRecommended) } } - fun toList(): List { - return listOf(laneShape.raw, isRecommended) + return listOf( + laneShape.raw, + isRecommended, + ) } } @@ -1526,12 +1580,10 @@ 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 { @Suppress("UNCHECKED_CAST") @@ -1540,9 +1592,10 @@ data class LaneDto( return LaneDto(laneDirections) } } - fun toList(): List { - return listOf(laneDirections) + return listOf( + laneDirections, + ) } } @@ -1551,7 +1604,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. */ val distanceFromPrevStepMeters: Long, /** Time in seconds from the previous step to this step. */ @@ -1567,8 +1620,8 @@ data class StepInfoDto( /** The simplified version of the road name. */ val simpleRoadName: String, /** - * The counted number of the exit to take relative to the location where the roundabout was - * entered. + * The counted number of the exit to take relative to the location where the + * roundabout was entered. */ val roundaboutTurnNumber: Long, /** The list of available lanes at the end of this route step. */ @@ -1576,7 +1629,8 @@ data class StepInfoDto( /** The maneuver for this step. */ val maneuver: ManeuverDto, /** The index of the step in the list of all steps in the route. */ - val stepNumber: Long, + val stepNumber: Long + ) { companion object { @Suppress("UNCHECKED_CAST") @@ -1592,22 +1646,9 @@ data class StepInfoDto( val lanes = list[8] as List val maneuver = ManeuverDto.ofRaw(list[9] as Int)!! val stepNumber = list[10].let { if (it is Int) it.toLong() else it as Long } - return StepInfoDto( - distanceFromPrevStepMeters, - timeFromPrevStepSeconds, - drivingSide, - exitNumber, - fullInstructions, - fullRoadName, - simpleRoadName, - roundaboutTurnNumber, - lanes, - maneuver, - stepNumber, - ) + return StepInfoDto(distanceFromPrevStepMeters, timeFromPrevStepSeconds, drivingSide, exitNumber, fullInstructions, fullRoadName, simpleRoadName, roundaboutTurnNumber, lanes, maneuver, stepNumber) } } - fun toList(): List { return listOf( distanceFromPrevStepMeters, @@ -1626,12 +1667,12 @@ data class StepInfoDto( } /** - * 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. */ @@ -1640,11 +1681,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, /** @@ -1653,11 +1697,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, /** @@ -1665,39 +1712,27 @@ data class NavInfoDto( * * Android only. */ - val timeToNextDestinationSeconds: Long? = null, + val timeToNextDestinationSeconds: Long? = null + ) { companion object { @Suppress("UNCHECKED_CAST") fun fromList(list: List): NavInfoDto { val navState = NavStateDto.ofRaw(list[0] as Int)!! - val currentStep: StepInfoDto? = (list[1] as List?)?.let { StepInfoDto.fromList(it) } + val currentStep: StepInfoDto? = (list[1] as List?)?.let { + StepInfoDto.fromList(it) + } val remainingSteps = list[2] as List val routeChanged = list[3] as Boolean val distanceToCurrentStepMeters = list[4].let { if (it is Int) it.toLong() else it as Long? } - val distanceToFinalDestinationMeters = - list[5].let { if (it is Int) it.toLong() else it as Long? } - val distanceToNextDestinationMeters = - list[6].let { if (it is Int) it.toLong() else it as Long? } + val distanceToFinalDestinationMeters = list[5].let { if (it is Int) it.toLong() else it as Long? } + val distanceToNextDestinationMeters = list[6].let { if (it is Int) it.toLong() else it as Long? } val timeToCurrentStepSeconds = list[7].let { if (it is Int) it.toLong() else it as Long? } - val timeToFinalDestinationSeconds = - list[8].let { if (it is Int) it.toLong() else it as Long? } + val timeToFinalDestinationSeconds = list[8].let { if (it is Int) it.toLong() else it as Long? } val timeToNextDestinationSeconds = list[9].let { if (it is Int) it.toLong() else it 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.raw, @@ -1719,31 +1754,44 @@ private object NavigationViewCreationApiCodec : StandardMessageCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { 128.toByte() -> { - return (readValue(buffer) as? List)?.let { CameraPositionDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + CameraPositionDto.fromList(it) + } } 129.toByte() -> { - return (readValue(buffer) as? List)?.let { LatLngBoundsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + LatLngBoundsDto.fromList(it) + } } 130.toByte() -> { - return (readValue(buffer) as? List)?.let { LatLngDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + LatLngDto.fromList(it) + } } 131.toByte() -> { - return (readValue(buffer) as? List)?.let { MapOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MapOptionsDto.fromList(it) + } } 132.toByte() -> { - return (readValue(buffer) as? List)?.let { MapPaddingDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MapPaddingDto.fromList(it) + } } 133.toByte() -> { - return (readValue(buffer) as? List)?.let { NavigationViewOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + NavigationViewOptionsDto.fromList(it) + } } 134.toByte() -> { - return (readValue(buffer) as? List)?.let { ViewCreationOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + ViewCreationOptionsDto.fromList(it) + } } else -> super.readValueOfType(type, buffer) } } - - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { when (value) { is CameraPositionDto -> { stream.write(128) @@ -1779,8 +1827,9 @@ private object NavigationViewCreationApiCodec : StandardMessageCodec() { } /** - * Pigeon only generates messages if the messages are used in API. [ViewCreationOptionsDto] is - * encoded and decoded directly to generate a PlatformView creation message. + * 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. * @@ -1791,21 +1840,14 @@ interface NavigationViewCreationApi { companion object { /** The codec used by NavigationViewCreationApi. */ - val codec: MessageCodec by lazy { NavigationViewCreationApiCodec } - - /** - * Sets up an instance of `NavigationViewCreationApi` to handle messages through the - * `binaryMessenger`. - */ + val codec: MessageCodec by lazy { + NavigationViewCreationApiCodec + } + /** Sets up an instance of `NavigationViewCreationApi` to handle messages through the `binaryMessenger`. */ @Suppress("UNCHECKED_CAST") fun setUp(binaryMessenger: BinaryMessenger, api: NavigationViewCreationApi?) { run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationViewCreationApi.create", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationViewCreationApi.create", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -1826,76 +1868,114 @@ interface NavigationViewCreationApi { } } } - @Suppress("UNCHECKED_CAST") private object MapViewApiCodec : StandardMessageCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { 128.toByte() -> { - return (readValue(buffer) as? List)?.let { CameraPositionDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + CameraPositionDto.fromList(it) + } } 129.toByte() -> { - return (readValue(buffer) as? List)?.let { CircleDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + CircleDto.fromList(it) + } } 130.toByte() -> { - return (readValue(buffer) as? List)?.let { CircleOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + CircleOptionsDto.fromList(it) + } } 131.toByte() -> { - return (readValue(buffer) as? List)?.let { ImageDescriptorDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + ImageDescriptorDto.fromList(it) + } } 132.toByte() -> { - return (readValue(buffer) as? List)?.let { InfoWindowDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + InfoWindowDto.fromList(it) + } } 133.toByte() -> { - return (readValue(buffer) as? List)?.let { LatLngBoundsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + LatLngBoundsDto.fromList(it) + } } 134.toByte() -> { - return (readValue(buffer) as? List)?.let { LatLngDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + LatLngDto.fromList(it) + } } 135.toByte() -> { - return (readValue(buffer) as? List)?.let { LatLngDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + LatLngDto.fromList(it) + } } 136.toByte() -> { - return (readValue(buffer) as? List)?.let { MapPaddingDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MapPaddingDto.fromList(it) + } } 137.toByte() -> { - return (readValue(buffer) as? List)?.let { MarkerAnchorDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MarkerAnchorDto.fromList(it) + } } 138.toByte() -> { - return (readValue(buffer) as? List)?.let { MarkerDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MarkerDto.fromList(it) + } } 139.toByte() -> { - return (readValue(buffer) as? List)?.let { MarkerOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MarkerOptionsDto.fromList(it) + } } 140.toByte() -> { - return (readValue(buffer) as? List)?.let { PatternItemDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PatternItemDto.fromList(it) + } } 141.toByte() -> { - return (readValue(buffer) as? List)?.let { PolygonDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolygonDto.fromList(it) + } } 142.toByte() -> { - return (readValue(buffer) as? List)?.let { PolygonHoleDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolygonHoleDto.fromList(it) + } } 143.toByte() -> { - return (readValue(buffer) as? List)?.let { PolygonOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolygonOptionsDto.fromList(it) + } } 144.toByte() -> { - return (readValue(buffer) as? List)?.let { PolylineDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolylineDto.fromList(it) + } } 145.toByte() -> { - return (readValue(buffer) as? List)?.let { PolylineOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolylineOptionsDto.fromList(it) + } } 146.toByte() -> { - return (readValue(buffer) as? List)?.let { StyleSpanDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + StyleSpanDto.fromList(it) + } } 147.toByte() -> { - return (readValue(buffer) as? List)?.let { StyleSpanStrokeStyleDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + StyleSpanStrokeStyleDto.fromList(it) + } } else -> super.readValueOfType(type, buffer) } } - - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { when (value) { is CameraPositionDto -> { stream.write(128) @@ -1985,243 +2065,108 @@ private object MapViewApiCodec : StandardMessageCodec() { /** 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 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 isTrafficIncidentCardsEnabled(viewId: Long): Boolean - fun setTrafficIncidentCardsEnabled(viewId: Long, enabled: Boolean) - fun isNavigationUIEnabled(viewId: Long): Boolean - fun setNavigationUIEnabled(viewId: Long, enabled: Boolean) - 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 setMyLocationButtonEnabled(viewId: Long, enabled: Boolean) - fun setConsumeMyLocationButtonClickEventsEnabled(viewId: Long, enabled: Boolean) - fun setZoomGesturesEnabled(viewId: Long, enabled: Boolean) - fun setZoomControlsEnabled(viewId: Long, enabled: Boolean) - fun setCompassEnabled(viewId: Long, enabled: Boolean) - fun setRotateGesturesEnabled(viewId: Long, enabled: Boolean) - fun setScrollGesturesEnabled(viewId: Long, enabled: Boolean) - fun setScrollGesturesDuringRotateOrZoomEnabled(viewId: Long, enabled: Boolean) - fun setTiltGesturesEnabled(viewId: Long, enabled: Boolean) - fun setMapToolbarEnabled(viewId: Long, enabled: Boolean) - fun setTrafficEnabled(viewId: Long, enabled: Boolean) - fun isMyLocationButtonEnabled(viewId: Long): Boolean - fun isConsumeMyLocationButtonClickEventsEnabled(viewId: Long): Boolean - fun isZoomGesturesEnabled(viewId: Long): Boolean - fun isZoomControlsEnabled(viewId: Long): Boolean - fun isCompassEnabled(viewId: Long): Boolean - fun isRotateGesturesEnabled(viewId: Long): Boolean - fun isScrollGesturesEnabled(viewId: Long): Boolean - fun isScrollGesturesEnabledDuringRotateOrZoom(viewId: Long): Boolean - fun isTiltGesturesEnabled(viewId: Long): Boolean - fun isMapToolbarEnabled(viewId: Long): Boolean - fun isTrafficEnabled(viewId: Long): Boolean - 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 registerOnCameraChangedListener(viewId: Long) - fun setPadding(viewId: Long, padding: MapPaddingDto) - fun getPadding(viewId: Long): MapPaddingDto companion object { /** The codec used by MapViewApi. */ - val codec: MessageCodec by lazy { MapViewApiCodec } - + val codec: MessageCodec by lazy { + MapViewApiCodec + } /** Sets up an instance of `MapViewApi` to handle messages through the `binaryMessenger`. */ @Suppress("UNCHECKED_CAST") fun setUp(binaryMessenger: BinaryMessenger, api: MapViewApi?) { run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2240,12 +2185,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2263,12 +2203,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2288,12 +2223,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2311,12 +2241,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2334,12 +2259,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2359,12 +2279,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2384,12 +2299,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2407,12 +2317,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2432,12 +2337,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2455,12 +2355,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2480,12 +2375,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2503,12 +2393,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2528,12 +2413,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2551,12 +2431,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2576,12 +2451,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2599,12 +2469,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2624,12 +2489,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2647,12 +2507,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2672,12 +2527,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2695,12 +2545,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2720,12 +2565,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2743,12 +2583,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2768,12 +2603,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2791,12 +2621,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2814,12 +2639,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2840,20 +2660,14 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0].let { if (it is Int) it.toLong() else it as Long } val cameraPositionArg = args[1] as CameraPositionDto val durationArg = args[2].let { if (it is Int) it.toLong() else it 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(wrapError(error)) @@ -2868,12 +2682,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2895,12 +2704,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2908,8 +2712,7 @@ interface MapViewApi { val boundsArg = args[1] as LatLngBoundsDto val paddingArg = args[2] as Double val durationArg = args[3].let { if (it is Int) it.toLong() else it 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(wrapError(error)) @@ -2924,12 +2727,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2937,8 +2735,7 @@ interface MapViewApi { val pointArg = args[1] as LatLngDto val zoomArg = args[2] as Double val durationArg = args[3].let { if (it is Int) it.toLong() else it 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(wrapError(error)) @@ -2953,12 +2750,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2966,8 +2758,7 @@ interface MapViewApi { val scrollByDxArg = args[1] as Double val scrollByDyArg = args[2] as Double val durationArg = args[3].let { if (it is Int) it.toLong() else it 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(wrapError(error)) @@ -2982,12 +2773,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2996,8 +2782,7 @@ interface MapViewApi { val focusDxArg = args[2] as Double? val focusDyArg = args[3] as Double? val durationArg = args[4].let { if (it is Int) it.toLong() else it 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(wrapError(error)) @@ -3012,12 +2797,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3039,12 +2819,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3064,12 +2839,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3089,12 +2859,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3115,12 +2880,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3141,12 +2901,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3167,12 +2922,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3194,12 +2944,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3219,12 +2964,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3243,12 +2983,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3266,12 +3001,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3289,12 +3019,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3313,12 +3038,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3338,12 +3058,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3363,12 +3078,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3388,12 +3098,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3413,12 +3118,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3438,12 +3138,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3463,12 +3158,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3488,12 +3178,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3513,12 +3198,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3538,12 +3218,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3563,12 +3238,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3588,12 +3258,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3613,12 +3278,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3638,12 +3298,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3661,12 +3316,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3684,12 +3334,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3707,12 +3352,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3730,12 +3370,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3753,12 +3388,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3776,12 +3406,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3799,12 +3424,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3822,12 +3442,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3845,12 +3460,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3868,12 +3478,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3891,12 +3496,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3914,12 +3514,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3938,12 +3533,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3962,12 +3552,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3987,12 +3572,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4011,12 +3591,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4035,12 +3610,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4058,12 +3628,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4082,12 +3647,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4106,12 +3666,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4131,12 +3686,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4155,12 +3705,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4178,12 +3723,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4202,12 +3742,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4226,12 +3761,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4251,12 +3781,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4275,12 +3800,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4298,12 +3818,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4322,12 +3837,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4346,12 +3856,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4371,12 +3876,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4395,12 +3895,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.registerOnCameraChangedListener", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.registerOnCameraChangedListener", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4419,12 +3914,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4444,12 +3934,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4469,22 +3954,24 @@ interface MapViewApi { } } } - @Suppress("UNCHECKED_CAST") private object ImageRegistryApiCodec : StandardMessageCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { 128.toByte() -> { - return (readValue(buffer) as? List)?.let { ImageDescriptorDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + ImageDescriptorDto.fromList(it) + } } 129.toByte() -> { - return (readValue(buffer) as? List)?.let { ImageDescriptorDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + ImageDescriptorDto.fromList(it) + } } else -> super.readValueOfType(type, buffer) } } - - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { when (value) { is ImageDescriptorDto -> { stream.write(128) @@ -4501,36 +3988,21 @@ private object ImageRegistryApiCodec : StandardMessageCodec() { /** 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() companion object { /** The codec used by ImageRegistryApi. */ - val codec: MessageCodec by lazy { ImageRegistryApiCodec } - - /** - * Sets up an instance of `ImageRegistryApi` to handle messages through the `binaryMessenger`. - */ + val codec: MessageCodec by lazy { + ImageRegistryApiCodec + } + /** Sets up an instance of `ImageRegistryApi` to handle messages through the `binaryMessenger`. */ @Suppress("UNCHECKED_CAST") fun setUp(binaryMessenger: BinaryMessenger, api: ImageRegistryApi?) { run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4541,16 +4013,7 @@ interface ImageRegistryApi { val heightArg = args[4] as Double? var wrapped: List try { - wrapped = - listOf( - api.registerBitmapImage( - imageIdArg, - bytesArg, - imagePixelRatioArg, - widthArg, - heightArg, - ) - ) + wrapped = listOf(api.registerBitmapImage(imageIdArg, bytesArg, imagePixelRatioArg, widthArg, heightArg)) } catch (exception: Throwable) { wrapped = wrapError(exception) } @@ -4561,12 +4024,7 @@ interface ImageRegistryApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4585,12 +4043,7 @@ interface ImageRegistryApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -4606,12 +4059,7 @@ interface ImageRegistryApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -4630,22 +4078,24 @@ interface ImageRegistryApi { } } } - @Suppress("UNCHECKED_CAST") private object ViewEventApiCodec : StandardMessageCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { 128.toByte() -> { - return (readValue(buffer) as? List)?.let { CameraPositionDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + CameraPositionDto.fromList(it) + } } 129.toByte() -> { - return (readValue(buffer) as? List)?.let { LatLngDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + LatLngDto.fromList(it) + } } else -> super.readValueOfType(type, buffer) } } - - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { when (value) { is CameraPositionDto -> { stream.write(128) @@ -4665,9 +4115,10 @@ private object ViewEventApiCodec : StandardMessageCodec() { class ViewEventApi(private val binaryMessenger: BinaryMessenger) { companion object { /** The codec used by ViewEventApi. */ - val codec: MessageCodec by lazy { ViewEventApiCodec } + val codec: MessageCodec by lazy { + ViewEventApiCodec + } } - fun onMapClickEvent(viewIdArg: Long, latLngArg: LatLngDto, callback: (Result) -> Unit) { val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) @@ -4680,13 +4131,11 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } - fun onMapLongClickEvent(viewIdArg: Long, latLngArg: LatLngDto, callback: (Result) -> Unit) { - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, latLngArg)) { if (it is List<*>) { @@ -4697,13 +4146,11 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } - fun onRecenterButtonClicked(viewIdArg: Long, callback: (Result) -> Unit) { - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg)) { if (it is List<*>) { @@ -4714,16 +4161,10 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } - - fun onMarkerEvent( - viewIdArg: Long, - markerIdArg: String, - eventTypeArg: MarkerEventTypeDto, - callback: (Result) -> Unit, - ) { + fun onMarkerEvent(viewIdArg: Long, markerIdArg: String, eventTypeArg: MarkerEventTypeDto, callback: (Result) -> Unit) { val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, markerIdArg, eventTypeArg.raw)) { @@ -4735,17 +4176,10 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } - - fun onMarkerDragEvent( - viewIdArg: Long, - markerIdArg: String, - eventTypeArg: MarkerDragEventTypeDto, - positionArg: LatLngDto, - callback: (Result) -> Unit, - ) { + fun onMarkerDragEvent(viewIdArg: Long, markerIdArg: String, eventTypeArg: MarkerDragEventTypeDto, positionArg: LatLngDto, callback: (Result) -> Unit) { val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, markerIdArg, eventTypeArg.raw, positionArg)) { @@ -4757,10 +4191,9 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } - fun onPolygonClicked(viewIdArg: Long, polygonIdArg: String, callback: (Result) -> Unit) { val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) @@ -4773,10 +4206,9 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } - fun onPolylineClicked(viewIdArg: Long, polylineIdArg: String, callback: (Result) -> Unit) { val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) @@ -4789,10 +4221,9 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } - fun onCircleClicked(viewIdArg: Long, circleIdArg: String, callback: (Result) -> Unit) { val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) @@ -4805,17 +4236,11 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } - - fun onNavigationUIEnabledChanged( - viewIdArg: Long, - navigationUIEnabledArg: Boolean, - callback: (Result) -> Unit, - ) { - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged" + fun onNavigationUIEnabledChanged(viewIdArg: Long, navigationUIEnabledArg: Boolean, callback: (Result) -> Unit) { + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, navigationUIEnabledArg)) { if (it is List<*>) { @@ -4826,13 +4251,11 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } - fun onMyLocationClicked(viewIdArg: Long, callback: (Result) -> Unit) { - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg)) { if (it is List<*>) { @@ -4843,13 +4266,11 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } - fun onMyLocationButtonClicked(viewIdArg: Long, callback: (Result) -> Unit) { - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg)) { if (it is List<*>) { @@ -4860,16 +4281,10 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } - - fun onCameraChanged( - viewIdArg: Long, - eventTypeArg: CameraEventTypeDto, - positionArg: CameraPositionDto, - callback: (Result) -> Unit, - ) { + fun onCameraChanged(viewIdArg: Long, eventTypeArg: CameraEventTypeDto, positionArg: CameraPositionDto, callback: (Result) -> Unit) { val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, eventTypeArg.raw, positionArg)) { @@ -4881,23 +4296,28 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } } - @Suppress("UNCHECKED_CAST") private object NavigationSessionApiCodec : StandardMessageCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { 128.toByte() -> { - return (readValue(buffer) as? List)?.let { DestinationsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + DestinationsDto.fromList(it) + } } 129.toByte() -> { - return (readValue(buffer) as? List)?.let { LatLngDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + LatLngDto.fromList(it) + } } 130.toByte() -> { - return (readValue(buffer) as? List)?.let { LatLngDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + LatLngDto.fromList(it) + } } 131.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -4905,25 +4325,39 @@ private object NavigationSessionApiCodec : StandardMessageCodec() { } } 132.toByte() -> { - return (readValue(buffer) as? List)?.let { NavigationDisplayOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + NavigationDisplayOptionsDto.fromList(it) + } } 133.toByte() -> { - return (readValue(buffer) as? List)?.let { NavigationTimeAndDistanceDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + NavigationTimeAndDistanceDto.fromList(it) + } } 134.toByte() -> { - return (readValue(buffer) as? List)?.let { NavigationWaypointDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + NavigationWaypointDto.fromList(it) + } } 135.toByte() -> { - return (readValue(buffer) as? List)?.let { NavigationWaypointDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + NavigationWaypointDto.fromList(it) + } } 136.toByte() -> { - return (readValue(buffer) as? List)?.let { RouteSegmentDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + RouteSegmentDto.fromList(it) + } } 137.toByte() -> { - return (readValue(buffer) as? List)?.let { RouteSegmentDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + RouteSegmentDto.fromList(it) + } } 138.toByte() -> { - return (readValue(buffer) as? List)?.let { RouteSegmentTrafficDataDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + RouteSegmentTrafficDataDto.fromList(it) + } } 139.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -4931,22 +4365,29 @@ private object NavigationSessionApiCodec : StandardMessageCodec() { } } 140.toByte() -> { - return (readValue(buffer) as? List)?.let { RouteTokenOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + RouteTokenOptionsDto.fromList(it) + } } 141.toByte() -> { - return (readValue(buffer) as? List)?.let { RoutingOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + RoutingOptionsDto.fromList(it) + } } 142.toByte() -> { - return (readValue(buffer) as? List)?.let { SimulationOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + SimulationOptionsDto.fromList(it) + } } 143.toByte() -> { - return (readValue(buffer) as? List)?.let { SpeedAlertOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + SpeedAlertOptionsDto.fromList(it) + } } else -> super.readValueOfType(type, buffer) } } - - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { when (value) { is DestinationsDto -> { stream.write(128) @@ -5020,125 +4461,62 @@ private object NavigationSessionApiCodec : StandardMessageCodec() { /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface NavigationSessionApi { /** General. */ - fun createNavigationSession( - abnormalTerminationReportingEnabled: Boolean, - callback: (Result) -> Unit, - ) - + fun createNavigationSession(abnormalTerminationReportingEnabled: Boolean, behavior: TaskRemovedBehaviorDto, callback: (Result) -> Unit) fun isInitialized(): Boolean - fun cleanup() - - fun showTermsAndConditionsDialog( - title: String, - companyName: String, - shouldOnlyShowDriverAwarenessDisclaimer: Boolean, - callback: (Result) -> Unit, - ) - + fun showTermsAndConditionsDialog(title: String, companyName: String, shouldOnlyShowDriverAwarenessDisclaimer: Boolean, callback: (Result) -> Unit) fun areTermsAccepted(): Boolean - fun resetTermsAccepted() - fun getNavSDKVersion(): String - /** Navigation. */ fun isGuidanceRunning(): Boolean - fun startGuidance() - fun stopGuidance() - fun setDestinations(destinations: DestinationsDto, callback: (Result) -> Unit) - fun clearDestinations() - fun continueToNextDestination(): NavigationWaypointDto? - fun getCurrentTimeAndDistance(): NavigationTimeAndDistanceDto - fun setAudioGuidance(settings: NavigationAudioGuidanceSettingsDto) - fun setSpeedAlertOptions(options: SpeedAlertOptionsDto) - fun getRouteSegments(): List - fun getTraveledRoute(): List - fun getCurrentRouteSegment(): RouteSegmentDto? - /** Simulation */ 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() - /** Simulation (iOS only) */ fun allowBackgroundLocationUpdates(allow: Boolean) - /** Road snapped location updates. */ fun enableRoadSnappedLocationUpdates() - fun disableRoadSnappedLocationUpdates() - /** Enable Turn-by-Turn navigation events. */ fun enableTurnByTurnNavigationEvents(numNextStepsToPreview: Long?) - 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 { NavigationSessionApiCodec } - - /** - * Sets up an instance of `NavigationSessionApi` to handle messages through the - * `binaryMessenger`. - */ + val codec: MessageCodec by lazy { + NavigationSessionApiCodec + } + /** Sets up an instance of `NavigationSessionApi` to handle messages through the `binaryMessenger`. */ @Suppress("UNCHECKED_CAST") fun setUp(binaryMessenger: BinaryMessenger, api: NavigationSessionApi?) { run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val abnormalTerminationReportingEnabledArg = args[0] as Boolean - api.createNavigationSession(abnormalTerminationReportingEnabledArg) { - result: Result -> + val behaviorArg = TaskRemovedBehaviorDto.ofRaw(args[1] as Int)!! + api.createNavigationSession(abnormalTerminationReportingEnabledArg, behaviorArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(wrapError(error)) @@ -5152,12 +4530,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -5173,12 +4546,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -5195,23 +4563,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val titleArg = args[0] as String val companyNameArg = args[1] as String val shouldOnlyShowDriverAwarenessDisclaimerArg = args[2] as Boolean - api.showTermsAndConditionsDialog( - titleArg, - companyNameArg, - shouldOnlyShowDriverAwarenessDisclaimerArg, - ) { result: Result -> + api.showTermsAndConditionsDialog(titleArg, companyNameArg, shouldOnlyShowDriverAwarenessDisclaimerArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(wrapError(error)) @@ -5226,12 +4585,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -5247,12 +4601,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -5269,12 +4618,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -5290,12 +4634,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -5311,12 +4650,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -5333,12 +4667,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -5355,12 +4684,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5380,12 +4704,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -5402,12 +4721,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -5423,12 +4737,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -5444,12 +4753,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5468,12 +4772,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5492,12 +4791,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -5513,12 +4807,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -5534,12 +4823,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -5555,12 +4839,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5579,12 +4858,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -5601,12 +4875,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -5623,12 +4892,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5647,12 +4911,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5672,19 +4931,13 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions", 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(wrapError(error)) @@ -5699,23 +4952,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions", 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(wrapError(error)) @@ -5730,12 +4974,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -5752,12 +4991,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -5774,12 +5008,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5798,12 +5027,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -5820,12 +5044,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -5842,17 +5061,11 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List - val numNextStepsToPreviewArg = - args[0].let { if (it is Int) it.toLong() else it as Long? } + val numNextStepsToPreviewArg = args[0].let { if (it is Int) it.toLong() else it as Long? } var wrapped: List try { api.enableTurnByTurnNavigationEvents(numNextStepsToPreviewArg) @@ -5867,12 +5080,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -5889,25 +5097,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List - val remainingTimeThresholdSecondsArg = - args[0].let { if (it is Int) it.toLong() else it as Long } - val remainingDistanceThresholdMetersArg = - args[1].let { if (it is Int) it.toLong() else it as Long } + val remainingTimeThresholdSecondsArg = args[0].let { if (it is Int) it.toLong() else it as Long } + val remainingDistanceThresholdMetersArg = args[1].let { if (it is Int) it.toLong() else it as Long } var wrapped: List try { - api.registerRemainingTimeOrDistanceChangedListener( - remainingTimeThresholdSecondsArg, - remainingDistanceThresholdMetersArg, - ) + api.registerRemainingTimeOrDistanceChangedListener(remainingTimeThresholdSecondsArg, remainingDistanceThresholdMetersArg) wrapped = listOf(null) } catch (exception: Throwable) { wrapped = wrapError(exception) @@ -5921,40 +5119,54 @@ interface NavigationSessionApi { } } } - @Suppress("UNCHECKED_CAST") private object NavigationSessionEventApiCodec : StandardMessageCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { 128.toByte() -> { - return (readValue(buffer) as? List)?.let { LaneDirectionDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + LaneDirectionDto.fromList(it) + } } 129.toByte() -> { - return (readValue(buffer) as? List)?.let { LaneDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + LaneDto.fromList(it) + } } 130.toByte() -> { - return (readValue(buffer) as? List)?.let { LatLngDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + LatLngDto.fromList(it) + } } 131.toByte() -> { - return (readValue(buffer) as? List)?.let { NavInfoDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + NavInfoDto.fromList(it) + } } 132.toByte() -> { - return (readValue(buffer) as? List)?.let { NavigationWaypointDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + NavigationWaypointDto.fromList(it) + } } 133.toByte() -> { - return (readValue(buffer) as? List)?.let { SpeedingUpdatedEventDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + SpeedingUpdatedEventDto.fromList(it) + } } 134.toByte() -> { - return (readValue(buffer) as? List)?.let { StepInfoDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + StepInfoDto.fromList(it) + } } 135.toByte() -> { - return (readValue(buffer) as? List)?.let { StepInfoDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + StepInfoDto.fromList(it) + } } else -> super.readValueOfType(type, buffer) } } - - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { when (value) { is LaneDirectionDto -> { stream.write(128) @@ -5998,12 +5210,12 @@ private object NavigationSessionEventApiCodec : StandardMessageCodec() { class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger) { companion object { /** The codec used by NavigationSessionEventApi. */ - val codec: MessageCodec by lazy { NavigationSessionEventApiCodec } + val codec: MessageCodec by lazy { + NavigationSessionEventApiCodec + } } - fun onSpeedingUpdated(msgArg: SpeedingUpdatedEventDto, callback: (Result) -> Unit) { - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(msgArg)) { if (it is List<*>) { @@ -6014,13 +5226,11 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } - fun onRoadSnappedLocationUpdated(locationArg: LatLngDto, callback: (Result) -> Unit) { - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(locationArg)) { if (it is List<*>) { @@ -6031,13 +5241,11 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } - fun onRoadSnappedRawLocationUpdated(locationArg: LatLngDto, callback: (Result) -> Unit) { - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(locationArg)) { if (it is List<*>) { @@ -6048,13 +5256,11 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } - fun onArrival(waypointArg: NavigationWaypointDto, callback: (Result) -> Unit) { - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(waypointArg)) { if (it is List<*>) { @@ -6065,13 +5271,11 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } - fun onRouteChanged(callback: (Result) -> Unit) { - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -6082,17 +5286,11 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } - - fun onRemainingTimeOrDistanceChanged( - remainingTimeArg: Double, - remainingDistanceArg: Double, - callback: (Result) -> Unit, - ) { - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged" + fun onRemainingTimeOrDistanceChanged(remainingTimeArg: Double, remainingDistanceArg: Double, callback: (Result) -> Unit) { + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(remainingTimeArg, remainingDistanceArg)) { if (it is List<*>) { @@ -6103,14 +5301,12 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } - /** Android-only event. */ fun onTrafficUpdated(callback: (Result) -> Unit) { - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -6121,14 +5317,12 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } - /** Android-only event. */ fun onRerouting(callback: (Result) -> Unit) { - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -6139,14 +5333,12 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } - /** Android-only event. */ fun onGpsAvailabilityUpdate(availableArg: Boolean, callback: (Result) -> Unit) { - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(availableArg)) { if (it is List<*>) { @@ -6157,14 +5349,12 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } - /** Turn-by-Turn navigation events. */ fun onNavInfo(navInfoArg: NavInfoDto, callback: (Result) -> Unit) { - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(navInfoArg)) { if (it is List<*>) { @@ -6175,80 +5365,118 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } } - @Suppress("UNCHECKED_CAST") private object AutoMapViewApiCodec : StandardMessageCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { 128.toByte() -> { - return (readValue(buffer) as? List)?.let { CameraPositionDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + CameraPositionDto.fromList(it) + } } 129.toByte() -> { - return (readValue(buffer) as? List)?.let { CircleDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + CircleDto.fromList(it) + } } 130.toByte() -> { - return (readValue(buffer) as? List)?.let { CircleOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + CircleOptionsDto.fromList(it) + } } 131.toByte() -> { - return (readValue(buffer) as? List)?.let { ImageDescriptorDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + ImageDescriptorDto.fromList(it) + } } 132.toByte() -> { - return (readValue(buffer) as? List)?.let { InfoWindowDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + InfoWindowDto.fromList(it) + } } 133.toByte() -> { - return (readValue(buffer) as? List)?.let { LatLngBoundsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + LatLngBoundsDto.fromList(it) + } } 134.toByte() -> { - return (readValue(buffer) as? List)?.let { LatLngDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + LatLngDto.fromList(it) + } } 135.toByte() -> { - return (readValue(buffer) as? List)?.let { LatLngDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + LatLngDto.fromList(it) + } } 136.toByte() -> { - return (readValue(buffer) as? List)?.let { MapPaddingDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MapPaddingDto.fromList(it) + } } 137.toByte() -> { - return (readValue(buffer) as? List)?.let { MarkerAnchorDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MarkerAnchorDto.fromList(it) + } } 138.toByte() -> { - return (readValue(buffer) as? List)?.let { MarkerDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MarkerDto.fromList(it) + } } 139.toByte() -> { - return (readValue(buffer) as? List)?.let { MarkerOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MarkerOptionsDto.fromList(it) + } } 140.toByte() -> { - return (readValue(buffer) as? List)?.let { PatternItemDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PatternItemDto.fromList(it) + } } 141.toByte() -> { - return (readValue(buffer) as? List)?.let { PolygonDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolygonDto.fromList(it) + } } 142.toByte() -> { - return (readValue(buffer) as? List)?.let { PolygonHoleDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolygonHoleDto.fromList(it) + } } 143.toByte() -> { - return (readValue(buffer) as? List)?.let { PolygonOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolygonOptionsDto.fromList(it) + } } 144.toByte() -> { - return (readValue(buffer) as? List)?.let { PolylineDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolylineDto.fromList(it) + } } 145.toByte() -> { - return (readValue(buffer) as? List)?.let { PolylineOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolylineOptionsDto.fromList(it) + } } 146.toByte() -> { - return (readValue(buffer) as? List)?.let { StyleSpanDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + StyleSpanDto.fromList(it) + } } 147.toByte() -> { - return (readValue(buffer) as? List)?.let { StyleSpanStrokeStyleDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + StyleSpanStrokeStyleDto.fromList(it) + } } else -> super.readValueOfType(type, buffer) } } - - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { when (value) { is CameraPositionDto -> { stream.write(128) @@ -6338,194 +5566,91 @@ private object AutoMapViewApiCodec : StandardMessageCodec() { /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface AutoMapViewApi { 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 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 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 registerOnCameraChangedListener() - fun isAutoScreenAvailable(): Boolean - fun setPadding(padding: MapPaddingDto) - fun getPadding(): MapPaddingDto companion object { /** The codec used by AutoMapViewApi. */ - val codec: MessageCodec by lazy { AutoMapViewApiCodec } - + val codec: MessageCodec by lazy { + AutoMapViewApiCodec + } /** Sets up an instance of `AutoMapViewApi` to handle messages through the `binaryMessenger`. */ @Suppress("UNCHECKED_CAST") fun setUp(binaryMessenger: BinaryMessenger, api: AutoMapViewApi?) { run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -6541,12 +5666,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6565,12 +5685,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -6586,12 +5701,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -6607,12 +5717,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6631,12 +5736,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6655,12 +5755,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -6676,12 +5771,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -6697,12 +5787,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6722,19 +5807,13 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val cameraPositionArg = args[0] as CameraPositionDto val durationArg = args[1].let { if (it is Int) it.toLong() else it as Long? } - api.animateCameraToCameraPosition(cameraPositionArg, durationArg) { - result: Result -> + api.animateCameraToCameraPosition(cameraPositionArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(wrapError(error)) @@ -6749,12 +5828,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6775,20 +5849,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds", 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].let { if (it is Int) it.toLong() else it 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(wrapError(error)) @@ -6803,20 +5871,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom", 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].let { if (it is Int) it.toLong() else it 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(wrapError(error)) @@ -6831,20 +5893,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll", 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].let { if (it is Int) it.toLong() else it 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(wrapError(error)) @@ -6859,12 +5915,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6872,8 +5923,7 @@ interface AutoMapViewApi { val focusDxArg = args[1] as Double? val focusDyArg = args[2] as Double? val durationArg = args[3].let { if (it is Int) it.toLong() else it 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(wrapError(error)) @@ -6888,12 +5938,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6914,12 +5959,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6938,12 +5978,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6962,12 +5997,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6987,12 +6017,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7012,12 +6037,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7037,12 +6057,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7063,12 +6078,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7087,12 +6097,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -7108,12 +6113,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -7129,12 +6129,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -7151,12 +6146,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7175,12 +6165,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7199,12 +6184,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7223,12 +6203,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7247,12 +6222,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7271,12 +6241,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7295,12 +6260,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7319,12 +6279,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7343,12 +6298,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7367,12 +6317,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7391,12 +6336,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7415,12 +6355,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7439,12 +6374,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7463,12 +6393,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -7484,12 +6409,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -7505,12 +6425,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -7526,12 +6441,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -7547,12 +6457,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -7568,12 +6473,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -7589,12 +6489,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -7610,12 +6505,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -7631,12 +6521,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -7652,12 +6537,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -7673,12 +6553,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -7694,12 +6569,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -7715,12 +6585,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7738,12 +6603,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7761,12 +6621,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7785,12 +6640,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -7807,12 +6657,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -7829,12 +6674,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -7850,12 +6690,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7873,12 +6708,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7896,12 +6726,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7920,12 +6745,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -7942,12 +6762,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -7963,12 +6778,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7986,12 +6796,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -8009,12 +6814,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -8033,12 +6833,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -8055,12 +6850,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -8076,12 +6866,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -8099,12 +6884,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -8122,12 +6902,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -8146,12 +6921,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -8168,12 +6938,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.registerOnCameraChangedListener", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.registerOnCameraChangedListener", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -8190,12 +6955,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -8211,12 +6971,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -8235,12 +6990,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding", codec) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -8258,58 +7008,89 @@ interface AutoMapViewApi { } } } - @Suppress("UNCHECKED_CAST") private object AutoViewEventApiCodec : StandardMessageCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { 128.toByte() -> { - return (readValue(buffer) as? List)?.let { CameraPositionDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + CameraPositionDto.fromList(it) + } } 129.toByte() -> { - return (readValue(buffer) as? List)?.let { CircleDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + CircleDto.fromList(it) + } } 130.toByte() -> { - return (readValue(buffer) as? List)?.let { CircleOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + CircleOptionsDto.fromList(it) + } } 131.toByte() -> { - return (readValue(buffer) as? List)?.let { DestinationsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + DestinationsDto.fromList(it) + } } 132.toByte() -> { - return (readValue(buffer) as? List)?.let { ImageDescriptorDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + ImageDescriptorDto.fromList(it) + } } 133.toByte() -> { - return (readValue(buffer) as? List)?.let { InfoWindowDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + InfoWindowDto.fromList(it) + } } 134.toByte() -> { - return (readValue(buffer) as? List)?.let { LaneDirectionDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + LaneDirectionDto.fromList(it) + } } 135.toByte() -> { - return (readValue(buffer) as? List)?.let { LaneDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + LaneDto.fromList(it) + } } 136.toByte() -> { - return (readValue(buffer) as? List)?.let { LatLngBoundsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + LatLngBoundsDto.fromList(it) + } } 137.toByte() -> { - return (readValue(buffer) as? List)?.let { LatLngDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + LatLngDto.fromList(it) + } } 138.toByte() -> { - return (readValue(buffer) as? List)?.let { MapOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MapOptionsDto.fromList(it) + } } 139.toByte() -> { - return (readValue(buffer) as? List)?.let { MapPaddingDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MapPaddingDto.fromList(it) + } } 140.toByte() -> { - return (readValue(buffer) as? List)?.let { MarkerAnchorDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MarkerAnchorDto.fromList(it) + } } 141.toByte() -> { - return (readValue(buffer) as? List)?.let { MarkerDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MarkerDto.fromList(it) + } } 142.toByte() -> { - return (readValue(buffer) as? List)?.let { MarkerOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MarkerOptionsDto.fromList(it) + } } 143.toByte() -> { - return (readValue(buffer) as? List)?.let { NavInfoDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + NavInfoDto.fromList(it) + } } 144.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -8317,40 +7098,64 @@ private object AutoViewEventApiCodec : StandardMessageCodec() { } } 145.toByte() -> { - return (readValue(buffer) as? List)?.let { NavigationDisplayOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + NavigationDisplayOptionsDto.fromList(it) + } } 146.toByte() -> { - return (readValue(buffer) as? List)?.let { NavigationTimeAndDistanceDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + NavigationTimeAndDistanceDto.fromList(it) + } } 147.toByte() -> { - return (readValue(buffer) as? List)?.let { NavigationViewOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + NavigationViewOptionsDto.fromList(it) + } } 148.toByte() -> { - return (readValue(buffer) as? List)?.let { NavigationWaypointDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + NavigationWaypointDto.fromList(it) + } } 149.toByte() -> { - return (readValue(buffer) as? List)?.let { PatternItemDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PatternItemDto.fromList(it) + } } 150.toByte() -> { - return (readValue(buffer) as? List)?.let { PolygonDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolygonDto.fromList(it) + } } 151.toByte() -> { - return (readValue(buffer) as? List)?.let { PolygonHoleDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolygonHoleDto.fromList(it) + } } 152.toByte() -> { - return (readValue(buffer) as? List)?.let { PolygonOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolygonOptionsDto.fromList(it) + } } 153.toByte() -> { - return (readValue(buffer) as? List)?.let { PolylineDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolylineDto.fromList(it) + } } 154.toByte() -> { - return (readValue(buffer) as? List)?.let { PolylineOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolylineOptionsDto.fromList(it) + } } 155.toByte() -> { - return (readValue(buffer) as? List)?.let { RouteSegmentDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + RouteSegmentDto.fromList(it) + } } 156.toByte() -> { - return (readValue(buffer) as? List)?.let { RouteSegmentTrafficDataDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + RouteSegmentTrafficDataDto.fromList(it) + } } 157.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -8358,37 +7163,54 @@ private object AutoViewEventApiCodec : StandardMessageCodec() { } } 158.toByte() -> { - return (readValue(buffer) as? List)?.let { RouteTokenOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + RouteTokenOptionsDto.fromList(it) + } } 159.toByte() -> { - return (readValue(buffer) as? List)?.let { RoutingOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + RoutingOptionsDto.fromList(it) + } } 160.toByte() -> { - return (readValue(buffer) as? List)?.let { SimulationOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + SimulationOptionsDto.fromList(it) + } } 161.toByte() -> { - return (readValue(buffer) as? List)?.let { SpeedAlertOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + SpeedAlertOptionsDto.fromList(it) + } } 162.toByte() -> { - return (readValue(buffer) as? List)?.let { SpeedingUpdatedEventDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + SpeedingUpdatedEventDto.fromList(it) + } } 163.toByte() -> { - return (readValue(buffer) as? List)?.let { StepInfoDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + StepInfoDto.fromList(it) + } } 164.toByte() -> { - return (readValue(buffer) as? List)?.let { StyleSpanDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + StyleSpanDto.fromList(it) + } } 165.toByte() -> { - return (readValue(buffer) as? List)?.let { StyleSpanStrokeStyleDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + StyleSpanStrokeStyleDto.fromList(it) + } } 166.toByte() -> { - return (readValue(buffer) as? List)?.let { ViewCreationOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + ViewCreationOptionsDto.fromList(it) + } } else -> super.readValueOfType(type, buffer) } } - - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { when (value) { is CameraPositionDto -> { stream.write(128) @@ -8556,16 +7378,12 @@ private object AutoViewEventApiCodec : StandardMessageCodec() { class AutoViewEventApi(private val binaryMessenger: BinaryMessenger) { companion object { /** The codec used by AutoViewEventApi. */ - val codec: MessageCodec by lazy { AutoViewEventApiCodec } + val codec: MessageCodec by lazy { + AutoViewEventApiCodec + } } - - fun onCustomNavigationAutoEvent( - eventArg: String, - dataArg: Any, - callback: (Result) -> Unit, - ) { - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent" + fun onCustomNavigationAutoEvent(eventArg: String, dataArg: Any, callback: (Result) -> Unit) { + val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(eventArg, dataArg)) { if (it is List<*>) { @@ -8576,13 +7394,11 @@ class AutoViewEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } - fun onAutoScreenAvailabilityChanged(isAvailableArg: Boolean, callback: (Result) -> Unit) { - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(isAvailableArg)) { if (it is List<*>) { @@ -8593,32 +7409,24 @@ class AutoViewEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } } - /** 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 { StandardMessageCodec() } - - /** - * Sets up an instance of `NavigationInspector` to handle messages through the - * `binaryMessenger`. - */ + val codec: MessageCodec by lazy { + StandardMessageCodec() + } + /** Sets up an instance of `NavigationInspector` to handle messages through the `binaryMessenger`. */ @Suppress("UNCHECKED_CAST") fun setUp(binaryMessenger: BinaryMessenger, api: NavigationInspector?) { run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List diff --git a/android/src/test/kotlin/com/google/maps/flutter/navigation/ConvertTest.kt b/android/src/test/kotlin/com/google/maps/flutter/navigation/ConvertTest.kt index 64d88cf0..c688a59a 100644 --- a/android/src/test/kotlin/com/google/maps/flutter/navigation/ConvertTest.kt +++ b/android/src/test/kotlin/com/google/maps/flutter/navigation/ConvertTest.kt @@ -29,6 +29,7 @@ import com.google.android.libraries.navigation.AlternateRoutesStrategy import com.google.android.libraries.navigation.NavigationRoadStretchRenderingData import com.google.android.libraries.navigation.NavigationTrafficData import com.google.android.libraries.navigation.Navigator.AudioGuidance +import com.google.android.libraries.navigation.Navigator.TaskRemovedBehavior import com.google.android.libraries.navigation.RoutingOptions.RoutingStrategy import com.google.android.libraries.navigation.SpeedAlertSeverity import com.google.android.libraries.navigation.TimeAndDistance @@ -605,4 +606,11 @@ internal class ConvertTest { assertEquals(10.0, imageDescriptor.width) assertEquals(20.0, imageDescriptor.height) } + + @Test + fun taskRemovedBehaviorDtoToTaskRemovedBehavior_returnsExpectedValue() { + assertEquals(TaskRemovedBehavior.QUIT_SERVICE, Convert.taskRemovedBehaviorDtoToTaskRemovedBehavior(TaskRemovedBehaviorDto.QUITSERVICE)) + assertEquals(TaskRemovedBehavior.CONTINUE_SERVICE, Convert.taskRemovedBehaviorDtoToTaskRemovedBehavior(TaskRemovedBehaviorDto.CONTINUESERVICE)) + assertEquals(TaskRemovedBehavior.CONTINUE_SERVICE, Convert.taskRemovedBehaviorDtoToTaskRemovedBehavior(null)) + } } 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 69d6db1d..aa9ee619 100644 --- a/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationSessionMessageHandler.swift +++ b/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationSessionMessageHandler.swift @@ -57,6 +57,8 @@ class GoogleMapsNavigationSessionMessageHandler: NavigationSessionApi { } func createNavigationSession(abnormalTerminationReportingEnabled: Bool, + // taskRemovedBehaviourValue is Android only value and not used on iOS. + behavior: TaskRemovedBehaviorDto, completion: @escaping (Result) -> Void) { do { try GoogleMapsNavigationSessionManager.shared 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 0a7ccf18..e8559e34 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 @@ -1,31 +1,31 @@ // Copyright 2023 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. -// +// // Autogenerated from Pigeon (v15.0.0), do not edit directly. // See also: https://pub.dev/packages/pigeon import Foundation #if os(iOS) - import Flutter +import Flutter #elseif os(macOS) - import FlutterMacOS +import FlutterMacOS #else - #error("Unsupported platform.") +#error("Unsupported platform.") #endif private func wrapResult(_ result: Any?) -> [Any?] { - [result] + return [result] } private func wrapError(_ error: Any) -> [Any?] { @@ -33,26 +33,22 @@ private func wrapError(_ error: Any) -> [Any?] { return [ flutterError.code, flutterError.message, - flutterError.details, + flutterError.details ] } return [ "\(error)", "\(type(of: error))", - "Stacktrace: \(Thread.callStackSymbols)", + "Stacktrace: \(Thread.callStackSymbols)" ] } private func createConnectionError(withChannelName channelName: String) -> FlutterError { - FlutterError( - code: "channel-error", - message: "Unable to establish connection on channel: '\(channelName)'.", - details: "" - ) + return FlutterError(code: "channel-error", message: "Unable to establish connection on channel: '\(channelName)'.", details: "") } private func isNullish(_ value: Any?) -> Bool { - value is NSNull || value == nil + return value is NSNull || value == nil } private func nilOrValue(_ value: Any?) -> T? { @@ -62,8 +58,7 @@ private func nilOrValue(_ value: Any?) -> T? { /// Describes the type of map to construct. enum MapViewTypeDto: 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. case navigation = 0 /// Classic map view, without navigation overlay. case map = 1 @@ -294,11 +289,9 @@ enum ManeuverDto: Int { case roundaboutStraightClockwise = 50 /// Enter a roundabout in the counterclockwise direction and continue straight. case roundaboutStraightCounterclockwise = 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. case roundaboutUTurnClockwise = 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. case roundaboutUTurnCounterclockwise = 53 /// Continue straight. case straight = 54 @@ -372,6 +365,15 @@ enum LaneShapeDto: Int { case uTurnRight = 9 } +/// Determines how application should behave when a application task is removed. +enum TaskRemovedBehaviorDto: Int { + /// The default state, indicating that navigation guidance, + /// location updates, and notification should persist after user removes the application task. + case continueService = 0 + /// Indicates that navigation guidance, location updates, and notification should shut down immediately when the user removes the application task. + case quitService = 1 +} + /// Object containing map options used to initialize Google Map view. /// /// Generated class from Pigeon that represents data sent in messages. @@ -395,16 +397,16 @@ struct MapOptionsDto { /// If true, enables the map toolbar. var mapToolbarEnabled: Bool /// The minimum zoom level that can be set for the map. - var minZoomPreference: Double? + var minZoomPreference: Double? = nil /// The maximum zoom level that can be set for the map. - var maxZoomPreference: Double? + var maxZoomPreference: Double? = nil /// If true, enables zoom controls for the map. var zoomControlsEnabled: Bool /// Specifies a bounds to constrain the camera target, so that when users scroll and pan the map, /// the camera target does not move outside these bounds. - var cameraTargetBounds: LatLngBoundsDto? + var cameraTargetBounds: LatLngBoundsDto? = nil /// Specifies the padding for the map. - var padding: MapPaddingDto? + var padding: MapPaddingDto? = nil static func fromList(_ list: [Any?]) -> MapOptionsDto? { let cameraPosition = CameraPositionDto.fromList(list[0] as! [Any?])! @@ -419,11 +421,11 @@ struct MapOptionsDto { let minZoomPreference: Double? = nilOrValue(list[9]) let maxZoomPreference: Double? = nilOrValue(list[10]) let zoomControlsEnabled = list[11] as! Bool - var cameraTargetBounds: LatLngBoundsDto? + var cameraTargetBounds: LatLngBoundsDto? = nil if let cameraTargetBoundsList: [Any?] = nilOrValue(list[12]) { cameraTargetBounds = LatLngBoundsDto.fromList(cameraTargetBoundsList) } - var padding: MapPaddingDto? + var padding: MapPaddingDto? = nil if let paddingList: [Any?] = nilOrValue(list[13]) { padding = MapPaddingDto.fromList(paddingList) } @@ -445,9 +447,8 @@ struct MapOptionsDto { padding: padding ) } - func toList() -> [Any?] { - [ + return [ cameraPosition.toList(), mapType.rawValue, compassEnabled, @@ -480,9 +481,8 @@ struct NavigationViewOptionsDto { navigationUIEnabledPreference: navigationUIEnabledPreference ) } - func toList() -> [Any?] { - [ + return [ navigationUIEnabledPreference.rawValue, ] } @@ -497,12 +497,12 @@ struct NavigationViewOptionsDto { struct ViewCreationOptionsDto { var mapViewType: MapViewTypeDto var mapOptions: MapOptionsDto - var navigationViewOptions: NavigationViewOptionsDto? + var navigationViewOptions: NavigationViewOptionsDto? = nil static func fromList(_ list: [Any?]) -> ViewCreationOptionsDto? { let mapViewType = MapViewTypeDto(rawValue: list[0] as! Int)! let mapOptions = MapOptionsDto.fromList(list[1] as! [Any?])! - var navigationViewOptions: NavigationViewOptionsDto? + var navigationViewOptions: NavigationViewOptionsDto? = nil if let navigationViewOptionsList: [Any?] = nilOrValue(list[2]) { navigationViewOptions = NavigationViewOptionsDto.fromList(navigationViewOptionsList) } @@ -513,9 +513,8 @@ struct ViewCreationOptionsDto { navigationViewOptions: navigationViewOptions ) } - func toList() -> [Any?] { - [ + return [ mapViewType.rawValue, mapOptions.toList(), navigationViewOptions?.toList(), @@ -543,9 +542,8 @@ struct CameraPositionDto { zoom: zoom ) } - func toList() -> [Any?] { - [ + return [ bearing, target.toList(), tilt, @@ -570,9 +568,8 @@ struct MarkerDto { options: options ) } - func toList() -> [Any?] { - [ + return [ markerId, options.toList(), ] @@ -620,9 +617,8 @@ struct MarkerOptionsDto { icon: icon ) } - func toList() -> [Any?] { - [ + return [ alpha, anchor.toList(), draggable, @@ -640,10 +636,10 @@ struct MarkerOptionsDto { /// Generated class from Pigeon that represents data sent in messages. struct ImageDescriptorDto { - var registeredImageId: String? - var imagePixelRatio: Double? - var width: Double? - var height: Double? + var registeredImageId: String? = nil + var imagePixelRatio: Double? = nil + var width: Double? = nil + var height: Double? = nil static func fromList(_ list: [Any?]) -> ImageDescriptorDto? { let registeredImageId: String? = nilOrValue(list[0]) @@ -658,9 +654,8 @@ struct ImageDescriptorDto { height: height ) } - func toList() -> [Any?] { - [ + return [ registeredImageId, imagePixelRatio, width, @@ -671,8 +666,8 @@ struct ImageDescriptorDto { /// Generated class from Pigeon that represents data sent in messages. struct InfoWindowDto { - var title: String? - var snippet: String? + var title: String? = nil + var snippet: String? = nil var anchor: MarkerAnchorDto static func fromList(_ list: [Any?]) -> InfoWindowDto? { @@ -686,9 +681,8 @@ struct InfoWindowDto { anchor: anchor ) } - func toList() -> [Any?] { - [ + return [ title, snippet, anchor.toList(), @@ -710,9 +704,8 @@ struct MarkerAnchorDto { v: v ) } - func toList() -> [Any?] { - [ + return [ u, v, ] @@ -733,9 +726,8 @@ struct PolygonDto { options: options ) } - func toList() -> [Any?] { - [ + return [ polygonId, options.toList(), ] @@ -777,9 +769,8 @@ struct PolygonOptionsDto { zIndex: zIndex ) } - func toList() -> [Any?] { - [ + return [ points, holes, clickable, @@ -804,9 +795,8 @@ struct PolygonHoleDto { points: points ) } - func toList() -> [Any?] { - [ + return [ points, ] } @@ -814,17 +804,14 @@ struct PolygonHoleDto { /// Generated class from Pigeon that represents data sent in messages. struct StyleSpanStrokeStyleDto { - var solidColor: Int64? - var fromColor: Int64? - var toColor: Int64? + var solidColor: Int64? = nil + var fromColor: Int64? = nil + var toColor: Int64? = nil static func fromList(_ list: [Any?]) -> StyleSpanStrokeStyleDto? { - let solidColor: Int64? = isNullish(list[0]) ? nil : - (list[0] is Int64? ? list[0] as! Int64? : Int64(list[0] as! Int32)) - let fromColor: Int64? = isNullish(list[1]) ? nil : - (list[1] is Int64? ? list[1] as! Int64? : Int64(list[1] as! Int32)) - let toColor: Int64? = isNullish(list[2]) ? nil : - (list[2] is Int64? ? list[2] as! Int64? : Int64(list[2] as! Int32)) + let solidColor: Int64? = isNullish(list[0]) ? nil : (list[0] is Int64? ? list[0] as! Int64? : Int64(list[0] as! Int32)) + let fromColor: Int64? = isNullish(list[1]) ? nil : (list[1] is Int64? ? list[1] as! Int64? : Int64(list[1] as! Int32)) + let toColor: Int64? = isNullish(list[2]) ? nil : (list[2] is Int64? ? list[2] as! Int64? : Int64(list[2] as! Int32)) return StyleSpanStrokeStyleDto( solidColor: solidColor, @@ -832,9 +819,8 @@ struct StyleSpanStrokeStyleDto { toColor: toColor ) } - func toList() -> [Any?] { - [ + return [ solidColor, fromColor, toColor, @@ -856,9 +842,8 @@ struct StyleSpanDto { style: style ) } - func toList() -> [Any?] { - [ + return [ length, style.toList(), ] @@ -879,9 +864,8 @@ struct PolylineDto { options: options ) } - func toList() -> [Any?] { - [ + return [ polylineId, options.toList(), ] @@ -891,7 +875,7 @@ struct PolylineDto { /// Generated class from Pigeon that represents data sent in messages. struct PatternItemDto { var type: PatternTypeDto - var length: Double? + var length: Double? = nil static func fromList(_ list: [Any?]) -> PatternItemDto? { let type = PatternTypeDto(rawValue: list[0] as! Int)! @@ -902,9 +886,8 @@ struct PatternItemDto { length: length ) } - func toList() -> [Any?] { - [ + return [ type.rawValue, length, ] @@ -913,24 +896,23 @@ struct PatternItemDto { /// Generated class from Pigeon that represents data sent in messages. struct PolylineOptionsDto { - var points: [LatLngDto?]? - var clickable: Bool? - var geodesic: Bool? - var strokeColor: Int64? - var strokeJointType: StrokeJointTypeDto? - var strokePattern: [PatternItemDto?]? - var strokeWidth: Double? - var visible: Bool? - var zIndex: Double? + var points: [LatLngDto?]? = nil + var clickable: Bool? = nil + var geodesic: Bool? = nil + var strokeColor: Int64? = nil + var strokeJointType: StrokeJointTypeDto? = nil + var strokePattern: [PatternItemDto?]? = nil + var strokeWidth: Double? = nil + var visible: Bool? = nil + var zIndex: Double? = nil var spans: [StyleSpanDto?] static func fromList(_ list: [Any?]) -> PolylineOptionsDto? { let points: [LatLngDto?]? = nilOrValue(list[0]) let clickable: Bool? = nilOrValue(list[1]) let geodesic: Bool? = nilOrValue(list[2]) - let strokeColor: Int64? = isNullish(list[3]) ? nil : - (list[3] is Int64? ? list[3] as! Int64? : Int64(list[3] as! Int32)) - var strokeJointType: StrokeJointTypeDto? + let strokeColor: Int64? = isNullish(list[3]) ? nil : (list[3] is Int64? ? list[3] as! Int64? : Int64(list[3] as! Int32)) + var strokeJointType: StrokeJointTypeDto? = nil let strokeJointTypeEnumVal: Int? = nilOrValue(list[4]) if let strokeJointTypeRawValue = strokeJointTypeEnumVal { strokeJointType = StrokeJointTypeDto(rawValue: strokeJointTypeRawValue)! @@ -954,9 +936,8 @@ struct PolylineOptionsDto { spans: spans ) } - func toList() -> [Any?] { - [ + return [ points, clickable, geodesic, @@ -987,9 +968,8 @@ struct CircleDto { options: options ) } - func toList() -> [Any?] { - [ + return [ circleId, options.toList(), ] @@ -1031,9 +1011,8 @@ struct CircleOptionsDto { clickable: clickable ) } - func toList() -> [Any?] { - [ + return [ position.toList(), radius, strokeWidth, @@ -1067,9 +1046,8 @@ struct MapPaddingDto { right: right ) } - func toList() -> [Any?] { - [ + return [ top, left, bottom, @@ -1081,11 +1059,11 @@ struct MapPaddingDto { /// Generated class from Pigeon that represents data sent in messages. struct RouteTokenOptionsDto { var routeToken: String - var travelMode: TravelModeDto? + var travelMode: TravelModeDto? = nil static func fromList(_ list: [Any?]) -> RouteTokenOptionsDto? { let routeToken = list[0] as! String - var travelMode: TravelModeDto? + var travelMode: TravelModeDto? = nil let travelModeEnumVal: Int? = nilOrValue(list[1]) if let travelModeRawValue = travelModeEnumVal { travelMode = TravelModeDto(rawValue: travelModeRawValue)! @@ -1096,9 +1074,8 @@ struct RouteTokenOptionsDto { travelMode: travelMode ) } - func toList() -> [Any?] { - [ + return [ routeToken, travelMode?.rawValue, ] @@ -1109,17 +1086,17 @@ struct RouteTokenOptionsDto { struct DestinationsDto { var waypoints: [NavigationWaypointDto?] var displayOptions: NavigationDisplayOptionsDto - var routingOptions: RoutingOptionsDto? - var routeTokenOptions: RouteTokenOptionsDto? + var routingOptions: RoutingOptionsDto? = nil + var routeTokenOptions: RouteTokenOptionsDto? = nil static func fromList(_ list: [Any?]) -> DestinationsDto? { let waypoints = list[0] as! [NavigationWaypointDto?] let displayOptions = NavigationDisplayOptionsDto.fromList(list[1] as! [Any?])! - var routingOptions: RoutingOptionsDto? + var routingOptions: RoutingOptionsDto? = nil if let routingOptionsList: [Any?] = nilOrValue(list[2]) { routingOptions = RoutingOptionsDto.fromList(routingOptionsList) } - var routeTokenOptions: RouteTokenOptionsDto? + var routeTokenOptions: RouteTokenOptionsDto? = nil if let routeTokenOptionsList: [Any?] = nilOrValue(list[3]) { routeTokenOptions = RouteTokenOptionsDto.fromList(routeTokenOptionsList) } @@ -1131,9 +1108,8 @@ struct DestinationsDto { routeTokenOptions: routeTokenOptions ) } - func toList() -> [Any?] { - [ + return [ waypoints, displayOptions.toList(), routingOptions?.toList(), @@ -1144,29 +1120,28 @@ struct DestinationsDto { /// Generated class from Pigeon that represents data sent in messages. struct RoutingOptionsDto { - var alternateRoutesStrategy: AlternateRoutesStrategyDto? - var routingStrategy: RoutingStrategyDto? - var targetDistanceMeters: [Int64?]? - var travelMode: TravelModeDto? - var avoidTolls: Bool? - var avoidFerries: Bool? - var avoidHighways: Bool? - var locationTimeoutMs: Int64? + var alternateRoutesStrategy: AlternateRoutesStrategyDto? = nil + var routingStrategy: RoutingStrategyDto? = nil + var targetDistanceMeters: [Int64?]? = nil + var travelMode: TravelModeDto? = nil + var avoidTolls: Bool? = nil + var avoidFerries: Bool? = nil + var avoidHighways: Bool? = nil + var locationTimeoutMs: Int64? = nil static func fromList(_ list: [Any?]) -> RoutingOptionsDto? { - var alternateRoutesStrategy: AlternateRoutesStrategyDto? + var alternateRoutesStrategy: AlternateRoutesStrategyDto? = nil let alternateRoutesStrategyEnumVal: Int? = nilOrValue(list[0]) if let alternateRoutesStrategyRawValue = alternateRoutesStrategyEnumVal { - alternateRoutesStrategy = - AlternateRoutesStrategyDto(rawValue: alternateRoutesStrategyRawValue)! + alternateRoutesStrategy = AlternateRoutesStrategyDto(rawValue: alternateRoutesStrategyRawValue)! } - var routingStrategy: RoutingStrategyDto? + var routingStrategy: RoutingStrategyDto? = nil let routingStrategyEnumVal: Int? = nilOrValue(list[1]) if let routingStrategyRawValue = routingStrategyEnumVal { routingStrategy = RoutingStrategyDto(rawValue: routingStrategyRawValue)! } let targetDistanceMeters: [Int64?]? = nilOrValue(list[2]) - var travelMode: TravelModeDto? + var travelMode: TravelModeDto? = nil let travelModeEnumVal: Int? = nilOrValue(list[3]) if let travelModeRawValue = travelModeEnumVal { travelMode = TravelModeDto(rawValue: travelModeRawValue)! @@ -1174,8 +1149,7 @@ struct RoutingOptionsDto { let avoidTolls: Bool? = nilOrValue(list[4]) let avoidFerries: Bool? = nilOrValue(list[5]) let avoidHighways: Bool? = nilOrValue(list[6]) - let locationTimeoutMs: Int64? = isNullish(list[7]) ? nil : - (list[7] is Int64? ? list[7] as! Int64? : Int64(list[7] as! Int32)) + let locationTimeoutMs: Int64? = isNullish(list[7]) ? nil : (list[7] is Int64? ? list[7] as! Int64? : Int64(list[7] as! Int32)) return RoutingOptionsDto( alternateRoutesStrategy: alternateRoutesStrategy, @@ -1188,9 +1162,8 @@ struct RoutingOptionsDto { locationTimeoutMs: locationTimeoutMs ) } - func toList() -> [Any?] { - [ + return [ alternateRoutesStrategy?.rawValue, routingStrategy?.rawValue, targetDistanceMeters, @@ -1205,9 +1178,9 @@ struct RoutingOptionsDto { /// Generated class from Pigeon that represents data sent in messages. struct NavigationDisplayOptionsDto { - var showDestinationMarkers: Bool? - var showStopSigns: Bool? - var showTrafficLights: Bool? + var showDestinationMarkers: Bool? = nil + var showStopSigns: Bool? = nil + var showTrafficLights: Bool? = nil static func fromList(_ list: [Any?]) -> NavigationDisplayOptionsDto? { let showDestinationMarkers: Bool? = nilOrValue(list[0]) @@ -1220,9 +1193,8 @@ struct NavigationDisplayOptionsDto { showTrafficLights: showTrafficLights ) } - func toList() -> [Any?] { - [ + return [ showDestinationMarkers, showStopSigns, showTrafficLights, @@ -1233,21 +1205,20 @@ struct NavigationDisplayOptionsDto { /// Generated class from Pigeon that represents data sent in messages. struct NavigationWaypointDto { var title: String - var target: LatLngDto? - var placeID: String? - var preferSameSideOfRoad: Bool? - var preferredSegmentHeading: Int64? + var target: LatLngDto? = nil + var placeID: String? = nil + var preferSameSideOfRoad: Bool? = nil + var preferredSegmentHeading: Int64? = nil static func fromList(_ list: [Any?]) -> NavigationWaypointDto? { let title = list[0] as! String - var target: LatLngDto? + var target: LatLngDto? = nil if let targetList: [Any?] = nilOrValue(list[1]) { target = LatLngDto.fromList(targetList) } let placeID: String? = nilOrValue(list[2]) let preferSameSideOfRoad: Bool? = nilOrValue(list[3]) - let preferredSegmentHeading: Int64? = isNullish(list[4]) ? nil : - (list[4] is Int64? ? list[4] as! Int64? : Int64(list[4] as! Int32)) + let preferredSegmentHeading: Int64? = isNullish(list[4]) ? nil : (list[4] is Int64? ? list[4] as! Int64? : Int64(list[4] as! Int32)) return NavigationWaypointDto( title: title, @@ -1257,9 +1228,8 @@ struct NavigationWaypointDto { preferredSegmentHeading: preferredSegmentHeading ) } - func toList() -> [Any?] { - [ + return [ title, target?.toList(), placeID, @@ -1283,9 +1253,8 @@ struct NavigationTimeAndDistanceDto { distance: distance ) } - func toList() -> [Any?] { - [ + return [ time, distance, ] @@ -1294,14 +1263,14 @@ struct NavigationTimeAndDistanceDto { /// Generated class from Pigeon that represents data sent in messages. struct NavigationAudioGuidanceSettingsDto { - var isBluetoothAudioEnabled: Bool? - var isVibrationEnabled: Bool? - var guidanceType: AudioGuidanceTypeDto? + var isBluetoothAudioEnabled: Bool? = nil + var isVibrationEnabled: Bool? = nil + var guidanceType: AudioGuidanceTypeDto? = nil static func fromList(_ list: [Any?]) -> NavigationAudioGuidanceSettingsDto? { let isBluetoothAudioEnabled: Bool? = nilOrValue(list[0]) let isVibrationEnabled: Bool? = nilOrValue(list[1]) - var guidanceType: AudioGuidanceTypeDto? + var guidanceType: AudioGuidanceTypeDto? = nil let guidanceTypeEnumVal: Int? = nilOrValue(list[2]) if let guidanceTypeRawValue = guidanceTypeEnumVal { guidanceType = AudioGuidanceTypeDto(rawValue: guidanceTypeRawValue)! @@ -1313,9 +1282,8 @@ struct NavigationAudioGuidanceSettingsDto { guidanceType: guidanceType ) } - func toList() -> [Any?] { - [ + return [ isBluetoothAudioEnabled, isVibrationEnabled, guidanceType?.rawValue, @@ -1334,9 +1302,8 @@ struct SimulationOptionsDto { speedMultiplier: speedMultiplier ) } - func toList() -> [Any?] { - [ + return [ speedMultiplier, ] } @@ -1356,9 +1323,8 @@ struct LatLngDto { longitude: longitude ) } - func toList() -> [Any?] { - [ + return [ latitude, longitude, ] @@ -1379,9 +1345,8 @@ struct LatLngBoundsDto { northeast: northeast ) } - func toList() -> [Any?] { - [ + return [ southwest.toList(), northeast.toList(), ] @@ -1402,9 +1367,8 @@ struct SpeedingUpdatedEventDto { severity: severity ) } - func toList() -> [Any?] { - [ + return [ percentageAboveLimit, severity.rawValue, ] @@ -1428,9 +1392,8 @@ struct SpeedAlertOptionsDto { majorSpeedAlertThresholdPercentage: majorSpeedAlertThresholdPercentage ) } - func toList() -> [Any?] { - [ + return [ severityUpgradeDurationSeconds, minorSpeedAlertThresholdPercentage, majorSpeedAlertThresholdPercentage, @@ -1455,9 +1418,8 @@ struct RouteSegmentTrafficDataRoadStretchRenderingDataDto { offsetMeters: offsetMeters ) } - func toList() -> [Any?] { - [ + return [ style.rawValue, lengthMeters, offsetMeters, @@ -1472,17 +1434,15 @@ struct RouteSegmentTrafficDataDto { static func fromList(_ list: [Any?]) -> RouteSegmentTrafficDataDto? { let status = RouteSegmentTrafficDataStatusDto(rawValue: list[0] as! Int)! - let roadStretchRenderingDataList = - list[1] as! [RouteSegmentTrafficDataRoadStretchRenderingDataDto?] + let roadStretchRenderingDataList = list[1] as! [RouteSegmentTrafficDataRoadStretchRenderingDataDto?] return RouteSegmentTrafficDataDto( status: status, roadStretchRenderingDataList: roadStretchRenderingDataList ) } - func toList() -> [Any?] { - [ + return [ status.rawValue, roadStretchRenderingDataList, ] @@ -1491,19 +1451,19 @@ struct RouteSegmentTrafficDataDto { /// Generated class from Pigeon that represents data sent in messages. struct RouteSegmentDto { - var trafficData: RouteSegmentTrafficDataDto? + var trafficData: RouteSegmentTrafficDataDto? = nil var destinationLatLng: LatLngDto - var latLngs: [LatLngDto?]? - var destinationWaypoint: NavigationWaypointDto? + var latLngs: [LatLngDto?]? = nil + var destinationWaypoint: NavigationWaypointDto? = nil static func fromList(_ list: [Any?]) -> RouteSegmentDto? { - var trafficData: RouteSegmentTrafficDataDto? + var trafficData: RouteSegmentTrafficDataDto? = nil if let trafficDataList: [Any?] = nilOrValue(list[0]) { trafficData = RouteSegmentTrafficDataDto.fromList(trafficDataList) } let destinationLatLng = LatLngDto.fromList(list[1] as! [Any?])! let latLngs: [LatLngDto?]? = nilOrValue(list[2]) - var destinationWaypoint: NavigationWaypointDto? + var destinationWaypoint: NavigationWaypointDto? = nil if let destinationWaypointList: [Any?] = nilOrValue(list[3]) { destinationWaypoint = NavigationWaypointDto.fromList(destinationWaypointList) } @@ -1515,9 +1475,8 @@ struct RouteSegmentDto { destinationWaypoint: destinationWaypoint ) } - func toList() -> [Any?] { - [ + return [ trafficData?.toList(), destinationLatLng.toList(), latLngs, @@ -1526,8 +1485,7 @@ struct RouteSegmentDto { } } -/// 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. struct LaneDirectionDto { @@ -1545,9 +1503,8 @@ struct LaneDirectionDto { isRecommended: isRecommended ) } - func toList() -> [Any?] { - [ + return [ laneShape.rawValue, isRecommended, ] @@ -1558,8 +1515,7 @@ struct LaneDirectionDto { /// /// Generated class from Pigeon that represents data sent in messages. struct LaneDto { - /// List of possible directions a driver can follow when using this lane at the end of the - /// respective route step + /// List of possible directions a driver can follow when using this lane at the end of the respective route step var laneDirections: [LaneDirectionDto?] static func fromList(_ list: [Any?]) -> LaneDto? { @@ -1569,9 +1525,8 @@ struct LaneDto { laneDirections: laneDirections ) } - func toList() -> [Any?] { - [ + return [ laneDirections, ] } @@ -1588,7 +1543,7 @@ struct StepInfoDto { /// Whether this step is on a drive-on-right or drive-on-left route. var drivingSide: DrivingSideDto /// The exit number if it exists. - var exitNumber: String? + var exitNumber: String? = nil /// The full text of the instruction for this step. var fullInstructions: String /// The full road name for this step. @@ -1632,9 +1587,8 @@ struct StepInfoDto { stepNumber: stepNumber ) } - func toList() -> [Any?] { - [ + return [ distanceFromPrevStepMeters, timeFromPrevStepSeconds, drivingSide.rawValue, @@ -1658,52 +1612,46 @@ struct NavInfoDto { /// The current state of navigation. var navState: NavStateDto /// Information about the upcoming maneuver step. - var currentStep: StepInfoDto? + var currentStep: StepInfoDto? = nil /// The remaining steps after the current step. var remainingSteps: [StepInfoDto?] /// Whether the route has changed since the last sent message. var routeChanged: Bool /// Estimated remaining distance in meters along the route to the /// current step. - var distanceToCurrentStepMeters: Int64? + var distanceToCurrentStepMeters: Int64? = nil /// The estimated remaining distance in meters to the final destination which /// is the last destination in a multi-destination trip. - var distanceToFinalDestinationMeters: Int64? + var distanceToFinalDestinationMeters: Int64? = nil /// The estimated remaining distance in meters to the next destination. /// /// Android only. - var distanceToNextDestinationMeters: Int64? + var distanceToNextDestinationMeters: Int64? = nil /// The estimated remaining time in seconds along the route to the /// current step. - var timeToCurrentStepSeconds: Int64? + var timeToCurrentStepSeconds: Int64? = nil /// The estimated remaining time in seconds to the final destination which is /// the last destination in a multi-destination trip. - var timeToFinalDestinationSeconds: Int64? + var timeToFinalDestinationSeconds: Int64? = nil /// The estimated remaining time in seconds to the next destination. /// /// Android only. - var timeToNextDestinationSeconds: Int64? + var timeToNextDestinationSeconds: Int64? = nil static func fromList(_ list: [Any?]) -> NavInfoDto? { let navState = NavStateDto(rawValue: list[0] as! Int)! - var currentStep: StepInfoDto? + var currentStep: StepInfoDto? = nil if let currentStepList: [Any?] = nilOrValue(list[1]) { currentStep = StepInfoDto.fromList(currentStepList) } let remainingSteps = list[2] as! [StepInfoDto?] let routeChanged = list[3] as! Bool - let distanceToCurrentStepMeters: Int64? = isNullish(list[4]) ? nil : - (list[4] is Int64? ? list[4] as! Int64? : Int64(list[4] as! Int32)) - let distanceToFinalDestinationMeters: Int64? = isNullish(list[5]) ? nil : - (list[5] is Int64? ? list[5] as! Int64? : Int64(list[5] as! Int32)) - let distanceToNextDestinationMeters: Int64? = isNullish(list[6]) ? nil : - (list[6] is Int64? ? list[6] as! Int64? : Int64(list[6] as! Int32)) - let timeToCurrentStepSeconds: Int64? = isNullish(list[7]) ? nil : - (list[7] is Int64? ? list[7] as! Int64? : Int64(list[7] as! Int32)) - let timeToFinalDestinationSeconds: Int64? = isNullish(list[8]) ? nil : - (list[8] is Int64? ? list[8] as! Int64? : Int64(list[8] as! Int32)) - let timeToNextDestinationSeconds: Int64? = isNullish(list[9]) ? nil : - (list[9] is Int64? ? list[9] as! Int64? : Int64(list[9] as! Int32)) + let distanceToCurrentStepMeters: Int64? = isNullish(list[4]) ? nil : (list[4] is Int64? ? list[4] as! Int64? : Int64(list[4] as! Int32)) + let distanceToFinalDestinationMeters: Int64? = isNullish(list[5]) ? nil : (list[5] is Int64? ? list[5] as! Int64? : Int64(list[5] as! Int32)) + let distanceToNextDestinationMeters: Int64? = isNullish(list[6]) ? nil : (list[6] is Int64? ? list[6] as! Int64? : Int64(list[6] as! Int32)) + let timeToCurrentStepSeconds: Int64? = isNullish(list[7]) ? nil : (list[7] is Int64? ? list[7] as! Int64? : Int64(list[7] as! Int32)) + let timeToFinalDestinationSeconds: Int64? = isNullish(list[8]) ? nil : (list[8] is Int64? ? list[8] as! Int64? : Int64(list[8] as! Int32)) + let timeToNextDestinationSeconds: Int64? = isNullish(list[9]) ? nil : (list[9] is Int64? ? list[9] as! Int64? : Int64(list[9] as! Int32)) return NavInfoDto( navState: navState, @@ -1718,9 +1666,8 @@ struct NavInfoDto { timeToNextDestinationSeconds: timeToNextDestinationSeconds ) } - func toList() -> [Any?] { - [ + return [ navState.rawValue, currentStep?.toList(), remainingSteps, @@ -1738,22 +1685,22 @@ struct NavInfoDto { private class NavigationViewCreationApiCodecReader: FlutterStandardReader { override func readValue(ofType type: UInt8) -> Any? { switch type { - case 128: - return CameraPositionDto.fromList(readValue() as! [Any?]) - case 129: - return LatLngBoundsDto.fromList(readValue() as! [Any?]) - case 130: - return LatLngDto.fromList(readValue() as! [Any?]) - case 131: - return MapOptionsDto.fromList(readValue() as! [Any?]) - case 132: - return MapPaddingDto.fromList(readValue() as! [Any?]) - case 133: - return NavigationViewOptionsDto.fromList(readValue() as! [Any?]) - case 134: - return ViewCreationOptionsDto.fromList(readValue() as! [Any?]) - default: - return super.readValue(ofType: type) + case 128: + return CameraPositionDto.fromList(self.readValue() as! [Any?]) + case 129: + return LatLngBoundsDto.fromList(self.readValue() as! [Any?]) + case 130: + return LatLngDto.fromList(self.readValue() as! [Any?]) + case 131: + return MapOptionsDto.fromList(self.readValue() as! [Any?]) + case 132: + return MapPaddingDto.fromList(self.readValue() as! [Any?]) + case 133: + return NavigationViewOptionsDto.fromList(self.readValue() as! [Any?]) + case 134: + return ViewCreationOptionsDto.fromList(self.readValue() as! [Any?]) + default: + return super.readValue(ofType: type) } } } @@ -1789,17 +1736,16 @@ private class NavigationViewCreationApiCodecWriter: FlutterStandardWriter { private class NavigationViewCreationApiCodecReaderWriter: FlutterStandardReaderWriter { override func reader(with data: Data) -> FlutterStandardReader { - NavigationViewCreationApiCodecReader(data: data) + return NavigationViewCreationApiCodecReader(data: data) } override func writer(with data: NSMutableData) -> FlutterStandardWriter { - NavigationViewCreationApiCodecWriter(data: data) + return NavigationViewCreationApiCodecWriter(data: data) } } class NavigationViewCreationApiCodec: FlutterStandardMessageCodec { - static let shared = - NavigationViewCreationApiCodec(readerWriter: NavigationViewCreationApiCodecReaderWriter()) + static let shared = NavigationViewCreationApiCodec(readerWriter: NavigationViewCreationApiCodecReaderWriter()) } /// Pigeon only generates messages if the messages are used in API. @@ -1814,18 +1760,13 @@ protocol NavigationViewCreationApi { } /// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. -enum NavigationViewCreationApiSetup { +class NavigationViewCreationApiSetup { /// The codec used by NavigationViewCreationApi. static var codec: FlutterStandardMessageCodec { NavigationViewCreationApiCodec.shared } - /// Sets up an instance of `NavigationViewCreationApi` to handle messages through the - /// `binaryMessenger`. + /// Sets up an instance of `NavigationViewCreationApi` to handle messages through the `binaryMessenger`. static func setUp(binaryMessenger: FlutterBinaryMessenger, api: NavigationViewCreationApi?) { - let createChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationViewCreationApi.create", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let createChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationViewCreationApi.create", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { createChannel.setMessageHandler { message, reply in let args = message as! [Any?] let msgArg = args[0] as! ViewCreationOptionsDto @@ -1841,52 +1782,51 @@ enum NavigationViewCreationApiSetup { } } } - private class MapViewApiCodecReader: FlutterStandardReader { override func readValue(ofType type: UInt8) -> Any? { switch type { - case 128: - return CameraPositionDto.fromList(readValue() as! [Any?]) - case 129: - return CircleDto.fromList(readValue() as! [Any?]) - case 130: - return CircleOptionsDto.fromList(readValue() as! [Any?]) - case 131: - return ImageDescriptorDto.fromList(readValue() as! [Any?]) - case 132: - return InfoWindowDto.fromList(readValue() as! [Any?]) - case 133: - return LatLngBoundsDto.fromList(readValue() as! [Any?]) - case 134: - return LatLngDto.fromList(readValue() as! [Any?]) - case 135: - return LatLngDto.fromList(readValue() as! [Any?]) - case 136: - return MapPaddingDto.fromList(readValue() as! [Any?]) - case 137: - return MarkerAnchorDto.fromList(readValue() as! [Any?]) - case 138: - return MarkerDto.fromList(readValue() as! [Any?]) - case 139: - return MarkerOptionsDto.fromList(readValue() as! [Any?]) - case 140: - return PatternItemDto.fromList(readValue() as! [Any?]) - case 141: - return PolygonDto.fromList(readValue() as! [Any?]) - case 142: - return PolygonHoleDto.fromList(readValue() as! [Any?]) - case 143: - return PolygonOptionsDto.fromList(readValue() as! [Any?]) - case 144: - return PolylineDto.fromList(readValue() as! [Any?]) - case 145: - return PolylineOptionsDto.fromList(readValue() as! [Any?]) - case 146: - return StyleSpanDto.fromList(readValue() as! [Any?]) - case 147: - return StyleSpanStrokeStyleDto.fromList(readValue() as! [Any?]) - default: - return super.readValue(ofType: type) + case 128: + return CameraPositionDto.fromList(self.readValue() as! [Any?]) + case 129: + return CircleDto.fromList(self.readValue() as! [Any?]) + case 130: + return CircleOptionsDto.fromList(self.readValue() as! [Any?]) + case 131: + return ImageDescriptorDto.fromList(self.readValue() as! [Any?]) + case 132: + return InfoWindowDto.fromList(self.readValue() as! [Any?]) + case 133: + return LatLngBoundsDto.fromList(self.readValue() as! [Any?]) + case 134: + return LatLngDto.fromList(self.readValue() as! [Any?]) + case 135: + return LatLngDto.fromList(self.readValue() as! [Any?]) + case 136: + return MapPaddingDto.fromList(self.readValue() as! [Any?]) + case 137: + return MarkerAnchorDto.fromList(self.readValue() as! [Any?]) + case 138: + return MarkerDto.fromList(self.readValue() as! [Any?]) + case 139: + return MarkerOptionsDto.fromList(self.readValue() as! [Any?]) + case 140: + return PatternItemDto.fromList(self.readValue() as! [Any?]) + case 141: + return PolygonDto.fromList(self.readValue() as! [Any?]) + case 142: + return PolygonHoleDto.fromList(self.readValue() as! [Any?]) + case 143: + return PolygonOptionsDto.fromList(self.readValue() as! [Any?]) + case 144: + return PolylineDto.fromList(self.readValue() as! [Any?]) + case 145: + return PolylineOptionsDto.fromList(self.readValue() as! [Any?]) + case 146: + return StyleSpanDto.fromList(self.readValue() as! [Any?]) + case 147: + return StyleSpanStrokeStyleDto.fromList(self.readValue() as! [Any?]) + default: + return super.readValue(ofType: type) } } } @@ -1961,11 +1901,11 @@ private class MapViewApiCodecWriter: FlutterStandardWriter { private class MapViewApiCodecReaderWriter: FlutterStandardReaderWriter { override func reader(with data: Data) -> FlutterStandardReader { - MapViewApiCodecReader(data: data) + return MapViewApiCodecReader(data: data) } override func writer(with data: NSMutableData) -> FlutterStandardWriter { - MapViewApiCodecWriter(data: data) + return MapViewApiCodecWriter(data: data) } } @@ -2001,22 +1941,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 @@ -2079,38 +2010,30 @@ protocol MapViewApi { } /// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. -enum MapViewApiSetup { +class MapViewApiSetup { /// The codec used by MapViewApi. static var codec: FlutterStandardMessageCodec { MapViewApiCodec.shared } /// Sets up an instance of `MapViewApi` to handle messages through the `binaryMessenger`. static func setUp(binaryMessenger: FlutterBinaryMessenger, api: MapViewApi?) { - let awaitMapReadyChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let awaitMapReadyChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { awaitMapReadyChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) api.awaitMapReady(viewId: viewIdArg) { result in switch result { - case .success: - reply(wrapResult(nil)) - case let .failure(error): - reply(wrapError(error)) + case .success: + reply(wrapResult(nil)) + case .failure(let error): + reply(wrapError(error)) } } } } else { awaitMapReadyChannel.setMessageHandler(nil) } - let isMyLocationEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isMyLocationEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isMyLocationEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2124,12 +2047,8 @@ enum MapViewApiSetup { } else { isMyLocationEnabledChannel.setMessageHandler(nil) } - let setMyLocationEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setMyLocationEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setMyLocationEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2144,12 +2063,8 @@ enum MapViewApiSetup { } else { setMyLocationEnabledChannel.setMessageHandler(nil) } - let getMyLocationChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let getMyLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { getMyLocationChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2163,12 +2078,8 @@ enum MapViewApiSetup { } else { getMyLocationChannel.setMessageHandler(nil) } - let getMapTypeChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let getMapTypeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { getMapTypeChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2182,12 +2093,8 @@ enum MapViewApiSetup { } else { getMapTypeChannel.setMessageHandler(nil) } - let setMapTypeChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setMapTypeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setMapTypeChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2202,12 +2109,8 @@ enum MapViewApiSetup { } else { setMapTypeChannel.setMessageHandler(nil) } - let setMapStyleChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setMapStyleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setMapStyleChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2222,12 +2125,8 @@ enum MapViewApiSetup { } else { setMapStyleChannel.setMessageHandler(nil) } - let isNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isNavigationTripProgressBarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2241,12 +2140,8 @@ enum MapViewApiSetup { } else { isNavigationTripProgressBarEnabledChannel.setMessageHandler(nil) } - let setNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setNavigationTripProgressBarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2261,12 +2156,8 @@ enum MapViewApiSetup { } else { setNavigationTripProgressBarEnabledChannel.setMessageHandler(nil) } - let isNavigationHeaderEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isNavigationHeaderEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isNavigationHeaderEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2280,12 +2171,8 @@ enum MapViewApiSetup { } else { isNavigationHeaderEnabledChannel.setMessageHandler(nil) } - let setNavigationHeaderEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setNavigationHeaderEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setNavigationHeaderEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2300,12 +2187,8 @@ enum MapViewApiSetup { } else { setNavigationHeaderEnabledChannel.setMessageHandler(nil) } - let isNavigationFooterEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isNavigationFooterEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isNavigationFooterEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2319,12 +2202,8 @@ enum MapViewApiSetup { } else { isNavigationFooterEnabledChannel.setMessageHandler(nil) } - let setNavigationFooterEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setNavigationFooterEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setNavigationFooterEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2339,12 +2218,8 @@ enum MapViewApiSetup { } else { setNavigationFooterEnabledChannel.setMessageHandler(nil) } - let isRecenterButtonEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isRecenterButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isRecenterButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2358,12 +2233,8 @@ enum MapViewApiSetup { } else { isRecenterButtonEnabledChannel.setMessageHandler(nil) } - let setRecenterButtonEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setRecenterButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setRecenterButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2378,12 +2249,8 @@ enum MapViewApiSetup { } else { setRecenterButtonEnabledChannel.setMessageHandler(nil) } - let isSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isSpeedLimitIconEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2397,12 +2264,8 @@ enum MapViewApiSetup { } else { isSpeedLimitIconEnabledChannel.setMessageHandler(nil) } - let setSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setSpeedLimitIconEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2417,12 +2280,8 @@ enum MapViewApiSetup { } else { setSpeedLimitIconEnabledChannel.setMessageHandler(nil) } - let isSpeedometerEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isSpeedometerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isSpeedometerEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2436,12 +2295,8 @@ enum MapViewApiSetup { } else { isSpeedometerEnabledChannel.setMessageHandler(nil) } - let setSpeedometerEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setSpeedometerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setSpeedometerEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2456,12 +2311,8 @@ enum MapViewApiSetup { } else { setSpeedometerEnabledChannel.setMessageHandler(nil) } - let isTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isTrafficIncidentCardsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2475,12 +2326,8 @@ enum MapViewApiSetup { } else { isTrafficIncidentCardsEnabledChannel.setMessageHandler(nil) } - let setTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setTrafficIncidentCardsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2495,12 +2342,8 @@ enum MapViewApiSetup { } else { setTrafficIncidentCardsEnabledChannel.setMessageHandler(nil) } - let isNavigationUIEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isNavigationUIEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isNavigationUIEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2514,12 +2357,8 @@ enum MapViewApiSetup { } else { isNavigationUIEnabledChannel.setMessageHandler(nil) } - let setNavigationUIEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setNavigationUIEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setNavigationUIEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2534,12 +2373,8 @@ enum MapViewApiSetup { } else { setNavigationUIEnabledChannel.setMessageHandler(nil) } - let getCameraPositionChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let getCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { getCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2553,12 +2388,8 @@ enum MapViewApiSetup { } else { getCameraPositionChannel.setMessageHandler(nil) } - let getVisibleRegionChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let getVisibleRegionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { getVisibleRegionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2572,23 +2403,15 @@ enum MapViewApiSetup { } else { getVisibleRegionChannel.setMessageHandler(nil) } - let followMyLocationChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let followMyLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { followMyLocationChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) let perspectiveArg = CameraPerspectiveDto(rawValue: args[1] as! Int)! 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)) @@ -2597,212 +2420,146 @@ enum MapViewApiSetup { } else { followMyLocationChannel.setMessageHandler(nil) } - let animateCameraToCameraPositionChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let animateCameraToCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { animateCameraToCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) let cameraPositionArg = args[1] as! CameraPositionDto - let durationArg: Int64? = isNullish(args[2]) ? nil : - (args[2] is Int64? ? args[2] as! Int64? : Int64(args[2] as! Int32)) - api.animateCameraToCameraPosition( - viewId: viewIdArg, - cameraPosition: cameraPositionArg, - duration: durationArg - ) { result in + let durationArg: Int64? = isNullish(args[2]) ? nil : (args[2] is Int64? ? args[2] as! Int64? : Int64(args[2] as! Int32)) + api.animateCameraToCameraPosition(viewId: viewIdArg, cameraPosition: cameraPositionArg, duration: durationArg) { result in switch result { - case let .success(res): - reply(wrapResult(res)) - case let .failure(error): - reply(wrapError(error)) + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) } } } } else { animateCameraToCameraPositionChannel.setMessageHandler(nil) } - let animateCameraToLatLngChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let animateCameraToLatLngChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { animateCameraToLatLngChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) let pointArg = args[1] as! LatLngDto - let durationArg: Int64? = isNullish(args[2]) ? nil : - (args[2] is Int64? ? args[2] as! Int64? : Int64(args[2] as! Int32)) - api - .animateCameraToLatLng(viewId: viewIdArg, point: pointArg, - duration: durationArg) { result in - switch result { - case let .success(res): + let durationArg: Int64? = isNullish(args[2]) ? nil : (args[2] is Int64? ? args[2] as! Int64? : Int64(args[2] as! Int32)) + api.animateCameraToLatLng(viewId: viewIdArg, point: pointArg, duration: durationArg) { result in + switch result { + case .success(let res): reply(wrapResult(res)) - case let .failure(error): + case .failure(let error): reply(wrapError(error)) - } } + } } } else { animateCameraToLatLngChannel.setMessageHandler(nil) } - let animateCameraToLatLngBoundsChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let animateCameraToLatLngBoundsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { animateCameraToLatLngBoundsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) let boundsArg = args[1] as! LatLngBoundsDto let paddingArg = args[2] as! Double - let durationArg: Int64? = isNullish(args[3]) ? nil : - (args[3] is Int64? ? args[3] as! Int64? : Int64(args[3] as! Int32)) - api.animateCameraToLatLngBounds( - viewId: viewIdArg, - bounds: boundsArg, - padding: paddingArg, - duration: durationArg - ) { result in + let durationArg: Int64? = isNullish(args[3]) ? nil : (args[3] is Int64? ? args[3] as! Int64? : Int64(args[3] as! Int32)) + api.animateCameraToLatLngBounds(viewId: viewIdArg, bounds: boundsArg, padding: paddingArg, duration: durationArg) { result in switch result { - case let .success(res): - reply(wrapResult(res)) - case let .failure(error): - reply(wrapError(error)) + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) } } } } else { animateCameraToLatLngBoundsChannel.setMessageHandler(nil) } - let animateCameraToLatLngZoomChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let animateCameraToLatLngZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { animateCameraToLatLngZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) let pointArg = args[1] as! LatLngDto let zoomArg = args[2] as! Double - let durationArg: Int64? = isNullish(args[3]) ? nil : - (args[3] is Int64? ? args[3] as! Int64? : Int64(args[3] as! Int32)) - api.animateCameraToLatLngZoom( - viewId: viewIdArg, - point: pointArg, - zoom: zoomArg, - duration: durationArg - ) { result in + let durationArg: Int64? = isNullish(args[3]) ? nil : (args[3] is Int64? ? args[3] as! Int64? : Int64(args[3] as! Int32)) + api.animateCameraToLatLngZoom(viewId: viewIdArg, point: pointArg, zoom: zoomArg, duration: durationArg) { result in switch result { - case let .success(res): - reply(wrapResult(res)) - case let .failure(error): - reply(wrapError(error)) + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) } } } } else { animateCameraToLatLngZoomChannel.setMessageHandler(nil) } - let animateCameraByScrollChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let animateCameraByScrollChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { animateCameraByScrollChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) let scrollByDxArg = args[1] as! Double let scrollByDyArg = args[2] as! Double - let durationArg: Int64? = isNullish(args[3]) ? nil : - (args[3] is Int64? ? args[3] as! Int64? : Int64(args[3] as! Int32)) - api.animateCameraByScroll( - viewId: viewIdArg, - scrollByDx: scrollByDxArg, - scrollByDy: scrollByDyArg, - duration: durationArg - ) { result in + let durationArg: Int64? = isNullish(args[3]) ? nil : (args[3] is Int64? ? args[3] as! Int64? : Int64(args[3] as! Int32)) + api.animateCameraByScroll(viewId: viewIdArg, scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg, duration: durationArg) { result in switch result { - case let .success(res): - reply(wrapResult(res)) - case let .failure(error): - reply(wrapError(error)) + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) } } } } else { animateCameraByScrollChannel.setMessageHandler(nil) } - let animateCameraByZoomChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let animateCameraByZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { animateCameraByZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) let zoomByArg = args[1] as! Double let focusDxArg: Double? = nilOrValue(args[2]) let focusDyArg: Double? = nilOrValue(args[3]) - let durationArg: Int64? = isNullish(args[4]) ? nil : - (args[4] is Int64? ? args[4] as! Int64? : Int64(args[4] as! Int32)) - api.animateCameraByZoom( - viewId: viewIdArg, - zoomBy: zoomByArg, - focusDx: focusDxArg, - focusDy: focusDyArg, - duration: durationArg - ) { result in + let durationArg: Int64? = isNullish(args[4]) ? nil : (args[4] is Int64? ? args[4] as! Int64? : Int64(args[4] as! Int32)) + api.animateCameraByZoom(viewId: viewIdArg, zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg, duration: durationArg) { result in switch result { - case let .success(res): - reply(wrapResult(res)) - case let .failure(error): - reply(wrapError(error)) + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) } } } } else { animateCameraByZoomChannel.setMessageHandler(nil) } - let animateCameraToZoomChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let animateCameraToZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { animateCameraToZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) let zoomArg = args[1] as! Double - let durationArg: Int64? = isNullish(args[2]) ? nil : - (args[2] is Int64? ? args[2] as! Int64? : Int64(args[2] as! Int32)) + let durationArg: Int64? = isNullish(args[2]) ? nil : (args[2] is Int64? ? args[2] as! Int64? : Int64(args[2] as! Int32)) api.animateCameraToZoom(viewId: viewIdArg, zoom: zoomArg, duration: durationArg) { result in switch result { - case let .success(res): - reply(wrapResult(res)) - case let .failure(error): - reply(wrapError(error)) + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) } } } } else { animateCameraToZoomChannel.setMessageHandler(nil) } - let moveCameraToCameraPositionChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let moveCameraToCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { moveCameraToCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2817,12 +2574,8 @@ enum MapViewApiSetup { } else { moveCameraToCameraPositionChannel.setMessageHandler(nil) } - let moveCameraToLatLngChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let moveCameraToLatLngChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { moveCameraToLatLngChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2837,23 +2590,15 @@ enum MapViewApiSetup { } else { moveCameraToLatLngChannel.setMessageHandler(nil) } - let moveCameraToLatLngBoundsChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let moveCameraToLatLngBoundsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { moveCameraToLatLngBoundsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) 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)) @@ -2862,12 +2607,8 @@ enum MapViewApiSetup { } else { moveCameraToLatLngBoundsChannel.setMessageHandler(nil) } - let moveCameraToLatLngZoomChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let moveCameraToLatLngZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { moveCameraToLatLngZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2883,23 +2624,15 @@ enum MapViewApiSetup { } else { moveCameraToLatLngZoomChannel.setMessageHandler(nil) } - let moveCameraByScrollChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let moveCameraByScrollChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { moveCameraByScrollChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) 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)) @@ -2908,12 +2641,8 @@ enum MapViewApiSetup { } else { moveCameraByScrollChannel.setMessageHandler(nil) } - let moveCameraByZoomChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let moveCameraByZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { moveCameraByZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2921,12 +2650,7 @@ enum 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)) @@ -2935,12 +2659,8 @@ enum MapViewApiSetup { } else { moveCameraByZoomChannel.setMessageHandler(nil) } - let moveCameraToZoomChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let moveCameraToZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { moveCameraToZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2955,12 +2675,8 @@ enum MapViewApiSetup { } else { moveCameraToZoomChannel.setMessageHandler(nil) } - let showRouteOverviewChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let showRouteOverviewChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { showRouteOverviewChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2974,12 +2690,8 @@ enum MapViewApiSetup { } else { showRouteOverviewChannel.setMessageHandler(nil) } - let getMinZoomPreferenceChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let getMinZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { getMinZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2993,12 +2705,8 @@ enum MapViewApiSetup { } else { getMinZoomPreferenceChannel.setMessageHandler(nil) } - let getMaxZoomPreferenceChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let getMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { getMaxZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3012,12 +2720,8 @@ enum MapViewApiSetup { } else { getMaxZoomPreferenceChannel.setMessageHandler(nil) } - let resetMinMaxZoomPreferenceChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let resetMinMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { resetMinMaxZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3031,12 +2735,8 @@ enum MapViewApiSetup { } else { resetMinMaxZoomPreferenceChannel.setMessageHandler(nil) } - let setMinZoomPreferenceChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setMinZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setMinZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3051,12 +2751,8 @@ enum MapViewApiSetup { } else { setMinZoomPreferenceChannel.setMessageHandler(nil) } - let setMaxZoomPreferenceChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setMaxZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3071,12 +2767,8 @@ enum MapViewApiSetup { } else { setMaxZoomPreferenceChannel.setMessageHandler(nil) } - let setMyLocationButtonEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setMyLocationButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setMyLocationButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3091,21 +2783,14 @@ enum MapViewApiSetup { } else { setMyLocationButtonEnabledChannel.setMessageHandler(nil) } - let setConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) 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)) @@ -3114,12 +2799,8 @@ enum MapViewApiSetup { } else { setConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler(nil) } - let setZoomGesturesEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setZoomGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setZoomGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3134,12 +2815,8 @@ enum MapViewApiSetup { } else { setZoomGesturesEnabledChannel.setMessageHandler(nil) } - let setZoomControlsEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setZoomControlsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setZoomControlsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3154,12 +2831,8 @@ enum MapViewApiSetup { } else { setZoomControlsEnabledChannel.setMessageHandler(nil) } - let setCompassEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setCompassEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setCompassEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3174,12 +2847,8 @@ enum MapViewApiSetup { } else { setCompassEnabledChannel.setMessageHandler(nil) } - let setRotateGesturesEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setRotateGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setRotateGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3194,12 +2863,8 @@ enum MapViewApiSetup { } else { setRotateGesturesEnabledChannel.setMessageHandler(nil) } - let setScrollGesturesEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setScrollGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setScrollGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3214,12 +2879,8 @@ enum MapViewApiSetup { } else { setScrollGesturesEnabledChannel.setMessageHandler(nil) } - let setScrollGesturesDuringRotateOrZoomEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setScrollGesturesDuringRotateOrZoomEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setScrollGesturesDuringRotateOrZoomEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3234,12 +2895,8 @@ enum MapViewApiSetup { } else { setScrollGesturesDuringRotateOrZoomEnabledChannel.setMessageHandler(nil) } - let setTiltGesturesEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setTiltGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setTiltGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3254,12 +2911,8 @@ enum MapViewApiSetup { } else { setTiltGesturesEnabledChannel.setMessageHandler(nil) } - let setMapToolbarEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setMapToolbarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setMapToolbarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3274,12 +2927,8 @@ enum MapViewApiSetup { } else { setMapToolbarEnabledChannel.setMessageHandler(nil) } - let setTrafficEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setTrafficEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setTrafficEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3294,12 +2943,8 @@ enum MapViewApiSetup { } else { setTrafficEnabledChannel.setMessageHandler(nil) } - let isMyLocationButtonEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isMyLocationButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isMyLocationButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3313,12 +2958,8 @@ enum MapViewApiSetup { } else { isMyLocationButtonEnabledChannel.setMessageHandler(nil) } - let isConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3332,12 +2973,8 @@ enum MapViewApiSetup { } else { isConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler(nil) } - let isZoomGesturesEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isZoomGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isZoomGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3351,12 +2988,8 @@ enum MapViewApiSetup { } else { isZoomGesturesEnabledChannel.setMessageHandler(nil) } - let isZoomControlsEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isZoomControlsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isZoomControlsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3370,12 +3003,8 @@ enum MapViewApiSetup { } else { isZoomControlsEnabledChannel.setMessageHandler(nil) } - let isCompassEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isCompassEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isCompassEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3389,12 +3018,8 @@ enum MapViewApiSetup { } else { isCompassEnabledChannel.setMessageHandler(nil) } - let isRotateGesturesEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isRotateGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isRotateGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3408,12 +3033,8 @@ enum MapViewApiSetup { } else { isRotateGesturesEnabledChannel.setMessageHandler(nil) } - let isScrollGesturesEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isScrollGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isScrollGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3427,12 +3048,8 @@ enum MapViewApiSetup { } else { isScrollGesturesEnabledChannel.setMessageHandler(nil) } - let isScrollGesturesEnabledDuringRotateOrZoomChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isScrollGesturesEnabledDuringRotateOrZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isScrollGesturesEnabledDuringRotateOrZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3446,12 +3063,8 @@ enum MapViewApiSetup { } else { isScrollGesturesEnabledDuringRotateOrZoomChannel.setMessageHandler(nil) } - let isTiltGesturesEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isTiltGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isTiltGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3465,12 +3078,8 @@ enum MapViewApiSetup { } else { isTiltGesturesEnabledChannel.setMessageHandler(nil) } - let isMapToolbarEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isMapToolbarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isMapToolbarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3484,12 +3093,8 @@ enum MapViewApiSetup { } else { isMapToolbarEnabledChannel.setMessageHandler(nil) } - let isTrafficEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isTrafficEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isTrafficEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3503,12 +3108,8 @@ enum MapViewApiSetup { } else { isTrafficEnabledChannel.setMessageHandler(nil) } - let getMarkersChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let getMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { getMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3522,12 +3123,8 @@ enum MapViewApiSetup { } else { getMarkersChannel.setMessageHandler(nil) } - let addMarkersChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let addMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { addMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3542,12 +3139,8 @@ enum MapViewApiSetup { } else { addMarkersChannel.setMessageHandler(nil) } - let updateMarkersChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let updateMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { updateMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3562,12 +3155,8 @@ enum MapViewApiSetup { } else { updateMarkersChannel.setMessageHandler(nil) } - let removeMarkersChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let removeMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { removeMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3582,12 +3171,8 @@ enum MapViewApiSetup { } else { removeMarkersChannel.setMessageHandler(nil) } - let clearMarkersChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let clearMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { clearMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3601,12 +3186,8 @@ enum MapViewApiSetup { } else { clearMarkersChannel.setMessageHandler(nil) } - let clearChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let clearChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { clearChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3620,12 +3201,8 @@ enum MapViewApiSetup { } else { clearChannel.setMessageHandler(nil) } - let getPolygonsChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let getPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { getPolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3639,12 +3216,8 @@ enum MapViewApiSetup { } else { getPolygonsChannel.setMessageHandler(nil) } - let addPolygonsChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let addPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { addPolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3659,12 +3232,8 @@ enum MapViewApiSetup { } else { addPolygonsChannel.setMessageHandler(nil) } - let updatePolygonsChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let updatePolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { updatePolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3679,12 +3248,8 @@ enum MapViewApiSetup { } else { updatePolygonsChannel.setMessageHandler(nil) } - let removePolygonsChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let removePolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { removePolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3699,12 +3264,8 @@ enum MapViewApiSetup { } else { removePolygonsChannel.setMessageHandler(nil) } - let clearPolygonsChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let clearPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { clearPolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3718,12 +3279,8 @@ enum MapViewApiSetup { } else { clearPolygonsChannel.setMessageHandler(nil) } - let getPolylinesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let getPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { getPolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3737,12 +3294,8 @@ enum MapViewApiSetup { } else { getPolylinesChannel.setMessageHandler(nil) } - let addPolylinesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let addPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { addPolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3757,12 +3310,8 @@ enum MapViewApiSetup { } else { addPolylinesChannel.setMessageHandler(nil) } - let updatePolylinesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let updatePolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { updatePolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3777,12 +3326,8 @@ enum MapViewApiSetup { } else { updatePolylinesChannel.setMessageHandler(nil) } - let removePolylinesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let removePolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { removePolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3797,12 +3342,8 @@ enum MapViewApiSetup { } else { removePolylinesChannel.setMessageHandler(nil) } - let clearPolylinesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let clearPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { clearPolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3816,12 +3357,8 @@ enum MapViewApiSetup { } else { clearPolylinesChannel.setMessageHandler(nil) } - let getCirclesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let getCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { getCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3835,12 +3372,8 @@ enum MapViewApiSetup { } else { getCirclesChannel.setMessageHandler(nil) } - let addCirclesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let addCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { addCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3855,12 +3388,8 @@ enum MapViewApiSetup { } else { addCirclesChannel.setMessageHandler(nil) } - let updateCirclesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let updateCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { updateCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3875,12 +3404,8 @@ enum MapViewApiSetup { } else { updateCirclesChannel.setMessageHandler(nil) } - let removeCirclesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let removeCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { removeCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3895,12 +3420,8 @@ enum MapViewApiSetup { } else { removeCirclesChannel.setMessageHandler(nil) } - let clearCirclesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let clearCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { clearCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3914,12 +3435,8 @@ enum MapViewApiSetup { } else { clearCirclesChannel.setMessageHandler(nil) } - let registerOnCameraChangedListenerChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.registerOnCameraChangedListener", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let registerOnCameraChangedListenerChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.registerOnCameraChangedListener", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { registerOnCameraChangedListenerChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3933,12 +3450,8 @@ enum MapViewApiSetup { } else { registerOnCameraChangedListenerChannel.setMessageHandler(nil) } - let setPaddingChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setPaddingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setPaddingChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3953,12 +3466,8 @@ enum MapViewApiSetup { } else { setPaddingChannel.setMessageHandler(nil) } - let getPaddingChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let getPaddingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { getPaddingChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3974,16 +3483,15 @@ enum MapViewApiSetup { } } } - private class ImageRegistryApiCodecReader: FlutterStandardReader { override func readValue(ofType type: UInt8) -> Any? { switch type { - case 128: - return ImageDescriptorDto.fromList(readValue() as! [Any?]) - case 129: - return ImageDescriptorDto.fromList(readValue() as! [Any?]) - default: - return super.readValue(ofType: type) + case 128: + return ImageDescriptorDto.fromList(self.readValue() as! [Any?]) + case 129: + return ImageDescriptorDto.fromList(self.readValue() as! [Any?]) + default: + return super.readValue(ofType: type) } } } @@ -4004,11 +3512,11 @@ private class ImageRegistryApiCodecWriter: FlutterStandardWriter { private class ImageRegistryApiCodecReaderWriter: FlutterStandardReaderWriter { override func reader(with data: Data) -> FlutterStandardReader { - ImageRegistryApiCodecReader(data: data) + return ImageRegistryApiCodecReader(data: data) } override func writer(with data: NSMutableData) -> FlutterStandardWriter { - ImageRegistryApiCodecWriter(data: data) + return ImageRegistryApiCodecWriter(data: data) } } @@ -4018,26 +3526,20 @@ class ImageRegistryApiCodec: FlutterStandardMessageCodec { /// 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() throws } /// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. -enum ImageRegistryApiSetup { +class ImageRegistryApiSetup { /// The codec used by ImageRegistryApi. static var codec: FlutterStandardMessageCodec { ImageRegistryApiCodec.shared } /// Sets up an instance of `ImageRegistryApi` to handle messages through the `binaryMessenger`. static func setUp(binaryMessenger: FlutterBinaryMessenger, api: ImageRegistryApi?) { - let registerBitmapImageChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let registerBitmapImageChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { registerBitmapImageChannel.setMessageHandler { message, reply in let args = message as! [Any?] let imageIdArg = args[0] as! String @@ -4046,13 +3548,7 @@ enum 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)) @@ -4061,12 +3557,8 @@ enum ImageRegistryApiSetup { } else { registerBitmapImageChannel.setMessageHandler(nil) } - let unregisterImageChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let unregisterImageChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { unregisterImageChannel.setMessageHandler { message, reply in let args = message as! [Any?] let imageDescriptorArg = args[0] as! ImageDescriptorDto @@ -4080,12 +3572,8 @@ enum ImageRegistryApiSetup { } else { unregisterImageChannel.setMessageHandler(nil) } - let getRegisteredImagesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let getRegisteredImagesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { getRegisteredImagesChannel.setMessageHandler { _, reply in do { let result = try api.getRegisteredImages() @@ -4097,12 +3585,8 @@ enum ImageRegistryApiSetup { } else { getRegisteredImagesChannel.setMessageHandler(nil) } - let clearRegisteredImagesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let clearRegisteredImagesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { clearRegisteredImagesChannel.setMessageHandler { _, reply in do { try api.clearRegisteredImages() @@ -4116,16 +3600,15 @@ enum ImageRegistryApiSetup { } } } - private class ViewEventApiCodecReader: FlutterStandardReader { override func readValue(ofType type: UInt8) -> Any? { switch type { - case 128: - return CameraPositionDto.fromList(readValue() as! [Any?]) - case 129: - return LatLngDto.fromList(readValue() as! [Any?]) - default: - return super.readValue(ofType: type) + case 128: + return CameraPositionDto.fromList(self.readValue() as! [Any?]) + case 129: + return LatLngDto.fromList(self.readValue() as! [Any?]) + default: + return super.readValue(ofType: type) } } } @@ -4146,11 +3629,11 @@ private class ViewEventApiCodecWriter: FlutterStandardWriter { private class ViewEventApiCodecReaderWriter: FlutterStandardReaderWriter { override func reader(with data: Data) -> FlutterStandardReader { - ViewEventApiCodecReader(data: data) + return ViewEventApiCodecReader(data: data) } override func writer(with data: NSMutableData) -> FlutterStandardWriter { - ViewEventApiCodecWriter(data: data) + return ViewEventApiCodecWriter(data: data) } } @@ -4160,385 +3643,281 @@ class ViewEventApiCodec: FlutterStandardMessageCodec { /// 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 onNavigationUIEnabledChanged(viewId viewIdArg: Int64, - navigationUIEnabled navigationUIEnabledArg: Bool, - completion: @escaping (Result) -> Void) - func onMyLocationClicked(viewId viewIdArg: Int64, - completion: @escaping (Result) -> Void) - func onMyLocationButtonClicked(viewId viewIdArg: Int64, - 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 onNavigationUIEnabledChanged(viewId viewIdArg: Int64, navigationUIEnabled navigationUIEnabledArg: Bool, completion: @escaping (Result) -> Void) + func onMyLocationClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) + func onMyLocationButtonClicked(viewId viewIdArg: Int64, 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 - init(binaryMessenger: FlutterBinaryMessenger) { + init(binaryMessenger: FlutterBinaryMessenger){ self.binaryMessenger = binaryMessenger } - var codec: FlutterStandardMessageCodec { - ViewEventApiCodec.shared + return ViewEventApiCodec.shared } - - func onMapClickEvent(viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, - completion: @escaping (Result) -> Void) { - let channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent" - 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" + 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))) + completion(.failure(createConnectionError(withChannelName:channelName))) return } - if listResponse.count > 1 { + if (listResponse.count > 1) { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))) + completion(.failure(FlutterError(code: code, message: message, details: details))); } else { - completion(.success(())) + completion(.success(Void())) } } } - - func onMapLongClickEvent(viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, - completion: @escaping (Result) -> Void) { - let channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent" - 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" + 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))) + completion(.failure(createConnectionError(withChannelName:channelName))) return } - if listResponse.count > 1 { + if (listResponse.count > 1) { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))) + completion(.failure(FlutterError(code: code, message: message, details: details))); } else { - completion(.success(())) + completion(.success(Void())) } } } - - func onRecenterButtonClicked(viewId viewIdArg: Int64, - completion: @escaping (Result) -> Void) { - let channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked" - 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" + 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))) + completion(.failure(createConnectionError(withChannelName:channelName))) return } - if listResponse.count > 1 { + if (listResponse.count > 1) { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))) + completion(.failure(FlutterError(code: code, message: message, details: details))); } else { - completion(.success(())) + completion(.success(Void())) } } } - - func onMarkerEvent(viewId viewIdArg: Int64, markerId markerIdArg: String, - eventType eventTypeArg: MarkerEventTypeDto, - completion: @escaping (Result) -> Void) { - let channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent" - 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" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, markerIdArg, eventTypeArg.rawValue] as [Any?]) { response in guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) + completion(.failure(createConnectionError(withChannelName:channelName))) return } - if listResponse.count > 1 { + if (listResponse.count > 1) { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))) + completion(.failure(FlutterError(code: code, message: message, details: details))); } else { - completion(.success(())) + completion(.success(Void())) } } } - - func onMarkerDragEvent(viewId viewIdArg: Int64, markerId markerIdArg: String, - eventType eventTypeArg: MarkerDragEventTypeDto, - position positionArg: LatLngDto, - completion: @escaping (Result) -> Void) { - let channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent" - let channel = FlutterBasicMessageChannel( - name: channelName, - binaryMessenger: binaryMessenger, - codec: codec - ) - channel - .sendMessage([viewIdArg, markerIdArg, eventTypeArg.rawValue, - positionArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))) - } else { - completion(.success(())) - } - } - } - - func onPolygonClicked(viewId viewIdArg: Int64, polygonId polygonIdArg: String, - completion: @escaping (Result) -> Void) { - let channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked" - 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" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([viewIdArg, markerIdArg, eventTypeArg.rawValue, positionArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName:channelName))) + return + } + if (listResponse.count > 1) { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(FlutterError(code: code, message: message, details: details))); + } else { + completion(.success(Void())) + } + } + } + func onPolygonClicked(viewId viewIdArg: Int64, polygonId polygonIdArg: String, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked" + 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))) + completion(.failure(createConnectionError(withChannelName:channelName))) return } - if listResponse.count > 1 { + if (listResponse.count > 1) { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))) + completion(.failure(FlutterError(code: code, message: message, details: details))); } else { - completion(.success(())) + completion(.success(Void())) } } } - - func onPolylineClicked(viewId viewIdArg: Int64, polylineId polylineIdArg: String, - completion: @escaping (Result) -> Void) { - let channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked" - 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" + 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))) + completion(.failure(createConnectionError(withChannelName:channelName))) return } - if listResponse.count > 1 { + if (listResponse.count > 1) { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))) + completion(.failure(FlutterError(code: code, message: message, details: details))); } else { - completion(.success(())) + completion(.success(Void())) } } } - - func onCircleClicked(viewId viewIdArg: Int64, circleId circleIdArg: String, - completion: @escaping (Result) -> Void) { - let channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked" - 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" + 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))) + completion(.failure(createConnectionError(withChannelName:channelName))) return } - if listResponse.count > 1 { + if (listResponse.count > 1) { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))) + completion(.failure(FlutterError(code: code, message: message, details: details))); } else { - completion(.success(())) + completion(.success(Void())) } } } - - func onNavigationUIEnabledChanged(viewId viewIdArg: Int64, - navigationUIEnabled navigationUIEnabledArg: Bool, - completion: @escaping (Result) -> Void) { - let channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged" - 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" + 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))) + completion(.failure(createConnectionError(withChannelName:channelName))) return } - if listResponse.count > 1 { + if (listResponse.count > 1) { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))) + completion(.failure(FlutterError(code: code, message: message, details: details))); } else { - completion(.success(())) + completion(.success(Void())) } } } - - func onMyLocationClicked(viewId viewIdArg: Int64, - completion: @escaping (Result) -> Void) { - let channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked" - 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" + 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))) + completion(.failure(createConnectionError(withChannelName:channelName))) return } - if listResponse.count > 1 { + if (listResponse.count > 1) { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))) + completion(.failure(FlutterError(code: code, message: message, details: details))); } else { - completion(.success(())) + completion(.success(Void())) } } } - - func onMyLocationButtonClicked(viewId viewIdArg: Int64, - completion: @escaping (Result) -> Void) { - let channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked" - 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" + 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))) + completion(.failure(createConnectionError(withChannelName:channelName))) return } - if listResponse.count > 1 { + if (listResponse.count > 1) { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))) + completion(.failure(FlutterError(code: code, message: message, details: details))); } else { - completion(.success(())) + completion(.success(Void())) } } } - - func onCameraChanged(viewId viewIdArg: Int64, eventType eventTypeArg: CameraEventTypeDto, - position positionArg: CameraPositionDto, - completion: @escaping (Result) -> Void) { - let channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged" - 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" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, eventTypeArg.rawValue, positionArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) + completion(.failure(createConnectionError(withChannelName:channelName))) return } - if listResponse.count > 1 { + if (listResponse.count > 1) { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))) + completion(.failure(FlutterError(code: code, message: message, details: details))); } else { - completion(.success(())) + completion(.success(Void())) } } } } - private class NavigationSessionApiCodecReader: FlutterStandardReader { override func readValue(ofType type: UInt8) -> Any? { switch type { - case 128: - return DestinationsDto.fromList(readValue() as! [Any?]) - case 129: - return LatLngDto.fromList(readValue() as! [Any?]) - case 130: - return LatLngDto.fromList(readValue() as! [Any?]) - case 131: - return NavigationAudioGuidanceSettingsDto.fromList(readValue() as! [Any?]) - case 132: - return NavigationDisplayOptionsDto.fromList(readValue() as! [Any?]) - case 133: - return NavigationTimeAndDistanceDto.fromList(readValue() as! [Any?]) - case 134: - return NavigationWaypointDto.fromList(readValue() as! [Any?]) - case 135: - return NavigationWaypointDto.fromList(readValue() as! [Any?]) - case 136: - return RouteSegmentDto.fromList(readValue() as! [Any?]) - case 137: - return RouteSegmentDto.fromList(readValue() as! [Any?]) - case 138: - return RouteSegmentTrafficDataDto.fromList(readValue() as! [Any?]) - case 139: - return RouteSegmentTrafficDataRoadStretchRenderingDataDto.fromList(readValue() as! [Any?]) - case 140: - return RouteTokenOptionsDto.fromList(readValue() as! [Any?]) - case 141: - return RoutingOptionsDto.fromList(readValue() as! [Any?]) - case 142: - return SimulationOptionsDto.fromList(readValue() as! [Any?]) - case 143: - return SpeedAlertOptionsDto.fromList(readValue() as! [Any?]) - default: - return super.readValue(ofType: type) + case 128: + return DestinationsDto.fromList(self.readValue() as! [Any?]) + case 129: + return LatLngDto.fromList(self.readValue() as! [Any?]) + case 130: + return LatLngDto.fromList(self.readValue() as! [Any?]) + case 131: + return NavigationAudioGuidanceSettingsDto.fromList(self.readValue() as! [Any?]) + case 132: + return NavigationDisplayOptionsDto.fromList(self.readValue() as! [Any?]) + case 133: + return NavigationTimeAndDistanceDto.fromList(self.readValue() as! [Any?]) + case 134: + return NavigationWaypointDto.fromList(self.readValue() as! [Any?]) + case 135: + return NavigationWaypointDto.fromList(self.readValue() as! [Any?]) + case 136: + return RouteSegmentDto.fromList(self.readValue() as! [Any?]) + case 137: + return RouteSegmentDto.fromList(self.readValue() as! [Any?]) + case 138: + return RouteSegmentTrafficDataDto.fromList(self.readValue() as! [Any?]) + case 139: + return RouteSegmentTrafficDataRoadStretchRenderingDataDto.fromList(self.readValue() as! [Any?]) + case 140: + return RouteTokenOptionsDto.fromList(self.readValue() as! [Any?]) + case 141: + return RoutingOptionsDto.fromList(self.readValue() as! [Any?]) + case 142: + return SimulationOptionsDto.fromList(self.readValue() as! [Any?]) + case 143: + return SpeedAlertOptionsDto.fromList(self.readValue() as! [Any?]) + default: + return super.readValue(ofType: type) } } } @@ -4601,29 +3980,25 @@ private class NavigationSessionApiCodecWriter: FlutterStandardWriter { private class NavigationSessionApiCodecReaderWriter: FlutterStandardReaderWriter { override func reader(with data: Data) -> FlutterStandardReader { - NavigationSessionApiCodecReader(data: data) + return NavigationSessionApiCodecReader(data: data) } override func writer(with data: NSMutableData) -> FlutterStandardWriter { - NavigationSessionApiCodecWriter(data: data) + return NavigationSessionApiCodecWriter(data: data) } } class NavigationSessionApiCodec: FlutterStandardMessageCodec { - static let shared = - NavigationSessionApiCodec(readerWriter: NavigationSessionApiCodecReaderWriter()) + static let shared = NavigationSessionApiCodec(readerWriter: NavigationSessionApiCodecReaderWriter()) } /// Generated protocol from Pigeon that represents a handler of messages from Flutter. protocol NavigationSessionApi { /// General. - func createNavigationSession(abnormalTerminationReportingEnabled: Bool, - completion: @escaping (Result) -> Void) + func createNavigationSession(abnormalTerminationReportingEnabled: Bool, behavior: TaskRemovedBehaviorDto, completion: @escaping (Result) -> Void) func isInitialized() throws -> Bool func cleanup() throws - func showTermsAndConditionsDialog(title: String, companyName: String, - shouldOnlyShowDriverAwarenessDisclaimer: Bool, - completion: @escaping (Result) -> Void) + func showTermsAndConditionsDialog(title: String, companyName: String, shouldOnlyShowDriverAwarenessDisclaimer: Bool, completion: @escaping (Result) -> Void) func areTermsAccepted() throws -> Bool func resetTermsAccepted() throws func getNavSDKVersion() throws -> String @@ -4631,8 +4006,7 @@ protocol NavigationSessionApi { 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() throws -> NavigationWaypointDto? func getCurrentTimeAndDistance() throws -> NavigationTimeAndDistanceDto @@ -4646,23 +4020,9 @@ 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< - RouteStatusDto, - Error - >) -> Void) - func simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(waypoints: [ - NavigationWaypointDto - ], - routingOptions: RoutingOptionsDto, - simulationOptions: SimulationOptionsDto, - completion: @escaping (Result< - RouteStatusDto, - Error - >) -> 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 /// Simulation (iOS only) @@ -4673,48 +4033,36 @@ protocol NavigationSessionApi { /// Enable Turn-by-Turn navigation events. func enableTurnByTurnNavigationEvents(numNextStepsToPreview: Int64?) 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`. -enum NavigationSessionApiSetup { +class NavigationSessionApiSetup { /// The codec used by NavigationSessionApi. static var codec: FlutterStandardMessageCodec { NavigationSessionApiCodec.shared } - /// Sets up an instance of `NavigationSessionApi` to handle messages through the - /// `binaryMessenger`. + /// Sets up an instance of `NavigationSessionApi` to handle messages through the `binaryMessenger`. static func setUp(binaryMessenger: FlutterBinaryMessenger, api: NavigationSessionApi?) { /// General. - let createNavigationSessionChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let createNavigationSessionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { createNavigationSessionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let abnormalTerminationReportingEnabledArg = args[0] as! Bool - api - .createNavigationSession( - abnormalTerminationReportingEnabled: abnormalTerminationReportingEnabledArg - ) { result in - switch result { + let behaviorArg = TaskRemovedBehaviorDto(rawValue: args[1] as! Int)! + api.createNavigationSession(abnormalTerminationReportingEnabled: abnormalTerminationReportingEnabledArg, behavior: behaviorArg) { result in + switch result { case .success: reply(wrapResult(nil)) - case let .failure(error): + case .failure(let error): reply(wrapError(error)) - } } + } } } else { createNavigationSessionChannel.setMessageHandler(nil) } - let isInitializedChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isInitializedChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isInitializedChannel.setMessageHandler { _, reply in do { let result = try api.isInitialized() @@ -4726,12 +4074,8 @@ enum NavigationSessionApiSetup { } else { isInitializedChannel.setMessageHandler(nil) } - let cleanupChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let cleanupChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { cleanupChannel.setMessageHandler { _, reply in do { try api.cleanup() @@ -4743,39 +4087,27 @@ enum NavigationSessionApiSetup { } else { cleanupChannel.setMessageHandler(nil) } - let showTermsAndConditionsDialogChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let showTermsAndConditionsDialogChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { showTermsAndConditionsDialogChannel.setMessageHandler { message, reply in let args = message as! [Any?] let titleArg = args[0] as! String let companyNameArg = args[1] as! String let shouldOnlyShowDriverAwarenessDisclaimerArg = args[2] as! Bool - api.showTermsAndConditionsDialog( - title: titleArg, - companyName: companyNameArg, - shouldOnlyShowDriverAwarenessDisclaimer: shouldOnlyShowDriverAwarenessDisclaimerArg - ) { result in + api.showTermsAndConditionsDialog(title: titleArg, companyName: companyNameArg, shouldOnlyShowDriverAwarenessDisclaimer: shouldOnlyShowDriverAwarenessDisclaimerArg) { result in switch result { - case let .success(res): - reply(wrapResult(res)) - case let .failure(error): - reply(wrapError(error)) + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) } } } } else { showTermsAndConditionsDialogChannel.setMessageHandler(nil) } - let areTermsAcceptedChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let areTermsAcceptedChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { areTermsAcceptedChannel.setMessageHandler { _, reply in do { let result = try api.areTermsAccepted() @@ -4787,12 +4119,8 @@ enum NavigationSessionApiSetup { } else { areTermsAcceptedChannel.setMessageHandler(nil) } - let resetTermsAcceptedChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let resetTermsAcceptedChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { resetTermsAcceptedChannel.setMessageHandler { _, reply in do { try api.resetTermsAccepted() @@ -4804,12 +4132,8 @@ enum NavigationSessionApiSetup { } else { resetTermsAcceptedChannel.setMessageHandler(nil) } - let getNavSDKVersionChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let getNavSDKVersionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { getNavSDKVersionChannel.setMessageHandler { _, reply in do { let result = try api.getNavSDKVersion() @@ -4822,12 +4146,8 @@ enum NavigationSessionApiSetup { getNavSDKVersionChannel.setMessageHandler(nil) } /// Navigation. - let isGuidanceRunningChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isGuidanceRunningChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isGuidanceRunningChannel.setMessageHandler { _, reply in do { let result = try api.isGuidanceRunning() @@ -4839,12 +4159,8 @@ enum NavigationSessionApiSetup { } else { isGuidanceRunningChannel.setMessageHandler(nil) } - let startGuidanceChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let startGuidanceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { startGuidanceChannel.setMessageHandler { _, reply in do { try api.startGuidance() @@ -4856,12 +4172,8 @@ enum NavigationSessionApiSetup { } else { startGuidanceChannel.setMessageHandler(nil) } - let stopGuidanceChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let stopGuidanceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { stopGuidanceChannel.setMessageHandler { _, reply in do { try api.stopGuidance() @@ -4873,33 +4185,25 @@ enum NavigationSessionApiSetup { } else { stopGuidanceChannel.setMessageHandler(nil) } - let setDestinationsChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setDestinationsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setDestinationsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let destinationsArg = args[0] as! DestinationsDto api.setDestinations(destinations: destinationsArg) { result in switch result { - case let .success(res): - reply(wrapResult(res.rawValue)) - case let .failure(error): - reply(wrapError(error)) + case .success(let res): + reply(wrapResult(res.rawValue)) + case .failure(let error): + reply(wrapError(error)) } } } } else { setDestinationsChannel.setMessageHandler(nil) } - let clearDestinationsChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let clearDestinationsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { clearDestinationsChannel.setMessageHandler { _, reply in do { try api.clearDestinations() @@ -4911,12 +4215,8 @@ enum NavigationSessionApiSetup { } else { clearDestinationsChannel.setMessageHandler(nil) } - let continueToNextDestinationChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let continueToNextDestinationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { continueToNextDestinationChannel.setMessageHandler { _, reply in do { let result = try api.continueToNextDestination() @@ -4928,12 +4228,8 @@ enum NavigationSessionApiSetup { } else { continueToNextDestinationChannel.setMessageHandler(nil) } - let getCurrentTimeAndDistanceChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let getCurrentTimeAndDistanceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { getCurrentTimeAndDistanceChannel.setMessageHandler { _, reply in do { let result = try api.getCurrentTimeAndDistance() @@ -4945,12 +4241,8 @@ enum NavigationSessionApiSetup { } else { getCurrentTimeAndDistanceChannel.setMessageHandler(nil) } - let setAudioGuidanceChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setAudioGuidanceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setAudioGuidanceChannel.setMessageHandler { message, reply in let args = message as! [Any?] let settingsArg = args[0] as! NavigationAudioGuidanceSettingsDto @@ -4964,12 +4256,8 @@ enum NavigationSessionApiSetup { } else { setAudioGuidanceChannel.setMessageHandler(nil) } - let setSpeedAlertOptionsChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setSpeedAlertOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setSpeedAlertOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let optionsArg = args[0] as! SpeedAlertOptionsDto @@ -4983,12 +4271,8 @@ enum NavigationSessionApiSetup { } else { setSpeedAlertOptionsChannel.setMessageHandler(nil) } - let getRouteSegmentsChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let getRouteSegmentsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { getRouteSegmentsChannel.setMessageHandler { _, reply in do { let result = try api.getRouteSegments() @@ -5000,12 +4284,8 @@ enum NavigationSessionApiSetup { } else { getRouteSegmentsChannel.setMessageHandler(nil) } - let getTraveledRouteChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let getTraveledRouteChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { getTraveledRouteChannel.setMessageHandler { _, reply in do { let result = try api.getTraveledRoute() @@ -5017,12 +4297,8 @@ enum NavigationSessionApiSetup { } else { getTraveledRouteChannel.setMessageHandler(nil) } - let getCurrentRouteSegmentChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let getCurrentRouteSegmentChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { getCurrentRouteSegmentChannel.setMessageHandler { _, reply in do { let result = try api.getCurrentRouteSegment() @@ -5035,12 +4311,8 @@ enum NavigationSessionApiSetup { getCurrentRouteSegmentChannel.setMessageHandler(nil) } /// Simulation - let setUserLocationChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setUserLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setUserLocationChannel.setMessageHandler { message, reply in let args = message as! [Any?] let locationArg = args[0] as! LatLngDto @@ -5054,12 +4326,8 @@ enum NavigationSessionApiSetup { } else { setUserLocationChannel.setMessageHandler(nil) } - let removeUserLocationChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let removeUserLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { removeUserLocationChannel.setMessageHandler { _, reply in do { try api.removeUserLocation() @@ -5071,12 +4339,8 @@ enum NavigationSessionApiSetup { } else { removeUserLocationChannel.setMessageHandler(nil) } - let simulateLocationsAlongExistingRouteChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let simulateLocationsAlongExistingRouteChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { simulateLocationsAlongExistingRouteChannel.setMessageHandler { _, reply in do { try api.simulateLocationsAlongExistingRoute() @@ -5088,12 +4352,8 @@ enum NavigationSessionApiSetup { } else { simulateLocationsAlongExistingRouteChannel.setMessageHandler(nil) } - let simulateLocationsAlongExistingRouteWithOptionsChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let simulateLocationsAlongExistingRouteWithOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { simulateLocationsAlongExistingRouteWithOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let optionsArg = args[0] as! SimulationOptionsDto @@ -5107,87 +4367,62 @@ enum NavigationSessionApiSetup { } else { simulateLocationsAlongExistingRouteWithOptionsChannel.setMessageHandler(nil) } - let simulateLocationsAlongNewRouteChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let simulateLocationsAlongNewRouteChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { simulateLocationsAlongNewRouteChannel.setMessageHandler { message, reply in let args = message as! [Any?] let waypointsArg = args[0] as! [NavigationWaypointDto] api.simulateLocationsAlongNewRoute(waypoints: waypointsArg) { result in switch result { - case let .success(res): - reply(wrapResult(res.rawValue)) - case let .failure(error): - reply(wrapError(error)) + case .success(let res): + reply(wrapResult(res.rawValue)) + case .failure(let error): + reply(wrapError(error)) } } } } else { simulateLocationsAlongNewRouteChannel.setMessageHandler(nil) } - let simulateLocationsAlongNewRouteWithRoutingOptionsChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let simulateLocationsAlongNewRouteWithRoutingOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions", 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 let .success(res): - reply(wrapResult(res.rawValue)) - case let .failure(error): - reply(wrapError(error)) + case .success(let res): + reply(wrapResult(res.rawValue)) + case .failure(let error): + reply(wrapError(error)) } } } } else { simulateLocationsAlongNewRouteWithRoutingOptionsChannel.setMessageHandler(nil) } - let simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel = - FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { - 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 - switch result { - case let .success(res): + let simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + 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 + switch result { + case .success(let res): reply(wrapResult(res.rawValue)) - case let .failure(error): + case .failure(let error): reply(wrapError(error)) - } } } + } } else { simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel.setMessageHandler(nil) } - let pauseSimulationChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let pauseSimulationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { pauseSimulationChannel.setMessageHandler { _, reply in do { try api.pauseSimulation() @@ -5199,12 +4434,8 @@ enum NavigationSessionApiSetup { } else { pauseSimulationChannel.setMessageHandler(nil) } - let resumeSimulationChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let resumeSimulationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { resumeSimulationChannel.setMessageHandler { _, reply in do { try api.resumeSimulation() @@ -5217,12 +4448,8 @@ enum NavigationSessionApiSetup { resumeSimulationChannel.setMessageHandler(nil) } /// Simulation (iOS only) - let allowBackgroundLocationUpdatesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let allowBackgroundLocationUpdatesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { allowBackgroundLocationUpdatesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let allowArg = args[0] as! Bool @@ -5237,12 +4464,8 @@ enum NavigationSessionApiSetup { allowBackgroundLocationUpdatesChannel.setMessageHandler(nil) } /// Road snapped location updates. - let enableRoadSnappedLocationUpdatesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let enableRoadSnappedLocationUpdatesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { enableRoadSnappedLocationUpdatesChannel.setMessageHandler { _, reply in do { try api.enableRoadSnappedLocationUpdates() @@ -5254,12 +4477,8 @@ enum NavigationSessionApiSetup { } else { enableRoadSnappedLocationUpdatesChannel.setMessageHandler(nil) } - let disableRoadSnappedLocationUpdatesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let disableRoadSnappedLocationUpdatesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { disableRoadSnappedLocationUpdatesChannel.setMessageHandler { _, reply in do { try api.disableRoadSnappedLocationUpdates() @@ -5272,16 +4491,11 @@ enum NavigationSessionApiSetup { disableRoadSnappedLocationUpdatesChannel.setMessageHandler(nil) } /// Enable Turn-by-Turn navigation events. - let enableTurnByTurnNavigationEventsChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let enableTurnByTurnNavigationEventsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { enableTurnByTurnNavigationEventsChannel.setMessageHandler { message, reply in let args = message as! [Any?] - let numNextStepsToPreviewArg: Int64? = isNullish(args[0]) ? nil : - (args[0] is Int64? ? args[0] as! Int64? : Int64(args[0] as! Int32)) + let numNextStepsToPreviewArg: Int64? = isNullish(args[0]) ? nil : (args[0] is Int64? ? args[0] as! Int64? : Int64(args[0] as! Int32)) do { try api.enableTurnByTurnNavigationEvents(numNextStepsToPreview: numNextStepsToPreviewArg) reply(wrapResult(nil)) @@ -5292,12 +4506,8 @@ enum NavigationSessionApiSetup { } else { enableTurnByTurnNavigationEventsChannel.setMessageHandler(nil) } - let disableTurnByTurnNavigationEventsChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let disableTurnByTurnNavigationEventsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { disableTurnByTurnNavigationEventsChannel.setMessageHandler { _, reply in do { try api.disableTurnByTurnNavigationEvents() @@ -5309,23 +4519,14 @@ enum NavigationSessionApiSetup { } else { disableTurnByTurnNavigationEventsChannel.setMessageHandler(nil) } - let registerRemainingTimeOrDistanceChangedListenerChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let registerRemainingTimeOrDistanceChangedListenerChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { registerRemainingTimeOrDistanceChangedListenerChannel.setMessageHandler { message, reply in let args = message as! [Any?] - let remainingTimeThresholdSecondsArg = args[0] is Int64 ? args[0] as! Int64 : - Int64(args[0] as! Int32) - let remainingDistanceThresholdMetersArg = args[1] is Int64 ? args[1] as! Int64 : - Int64(args[1] as! Int32) + let remainingTimeThresholdSecondsArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) + let remainingDistanceThresholdMetersArg = args[1] is Int64 ? args[1] as! Int64 : Int64(args[1] as! Int32) do { - try api.registerRemainingTimeOrDistanceChangedListener( - remainingTimeThresholdSeconds: remainingTimeThresholdSecondsArg, - remainingDistanceThresholdMeters: remainingDistanceThresholdMetersArg - ) + try api.registerRemainingTimeOrDistanceChangedListener(remainingTimeThresholdSeconds: remainingTimeThresholdSecondsArg, remainingDistanceThresholdMeters: remainingDistanceThresholdMetersArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -5336,28 +4537,27 @@ enum NavigationSessionApiSetup { } } } - private class NavigationSessionEventApiCodecReader: FlutterStandardReader { override func readValue(ofType type: UInt8) -> Any? { switch type { - case 128: - return LaneDirectionDto.fromList(readValue() as! [Any?]) - case 129: - return LaneDto.fromList(readValue() as! [Any?]) - case 130: - return LatLngDto.fromList(readValue() as! [Any?]) - case 131: - return NavInfoDto.fromList(readValue() as! [Any?]) - case 132: - return NavigationWaypointDto.fromList(readValue() as! [Any?]) - case 133: - return SpeedingUpdatedEventDto.fromList(readValue() as! [Any?]) - case 134: - return StepInfoDto.fromList(readValue() as! [Any?]) - case 135: - return StepInfoDto.fromList(readValue() as! [Any?]) - default: - return super.readValue(ofType: type) + case 128: + return LaneDirectionDto.fromList(self.readValue() as! [Any?]) + case 129: + return LaneDto.fromList(self.readValue() as! [Any?]) + case 130: + return LatLngDto.fromList(self.readValue() as! [Any?]) + case 131: + return NavInfoDto.fromList(self.readValue() as! [Any?]) + case 132: + return NavigationWaypointDto.fromList(self.readValue() as! [Any?]) + case 133: + return SpeedingUpdatedEventDto.fromList(self.readValue() as! [Any?]) + case 134: + return StepInfoDto.fromList(self.readValue() as! [Any?]) + case 135: + return StepInfoDto.fromList(self.readValue() as! [Any?]) + default: + return super.readValue(ofType: type) } } } @@ -5396,354 +4596,273 @@ private class NavigationSessionEventApiCodecWriter: FlutterStandardWriter { private class NavigationSessionEventApiCodecReaderWriter: FlutterStandardReaderWriter { override func reader(with data: Data) -> FlutterStandardReader { - NavigationSessionEventApiCodecReader(data: data) + return NavigationSessionEventApiCodecReader(data: data) } override func writer(with data: NSMutableData) -> FlutterStandardWriter { - NavigationSessionEventApiCodecWriter(data: data) + return NavigationSessionEventApiCodecWriter(data: data) } } class NavigationSessionEventApiCodec: FlutterStandardMessageCodec { - static let shared = - NavigationSessionEventApiCodec(readerWriter: NavigationSessionEventApiCodecReaderWriter()) + static let shared = NavigationSessionEventApiCodec(readerWriter: NavigationSessionEventApiCodecReaderWriter()) } /// 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, - completion: @escaping (Result) -> Void) + func onRemainingTimeOrDistanceChanged(remainingTime remainingTimeArg: Double, remainingDistance remainingDistanceArg: Double, 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) /// Turn-by-Turn navigation events. - func onNavInfo(navInfo navInfoArg: NavInfoDto, - completion: @escaping (Result) -> Void) + func onNavInfo(navInfo navInfoArg: NavInfoDto, completion: @escaping (Result) -> Void) } - class NavigationSessionEventApi: NavigationSessionEventApiProtocol { private let binaryMessenger: FlutterBinaryMessenger - init(binaryMessenger: FlutterBinaryMessenger) { + init(binaryMessenger: FlutterBinaryMessenger){ self.binaryMessenger = binaryMessenger } - var codec: FlutterStandardMessageCodec { - NavigationSessionEventApiCodec.shared + return NavigationSessionEventApiCodec.shared } - - func onSpeedingUpdated(msg msgArg: SpeedingUpdatedEventDto, - completion: @escaping (Result) -> Void) { - let channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated" - 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" + 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))) + completion(.failure(createConnectionError(withChannelName:channelName))) return } - if listResponse.count > 1 { + if (listResponse.count > 1) { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))) + completion(.failure(FlutterError(code: code, message: message, details: details))); } else { - completion(.success(())) + completion(.success(Void())) } } } - - func onRoadSnappedLocationUpdated(location locationArg: LatLngDto, - completion: @escaping (Result) -> Void) { - let channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated" - 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" + 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))) + completion(.failure(createConnectionError(withChannelName:channelName))) return } - if listResponse.count > 1 { + if (listResponse.count > 1) { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))) + completion(.failure(FlutterError(code: code, message: message, details: details))); } else { - completion(.success(())) + completion(.success(Void())) } } } - - func onRoadSnappedRawLocationUpdated(location locationArg: LatLngDto, - completion: @escaping (Result) -> Void) { - let channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated" - 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" + 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))) + completion(.failure(createConnectionError(withChannelName:channelName))) return } - if listResponse.count > 1 { + if (listResponse.count > 1) { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))) + completion(.failure(FlutterError(code: code, message: message, details: details))); } else { - completion(.success(())) + completion(.success(Void())) } } } - - func onArrival(waypoint waypointArg: NavigationWaypointDto, - completion: @escaping (Result) -> Void) { - let channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival" - 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" + 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))) + completion(.failure(createConnectionError(withChannelName:channelName))) return } - if listResponse.count > 1 { + if (listResponse.count > 1) { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))) + completion(.failure(FlutterError(code: code, message: message, details: details))); } else { - completion(.success(())) + completion(.success(Void())) } } } - func onRouteChanged(completion: @escaping (Result) -> Void) { - let channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged" - let channel = FlutterBasicMessageChannel( - name: channelName, - binaryMessenger: binaryMessenger, - codec: codec - ) + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged" + 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))) + completion(.failure(createConnectionError(withChannelName:channelName))) return } - if listResponse.count > 1 { + if (listResponse.count > 1) { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))) + completion(.failure(FlutterError(code: code, message: message, details: details))); } else { - completion(.success(())) + completion(.success(Void())) } } } - - func onRemainingTimeOrDistanceChanged(remainingTime remainingTimeArg: Double, - remainingDistance remainingDistanceArg: Double, - completion: @escaping (Result) - -> Void) { - let channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged" - let channel = FlutterBasicMessageChannel( - name: channelName, - binaryMessenger: binaryMessenger, - codec: codec - ) + func onRemainingTimeOrDistanceChanged(remainingTime remainingTimeArg: Double, remainingDistance remainingDistanceArg: Double, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([remainingTimeArg, remainingDistanceArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) + completion(.failure(createConnectionError(withChannelName:channelName))) return } - if listResponse.count > 1 { + if (listResponse.count > 1) { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))) + completion(.failure(FlutterError(code: code, message: message, details: details))); } else { - completion(.success(())) + completion(.success(Void())) } } } - /// Android-only event. func onTrafficUpdated(completion: @escaping (Result) -> Void) { - let channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated" - let channel = FlutterBasicMessageChannel( - name: channelName, - binaryMessenger: binaryMessenger, - codec: codec - ) + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated" + 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))) + completion(.failure(createConnectionError(withChannelName:channelName))) return } - if listResponse.count > 1 { + if (listResponse.count > 1) { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))) + completion(.failure(FlutterError(code: code, message: message, details: details))); } else { - completion(.success(())) + completion(.success(Void())) } } } - /// Android-only event. func onRerouting(completion: @escaping (Result) -> Void) { - let channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting" - let channel = FlutterBasicMessageChannel( - name: channelName, - binaryMessenger: binaryMessenger, - codec: codec - ) + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting" + 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))) + completion(.failure(createConnectionError(withChannelName:channelName))) return } - if listResponse.count > 1 { + if (listResponse.count > 1) { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))) + completion(.failure(FlutterError(code: code, message: message, details: details))); } else { - completion(.success(())) + completion(.success(Void())) } } } - /// Android-only event. - func onGpsAvailabilityUpdate(available availableArg: Bool, - completion: @escaping (Result) -> Void) { - let channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate" - 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" + 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))) + completion(.failure(createConnectionError(withChannelName:channelName))) return } - if listResponse.count > 1 { + if (listResponse.count > 1) { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))) + completion(.failure(FlutterError(code: code, message: message, details: details))); } else { - completion(.success(())) + completion(.success(Void())) } } } - /// Turn-by-Turn navigation events. - func onNavInfo(navInfo navInfoArg: NavInfoDto, - completion: @escaping (Result) -> Void) { - let channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo" - 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" + 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))) + completion(.failure(createConnectionError(withChannelName:channelName))) return } - if listResponse.count > 1 { + if (listResponse.count > 1) { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))) + completion(.failure(FlutterError(code: code, message: message, details: details))); } else { - completion(.success(())) + completion(.success(Void())) } } } } - private class AutoMapViewApiCodecReader: FlutterStandardReader { override func readValue(ofType type: UInt8) -> Any? { switch type { - case 128: - return CameraPositionDto.fromList(readValue() as! [Any?]) - case 129: - return CircleDto.fromList(readValue() as! [Any?]) - case 130: - return CircleOptionsDto.fromList(readValue() as! [Any?]) - case 131: - return ImageDescriptorDto.fromList(readValue() as! [Any?]) - case 132: - return InfoWindowDto.fromList(readValue() as! [Any?]) - case 133: - return LatLngBoundsDto.fromList(readValue() as! [Any?]) - case 134: - return LatLngDto.fromList(readValue() as! [Any?]) - case 135: - return LatLngDto.fromList(readValue() as! [Any?]) - case 136: - return MapPaddingDto.fromList(readValue() as! [Any?]) - case 137: - return MarkerAnchorDto.fromList(readValue() as! [Any?]) - case 138: - return MarkerDto.fromList(readValue() as! [Any?]) - case 139: - return MarkerOptionsDto.fromList(readValue() as! [Any?]) - case 140: - return PatternItemDto.fromList(readValue() as! [Any?]) - case 141: - return PolygonDto.fromList(readValue() as! [Any?]) - case 142: - return PolygonHoleDto.fromList(readValue() as! [Any?]) - case 143: - return PolygonOptionsDto.fromList(readValue() as! [Any?]) - case 144: - return PolylineDto.fromList(readValue() as! [Any?]) - case 145: - return PolylineOptionsDto.fromList(readValue() as! [Any?]) - case 146: - return StyleSpanDto.fromList(readValue() as! [Any?]) - case 147: - return StyleSpanStrokeStyleDto.fromList(readValue() as! [Any?]) - default: - return super.readValue(ofType: type) + case 128: + return CameraPositionDto.fromList(self.readValue() as! [Any?]) + case 129: + return CircleDto.fromList(self.readValue() as! [Any?]) + case 130: + return CircleOptionsDto.fromList(self.readValue() as! [Any?]) + case 131: + return ImageDescriptorDto.fromList(self.readValue() as! [Any?]) + case 132: + return InfoWindowDto.fromList(self.readValue() as! [Any?]) + case 133: + return LatLngBoundsDto.fromList(self.readValue() as! [Any?]) + case 134: + return LatLngDto.fromList(self.readValue() as! [Any?]) + case 135: + return LatLngDto.fromList(self.readValue() as! [Any?]) + case 136: + return MapPaddingDto.fromList(self.readValue() as! [Any?]) + case 137: + return MarkerAnchorDto.fromList(self.readValue() as! [Any?]) + case 138: + return MarkerDto.fromList(self.readValue() as! [Any?]) + case 139: + return MarkerOptionsDto.fromList(self.readValue() as! [Any?]) + case 140: + return PatternItemDto.fromList(self.readValue() as! [Any?]) + case 141: + return PolygonDto.fromList(self.readValue() as! [Any?]) + case 142: + return PolygonHoleDto.fromList(self.readValue() as! [Any?]) + case 143: + return PolygonOptionsDto.fromList(self.readValue() as! [Any?]) + case 144: + return PolylineDto.fromList(self.readValue() as! [Any?]) + case 145: + return PolylineOptionsDto.fromList(self.readValue() as! [Any?]) + case 146: + return StyleSpanDto.fromList(self.readValue() as! [Any?]) + case 147: + return StyleSpanStrokeStyleDto.fromList(self.readValue() as! [Any?]) + default: + return super.readValue(ofType: type) } } } @@ -5818,11 +4937,11 @@ private class AutoMapViewApiCodecWriter: FlutterStandardWriter { private class AutoMapViewApiCodecReaderWriter: FlutterStandardReaderWriter { override func reader(with data: Data) -> FlutterStandardReader { - AutoMapViewApiCodecReader(data: data) + return AutoMapViewApiCodecReader(data: data) } override func writer(with data: NSMutableData) -> FlutterStandardWriter { - AutoMapViewApiCodecWriter(data: data) + return AutoMapViewApiCodecWriter(data: data) } } @@ -5841,20 +4960,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 @@ -5917,17 +5029,13 @@ protocol AutoMapViewApi { } /// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. -enum AutoMapViewApiSetup { +class AutoMapViewApiSetup { /// The codec used by AutoMapViewApi. static var codec: FlutterStandardMessageCodec { AutoMapViewApiCodec.shared } /// Sets up an instance of `AutoMapViewApi` to handle messages through the `binaryMessenger`. static func setUp(binaryMessenger: FlutterBinaryMessenger, api: AutoMapViewApi?) { - let isMyLocationEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isMyLocationEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isMyLocationEnabledChannel.setMessageHandler { _, reply in do { let result = try api.isMyLocationEnabled() @@ -5939,12 +5047,8 @@ enum AutoMapViewApiSetup { } else { isMyLocationEnabledChannel.setMessageHandler(nil) } - let setMyLocationEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setMyLocationEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setMyLocationEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let enabledArg = args[0] as! Bool @@ -5958,12 +5062,8 @@ enum AutoMapViewApiSetup { } else { setMyLocationEnabledChannel.setMessageHandler(nil) } - let getMyLocationChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let getMyLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { getMyLocationChannel.setMessageHandler { _, reply in do { let result = try api.getMyLocation() @@ -5975,12 +5075,8 @@ enum AutoMapViewApiSetup { } else { getMyLocationChannel.setMessageHandler(nil) } - let getMapTypeChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let getMapTypeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { getMapTypeChannel.setMessageHandler { _, reply in do { let result = try api.getMapType() @@ -5992,12 +5088,8 @@ enum AutoMapViewApiSetup { } else { getMapTypeChannel.setMessageHandler(nil) } - let setMapTypeChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setMapTypeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setMapTypeChannel.setMessageHandler { message, reply in let args = message as! [Any?] let mapTypeArg = MapTypeDto(rawValue: args[0] as! Int)! @@ -6011,12 +5103,8 @@ enum AutoMapViewApiSetup { } else { setMapTypeChannel.setMessageHandler(nil) } - let setMapStyleChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setMapStyleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setMapStyleChannel.setMessageHandler { message, reply in let args = message as! [Any?] let styleJsonArg = args[0] as! String @@ -6030,12 +5118,8 @@ enum AutoMapViewApiSetup { } else { setMapStyleChannel.setMessageHandler(nil) } - let getCameraPositionChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let getCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { getCameraPositionChannel.setMessageHandler { _, reply in do { let result = try api.getCameraPosition() @@ -6047,12 +5131,8 @@ enum AutoMapViewApiSetup { } else { getCameraPositionChannel.setMessageHandler(nil) } - let getVisibleRegionChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let getVisibleRegionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { getVisibleRegionChannel.setMessageHandler { _, reply in do { let result = try api.getVisibleRegion() @@ -6064,12 +5144,8 @@ enum AutoMapViewApiSetup { } else { getVisibleRegionChannel.setMessageHandler(nil) } - let followMyLocationChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let followMyLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { followMyLocationChannel.setMessageHandler { message, reply in let args = message as! [Any?] let perspectiveArg = CameraPerspectiveDto(rawValue: args[0] as! Int)! @@ -6084,195 +5160,139 @@ enum AutoMapViewApiSetup { } else { followMyLocationChannel.setMessageHandler(nil) } - let animateCameraToCameraPositionChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let animateCameraToCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition", 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? = isNullish(args[1]) ? nil : - (args[1] is Int64? ? args[1] as! Int64? : Int64(args[1] as! Int32)) - api - .animateCameraToCameraPosition(cameraPosition: cameraPositionArg, - duration: durationArg) { result in - switch result { - case let .success(res): + let durationArg: Int64? = isNullish(args[1]) ? nil : (args[1] is Int64? ? args[1] as! Int64? : Int64(args[1] as! Int32)) + api.animateCameraToCameraPosition(cameraPosition: cameraPositionArg, duration: durationArg) { result in + switch result { + case .success(let res): reply(wrapResult(res)) - case let .failure(error): + case .failure(let error): reply(wrapError(error)) - } } + } } } else { animateCameraToCameraPositionChannel.setMessageHandler(nil) } - let animateCameraToLatLngChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let animateCameraToLatLngChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { animateCameraToLatLngChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pointArg = args[0] as! LatLngDto - let durationArg: Int64? = isNullish(args[1]) ? nil : - (args[1] is Int64? ? args[1] as! Int64? : Int64(args[1] as! Int32)) + let durationArg: Int64? = isNullish(args[1]) ? nil : (args[1] is Int64? ? args[1] as! Int64? : Int64(args[1] as! Int32)) api.animateCameraToLatLng(point: pointArg, duration: durationArg) { result in switch result { - case let .success(res): - reply(wrapResult(res)) - case let .failure(error): - reply(wrapError(error)) + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) } } } } else { animateCameraToLatLngChannel.setMessageHandler(nil) } - let animateCameraToLatLngBoundsChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let animateCameraToLatLngBoundsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds", 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? = isNullish(args[2]) ? nil : - (args[2] is Int64? ? args[2] as! Int64? : Int64(args[2] as! Int32)) - api.animateCameraToLatLngBounds( - bounds: boundsArg, - padding: paddingArg, - duration: durationArg - ) { result in + let durationArg: Int64? = isNullish(args[2]) ? nil : (args[2] is Int64? ? args[2] as! Int64? : Int64(args[2] as! Int32)) + api.animateCameraToLatLngBounds(bounds: boundsArg, padding: paddingArg, duration: durationArg) { result in switch result { - case let .success(res): - reply(wrapResult(res)) - case let .failure(error): - reply(wrapError(error)) + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) } } } } else { animateCameraToLatLngBoundsChannel.setMessageHandler(nil) } - let animateCameraToLatLngZoomChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let animateCameraToLatLngZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom", 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? = isNullish(args[2]) ? nil : - (args[2] is Int64? ? args[2] as! Int64? : Int64(args[2] as! Int32)) - api - .animateCameraToLatLngZoom(point: pointArg, zoom: zoomArg, - duration: durationArg) { result in - switch result { - case let .success(res): + let durationArg: Int64? = isNullish(args[2]) ? nil : (args[2] is Int64? ? args[2] as! Int64? : Int64(args[2] as! Int32)) + api.animateCameraToLatLngZoom(point: pointArg, zoom: zoomArg, duration: durationArg) { result in + switch result { + case .success(let res): reply(wrapResult(res)) - case let .failure(error): + case .failure(let error): reply(wrapError(error)) - } } + } } } else { animateCameraToLatLngZoomChannel.setMessageHandler(nil) } - let animateCameraByScrollChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let animateCameraByScrollChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll", 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? = isNullish(args[2]) ? nil : - (args[2] is Int64? ? args[2] as! Int64? : Int64(args[2] as! Int32)) - api.animateCameraByScroll( - scrollByDx: scrollByDxArg, - scrollByDy: scrollByDyArg, - duration: durationArg - ) { result in + let durationArg: Int64? = isNullish(args[2]) ? nil : (args[2] is Int64? ? args[2] as! Int64? : Int64(args[2] as! Int32)) + api.animateCameraByScroll(scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg, duration: durationArg) { result in switch result { - case let .success(res): - reply(wrapResult(res)) - case let .failure(error): - reply(wrapError(error)) + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) } } } } else { animateCameraByScrollChannel.setMessageHandler(nil) } - let animateCameraByZoomChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let animateCameraByZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { animateCameraByZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] let zoomByArg = args[0] as! Double let focusDxArg: Double? = nilOrValue(args[1]) let focusDyArg: Double? = nilOrValue(args[2]) - let durationArg: Int64? = isNullish(args[3]) ? nil : - (args[3] is Int64? ? args[3] as! Int64? : Int64(args[3] as! Int32)) - api.animateCameraByZoom( - zoomBy: zoomByArg, - focusDx: focusDxArg, - focusDy: focusDyArg, - duration: durationArg - ) { result in + let durationArg: Int64? = isNullish(args[3]) ? nil : (args[3] is Int64? ? args[3] as! Int64? : Int64(args[3] as! Int32)) + api.animateCameraByZoom(zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg, duration: durationArg) { result in switch result { - case let .success(res): - reply(wrapResult(res)) - case let .failure(error): - reply(wrapError(error)) + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) } } } } else { animateCameraByZoomChannel.setMessageHandler(nil) } - let animateCameraToZoomChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let animateCameraToZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { animateCameraToZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] let zoomArg = args[0] as! Double - let durationArg: Int64? = isNullish(args[1]) ? nil : - (args[1] is Int64? ? args[1] as! Int64? : Int64(args[1] as! Int32)) + let durationArg: Int64? = isNullish(args[1]) ? nil : (args[1] is Int64? ? args[1] as! Int64? : Int64(args[1] as! Int32)) api.animateCameraToZoom(zoom: zoomArg, duration: durationArg) { result in switch result { - case let .success(res): - reply(wrapResult(res)) - case let .failure(error): - reply(wrapError(error)) + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) } } } } else { animateCameraToZoomChannel.setMessageHandler(nil) } - let moveCameraToCameraPositionChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let moveCameraToCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { moveCameraToCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let cameraPositionArg = args[0] as! CameraPositionDto @@ -6286,12 +5306,8 @@ enum AutoMapViewApiSetup { } else { moveCameraToCameraPositionChannel.setMessageHandler(nil) } - let moveCameraToLatLngChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let moveCameraToLatLngChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { moveCameraToLatLngChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pointArg = args[0] as! LatLngDto @@ -6305,12 +5321,8 @@ enum AutoMapViewApiSetup { } else { moveCameraToLatLngChannel.setMessageHandler(nil) } - let moveCameraToLatLngBoundsChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let moveCameraToLatLngBoundsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { moveCameraToLatLngBoundsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let boundsArg = args[0] as! LatLngBoundsDto @@ -6325,12 +5337,8 @@ enum AutoMapViewApiSetup { } else { moveCameraToLatLngBoundsChannel.setMessageHandler(nil) } - let moveCameraToLatLngZoomChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let moveCameraToLatLngZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { moveCameraToLatLngZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pointArg = args[0] as! LatLngDto @@ -6345,12 +5353,8 @@ enum AutoMapViewApiSetup { } else { moveCameraToLatLngZoomChannel.setMessageHandler(nil) } - let moveCameraByScrollChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let moveCameraByScrollChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { moveCameraByScrollChannel.setMessageHandler { message, reply in let args = message as! [Any?] let scrollByDxArg = args[0] as! Double @@ -6365,12 +5369,8 @@ enum AutoMapViewApiSetup { } else { moveCameraByScrollChannel.setMessageHandler(nil) } - let moveCameraByZoomChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let moveCameraByZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { moveCameraByZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] let zoomByArg = args[0] as! Double @@ -6386,12 +5386,8 @@ enum AutoMapViewApiSetup { } else { moveCameraByZoomChannel.setMessageHandler(nil) } - let moveCameraToZoomChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let moveCameraToZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { moveCameraToZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] let zoomArg = args[0] as! Double @@ -6405,12 +5401,8 @@ enum AutoMapViewApiSetup { } else { moveCameraToZoomChannel.setMessageHandler(nil) } - let getMinZoomPreferenceChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let getMinZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { getMinZoomPreferenceChannel.setMessageHandler { _, reply in do { let result = try api.getMinZoomPreference() @@ -6422,12 +5414,8 @@ enum AutoMapViewApiSetup { } else { getMinZoomPreferenceChannel.setMessageHandler(nil) } - let getMaxZoomPreferenceChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let getMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { getMaxZoomPreferenceChannel.setMessageHandler { _, reply in do { let result = try api.getMaxZoomPreference() @@ -6439,12 +5427,8 @@ enum AutoMapViewApiSetup { } else { getMaxZoomPreferenceChannel.setMessageHandler(nil) } - let resetMinMaxZoomPreferenceChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let resetMinMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { resetMinMaxZoomPreferenceChannel.setMessageHandler { _, reply in do { try api.resetMinMaxZoomPreference() @@ -6456,12 +5440,8 @@ enum AutoMapViewApiSetup { } else { resetMinMaxZoomPreferenceChannel.setMessageHandler(nil) } - let setMinZoomPreferenceChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setMinZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setMinZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] let minZoomPreferenceArg = args[0] as! Double @@ -6475,12 +5455,8 @@ enum AutoMapViewApiSetup { } else { setMinZoomPreferenceChannel.setMessageHandler(nil) } - let setMaxZoomPreferenceChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setMaxZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] let maxZoomPreferenceArg = args[0] as! Double @@ -6494,12 +5470,8 @@ enum AutoMapViewApiSetup { } else { setMaxZoomPreferenceChannel.setMessageHandler(nil) } - let setMyLocationButtonEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setMyLocationButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setMyLocationButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let enabledArg = args[0] as! Bool @@ -6513,12 +5485,8 @@ enum AutoMapViewApiSetup { } else { setMyLocationButtonEnabledChannel.setMessageHandler(nil) } - let setConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let enabledArg = args[0] as! Bool @@ -6532,12 +5500,8 @@ enum AutoMapViewApiSetup { } else { setConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler(nil) } - let setZoomGesturesEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setZoomGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setZoomGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let enabledArg = args[0] as! Bool @@ -6551,12 +5515,8 @@ enum AutoMapViewApiSetup { } else { setZoomGesturesEnabledChannel.setMessageHandler(nil) } - let setZoomControlsEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setZoomControlsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setZoomControlsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let enabledArg = args[0] as! Bool @@ -6570,12 +5530,8 @@ enum AutoMapViewApiSetup { } else { setZoomControlsEnabledChannel.setMessageHandler(nil) } - let setCompassEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setCompassEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setCompassEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let enabledArg = args[0] as! Bool @@ -6589,12 +5545,8 @@ enum AutoMapViewApiSetup { } else { setCompassEnabledChannel.setMessageHandler(nil) } - let setRotateGesturesEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setRotateGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setRotateGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let enabledArg = args[0] as! Bool @@ -6608,12 +5560,8 @@ enum AutoMapViewApiSetup { } else { setRotateGesturesEnabledChannel.setMessageHandler(nil) } - let setScrollGesturesEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setScrollGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setScrollGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let enabledArg = args[0] as! Bool @@ -6627,12 +5575,8 @@ enum AutoMapViewApiSetup { } else { setScrollGesturesEnabledChannel.setMessageHandler(nil) } - let setScrollGesturesDuringRotateOrZoomEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setScrollGesturesDuringRotateOrZoomEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setScrollGesturesDuringRotateOrZoomEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let enabledArg = args[0] as! Bool @@ -6646,12 +5590,8 @@ enum AutoMapViewApiSetup { } else { setScrollGesturesDuringRotateOrZoomEnabledChannel.setMessageHandler(nil) } - let setTiltGesturesEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setTiltGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setTiltGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let enabledArg = args[0] as! Bool @@ -6665,12 +5605,8 @@ enum AutoMapViewApiSetup { } else { setTiltGesturesEnabledChannel.setMessageHandler(nil) } - let setMapToolbarEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setMapToolbarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setMapToolbarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let enabledArg = args[0] as! Bool @@ -6684,12 +5620,8 @@ enum AutoMapViewApiSetup { } else { setMapToolbarEnabledChannel.setMessageHandler(nil) } - let setTrafficEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setTrafficEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setTrafficEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let enabledArg = args[0] as! Bool @@ -6703,12 +5635,8 @@ enum AutoMapViewApiSetup { } else { setTrafficEnabledChannel.setMessageHandler(nil) } - let isMyLocationButtonEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isMyLocationButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isMyLocationButtonEnabledChannel.setMessageHandler { _, reply in do { let result = try api.isMyLocationButtonEnabled() @@ -6720,12 +5648,8 @@ enum AutoMapViewApiSetup { } else { isMyLocationButtonEnabledChannel.setMessageHandler(nil) } - let isConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler { _, reply in do { let result = try api.isConsumeMyLocationButtonClickEventsEnabled() @@ -6737,12 +5661,8 @@ enum AutoMapViewApiSetup { } else { isConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler(nil) } - let isZoomGesturesEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isZoomGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isZoomGesturesEnabledChannel.setMessageHandler { _, reply in do { let result = try api.isZoomGesturesEnabled() @@ -6754,12 +5674,8 @@ enum AutoMapViewApiSetup { } else { isZoomGesturesEnabledChannel.setMessageHandler(nil) } - let isZoomControlsEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isZoomControlsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isZoomControlsEnabledChannel.setMessageHandler { _, reply in do { let result = try api.isZoomControlsEnabled() @@ -6771,12 +5687,8 @@ enum AutoMapViewApiSetup { } else { isZoomControlsEnabledChannel.setMessageHandler(nil) } - let isCompassEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isCompassEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isCompassEnabledChannel.setMessageHandler { _, reply in do { let result = try api.isCompassEnabled() @@ -6788,12 +5700,8 @@ enum AutoMapViewApiSetup { } else { isCompassEnabledChannel.setMessageHandler(nil) } - let isRotateGesturesEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isRotateGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isRotateGesturesEnabledChannel.setMessageHandler { _, reply in do { let result = try api.isRotateGesturesEnabled() @@ -6805,12 +5713,8 @@ enum AutoMapViewApiSetup { } else { isRotateGesturesEnabledChannel.setMessageHandler(nil) } - let isScrollGesturesEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isScrollGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isScrollGesturesEnabledChannel.setMessageHandler { _, reply in do { let result = try api.isScrollGesturesEnabled() @@ -6822,12 +5726,8 @@ enum AutoMapViewApiSetup { } else { isScrollGesturesEnabledChannel.setMessageHandler(nil) } - let isScrollGesturesEnabledDuringRotateOrZoomChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isScrollGesturesEnabledDuringRotateOrZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isScrollGesturesEnabledDuringRotateOrZoomChannel.setMessageHandler { _, reply in do { let result = try api.isScrollGesturesEnabledDuringRotateOrZoom() @@ -6839,12 +5739,8 @@ enum AutoMapViewApiSetup { } else { isScrollGesturesEnabledDuringRotateOrZoomChannel.setMessageHandler(nil) } - let isTiltGesturesEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isTiltGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isTiltGesturesEnabledChannel.setMessageHandler { _, reply in do { let result = try api.isTiltGesturesEnabled() @@ -6856,12 +5752,8 @@ enum AutoMapViewApiSetup { } else { isTiltGesturesEnabledChannel.setMessageHandler(nil) } - let isMapToolbarEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isMapToolbarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isMapToolbarEnabledChannel.setMessageHandler { _, reply in do { let result = try api.isMapToolbarEnabled() @@ -6873,12 +5765,8 @@ enum AutoMapViewApiSetup { } else { isMapToolbarEnabledChannel.setMessageHandler(nil) } - let isTrafficEnabledChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isTrafficEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isTrafficEnabledChannel.setMessageHandler { _, reply in do { let result = try api.isTrafficEnabled() @@ -6890,12 +5778,8 @@ enum AutoMapViewApiSetup { } else { isTrafficEnabledChannel.setMessageHandler(nil) } - let getMarkersChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let getMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { getMarkersChannel.setMessageHandler { _, reply in do { let result = try api.getMarkers() @@ -6907,12 +5791,8 @@ enum AutoMapViewApiSetup { } else { getMarkersChannel.setMessageHandler(nil) } - let addMarkersChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let addMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { addMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] let markersArg = args[0] as! [MarkerDto] @@ -6926,12 +5806,8 @@ enum AutoMapViewApiSetup { } else { addMarkersChannel.setMessageHandler(nil) } - let updateMarkersChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let updateMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { updateMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] let markersArg = args[0] as! [MarkerDto] @@ -6945,12 +5821,8 @@ enum AutoMapViewApiSetup { } else { updateMarkersChannel.setMessageHandler(nil) } - let removeMarkersChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let removeMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { removeMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] let markersArg = args[0] as! [MarkerDto] @@ -6964,12 +5836,8 @@ enum AutoMapViewApiSetup { } else { removeMarkersChannel.setMessageHandler(nil) } - let clearMarkersChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let clearMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { clearMarkersChannel.setMessageHandler { _, reply in do { try api.clearMarkers() @@ -6981,12 +5849,8 @@ enum AutoMapViewApiSetup { } else { clearMarkersChannel.setMessageHandler(nil) } - let clearChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let clearChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { clearChannel.setMessageHandler { _, reply in do { try api.clear() @@ -6998,12 +5862,8 @@ enum AutoMapViewApiSetup { } else { clearChannel.setMessageHandler(nil) } - let getPolygonsChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let getPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { getPolygonsChannel.setMessageHandler { _, reply in do { let result = try api.getPolygons() @@ -7015,12 +5875,8 @@ enum AutoMapViewApiSetup { } else { getPolygonsChannel.setMessageHandler(nil) } - let addPolygonsChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let addPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { addPolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let polygonsArg = args[0] as! [PolygonDto] @@ -7034,12 +5890,8 @@ enum AutoMapViewApiSetup { } else { addPolygonsChannel.setMessageHandler(nil) } - let updatePolygonsChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let updatePolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { updatePolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let polygonsArg = args[0] as! [PolygonDto] @@ -7053,12 +5905,8 @@ enum AutoMapViewApiSetup { } else { updatePolygonsChannel.setMessageHandler(nil) } - let removePolygonsChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let removePolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { removePolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let polygonsArg = args[0] as! [PolygonDto] @@ -7072,12 +5920,8 @@ enum AutoMapViewApiSetup { } else { removePolygonsChannel.setMessageHandler(nil) } - let clearPolygonsChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let clearPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { clearPolygonsChannel.setMessageHandler { _, reply in do { try api.clearPolygons() @@ -7089,12 +5933,8 @@ enum AutoMapViewApiSetup { } else { clearPolygonsChannel.setMessageHandler(nil) } - let getPolylinesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let getPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { getPolylinesChannel.setMessageHandler { _, reply in do { let result = try api.getPolylines() @@ -7106,12 +5946,8 @@ enum AutoMapViewApiSetup { } else { getPolylinesChannel.setMessageHandler(nil) } - let addPolylinesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let addPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { addPolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let polylinesArg = args[0] as! [PolylineDto] @@ -7125,12 +5961,8 @@ enum AutoMapViewApiSetup { } else { addPolylinesChannel.setMessageHandler(nil) } - let updatePolylinesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let updatePolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { updatePolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let polylinesArg = args[0] as! [PolylineDto] @@ -7144,12 +5976,8 @@ enum AutoMapViewApiSetup { } else { updatePolylinesChannel.setMessageHandler(nil) } - let removePolylinesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let removePolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { removePolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let polylinesArg = args[0] as! [PolylineDto] @@ -7163,12 +5991,8 @@ enum AutoMapViewApiSetup { } else { removePolylinesChannel.setMessageHandler(nil) } - let clearPolylinesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let clearPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { clearPolylinesChannel.setMessageHandler { _, reply in do { try api.clearPolylines() @@ -7180,12 +6004,8 @@ enum AutoMapViewApiSetup { } else { clearPolylinesChannel.setMessageHandler(nil) } - let getCirclesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let getCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { getCirclesChannel.setMessageHandler { _, reply in do { let result = try api.getCircles() @@ -7197,12 +6017,8 @@ enum AutoMapViewApiSetup { } else { getCirclesChannel.setMessageHandler(nil) } - let addCirclesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let addCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { addCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let circlesArg = args[0] as! [CircleDto] @@ -7216,12 +6032,8 @@ enum AutoMapViewApiSetup { } else { addCirclesChannel.setMessageHandler(nil) } - let updateCirclesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let updateCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { updateCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let circlesArg = args[0] as! [CircleDto] @@ -7235,12 +6047,8 @@ enum AutoMapViewApiSetup { } else { updateCirclesChannel.setMessageHandler(nil) } - let removeCirclesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let removeCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { removeCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let circlesArg = args[0] as! [CircleDto] @@ -7254,12 +6062,8 @@ enum AutoMapViewApiSetup { } else { removeCirclesChannel.setMessageHandler(nil) } - let clearCirclesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let clearCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { clearCirclesChannel.setMessageHandler { _, reply in do { try api.clearCircles() @@ -7271,12 +6075,8 @@ enum AutoMapViewApiSetup { } else { clearCirclesChannel.setMessageHandler(nil) } - let registerOnCameraChangedListenerChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.registerOnCameraChangedListener", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let registerOnCameraChangedListenerChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.registerOnCameraChangedListener", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { registerOnCameraChangedListenerChannel.setMessageHandler { _, reply in do { try api.registerOnCameraChangedListener() @@ -7288,12 +6088,8 @@ enum AutoMapViewApiSetup { } else { registerOnCameraChangedListenerChannel.setMessageHandler(nil) } - let isAutoScreenAvailableChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let isAutoScreenAvailableChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { isAutoScreenAvailableChannel.setMessageHandler { _, reply in do { let result = try api.isAutoScreenAvailable() @@ -7305,12 +6101,8 @@ enum AutoMapViewApiSetup { } else { isAutoScreenAvailableChannel.setMessageHandler(nil) } - let setPaddingChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let setPaddingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { setPaddingChannel.setMessageHandler { message, reply in let args = message as! [Any?] let paddingArg = args[0] as! MapPaddingDto @@ -7324,12 +6116,8 @@ enum AutoMapViewApiSetup { } else { setPaddingChannel.setMessageHandler(nil) } - let getPaddingChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding", - binaryMessenger: binaryMessenger, - codec: codec - ) - if let api { + let getPaddingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { getPaddingChannel.setMessageHandler { _, reply in do { let result = try api.getPadding() @@ -7343,90 +6131,89 @@ enum AutoMapViewApiSetup { } } } - private class AutoViewEventApiCodecReader: FlutterStandardReader { override func readValue(ofType type: UInt8) -> Any? { switch type { - case 128: - return CameraPositionDto.fromList(readValue() as! [Any?]) - case 129: - return CircleDto.fromList(readValue() as! [Any?]) - case 130: - return CircleOptionsDto.fromList(readValue() as! [Any?]) - case 131: - return DestinationsDto.fromList(readValue() as! [Any?]) - case 132: - return ImageDescriptorDto.fromList(readValue() as! [Any?]) - case 133: - return InfoWindowDto.fromList(readValue() as! [Any?]) - case 134: - return LaneDirectionDto.fromList(readValue() as! [Any?]) - case 135: - return LaneDto.fromList(readValue() as! [Any?]) - case 136: - return LatLngBoundsDto.fromList(readValue() as! [Any?]) - case 137: - return LatLngDto.fromList(readValue() as! [Any?]) - case 138: - return MapOptionsDto.fromList(readValue() as! [Any?]) - case 139: - return MapPaddingDto.fromList(readValue() as! [Any?]) - case 140: - return MarkerAnchorDto.fromList(readValue() as! [Any?]) - case 141: - return MarkerDto.fromList(readValue() as! [Any?]) - case 142: - return MarkerOptionsDto.fromList(readValue() as! [Any?]) - case 143: - return NavInfoDto.fromList(readValue() as! [Any?]) - case 144: - return NavigationAudioGuidanceSettingsDto.fromList(readValue() as! [Any?]) - case 145: - return NavigationDisplayOptionsDto.fromList(readValue() as! [Any?]) - case 146: - return NavigationTimeAndDistanceDto.fromList(readValue() as! [Any?]) - case 147: - return NavigationViewOptionsDto.fromList(readValue() as! [Any?]) - case 148: - return NavigationWaypointDto.fromList(readValue() as! [Any?]) - case 149: - return PatternItemDto.fromList(readValue() as! [Any?]) - case 150: - return PolygonDto.fromList(readValue() as! [Any?]) - case 151: - return PolygonHoleDto.fromList(readValue() as! [Any?]) - case 152: - return PolygonOptionsDto.fromList(readValue() as! [Any?]) - case 153: - return PolylineDto.fromList(readValue() as! [Any?]) - case 154: - return PolylineOptionsDto.fromList(readValue() as! [Any?]) - case 155: - return RouteSegmentDto.fromList(readValue() as! [Any?]) - case 156: - return RouteSegmentTrafficDataDto.fromList(readValue() as! [Any?]) - case 157: - return RouteSegmentTrafficDataRoadStretchRenderingDataDto.fromList(readValue() as! [Any?]) - case 158: - return RouteTokenOptionsDto.fromList(readValue() as! [Any?]) - case 159: - return RoutingOptionsDto.fromList(readValue() as! [Any?]) - case 160: - return SimulationOptionsDto.fromList(readValue() as! [Any?]) - case 161: - return SpeedAlertOptionsDto.fromList(readValue() as! [Any?]) - case 162: - return SpeedingUpdatedEventDto.fromList(readValue() as! [Any?]) - case 163: - return StepInfoDto.fromList(readValue() as! [Any?]) - case 164: - return StyleSpanDto.fromList(readValue() as! [Any?]) - case 165: - return StyleSpanStrokeStyleDto.fromList(readValue() as! [Any?]) - case 166: - return ViewCreationOptionsDto.fromList(readValue() as! [Any?]) - default: - return super.readValue(ofType: type) + case 128: + return CameraPositionDto.fromList(self.readValue() as! [Any?]) + case 129: + return CircleDto.fromList(self.readValue() as! [Any?]) + case 130: + return CircleOptionsDto.fromList(self.readValue() as! [Any?]) + case 131: + return DestinationsDto.fromList(self.readValue() as! [Any?]) + case 132: + return ImageDescriptorDto.fromList(self.readValue() as! [Any?]) + case 133: + return InfoWindowDto.fromList(self.readValue() as! [Any?]) + case 134: + return LaneDirectionDto.fromList(self.readValue() as! [Any?]) + case 135: + return LaneDto.fromList(self.readValue() as! [Any?]) + case 136: + return LatLngBoundsDto.fromList(self.readValue() as! [Any?]) + case 137: + return LatLngDto.fromList(self.readValue() as! [Any?]) + case 138: + return MapOptionsDto.fromList(self.readValue() as! [Any?]) + case 139: + return MapPaddingDto.fromList(self.readValue() as! [Any?]) + case 140: + return MarkerAnchorDto.fromList(self.readValue() as! [Any?]) + case 141: + return MarkerDto.fromList(self.readValue() as! [Any?]) + case 142: + return MarkerOptionsDto.fromList(self.readValue() as! [Any?]) + case 143: + return NavInfoDto.fromList(self.readValue() as! [Any?]) + case 144: + return NavigationAudioGuidanceSettingsDto.fromList(self.readValue() as! [Any?]) + case 145: + return NavigationDisplayOptionsDto.fromList(self.readValue() as! [Any?]) + case 146: + return NavigationTimeAndDistanceDto.fromList(self.readValue() as! [Any?]) + case 147: + return NavigationViewOptionsDto.fromList(self.readValue() as! [Any?]) + case 148: + return NavigationWaypointDto.fromList(self.readValue() as! [Any?]) + case 149: + return PatternItemDto.fromList(self.readValue() as! [Any?]) + case 150: + return PolygonDto.fromList(self.readValue() as! [Any?]) + case 151: + return PolygonHoleDto.fromList(self.readValue() as! [Any?]) + case 152: + return PolygonOptionsDto.fromList(self.readValue() as! [Any?]) + case 153: + return PolylineDto.fromList(self.readValue() as! [Any?]) + case 154: + return PolylineOptionsDto.fromList(self.readValue() as! [Any?]) + case 155: + return RouteSegmentDto.fromList(self.readValue() as! [Any?]) + case 156: + return RouteSegmentTrafficDataDto.fromList(self.readValue() as! [Any?]) + case 157: + return RouteSegmentTrafficDataRoadStretchRenderingDataDto.fromList(self.readValue() as! [Any?]) + case 158: + return RouteTokenOptionsDto.fromList(self.readValue() as! [Any?]) + case 159: + return RoutingOptionsDto.fromList(self.readValue() as! [Any?]) + case 160: + return SimulationOptionsDto.fromList(self.readValue() as! [Any?]) + case 161: + return SpeedAlertOptionsDto.fromList(self.readValue() as! [Any?]) + case 162: + return SpeedingUpdatedEventDto.fromList(self.readValue() as! [Any?]) + case 163: + return StepInfoDto.fromList(self.readValue() as! [Any?]) + case 164: + return StyleSpanDto.fromList(self.readValue() as! [Any?]) + case 165: + return StyleSpanStrokeStyleDto.fromList(self.readValue() as! [Any?]) + case 166: + return ViewCreationOptionsDto.fromList(self.readValue() as! [Any?]) + default: + return super.readValue(ofType: type) } } } @@ -7558,11 +6345,11 @@ private class AutoViewEventApiCodecWriter: FlutterStandardWriter { private class AutoViewEventApiCodecReaderWriter: FlutterStandardReaderWriter { override func reader(with data: Data) -> FlutterStandardReader { - AutoViewEventApiCodecReader(data: data) + return AutoViewEventApiCodecReader(data: data) } override func writer(with data: NSMutableData) -> FlutterStandardWriter { - AutoViewEventApiCodecWriter(data: data) + return AutoViewEventApiCodecWriter(data: data) } } @@ -7572,88 +6359,66 @@ class AutoViewEventApiCodec: FlutterStandardMessageCodec { /// 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 onCustomNavigationAutoEvent(event eventArg: String, data dataArg: Any, completion: @escaping (Result) -> Void) + func onAutoScreenAvailabilityChanged(isAvailable isAvailableArg: Bool, completion: @escaping (Result) -> Void) } - class AutoViewEventApi: AutoViewEventApiProtocol { private let binaryMessenger: FlutterBinaryMessenger - init(binaryMessenger: FlutterBinaryMessenger) { + init(binaryMessenger: FlutterBinaryMessenger){ self.binaryMessenger = binaryMessenger } - var codec: FlutterStandardMessageCodec { - AutoViewEventApiCodec.shared + return AutoViewEventApiCodec.shared } - - func onCustomNavigationAutoEvent(event eventArg: String, data dataArg: Any, - completion: @escaping (Result) -> Void) { - let channelName = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent" - 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" + 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))) + completion(.failure(createConnectionError(withChannelName:channelName))) return } - if listResponse.count > 1 { + if (listResponse.count > 1) { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))) + completion(.failure(FlutterError(code: code, message: message, details: details))); } else { - completion(.success(())) + completion(.success(Void())) } } } - - func onAutoScreenAvailabilityChanged(isAvailable isAvailableArg: Bool, - completion: @escaping (Result) -> Void) { - let channelName = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged" - 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" + 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))) + completion(.failure(createConnectionError(withChannelName:channelName))) return } - if listResponse.count > 1 { + if (listResponse.count > 1) { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))) + completion(.failure(FlutterError(code: code, message: message, details: details))); } else { - completion(.success(())) + completion(.success(Void())) } } } } - /// Generated protocol from Pigeon that represents a handler of messages from Flutter. protocol NavigationInspector { func isViewAttachedToSession(viewId: Int64) throws -> Bool } /// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. -enum NavigationInspectorSetup { +class NavigationInspectorSetup { /// The codec used by NavigationInspector. /// Sets up an instance of `NavigationInspector` to handle messages through the `binaryMessenger`. static func setUp(binaryMessenger: FlutterBinaryMessenger, api: NavigationInspector?) { - let isViewAttachedToSessionChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession", - binaryMessenger: binaryMessenger - ) - if let api { + let isViewAttachedToSessionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession", binaryMessenger: binaryMessenger) + if let api = api { isViewAttachedToSessionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) diff --git a/lib/src/method_channel/convert/navigation.dart b/lib/src/method_channel/convert/navigation.dart index c7cb6ce3..ef09033a 100644 --- a/lib/src/method_channel/convert/navigation.dart +++ b/lib/src/method_channel/convert/navigation.dart @@ -206,3 +206,14 @@ extension ConvertNavigationViewOptions on NavigationViewOptions { return NavigationViewOptionsDto(navigationUIEnabledPreference: preference); } } + +extension ConvertTaskRemovedBehavior on TaskRemovedBehavior { + TaskRemovedBehaviorDto toDto() { + switch (this) { + case TaskRemovedBehavior.continueService: + return TaskRemovedBehaviorDto.continueService; + case TaskRemovedBehavior.quitService: + return TaskRemovedBehaviorDto.quitService; + } + } +} \ No newline at end of file diff --git a/lib/src/method_channel/messages.g.dart b/lib/src/method_channel/messages.g.dart index 529abc5f..21bffb01 100644 --- a/lib/src/method_channel/messages.g.dart +++ b/lib/src/method_channel/messages.g.dart @@ -1,17 +1,17 @@ // Copyright 2023 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. -// +// // Autogenerated from Pigeon (v15.0.0), do not edit directly. // See also: https://pub.dev/packages/pigeon // ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name, unnecessary_import, no_leading_underscores_for_local_identifiers @@ -29,8 +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 []; } @@ -44,7 +43,6 @@ List wrapResponse( enum MapViewTypeDto { /// Navigation view supports navigation overlay, and current navigation session is displayed on the map. navigation, - /// Classic map view, without navigation overlay. map, } @@ -54,7 +52,6 @@ enum NavigationUIEnabledPreferenceDto { /// Navigation UI gets enabled if the navigation /// session has already been successfully started. automatic, - /// Navigation UI is disabled. disabled, } @@ -173,199 +170,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, } @@ -374,10 +306,8 @@ enum ManeuverDto { enum DrivingSideDto { /// Drive-on-left side. left, - /// Unspecified side. none, - /// Drive-on-right side. right, } @@ -386,13 +316,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, } @@ -401,35 +328,35 @@ 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, } +/// Determines how application should behave when a application task is removed. +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, +} + /// Object containing map options used to initialize Google Map view. class MapOptionsDto { MapOptionsDto({ @@ -554,8 +481,7 @@ class NavigationViewOptionsDto { static NavigationViewOptionsDto decode(Object result) { result as List; return NavigationViewOptionsDto( - navigationUIEnabledPreference: - NavigationUIEnabledPreferenceDto.values[result[0]! as int], + navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto.values[result[0]! as int], ); } } @@ -1256,8 +1182,9 @@ class RouteTokenOptionsDto { result as List; return RouteTokenOptionsDto( routeToken: result[0]! as String, - travelMode: - result[1] != null ? TravelModeDto.values[result[1]! as int] : null, + travelMode: result[1] != null + ? TravelModeDto.values[result[1]! as int] + : null, ); } } @@ -1291,8 +1218,7 @@ class DestinationsDto { result as List; return DestinationsDto( waypoints: (result[0] as List?)!.cast(), - displayOptions: - NavigationDisplayOptionsDto.decode(result[1]! as List), + displayOptions: NavigationDisplayOptionsDto.decode(result[1]! as List), routingOptions: result[2] != null ? RoutingOptionsDto.decode(result[2]! as List) : null, @@ -1354,8 +1280,9 @@ class RoutingOptionsDto { ? RoutingStrategyDto.values[result[1]! as int] : null, targetDistanceMeters: (result[2] as List?)?.cast(), - travelMode: - result[3] != null ? TravelModeDto.values[result[3]! as int] : null, + travelMode: result[3] != null + ? TravelModeDto.values[result[3]! as int] + : null, avoidTolls: result[4] as bool?, avoidFerries: result[5] as bool?, avoidHighways: result[6] as bool?, @@ -1648,12 +1575,10 @@ class RouteSegmentTrafficDataRoadStretchRenderingDataDto { ]; } - static RouteSegmentTrafficDataRoadStretchRenderingDataDto decode( - Object result) { + static RouteSegmentTrafficDataRoadStretchRenderingDataDto decode(Object result) { result as List; return RouteSegmentTrafficDataRoadStretchRenderingDataDto( - style: RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto - .values[result[0]! as int], + style: RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto.values[result[0]! as int], lengthMeters: result[1]! as int, offsetMeters: result[2]! as int, ); @@ -1668,8 +1593,7 @@ class RouteSegmentTrafficDataDto { RouteSegmentTrafficDataStatusDto status; - List - roadStretchRenderingDataList; + List roadStretchRenderingDataList; Object encode() { return [ @@ -1682,8 +1606,7 @@ class RouteSegmentTrafficDataDto { result as List; return RouteSegmentTrafficDataDto( status: RouteSegmentTrafficDataStatusDto.values[result[0]! as int], - roadStretchRenderingDataList: (result[1] as List?)! - .cast(), + roadStretchRenderingDataList: (result[1] as List?)!.cast(), ); } } @@ -1985,19 +1908,19 @@ class _NavigationViewCreationApiCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 128: + case 128: return CameraPositionDto.decode(readValue(buffer)!); - case 129: + case 129: return LatLngBoundsDto.decode(readValue(buffer)!); - case 130: + case 130: return LatLngDto.decode(readValue(buffer)!); - case 131: + case 131: return MapOptionsDto.decode(readValue(buffer)!); - case 132: + case 132: return MapPaddingDto.decode(readValue(buffer)!); - case 133: + case 133: return NavigationViewOptionsDto.decode(readValue(buffer)!); - case 134: + case 134: return ViewCreationOptionsDto.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -2018,14 +1941,11 @@ class NavigationViewCreationApi { : __pigeon_binaryMessenger = binaryMessenger; final BinaryMessenger? __pigeon_binaryMessenger; - static const MessageCodec pigeonChannelCodec = - _NavigationViewCreationApiCodec(); + static const MessageCodec pigeonChannelCodec = _NavigationViewCreationApiCodec(); Future create(ViewCreationOptionsDto msg) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationViewCreationApi.create'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationViewCreationApi.create'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -2118,45 +2038,45 @@ class _MapViewApiCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 128: + case 128: return CameraPositionDto.decode(readValue(buffer)!); - case 129: + case 129: return CircleDto.decode(readValue(buffer)!); - case 130: + case 130: return CircleOptionsDto.decode(readValue(buffer)!); - case 131: + case 131: return ImageDescriptorDto.decode(readValue(buffer)!); - case 132: + case 132: return InfoWindowDto.decode(readValue(buffer)!); - case 133: + case 133: return LatLngBoundsDto.decode(readValue(buffer)!); - case 134: + case 134: return LatLngDto.decode(readValue(buffer)!); - case 135: + case 135: return LatLngDto.decode(readValue(buffer)!); - case 136: + case 136: return MapPaddingDto.decode(readValue(buffer)!); - case 137: + case 137: return MarkerAnchorDto.decode(readValue(buffer)!); - case 138: + case 138: return MarkerDto.decode(readValue(buffer)!); - case 139: + case 139: return MarkerOptionsDto.decode(readValue(buffer)!); - case 140: + case 140: return PatternItemDto.decode(readValue(buffer)!); - case 141: + case 141: return PolygonDto.decode(readValue(buffer)!); - case 142: + case 142: return PolygonHoleDto.decode(readValue(buffer)!); - case 143: + case 143: return PolygonOptionsDto.decode(readValue(buffer)!); - case 144: + case 144: return PolylineDto.decode(readValue(buffer)!); - case 145: + case 145: return PolylineOptionsDto.decode(readValue(buffer)!); - case 146: + case 146: return StyleSpanDto.decode(readValue(buffer)!); - case 147: + case 147: return StyleSpanStrokeStyleDto.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -2175,10 +2095,8 @@ class MapViewApi { static const MessageCodec pigeonChannelCodec = _MapViewApiCodec(); Future awaitMapReady(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -2199,10 +2117,8 @@ class MapViewApi { } Future isMyLocationEnabled(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -2228,16 +2144,14 @@ class MapViewApi { } Future setMyLocationEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, enabled]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2252,10 +2166,8 @@ class MapViewApi { } Future getMyLocation(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -2276,10 +2188,8 @@ class MapViewApi { } Future getMapType(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -2305,16 +2215,14 @@ class MapViewApi { } Future setMapType(int viewId, MapTypeDto mapType) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, mapType.index]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, mapType.index]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2329,16 +2237,14 @@ class MapViewApi { } Future setMapStyle(int viewId, String styleJson) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, styleJson]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, styleJson]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2353,10 +2259,8 @@ class MapViewApi { } Future isNavigationTripProgressBarEnabled(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -2381,18 +2285,15 @@ class MapViewApi { } } - Future setNavigationTripProgressBarEnabled( - int viewId, bool enabled) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future setNavigationTripProgressBarEnabled(int viewId, bool enabled) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, enabled]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2407,10 +2308,8 @@ class MapViewApi { } Future isNavigationHeaderEnabled(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -2436,16 +2335,14 @@ class MapViewApi { } Future setNavigationHeaderEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, enabled]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2460,10 +2357,8 @@ class MapViewApi { } Future isNavigationFooterEnabled(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -2489,16 +2384,14 @@ class MapViewApi { } Future setNavigationFooterEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, enabled]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2513,10 +2406,8 @@ class MapViewApi { } Future isRecenterButtonEnabled(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -2542,16 +2433,14 @@ class MapViewApi { } Future setRecenterButtonEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, enabled]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2566,10 +2455,8 @@ class MapViewApi { } Future isSpeedLimitIconEnabled(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -2595,16 +2482,14 @@ class MapViewApi { } Future setSpeedLimitIconEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, enabled]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2619,10 +2504,8 @@ class MapViewApi { } Future isSpeedometerEnabled(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -2648,16 +2531,14 @@ class MapViewApi { } Future setSpeedometerEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, enabled]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2672,10 +2553,8 @@ class MapViewApi { } Future isTrafficIncidentCardsEnabled(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -2701,16 +2580,14 @@ class MapViewApi { } Future setTrafficIncidentCardsEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, enabled]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2725,10 +2602,8 @@ class MapViewApi { } Future isNavigationUIEnabled(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -2754,16 +2629,14 @@ class MapViewApi { } Future setNavigationUIEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, enabled]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2778,10 +2651,8 @@ class MapViewApi { } Future getCameraPosition(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -2807,10 +2678,8 @@ class MapViewApi { } Future getVisibleRegion(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -2835,19 +2704,15 @@ class MapViewApi { } } - Future followMyLocation( - int viewId, CameraPerspectiveDto perspective, double? zoomLevel) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future followMyLocation(int viewId, CameraPerspectiveDto perspective, double? zoomLevel) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, perspective.index, zoomLevel]) - as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, perspective.index, zoomLevel]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2861,18 +2726,15 @@ class MapViewApi { } } - Future animateCameraToCameraPosition( - int viewId, CameraPositionDto cameraPosition, int? duration) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future animateCameraToCameraPosition(int viewId, CameraPositionDto cameraPosition, int? duration) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, cameraPosition, duration]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, cameraPosition, duration]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2891,18 +2753,15 @@ class MapViewApi { } } - Future animateCameraToLatLng( - int viewId, LatLngDto point, int? duration) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future animateCameraToLatLng(int viewId, LatLngDto point, int? duration) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, point, duration]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, point, duration]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2921,18 +2780,15 @@ class MapViewApi { } } - Future animateCameraToLatLngBounds( - int viewId, LatLngBoundsDto bounds, double padding, int? duration) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future animateCameraToLatLngBounds(int viewId, LatLngBoundsDto bounds, double padding, int? duration) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, bounds, padding, duration]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, bounds, padding, duration]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2951,18 +2807,15 @@ class MapViewApi { } } - Future animateCameraToLatLngZoom( - int viewId, LatLngDto point, double zoom, int? duration) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future animateCameraToLatLngZoom(int viewId, LatLngDto point, double zoom, int? duration) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, point, zoom, duration]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, point, zoom, duration]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2981,19 +2834,15 @@ class MapViewApi { } } - Future animateCameraByScroll( - int viewId, double scrollByDx, double scrollByDy, int? duration) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future animateCameraByScroll(int viewId, double scrollByDx, double scrollByDy, int? duration) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, scrollByDx, scrollByDy, duration]) - as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, scrollByDx, scrollByDy, duration]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3012,19 +2861,15 @@ class MapViewApi { } } - Future animateCameraByZoom(int viewId, double zoomBy, double? focusDx, - double? focusDy, int? duration) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future animateCameraByZoom(int viewId, double zoomBy, double? focusDx, double? focusDy, int? duration) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, zoomBy, focusDx, focusDy, duration]) - as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, zoomBy, focusDx, focusDy, duration]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3043,18 +2888,15 @@ class MapViewApi { } } - Future animateCameraToZoom( - int viewId, double zoom, int? duration) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future animateCameraToZoom(int viewId, double zoom, int? duration) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, zoom, duration]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, zoom, duration]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3073,18 +2915,15 @@ class MapViewApi { } } - Future moveCameraToCameraPosition( - int viewId, CameraPositionDto cameraPosition) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future moveCameraToCameraPosition(int viewId, CameraPositionDto cameraPosition) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, cameraPosition]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, cameraPosition]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3099,10 +2938,8 @@ class MapViewApi { } Future moveCameraToLatLng(int viewId, LatLngDto point) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3122,18 +2959,15 @@ class MapViewApi { } } - Future moveCameraToLatLngBounds( - int viewId, LatLngBoundsDto bounds, double padding) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future moveCameraToLatLngBounds(int viewId, LatLngBoundsDto bounds, double padding) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, bounds, padding]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, bounds, padding]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3147,18 +2981,15 @@ class MapViewApi { } } - Future moveCameraToLatLngZoom( - int viewId, LatLngDto point, double zoom) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future moveCameraToLatLngZoom(int viewId, LatLngDto point, double zoom) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, point, zoom]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, point, zoom]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3172,18 +3003,15 @@ class MapViewApi { } } - Future moveCameraByScroll( - int viewId, double scrollByDx, double scrollByDy) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future moveCameraByScroll(int viewId, double scrollByDx, double scrollByDy) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, scrollByDx, scrollByDy]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, scrollByDx, scrollByDy]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3197,18 +3025,15 @@ class MapViewApi { } } - Future moveCameraByZoom( - int viewId, double zoomBy, double? focusDx, double? focusDy) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future moveCameraByZoom(int viewId, double zoomBy, double? focusDx, double? focusDy) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, zoomBy, focusDx, focusDy]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, zoomBy, focusDx, focusDy]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3223,10 +3048,8 @@ class MapViewApi { } Future moveCameraToZoom(int viewId, double zoom) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3247,10 +3070,8 @@ class MapViewApi { } Future showRouteOverview(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3271,10 +3092,8 @@ class MapViewApi { } Future getMinZoomPreference(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3300,10 +3119,8 @@ class MapViewApi { } Future getMaxZoomPreference(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3329,10 +3146,8 @@ class MapViewApi { } Future resetMinMaxZoomPreference(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3352,18 +3167,15 @@ class MapViewApi { } } - Future setMinZoomPreference( - int viewId, double minZoomPreference) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future setMinZoomPreference(int viewId, double minZoomPreference) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, minZoomPreference]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, minZoomPreference]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3377,18 +3189,15 @@ class MapViewApi { } } - Future setMaxZoomPreference( - int viewId, double maxZoomPreference) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future setMaxZoomPreference(int viewId, double maxZoomPreference) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, maxZoomPreference]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, maxZoomPreference]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3403,16 +3212,14 @@ class MapViewApi { } Future setMyLocationButtonEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, enabled]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3426,18 +3233,15 @@ class MapViewApi { } } - Future setConsumeMyLocationButtonClickEventsEnabled( - int viewId, bool enabled) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future setConsumeMyLocationButtonClickEventsEnabled(int viewId, bool enabled) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, enabled]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3452,16 +3256,14 @@ class MapViewApi { } Future setZoomGesturesEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, enabled]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3476,16 +3278,14 @@ class MapViewApi { } Future setZoomControlsEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, enabled]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3500,16 +3300,14 @@ class MapViewApi { } Future setCompassEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, enabled]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3524,16 +3322,14 @@ class MapViewApi { } Future setRotateGesturesEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, enabled]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3548,16 +3344,14 @@ class MapViewApi { } Future setScrollGesturesEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, enabled]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3571,18 +3365,15 @@ class MapViewApi { } } - Future setScrollGesturesDuringRotateOrZoomEnabled( - int viewId, bool enabled) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future setScrollGesturesDuringRotateOrZoomEnabled(int viewId, bool enabled) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, enabled]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3597,16 +3388,14 @@ class MapViewApi { } Future setTiltGesturesEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, enabled]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3621,16 +3410,14 @@ class MapViewApi { } Future setMapToolbarEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, enabled]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3645,16 +3432,14 @@ class MapViewApi { } Future setTrafficEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, enabled]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3669,10 +3454,8 @@ class MapViewApi { } Future isMyLocationButtonEnabled(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3698,10 +3481,8 @@ class MapViewApi { } Future isConsumeMyLocationButtonClickEventsEnabled(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3727,10 +3508,8 @@ class MapViewApi { } Future isZoomGesturesEnabled(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3756,10 +3535,8 @@ class MapViewApi { } Future isZoomControlsEnabled(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3785,10 +3562,8 @@ class MapViewApi { } Future isCompassEnabled(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3814,10 +3589,8 @@ class MapViewApi { } Future isRotateGesturesEnabled(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3843,10 +3616,8 @@ class MapViewApi { } Future isScrollGesturesEnabled(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3872,10 +3643,8 @@ class MapViewApi { } Future isScrollGesturesEnabledDuringRotateOrZoom(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3901,10 +3670,8 @@ class MapViewApi { } Future isTiltGesturesEnabled(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3930,10 +3697,8 @@ class MapViewApi { } Future isMapToolbarEnabled(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3959,10 +3724,8 @@ class MapViewApi { } Future isTrafficEnabled(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3988,10 +3751,8 @@ class MapViewApi { } Future> getMarkers(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -4016,18 +3777,15 @@ class MapViewApi { } } - Future> addMarkers( - int viewId, List markers) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future> addMarkers(int viewId, List markers) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, markers]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, markers]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -4046,18 +3804,15 @@ class MapViewApi { } } - Future> updateMarkers( - int viewId, List markers) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future> updateMarkers(int viewId, List markers) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, markers]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, markers]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -4077,16 +3832,14 @@ class MapViewApi { } Future removeMarkers(int viewId, List markers) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, markers]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, markers]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -4101,10 +3854,8 @@ class MapViewApi { } Future clearMarkers(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -4125,10 +3876,8 @@ class MapViewApi { } Future clear(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -4149,10 +3898,8 @@ class MapViewApi { } Future> getPolygons(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -4177,18 +3924,15 @@ class MapViewApi { } } - Future> addPolygons( - int viewId, List polygons) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future> addPolygons(int viewId, List polygons) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, polygons]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, polygons]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -4207,18 +3951,15 @@ class MapViewApi { } } - Future> updatePolygons( - int viewId, List polygons) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future> updatePolygons(int viewId, List polygons) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, polygons]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, polygons]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -4238,16 +3979,14 @@ class MapViewApi { } Future removePolygons(int viewId, List polygons) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, polygons]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, polygons]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -4262,10 +4001,8 @@ class MapViewApi { } Future clearPolygons(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -4286,10 +4023,8 @@ class MapViewApi { } Future> getPolylines(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -4314,18 +4049,15 @@ class MapViewApi { } } - Future> addPolylines( - int viewId, List polylines) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future> addPolylines(int viewId, List polylines) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, polylines]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, polylines]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -4344,18 +4076,15 @@ class MapViewApi { } } - Future> updatePolylines( - int viewId, List polylines) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future> updatePolylines(int viewId, List polylines) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, polylines]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, polylines]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -4375,16 +4104,14 @@ class MapViewApi { } Future removePolylines(int viewId, List polylines) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, polylines]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, polylines]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -4399,10 +4126,8 @@ class MapViewApi { } Future clearPolylines(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -4423,10 +4148,8 @@ class MapViewApi { } Future> getCircles(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -4451,18 +4174,15 @@ class MapViewApi { } } - Future> addCircles( - int viewId, List circles) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future> addCircles(int viewId, List circles) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, circles]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, circles]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -4481,18 +4201,15 @@ class MapViewApi { } } - Future> updateCircles( - int viewId, List circles) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future> updateCircles(int viewId, List circles) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, circles]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, circles]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -4512,16 +4229,14 @@ class MapViewApi { } Future removeCircles(int viewId, List circles) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, circles]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, circles]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -4536,10 +4251,8 @@ class MapViewApi { } Future clearCircles(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -4560,10 +4273,8 @@ class MapViewApi { } Future registerOnCameraChangedListener(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.registerOnCameraChangedListener'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.registerOnCameraChangedListener'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -4584,16 +4295,14 @@ class MapViewApi { } Future setPadding(int viewId, MapPaddingDto padding) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([viewId, padding]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([viewId, padding]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -4608,10 +4317,8 @@ class MapViewApi { } Future getPadding(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -4655,9 +4362,9 @@ class _ImageRegistryApiCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 128: + case 128: return ImageDescriptorDto.decode(readValue(buffer)!); - case 129: + case 129: return ImageDescriptorDto.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -4673,26 +4380,17 @@ class ImageRegistryApi { : __pigeon_binaryMessenger = binaryMessenger; final BinaryMessenger? __pigeon_binaryMessenger; - static const MessageCodec pigeonChannelCodec = - _ImageRegistryApiCodec(); + static const MessageCodec pigeonChannelCodec = _ImageRegistryApiCodec(); - Future registerBitmapImage( - String imageId, - Uint8List bytes, - double imagePixelRatio, - double? width, - double? height) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future registerBitmapImage(String imageId, Uint8List bytes, double imagePixelRatio, double? width, double? height) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([imageId, bytes, imagePixelRatio, width, height]) - as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([imageId, bytes, imagePixelRatio, width, height]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -4712,16 +4410,14 @@ class ImageRegistryApi { } Future unregisterImage(ImageDescriptorDto imageDescriptor) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([imageDescriptor]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([imageDescriptor]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -4736,10 +4432,8 @@ class ImageRegistryApi { } Future> getRegisteredImages() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -4760,16 +4454,13 @@ class ImageRegistryApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as List?)! - .cast(); + return (__pigeon_replyList[0] as List?)!.cast(); } } Future clearRegisteredImages() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -4808,9 +4499,9 @@ class _ViewEventApiCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 128: + case 128: return CameraPositionDto.decode(readValue(buffer)!); - case 129: + case 129: return LatLngDto.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -4829,8 +4520,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); @@ -4844,22 +4534,19 @@ abstract class ViewEventApi { void onMyLocationButtonClicked(int viewId); - void onCameraChanged( - int viewId, CameraEventTypeDto eventType, CameraPositionDto position); + void onCameraChanged(int viewId, CameraEventTypeDto eventType, CameraPositionDto position); static void setup(ViewEventApi? api, {BinaryMessenger? binaryMessenger}) { { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent was 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, @@ -4872,25 +4559,22 @@ abstract class ViewEventApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent was 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, @@ -4903,25 +4587,22 @@ abstract class ViewEventApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked was 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, @@ -4931,25 +4612,22 @@ abstract class ViewEventApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent was 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, @@ -4957,9 +4635,7 @@ abstract class ViewEventApi { 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] == null - ? null - : MarkerEventTypeDto.values[args[2]! as int]; + final MarkerEventTypeDto? arg_eventType = args[2] == null ? null : MarkerEventTypeDto.values[args[2]! as int]; assert(arg_eventType != null, 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent was null, expected non-null MarkerEventTypeDto.'); try { @@ -4967,25 +4643,22 @@ abstract class ViewEventApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was 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, @@ -4993,39 +4666,33 @@ abstract class ViewEventApi { 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] == null - ? null - : MarkerDragEventTypeDto.values[args[2]! as int]; + final MarkerDragEventTypeDto? arg_eventType = args[2] == null ? null : MarkerDragEventTypeDto.values[args[2]! as int]; 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.'); 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked was 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, @@ -5038,25 +4705,22 @@ abstract class ViewEventApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked was 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, @@ -5069,25 +4733,22 @@ abstract class ViewEventApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked was 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, @@ -5100,25 +4761,22 @@ abstract class ViewEventApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged was 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, @@ -5127,30 +4785,26 @@ abstract class ViewEventApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked was 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, @@ -5160,25 +4814,22 @@ abstract class ViewEventApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked was 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, @@ -5188,36 +4839,30 @@ abstract class ViewEventApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged was 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] == null - ? null - : CameraEventTypeDto.values[args[1]! as int]; + final CameraEventTypeDto? arg_eventType = args[1] == null ? null : CameraEventTypeDto.values[args[1]! as int]; 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?); + 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 { @@ -5225,9 +4870,8 @@ abstract class ViewEventApi { 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())); } }); } @@ -5295,38 +4939,37 @@ class _NavigationSessionApiCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 128: + case 128: return DestinationsDto.decode(readValue(buffer)!); - case 129: + case 129: return LatLngDto.decode(readValue(buffer)!); - case 130: + case 130: return LatLngDto.decode(readValue(buffer)!); - case 131: + case 131: return NavigationAudioGuidanceSettingsDto.decode(readValue(buffer)!); - case 132: + case 132: return NavigationDisplayOptionsDto.decode(readValue(buffer)!); - case 133: + case 133: return NavigationTimeAndDistanceDto.decode(readValue(buffer)!); - case 134: + case 134: return NavigationWaypointDto.decode(readValue(buffer)!); - case 135: + case 135: return NavigationWaypointDto.decode(readValue(buffer)!); - case 136: + case 136: return RouteSegmentDto.decode(readValue(buffer)!); - case 137: + case 137: return RouteSegmentDto.decode(readValue(buffer)!); - case 138: + case 138: return RouteSegmentTrafficDataDto.decode(readValue(buffer)!); - case 139: - return RouteSegmentTrafficDataRoadStretchRenderingDataDto.decode( - readValue(buffer)!); - case 140: + case 139: + return RouteSegmentTrafficDataRoadStretchRenderingDataDto.decode(readValue(buffer)!); + case 140: return RouteTokenOptionsDto.decode(readValue(buffer)!); - case 141: + case 141: return RoutingOptionsDto.decode(readValue(buffer)!); - case 142: + case 142: return SimulationOptionsDto.decode(readValue(buffer)!); - case 143: + case 143: return SpeedAlertOptionsDto.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -5342,22 +4985,18 @@ class NavigationSessionApi { : __pigeon_binaryMessenger = binaryMessenger; final BinaryMessenger? __pigeon_binaryMessenger; - static const MessageCodec pigeonChannelCodec = - _NavigationSessionApiCodec(); + static const MessageCodec pigeonChannelCodec = _NavigationSessionApiCodec(); /// General. - Future createNavigationSession( - bool abnormalTerminationReportingEnabled) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future createNavigationSession(bool abnormalTerminationReportingEnabled, TaskRemovedBehaviorDto behavior) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([abnormalTerminationReportingEnabled]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([abnormalTerminationReportingEnabled, behavior.index]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -5372,10 +5011,8 @@ class NavigationSessionApi { } Future isInitialized() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5401,10 +5038,8 @@ class NavigationSessionApi { } Future cleanup() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5424,22 +5059,15 @@ class NavigationSessionApi { } } - Future showTermsAndConditionsDialog(String title, String companyName, - bool shouldOnlyShowDriverAwarenessDisclaimer) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future showTermsAndConditionsDialog(String title, String companyName, bool shouldOnlyShowDriverAwarenessDisclaimer) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([ - title, - companyName, - shouldOnlyShowDriverAwarenessDisclaimer - ]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([title, companyName, shouldOnlyShowDriverAwarenessDisclaimer]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -5459,10 +5087,8 @@ class NavigationSessionApi { } Future areTermsAccepted() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5488,10 +5114,8 @@ class NavigationSessionApi { } Future resetTermsAccepted() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5512,10 +5136,8 @@ class NavigationSessionApi { } Future getNavSDKVersion() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5542,10 +5164,8 @@ class NavigationSessionApi { /// Navigation. Future isGuidanceRunning() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5571,10 +5191,8 @@ class NavigationSessionApi { } Future startGuidance() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5595,10 +5213,8 @@ class NavigationSessionApi { } Future stopGuidance() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5619,10 +5235,8 @@ class NavigationSessionApi { } Future setDestinations(DestinationsDto destinations) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5648,10 +5262,8 @@ class NavigationSessionApi { } Future clearDestinations() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5672,10 +5284,8 @@ class NavigationSessionApi { } Future continueToNextDestination() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5696,10 +5306,8 @@ class NavigationSessionApi { } Future getCurrentTimeAndDistance() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5724,12 +5332,9 @@ class NavigationSessionApi { } } - Future setAudioGuidance( - NavigationAudioGuidanceSettingsDto settings) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future setAudioGuidance(NavigationAudioGuidanceSettingsDto settings) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5750,10 +5355,8 @@ class NavigationSessionApi { } Future setSpeedAlertOptions(SpeedAlertOptionsDto options) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5774,10 +5377,8 @@ class NavigationSessionApi { } Future> getRouteSegments() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5798,16 +5399,13 @@ class NavigationSessionApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as List?)! - .cast(); + return (__pigeon_replyList[0] as List?)!.cast(); } } Future> getTraveledRoute() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5833,10 +5431,8 @@ class NavigationSessionApi { } Future getCurrentRouteSegment() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5858,10 +5454,8 @@ class NavigationSessionApi { /// Simulation Future setUserLocation(LatLngDto location) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5882,10 +5476,8 @@ class NavigationSessionApi { } Future removeUserLocation() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5906,10 +5498,8 @@ class NavigationSessionApi { } Future simulateLocationsAlongExistingRoute() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5929,12 +5519,9 @@ class NavigationSessionApi { } } - Future simulateLocationsAlongExistingRouteWithOptions( - SimulationOptionsDto options) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future simulateLocationsAlongExistingRouteWithOptions(SimulationOptionsDto options) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5954,12 +5541,9 @@ class NavigationSessionApi { } } - Future simulateLocationsAlongNewRoute( - List waypoints) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future simulateLocationsAlongNewRoute(List waypoints) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5984,19 +5568,15 @@ class NavigationSessionApi { } } - Future simulateLocationsAlongNewRouteWithRoutingOptions( - List waypoints, - RoutingOptionsDto routingOptions) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future simulateLocationsAlongNewRouteWithRoutingOptions(List waypoints, RoutingOptionsDto routingOptions) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([waypoints, routingOptions]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([waypoints, routingOptions]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -6015,22 +5595,15 @@ class NavigationSessionApi { } } - Future - simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( - List waypoints, - RoutingOptionsDto routingOptions, - SimulationOptionsDto simulationOptions) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(List waypoints, RoutingOptionsDto routingOptions, SimulationOptionsDto simulationOptions) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([waypoints, routingOptions, simulationOptions]) - as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([waypoints, routingOptions, simulationOptions]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -6050,10 +5623,8 @@ class NavigationSessionApi { } Future pauseSimulation() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -6074,10 +5645,8 @@ class NavigationSessionApi { } Future resumeSimulation() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -6099,10 +5668,8 @@ class NavigationSessionApi { /// Simulation (iOS only) Future allowBackgroundLocationUpdates(bool allow) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -6124,10 +5691,8 @@ class NavigationSessionApi { /// Road snapped location updates. Future enableRoadSnappedLocationUpdates() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -6148,10 +5713,8 @@ class NavigationSessionApi { } Future disableRoadSnappedLocationUpdates() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -6172,18 +5735,15 @@ class NavigationSessionApi { } /// Enable Turn-by-Turn navigation events. - Future enableTurnByTurnNavigationEvents( - int? numNextStepsToPreview) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future enableTurnByTurnNavigationEvents(int? numNextStepsToPreview) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([numNextStepsToPreview]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([numNextStepsToPreview]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -6198,10 +5758,8 @@ class NavigationSessionApi { } Future disableTurnByTurnNavigationEvents() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -6221,22 +5779,15 @@ class NavigationSessionApi { } } - Future registerRemainingTimeOrDistanceChangedListener( - int remainingTimeThresholdSeconds, - int remainingDistanceThresholdMeters) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future registerRemainingTimeOrDistanceChangedListener(int remainingTimeThresholdSeconds, int remainingDistanceThresholdMeters) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([ - remainingTimeThresholdSeconds, - remainingDistanceThresholdMeters - ]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([remainingTimeThresholdSeconds, remainingDistanceThresholdMeters]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -6287,21 +5838,21 @@ class _NavigationSessionEventApiCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 128: + case 128: return LaneDirectionDto.decode(readValue(buffer)!); - case 129: + case 129: return LaneDto.decode(readValue(buffer)!); - case 130: + case 130: return LatLngDto.decode(readValue(buffer)!); - case 131: + case 131: return NavInfoDto.decode(readValue(buffer)!); - case 132: + case 132: return NavigationWaypointDto.decode(readValue(buffer)!); - case 133: + case 133: return SpeedingUpdatedEventDto.decode(readValue(buffer)!); - case 134: + case 134: return StepInfoDto.decode(readValue(buffer)!); - case 135: + case 135: return StepInfoDto.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -6310,8 +5861,7 @@ class _NavigationSessionEventApiCodec extends StandardMessageCodec { } abstract class NavigationSessionEventApi { - static const MessageCodec pigeonChannelCodec = - _NavigationSessionEventApiCodec(); + static const MessageCodec pigeonChannelCodec = _NavigationSessionEventApiCodec(); void onSpeedingUpdated(SpeedingUpdatedEventDto msg); @@ -6323,8 +5873,7 @@ abstract class NavigationSessionEventApi { void onRouteChanged(); - void onRemainingTimeOrDistanceChanged( - double remainingTime, double remainingDistance); + void onRemainingTimeOrDistanceChanged(double remainingTime, double remainingDistance); /// Android-only event. void onTrafficUpdated(); @@ -6338,23 +5887,19 @@ abstract class NavigationSessionEventApi { /// Turn-by-Turn navigation events. void onNavInfo(NavInfoDto navInfo); - static void setup(NavigationSessionEventApi? api, - {BinaryMessenger? binaryMessenger}) { + static void setup(NavigationSessionEventApi? api, {BinaryMessenger? binaryMessenger}) { { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated was 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?); + 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 { @@ -6362,25 +5907,22 @@ 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated was 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, @@ -6390,25 +5932,22 @@ 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated was 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, @@ -6418,28 +5957,24 @@ 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival was 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?); + 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 { @@ -6447,18 +5982,15 @@ 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); @@ -6469,25 +6001,22 @@ 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was 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, @@ -6496,23 +6025,19 @@ abstract class NavigationSessionEventApi { assert(arg_remainingDistance != null, 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was null, expected non-null double.'); try { - api.onRemainingTimeOrDistanceChanged( - arg_remainingTime!, arg_remainingDistance!); + api.onRemainingTimeOrDistanceChanged(arg_remainingTime!, arg_remainingDistance!); 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); @@ -6523,18 +6048,15 @@ 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); @@ -6545,25 +6067,22 @@ 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate was 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, @@ -6573,25 +6092,22 @@ 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo was 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, @@ -6601,9 +6117,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())); } }); } @@ -6683,45 +6198,45 @@ class _AutoMapViewApiCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 128: + case 128: return CameraPositionDto.decode(readValue(buffer)!); - case 129: + case 129: return CircleDto.decode(readValue(buffer)!); - case 130: + case 130: return CircleOptionsDto.decode(readValue(buffer)!); - case 131: + case 131: return ImageDescriptorDto.decode(readValue(buffer)!); - case 132: + case 132: return InfoWindowDto.decode(readValue(buffer)!); - case 133: + case 133: return LatLngBoundsDto.decode(readValue(buffer)!); - case 134: + case 134: return LatLngDto.decode(readValue(buffer)!); - case 135: + case 135: return LatLngDto.decode(readValue(buffer)!); - case 136: + case 136: return MapPaddingDto.decode(readValue(buffer)!); - case 137: + case 137: return MarkerAnchorDto.decode(readValue(buffer)!); - case 138: + case 138: return MarkerDto.decode(readValue(buffer)!); - case 139: + case 139: return MarkerOptionsDto.decode(readValue(buffer)!); - case 140: + case 140: return PatternItemDto.decode(readValue(buffer)!); - case 141: + case 141: return PolygonDto.decode(readValue(buffer)!); - case 142: + case 142: return PolygonHoleDto.decode(readValue(buffer)!); - case 143: + case 143: return PolygonOptionsDto.decode(readValue(buffer)!); - case 144: + case 144: return PolylineDto.decode(readValue(buffer)!); - case 145: + case 145: return PolylineOptionsDto.decode(readValue(buffer)!); - case 146: + case 146: return StyleSpanDto.decode(readValue(buffer)!); - case 147: + case 147: return StyleSpanStrokeStyleDto.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -6737,14 +6252,11 @@ class AutoMapViewApi { : __pigeon_binaryMessenger = binaryMessenger; final BinaryMessenger? __pigeon_binaryMessenger; - static const MessageCodec pigeonChannelCodec = - _AutoMapViewApiCodec(); + static const MessageCodec pigeonChannelCodec = _AutoMapViewApiCodec(); Future isMyLocationEnabled() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -6770,10 +6282,8 @@ class AutoMapViewApi { } Future setMyLocationEnabled(bool enabled) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -6794,10 +6304,8 @@ class AutoMapViewApi { } Future getMyLocation() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -6818,10 +6326,8 @@ class AutoMapViewApi { } Future getMapType() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -6847,10 +6353,8 @@ class AutoMapViewApi { } Future setMapType(MapTypeDto mapType) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -6871,10 +6375,8 @@ class AutoMapViewApi { } Future setMapStyle(String styleJson) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -6895,10 +6397,8 @@ class AutoMapViewApi { } Future getCameraPosition() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -6924,10 +6424,8 @@ class AutoMapViewApi { } Future getVisibleRegion() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -6952,18 +6450,15 @@ class AutoMapViewApi { } } - Future followMyLocation( - CameraPerspectiveDto perspective, double? zoomLevel) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future followMyLocation(CameraPerspectiveDto perspective, double? zoomLevel) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([perspective.index, zoomLevel]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([perspective.index, zoomLevel]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -6977,18 +6472,15 @@ class AutoMapViewApi { } } - Future animateCameraToCameraPosition( - CameraPositionDto cameraPosition, int? duration) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future animateCameraToCameraPosition(CameraPositionDto cameraPosition, int? duration) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([cameraPosition, duration]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([cameraPosition, duration]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -7008,16 +6500,14 @@ class AutoMapViewApi { } Future animateCameraToLatLng(LatLngDto point, int? duration) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([point, duration]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([point, duration]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -7036,18 +6526,15 @@ class AutoMapViewApi { } } - Future animateCameraToLatLngBounds( - LatLngBoundsDto bounds, double padding, int? duration) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future animateCameraToLatLngBounds(LatLngBoundsDto bounds, double padding, int? duration) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([bounds, padding, duration]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([bounds, padding, duration]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -7066,18 +6553,15 @@ class AutoMapViewApi { } } - Future animateCameraToLatLngZoom( - LatLngDto point, double zoom, int? duration) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future animateCameraToLatLngZoom(LatLngDto point, double zoom, int? duration) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([point, zoom, duration]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([point, zoom, duration]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -7096,18 +6580,15 @@ class AutoMapViewApi { } } - Future animateCameraByScroll( - double scrollByDx, double scrollByDy, int? duration) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future animateCameraByScroll(double scrollByDx, double scrollByDy, int? duration) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([scrollByDx, scrollByDy, duration]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([scrollByDx, scrollByDy, duration]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -7126,18 +6607,15 @@ class AutoMapViewApi { } } - Future animateCameraByZoom( - double zoomBy, double? focusDx, double? focusDy, int? duration) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future animateCameraByZoom(double zoomBy, double? focusDx, double? focusDy, int? duration) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([zoomBy, focusDx, focusDy, duration]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([zoomBy, focusDx, focusDy, duration]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -7157,16 +6635,14 @@ class AutoMapViewApi { } Future animateCameraToZoom(double zoom, int? duration) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([zoom, duration]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([zoom, duration]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -7185,18 +6661,15 @@ class AutoMapViewApi { } } - Future moveCameraToCameraPosition( - CameraPositionDto cameraPosition) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future moveCameraToCameraPosition(CameraPositionDto cameraPosition) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([cameraPosition]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([cameraPosition]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -7211,10 +6684,8 @@ class AutoMapViewApi { } Future moveCameraToLatLng(LatLngDto point) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7234,18 +6705,15 @@ class AutoMapViewApi { } } - Future moveCameraToLatLngBounds( - LatLngBoundsDto bounds, double padding) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future moveCameraToLatLngBounds(LatLngBoundsDto bounds, double padding) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([bounds, padding]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([bounds, padding]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -7260,10 +6728,8 @@ class AutoMapViewApi { } Future moveCameraToLatLngZoom(LatLngDto point, double zoom) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7284,16 +6750,14 @@ class AutoMapViewApi { } Future moveCameraByScroll(double scrollByDx, double scrollByDy) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([scrollByDx, scrollByDy]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([scrollByDx, scrollByDy]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -7307,18 +6771,15 @@ class AutoMapViewApi { } } - Future moveCameraByZoom( - double zoomBy, double? focusDx, double? focusDy) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future moveCameraByZoom(double zoomBy, double? focusDx, double? focusDy) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([zoomBy, focusDx, focusDy]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([zoomBy, focusDx, focusDy]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -7333,10 +6794,8 @@ class AutoMapViewApi { } Future moveCameraToZoom(double zoom) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7357,10 +6816,8 @@ class AutoMapViewApi { } Future getMinZoomPreference() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7386,10 +6843,8 @@ class AutoMapViewApi { } Future getMaxZoomPreference() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7415,10 +6870,8 @@ class AutoMapViewApi { } Future resetMinMaxZoomPreference() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7439,16 +6892,14 @@ class AutoMapViewApi { } Future setMinZoomPreference(double minZoomPreference) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([minZoomPreference]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([minZoomPreference]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -7463,16 +6914,14 @@ class AutoMapViewApi { } Future setMaxZoomPreference(double maxZoomPreference) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([maxZoomPreference]) as List?; + final List? __pigeon_replyList = + await __pigeon_channel.send([maxZoomPreference]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -7487,10 +6936,8 @@ class AutoMapViewApi { } Future setMyLocationButtonEnabled(bool enabled) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7510,12 +6957,9 @@ class AutoMapViewApi { } } - Future setConsumeMyLocationButtonClickEventsEnabled( - bool enabled) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future setConsumeMyLocationButtonClickEventsEnabled(bool enabled) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7536,10 +6980,8 @@ class AutoMapViewApi { } Future setZoomGesturesEnabled(bool enabled) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7560,10 +7002,8 @@ class AutoMapViewApi { } Future setZoomControlsEnabled(bool enabled) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7584,10 +7024,8 @@ class AutoMapViewApi { } Future setCompassEnabled(bool enabled) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7608,10 +7046,8 @@ class AutoMapViewApi { } Future setRotateGesturesEnabled(bool enabled) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7632,10 +7068,8 @@ class AutoMapViewApi { } Future setScrollGesturesEnabled(bool enabled) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7656,10 +7090,8 @@ class AutoMapViewApi { } Future setScrollGesturesDuringRotateOrZoomEnabled(bool enabled) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7680,10 +7112,8 @@ class AutoMapViewApi { } Future setTiltGesturesEnabled(bool enabled) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7704,10 +7134,8 @@ class AutoMapViewApi { } Future setMapToolbarEnabled(bool enabled) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7728,10 +7156,8 @@ class AutoMapViewApi { } Future setTrafficEnabled(bool enabled) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7752,10 +7178,8 @@ class AutoMapViewApi { } Future isMyLocationButtonEnabled() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7781,10 +7205,8 @@ class AutoMapViewApi { } Future isConsumeMyLocationButtonClickEventsEnabled() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7810,10 +7232,8 @@ class AutoMapViewApi { } Future isZoomGesturesEnabled() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7839,10 +7259,8 @@ class AutoMapViewApi { } Future isZoomControlsEnabled() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7868,10 +7286,8 @@ class AutoMapViewApi { } Future isCompassEnabled() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7897,10 +7313,8 @@ class AutoMapViewApi { } Future isRotateGesturesEnabled() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7926,10 +7340,8 @@ class AutoMapViewApi { } Future isScrollGesturesEnabled() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7955,10 +7367,8 @@ class AutoMapViewApi { } Future isScrollGesturesEnabledDuringRotateOrZoom() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7984,10 +7394,8 @@ class AutoMapViewApi { } Future isTiltGesturesEnabled() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -8013,10 +7421,8 @@ class AutoMapViewApi { } Future isMapToolbarEnabled() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -8042,10 +7448,8 @@ class AutoMapViewApi { } Future isTrafficEnabled() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -8071,10 +7475,8 @@ class AutoMapViewApi { } Future> getMarkers() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -8100,10 +7502,8 @@ class AutoMapViewApi { } Future> addMarkers(List markers) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -8129,10 +7529,8 @@ class AutoMapViewApi { } Future> updateMarkers(List markers) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -8158,10 +7556,8 @@ class AutoMapViewApi { } Future removeMarkers(List markers) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -8182,10 +7578,8 @@ class AutoMapViewApi { } Future clearMarkers() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -8206,10 +7600,8 @@ class AutoMapViewApi { } Future clear() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -8230,10 +7622,8 @@ class AutoMapViewApi { } Future> getPolygons() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -8259,10 +7649,8 @@ class AutoMapViewApi { } Future> addPolygons(List polygons) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -8288,10 +7676,8 @@ class AutoMapViewApi { } Future> updatePolygons(List polygons) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -8317,10 +7703,8 @@ class AutoMapViewApi { } Future removePolygons(List polygons) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -8341,10 +7725,8 @@ class AutoMapViewApi { } Future clearPolygons() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -8365,10 +7747,8 @@ class AutoMapViewApi { } Future> getPolylines() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -8394,10 +7774,8 @@ class AutoMapViewApi { } Future> addPolylines(List polylines) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -8422,12 +7800,9 @@ class AutoMapViewApi { } } - Future> updatePolylines( - List polylines) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + Future> updatePolylines(List polylines) async { + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -8453,10 +7828,8 @@ class AutoMapViewApi { } Future removePolylines(List polylines) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -8477,10 +7850,8 @@ class AutoMapViewApi { } Future clearPolylines() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -8501,10 +7872,8 @@ class AutoMapViewApi { } Future> getCircles() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -8530,10 +7899,8 @@ class AutoMapViewApi { } Future> addCircles(List circles) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -8559,10 +7926,8 @@ class AutoMapViewApi { } Future> updateCircles(List circles) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -8588,10 +7953,8 @@ class AutoMapViewApi { } Future removeCircles(List circles) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -8612,10 +7975,8 @@ class AutoMapViewApi { } Future clearCircles() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -8636,10 +7997,8 @@ class AutoMapViewApi { } Future registerOnCameraChangedListener() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.registerOnCameraChangedListener'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.registerOnCameraChangedListener'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -8660,10 +8019,8 @@ class AutoMapViewApi { } Future isAutoScreenAvailable() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -8689,10 +8046,8 @@ class AutoMapViewApi { } Future setPadding(MapPaddingDto padding) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -8713,10 +8068,8 @@ class AutoMapViewApi { } Future getPadding() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -8871,84 +8224,83 @@ class _AutoViewEventApiCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 128: + case 128: return CameraPositionDto.decode(readValue(buffer)!); - case 129: + case 129: return CircleDto.decode(readValue(buffer)!); - case 130: + case 130: return CircleOptionsDto.decode(readValue(buffer)!); - case 131: + case 131: return DestinationsDto.decode(readValue(buffer)!); - case 132: + case 132: return ImageDescriptorDto.decode(readValue(buffer)!); - case 133: + case 133: return InfoWindowDto.decode(readValue(buffer)!); - case 134: + case 134: return LaneDirectionDto.decode(readValue(buffer)!); - case 135: + case 135: return LaneDto.decode(readValue(buffer)!); - case 136: + case 136: return LatLngBoundsDto.decode(readValue(buffer)!); - case 137: + case 137: return LatLngDto.decode(readValue(buffer)!); - case 138: + case 138: return MapOptionsDto.decode(readValue(buffer)!); - case 139: + case 139: return MapPaddingDto.decode(readValue(buffer)!); - case 140: + case 140: return MarkerAnchorDto.decode(readValue(buffer)!); - case 141: + case 141: return MarkerDto.decode(readValue(buffer)!); - case 142: + case 142: return MarkerOptionsDto.decode(readValue(buffer)!); - case 143: + case 143: return NavInfoDto.decode(readValue(buffer)!); - case 144: + case 144: return NavigationAudioGuidanceSettingsDto.decode(readValue(buffer)!); - case 145: + case 145: return NavigationDisplayOptionsDto.decode(readValue(buffer)!); - case 146: + case 146: return NavigationTimeAndDistanceDto.decode(readValue(buffer)!); - case 147: + case 147: return NavigationViewOptionsDto.decode(readValue(buffer)!); - case 148: + case 148: return NavigationWaypointDto.decode(readValue(buffer)!); - case 149: + case 149: return PatternItemDto.decode(readValue(buffer)!); - case 150: + case 150: return PolygonDto.decode(readValue(buffer)!); - case 151: + case 151: return PolygonHoleDto.decode(readValue(buffer)!); - case 152: + case 152: return PolygonOptionsDto.decode(readValue(buffer)!); - case 153: + case 153: return PolylineDto.decode(readValue(buffer)!); - case 154: + case 154: return PolylineOptionsDto.decode(readValue(buffer)!); - case 155: + case 155: return RouteSegmentDto.decode(readValue(buffer)!); - case 156: + case 156: return RouteSegmentTrafficDataDto.decode(readValue(buffer)!); - case 157: - return RouteSegmentTrafficDataRoadStretchRenderingDataDto.decode( - readValue(buffer)!); - case 158: + case 157: + return RouteSegmentTrafficDataRoadStretchRenderingDataDto.decode(readValue(buffer)!); + case 158: return RouteTokenOptionsDto.decode(readValue(buffer)!); - case 159: + case 159: return RoutingOptionsDto.decode(readValue(buffer)!); - case 160: + case 160: return SimulationOptionsDto.decode(readValue(buffer)!); - case 161: + case 161: return SpeedAlertOptionsDto.decode(readValue(buffer)!); - case 162: + case 162: return SpeedingUpdatedEventDto.decode(readValue(buffer)!); - case 163: + case 163: return StepInfoDto.decode(readValue(buffer)!); - case 164: + case 164: return StyleSpanDto.decode(readValue(buffer)!); - case 165: + case 165: return StyleSpanStrokeStyleDto.decode(readValue(buffer)!); - case 166: + case 166: return ViewCreationOptionsDto.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -8957,8 +8309,7 @@ class _AutoViewEventApiCodec extends StandardMessageCodec { } abstract class AutoViewEventApi { - static const MessageCodec pigeonChannelCodec = - _AutoViewEventApiCodec(); + static const MessageCodec pigeonChannelCodec = _AutoViewEventApiCodec(); void onCustomNavigationAutoEvent(String event, Object data); @@ -8966,17 +8317,15 @@ abstract class AutoViewEventApi { static void setup(AutoViewEventApi? api, {BinaryMessenger? binaryMessenger}) { { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent was 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, @@ -8989,25 +8338,22 @@ abstract class AutoViewEventApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged was 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, @@ -9017,9 +8363,8 @@ abstract class AutoViewEventApi { 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())); } }); } @@ -9035,14 +8380,11 @@ class NavigationInspector { : __pigeon_binaryMessenger = binaryMessenger; final BinaryMessenger? __pigeon_binaryMessenger; - static const MessageCodec pigeonChannelCodec = - StandardMessageCodec(); + static const MessageCodec pigeonChannelCodec = StandardMessageCodec(); Future isViewAttachedToSession(int viewId) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession'; - final BasicMessageChannel __pigeon_channel = - BasicMessageChannel( + const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession'; + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, diff --git a/lib/src/method_channel/session_api.dart b/lib/src/method_channel/session_api.dart index 4b6a4182..3d58bbcc 100644 --- a/lib/src/method_channel/session_api.dart +++ b/lib/src/method_channel/session_api.dart @@ -48,14 +48,14 @@ class NavigationSessionAPIImpl { } /// Creates navigation session in the native platform and returns navigation session controller. - Future createNavigationSession( - bool abnormalTerminationReportingEnabled) async { + Future createNavigationSession(bool abnormalTerminationReportingEnabled, + TaskRemovedBehavior taskRemovedBehavior) async { // Setup session API streams. ensureSessionAPISetUp(); try { // Create native navigation session manager. - await _sessionApi - .createNavigationSession(abnormalTerminationReportingEnabled); + await _sessionApi.createNavigationSession( + abnormalTerminationReportingEnabled, taskRemovedBehavior.toDto()); } on PlatformException catch (e) { switch (e.code) { case 'notAuthorized': diff --git a/lib/src/navigator/google_navigation_flutter_navigator.dart b/lib/src/navigator/google_navigation_flutter_navigator.dart index eb6bf508..5b588f38 100644 --- a/lib/src/navigator/google_navigation_flutter_navigator.dart +++ b/lib/src/navigator/google_navigation_flutter_navigator.dart @@ -50,9 +50,12 @@ class GoogleMapsNavigator { /// reporting abnormal SDK terminations such as the app crashes while the SDK is still running. /// static Future initializeNavigationSession( - {bool abnormalTerminationReportingEnabled = true}) async { + {bool abnormalTerminationReportingEnabled = true, + TaskRemovedBehavior taskRemovedBehavior = + TaskRemovedBehavior.quitService}) async { await GoogleMapsNavigationPlatform.instance.navigationSessionAPI - .createNavigationSession(abnormalTerminationReportingEnabled); + .createNavigationSession( + abnormalTerminationReportingEnabled, taskRemovedBehavior); // Enable road-snapped location updates if there are subscriptions to them. if ((_roadSnappedLocationUpdatedController?.hasListener ?? false) || diff --git a/lib/src/types/navigation_initialization_params.dart b/lib/src/types/navigation_initialization_params.dart new file mode 100644 index 00000000..10ab22a7 --- /dev/null +++ b/lib/src/types/navigation_initialization_params.dart @@ -0,0 +1,24 @@ +// Copyright 2025 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. + +/// Determines how application should behave when a application task is removed. +/// {@category Navigation} +enum TaskRemovedBehavior { + /// 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, +} \ No newline at end of file diff --git a/lib/src/types/types.dart b/lib/src/types/types.dart index 3be5f36e..8a3fd312 100644 --- a/lib/src/types/types.dart +++ b/lib/src/types/types.dart @@ -18,6 +18,7 @@ export 'lat_lng.dart'; export 'lat_lng_bounds.dart'; export 'markers.dart'; export 'navigation_destinations.dart'; +export 'navigation_initialization_params.dart'; export 'navigation_view_types.dart'; export 'navinfo.dart'; export 'polygons.dart'; diff --git a/pigeons/messages.dart b/pigeons/messages.dart index a7c7ac4a..a71eed81 100644 --- a/pigeons/messages.dart +++ b/pigeons/messages.dart @@ -1182,11 +1182,21 @@ class NavInfoDto { final int? timeToNextDestinationSeconds; } +/// Determines how application should behave when a application task is removed. +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, +} + @HostApi(dartHostTestHandler: 'TestNavigationSessionApi') abstract class NavigationSessionApi { /// General. @async - void createNavigationSession(bool abnormalTerminationReportingEnabled); + void createNavigationSession(bool abnormalTerminationReportingEnabled, TaskRemovedBehaviorDto behavior); bool isInitialized(); void cleanup(); @async diff --git a/test/messages_test.g.dart b/test/messages_test.g.dart index 8f54c954..4b23bdfc 100644 --- a/test/messages_test.g.dart +++ b/test/messages_test.g.dart @@ -1,17 +1,17 @@ // Copyright 2023 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. -// +// // Autogenerated from Pigeon (v15.0.0), do not edit directly. // See also: https://pub.dev/packages/pigeon // ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, unnecessary_import, no_leading_underscores_for_local_identifiers @@ -96,45 +96,45 @@ class _TestMapViewApiCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 128: + case 128: return CameraPositionDto.decode(readValue(buffer)!); - case 129: + case 129: return CircleDto.decode(readValue(buffer)!); - case 130: + case 130: return CircleOptionsDto.decode(readValue(buffer)!); - case 131: + case 131: return ImageDescriptorDto.decode(readValue(buffer)!); - case 132: + case 132: return InfoWindowDto.decode(readValue(buffer)!); - case 133: + case 133: return LatLngBoundsDto.decode(readValue(buffer)!); - case 134: + case 134: return LatLngDto.decode(readValue(buffer)!); - case 135: + case 135: return LatLngDto.decode(readValue(buffer)!); - case 136: + case 136: return MapPaddingDto.decode(readValue(buffer)!); - case 137: + case 137: return MarkerAnchorDto.decode(readValue(buffer)!); - case 138: + case 138: return MarkerDto.decode(readValue(buffer)!); - case 139: + case 139: return MarkerOptionsDto.decode(readValue(buffer)!); - case 140: + case 140: return PatternItemDto.decode(readValue(buffer)!); - case 141: + case 141: return PolygonDto.decode(readValue(buffer)!); - case 142: + case 142: return PolygonHoleDto.decode(readValue(buffer)!); - case 143: + case 143: return PolygonOptionsDto.decode(readValue(buffer)!); - case 144: + case 144: return PolylineDto.decode(readValue(buffer)!); - case 145: + case 145: return PolylineOptionsDto.decode(readValue(buffer)!); - case 146: + case 146: return StyleSpanDto.decode(readValue(buffer)!); - case 147: + case 147: return StyleSpanStrokeStyleDto.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -143,10 +143,8 @@ class _TestMapViewApiCodec extends StandardMessageCodec { } abstract class TestMapViewApi { - static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => - TestDefaultBinaryMessengerBinding.instance; - static const MessageCodec pigeonChannelCodec = - _TestMapViewApiCodec(); + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => TestDefaultBinaryMessengerBinding.instance; + static const MessageCodec pigeonChannelCodec = _TestMapViewApiCodec(); Future awaitMapReady(int viewId); @@ -198,26 +196,19 @@ abstract class TestMapViewApi { LatLngBoundsDto getVisibleRegion(int viewId); - void followMyLocation( - int viewId, CameraPerspectiveDto perspective, double? zoomLevel); + void followMyLocation(int viewId, CameraPerspectiveDto perspective, double? zoomLevel); - Future animateCameraToCameraPosition( - int viewId, CameraPositionDto cameraPosition, int? duration); + Future animateCameraToCameraPosition(int viewId, CameraPositionDto cameraPosition, int? duration); - Future animateCameraToLatLng( - int viewId, LatLngDto point, int? duration); + Future animateCameraToLatLng(int viewId, LatLngDto point, int? duration); - Future animateCameraToLatLngBounds( - int viewId, LatLngBoundsDto bounds, double padding, int? duration); + Future animateCameraToLatLngBounds(int viewId, LatLngBoundsDto bounds, double padding, int? duration); - Future animateCameraToLatLngZoom( - int viewId, LatLngDto point, double zoom, int? duration); + Future animateCameraToLatLngZoom(int viewId, LatLngDto point, double zoom, int? duration); - Future animateCameraByScroll( - int viewId, double scrollByDx, double scrollByDy, 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 animateCameraByZoom(int viewId, double zoomBy, double? focusDx, double? focusDy, int? duration); Future animateCameraToZoom(int viewId, double zoom, int? duration); @@ -225,15 +216,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); @@ -343,20 +332,15 @@ abstract class TestMapViewApi { static void setup(TestMapViewApi? api, {BinaryMessenger? binaryMessenger}) { { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady was 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, @@ -366,28 +350,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled was 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, @@ -397,28 +375,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled was 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, @@ -431,28 +403,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation was 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, @@ -462,28 +428,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType was 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, @@ -493,34 +453,27 @@ abstract class TestMapViewApi { return [output.index]; } 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType was 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.setMapType was null, expected non-null int.'); - final MapTypeDto? arg_mapType = - args[1] == null ? null : MapTypeDto.values[args[1]! as int]; + final MapTypeDto? arg_mapType = args[1] == null ? null : MapTypeDto.values[args[1]! as int]; assert(arg_mapType != null, 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType was null, expected non-null MapTypeDto.'); try { @@ -528,28 +481,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle was 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, @@ -562,60 +509,47 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled was 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!); + 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())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled was 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, @@ -628,28 +562,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled was 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, @@ -659,28 +587,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled was 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, @@ -693,28 +615,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled was 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, @@ -724,28 +640,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled was 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, @@ -758,28 +668,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled was 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, @@ -789,28 +693,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled was 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, @@ -823,28 +721,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled was 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, @@ -854,28 +746,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled was 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, @@ -888,28 +774,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled was 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, @@ -919,28 +799,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled was 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, @@ -953,28 +827,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled was 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, @@ -984,28 +852,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled was 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, @@ -1018,28 +880,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled was 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, @@ -1049,28 +905,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled was 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, @@ -1083,28 +933,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition was 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, @@ -1114,28 +958,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion was 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, @@ -1145,35 +983,27 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation was 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] == null - ? null - : CameraPerspectiveDto.values[args[1]! as int]; + final CameraPerspectiveDto? arg_perspective = args[1] == null ? null : CameraPerspectiveDto.values[args[1]! as int]; 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?); @@ -1182,65 +1012,51 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition was 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?); + 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); + 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng was 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, @@ -1250,33 +1066,26 @@ abstract class TestMapViewApi { '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); + 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds was 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, @@ -1289,33 +1098,26 @@ abstract class TestMapViewApi { '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); + 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom was 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, @@ -1328,33 +1130,26 @@ abstract class TestMapViewApi { '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); + 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll was 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, @@ -1367,33 +1162,26 @@ abstract class TestMapViewApi { '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); + 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom was 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, @@ -1405,33 +1193,26 @@ abstract class TestMapViewApi { 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); + 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom was 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, @@ -1441,39 +1222,31 @@ abstract class TestMapViewApi { '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); + 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition was 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?); + 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 { @@ -1481,28 +1254,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng was 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, @@ -1515,28 +1282,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds was 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, @@ -1548,33 +1309,26 @@ abstract class TestMapViewApi { 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!); + 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom was 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, @@ -1590,28 +1344,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll was 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, @@ -1623,33 +1371,26 @@ abstract class TestMapViewApi { 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!); + 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom was 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, @@ -1660,33 +1401,26 @@ abstract class TestMapViewApi { 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); + 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom was 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, @@ -1699,28 +1433,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview was 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, @@ -1730,28 +1458,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference was 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, @@ -1761,28 +1483,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference was 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, @@ -1792,28 +1508,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference was 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, @@ -1823,28 +1533,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference was 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, @@ -1857,28 +1561,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference was 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, @@ -1891,28 +1589,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled was 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, @@ -1925,28 +1617,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled was 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, @@ -1955,33 +1641,26 @@ abstract class TestMapViewApi { 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!); + 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())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled was 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, @@ -1994,28 +1673,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled was 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, @@ -2028,28 +1701,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled was 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, @@ -2062,28 +1729,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled was 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, @@ -2096,28 +1757,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled was 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, @@ -2130,28 +1785,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was 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, @@ -2160,33 +1809,26 @@ abstract class TestMapViewApi { 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!); + 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled was 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, @@ -2199,28 +1841,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled was 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, @@ -2233,28 +1869,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled was 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, @@ -2267,28 +1897,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled was 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, @@ -2298,60 +1922,47 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled was 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!); + 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())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled was 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, @@ -2361,28 +1972,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled was 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, @@ -2392,28 +1997,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled was 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, @@ -2423,28 +2022,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled was 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, @@ -2454,28 +2047,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled was 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, @@ -2485,60 +2072,47 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom was 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!); + 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled was 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, @@ -2548,28 +2122,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled was 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, @@ -2579,28 +2147,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled was 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, @@ -2610,28 +2172,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers was 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, @@ -2641,106 +2197,83 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers was 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(); + 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!); + 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers was 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(); + 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!); + 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers was 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(); + 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 { @@ -2748,28 +2281,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers was 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, @@ -2779,28 +2306,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = - BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear was 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, @@ -2810,28 +2331,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons was 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, @@ -2841,106 +2356,83 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons was 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(); + 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!); + 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons was 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(); + 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!); + 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons was 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(); + 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 { @@ -2948,28 +2440,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons was 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, @@ -2979,28 +2465,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines was 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, @@ -3010,106 +2490,83 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines was 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(); + 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!); + 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines was 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(); + 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!); + 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines was 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(); + 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 { @@ -3117,28 +2574,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines was 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, @@ -3148,28 +2599,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles was 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, @@ -3179,106 +2624,83 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles was 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(); + 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!); + 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles was 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(); + 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!); + 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles was 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(); + 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 { @@ -3286,28 +2708,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles was 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, @@ -3317,28 +2733,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.registerOnCameraChangedListener', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.registerOnCameraChangedListener', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.registerOnCameraChangedListener was null.'); + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.registerOnCameraChangedListener was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); assert(arg_viewId != null, @@ -3348,28 +2758,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding was 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, @@ -3382,28 +2786,22 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding was 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, @@ -3413,9 +2811,8 @@ abstract class TestMapViewApi { 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())); } }); } @@ -3441,9 +2838,9 @@ class _TestImageRegistryApiCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 128: + case 128: return ImageDescriptorDto.decode(readValue(buffer)!); - case 129: + case 129: return ImageDescriptorDto.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -3452,13 +2849,10 @@ class _TestImageRegistryApiCodec extends StandardMessageCodec { } abstract class TestImageRegistryApi { - static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => - TestDefaultBinaryMessengerBinding.instance; - static const MessageCodec pigeonChannelCodec = - _TestImageRegistryApiCodec(); + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => TestDefaultBinaryMessengerBinding.instance; + static const MessageCodec pigeonChannelCodec = _TestImageRegistryApiCodec(); - ImageDescriptorDto registerBitmapImage(String imageId, Uint8List bytes, - double imagePixelRatio, double? width, double? height); + ImageDescriptorDto registerBitmapImage(String imageId, Uint8List bytes, double imagePixelRatio, double? width, double? height); void unregisterImage(ImageDescriptorDto imageDescriptor); @@ -3466,23 +2860,17 @@ abstract class TestImageRegistryApi { void clearRegisteredImages(); - static void setup(TestImageRegistryApi? api, - {BinaryMessenger? binaryMessenger}) { + static void setup(TestImageRegistryApi? api, {BinaryMessenger? binaryMessenger}) { { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage was 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, @@ -3496,40 +2884,28 @@ abstract class TestImageRegistryApi { 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); + 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage was 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?); + 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 { @@ -3537,59 +2913,46 @@ abstract class TestImageRegistryApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { try { api.clearRegisteredImages(); 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())); } }); } @@ -3657,38 +3020,37 @@ class _TestNavigationSessionApiCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 128: + case 128: return DestinationsDto.decode(readValue(buffer)!); - case 129: + case 129: return LatLngDto.decode(readValue(buffer)!); - case 130: + case 130: return LatLngDto.decode(readValue(buffer)!); - case 131: + case 131: return NavigationAudioGuidanceSettingsDto.decode(readValue(buffer)!); - case 132: + case 132: return NavigationDisplayOptionsDto.decode(readValue(buffer)!); - case 133: + case 133: return NavigationTimeAndDistanceDto.decode(readValue(buffer)!); - case 134: + case 134: return NavigationWaypointDto.decode(readValue(buffer)!); - case 135: + case 135: return NavigationWaypointDto.decode(readValue(buffer)!); - case 136: + case 136: return RouteSegmentDto.decode(readValue(buffer)!); - case 137: + case 137: return RouteSegmentDto.decode(readValue(buffer)!); - case 138: + case 138: return RouteSegmentTrafficDataDto.decode(readValue(buffer)!); - case 139: - return RouteSegmentTrafficDataRoadStretchRenderingDataDto.decode( - readValue(buffer)!); - case 140: + case 139: + return RouteSegmentTrafficDataRoadStretchRenderingDataDto.decode(readValue(buffer)!); + case 140: return RouteTokenOptionsDto.decode(readValue(buffer)!); - case 141: + case 141: return RoutingOptionsDto.decode(readValue(buffer)!); - case 142: + case 142: return SimulationOptionsDto.decode(readValue(buffer)!); - case 143: + case 143: return SpeedAlertOptionsDto.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -3697,21 +3059,17 @@ class _TestNavigationSessionApiCodec extends StandardMessageCodec { } abstract class TestNavigationSessionApi { - static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => - TestDefaultBinaryMessengerBinding.instance; - static const MessageCodec pigeonChannelCodec = - _TestNavigationSessionApiCodec(); + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => TestDefaultBinaryMessengerBinding.instance; + static const MessageCodec pigeonChannelCodec = _TestNavigationSessionApiCodec(); /// General. - Future createNavigationSession( - bool abnormalTerminationReportingEnabled); + Future createNavigationSession(bool abnormalTerminationReportingEnabled, TaskRemovedBehaviorDto behavior); bool isInitialized(); void cleanup(); - Future showTermsAndConditionsDialog(String title, String companyName, - bool shouldOnlyShowDriverAwarenessDisclaimer); + Future showTermsAndConditionsDialog(String title, String companyName, bool shouldOnlyShowDriverAwarenessDisclaimer); bool areTermsAccepted(); @@ -3751,20 +3109,13 @@ abstract class TestNavigationSessionApi { void simulateLocationsAlongExistingRoute(); - void simulateLocationsAlongExistingRouteWithOptions( - SimulationOptionsDto options); + void simulateLocationsAlongExistingRouteWithOptions(SimulationOptionsDto options); - Future simulateLocationsAlongNewRoute( - List waypoints); + Future simulateLocationsAlongNewRoute(List waypoints); - Future simulateLocationsAlongNewRouteWithRoutingOptions( - List waypoints, RoutingOptionsDto routingOptions); + Future simulateLocationsAlongNewRouteWithRoutingOptions(List waypoints, RoutingOptionsDto routingOptions); - Future - simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( - List waypoints, - RoutingOptionsDto routingOptions, - SimulationOptionsDto simulationOptions); + Future simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(List waypoints, RoutingOptionsDto routingOptions, SimulationOptionsDto simulationOptions); void pauseSimulation(); @@ -3783,109 +3134,85 @@ abstract class TestNavigationSessionApi { void disableTurnByTurnNavigationEvents(); - void registerRemainingTimeOrDistanceChangedListener( - int remainingTimeThresholdSeconds, int remainingDistanceThresholdMeters); + void registerRemainingTimeOrDistanceChangedListener(int remainingTimeThresholdSeconds, int remainingDistanceThresholdMeters); - static void setup(TestNavigationSessionApi? api, - {BinaryMessenger? binaryMessenger}) { + static void setup(TestNavigationSessionApi? api, {BinaryMessenger? binaryMessenger}) { { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession was 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?); + 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] == null ? null : TaskRemovedBehaviorDto.values[args[1]! as int]; + assert(arg_behavior != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession was null, expected non-null TaskRemovedBehaviorDto.'); try { - await api.createNavigationSession( - arg_abnormalTerminationReportingEnabled!); + await api.createNavigationSession(arg_abnormalTerminationReportingEnabled!, arg_behavior!); 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { try { api.cleanup(); 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog was 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, @@ -3893,303 +3220,228 @@ abstract class TestNavigationSessionApi { 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?); + 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.'); try { - final bool output = await api.showTermsAndConditionsDialog( - arg_title!, - arg_companyName!, - arg_shouldOnlyShowDriverAwarenessDisclaimer!); + final bool output = await api.showTermsAndConditionsDialog(arg_title!, arg_companyName!, arg_shouldOnlyShowDriverAwarenessDisclaimer!); 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations was 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?); + 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!); + final RouteStatusDto output = await api.setDestinations(arg_destinations!); return [output.index]; } 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { try { - final NavigationWaypointDto? output = - api.continueToNextDestination(); + final NavigationWaypointDto? output = api.continueToNextDestination(); 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { try { - final NavigationTimeAndDistanceDto output = - api.getCurrentTimeAndDistance(); + 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())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance was 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?); + 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 { @@ -4197,31 +3449,24 @@ abstract class TestNavigationSessionApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions was 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?); + 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 { @@ -4229,103 +3474,79 @@ abstract class TestNavigationSessionApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation was 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, @@ -4335,81 +3556,62 @@ abstract class TestNavigationSessionApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions was 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?); + 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 { @@ -4417,193 +3619,144 @@ abstract class TestNavigationSessionApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute was 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(); + 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!); + final RouteStatusDto output = await api.simulateLocationsAlongNewRoute(arg_waypoints!); return [output.index]; } 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions was 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(); + 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?); + 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!); + final RouteStatusDto output = await api.simulateLocationsAlongNewRouteWithRoutingOptions(arg_waypoints!, arg_routingOptions!); return [output.index]; } 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions was 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(); + 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?); + 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?); + 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!); + final RouteStatusDto output = await api.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(arg_waypoints!, arg_routingOptions!, arg_simulationOptions!); return [output.index]; } 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates was 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, @@ -4613,78 +3766,60 @@ abstract class TestNavigationSessionApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents was 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?); try { @@ -4692,53 +3827,41 @@ abstract class TestNavigationSessionApi { 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 __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener', - pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, - (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener was 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, @@ -4747,15 +3870,12 @@ abstract class TestNavigationSessionApi { 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!); + 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())); } }); } From 6e0323cbee159b6aad950a80cdfec4dcdc18dddc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20V=C3=A4limaa?= Date: Wed, 26 Feb 2025 15:37:34 +0800 Subject: [PATCH 2/6] test: fix unit tests --- .../google/maps/flutter/navigation/Convert.kt | 12 +- .../maps/flutter/navigation/messages.g.kt | 3236 ++++++++++----- .../maps/flutter/navigation/ConvertTest.kt | 15 +- ...eMapsNavigationSessionMessageHandler.swift | 3 +- .../messages.g.swift | 3609 +++++++++++------ .../method_channel/convert/navigation.dart | 2 +- lib/src/method_channel/messages.g.dart | 2425 +++++++---- .../navigation_initialization_params.dart | 4 +- pigeons/messages.dart | 5 +- test/google_navigation_flutter_test.dart | 4 +- .../google_navigation_flutter_test.mocks.dart | 9 +- test/messages_test.g.dart | 2923 ++++++++----- 12 files changed, 8140 insertions(+), 4107 deletions(-) diff --git a/android/src/main/kotlin/com/google/maps/flutter/navigation/Convert.kt b/android/src/main/kotlin/com/google/maps/flutter/navigation/Convert.kt index 2841bf80..83c67eff 100644 --- a/android/src/main/kotlin/com/google/maps/flutter/navigation/Convert.kt +++ b/android/src/main/kotlin/com/google/maps/flutter/navigation/Convert.kt @@ -1057,11 +1057,13 @@ object Convert { } } - fun taskRemovedBehaviorDtoToTaskRemovedBehavior(behavior: TaskRemovedBehaviorDto?): @TaskRemovedBehavior Int { + fun taskRemovedBehaviorDtoToTaskRemovedBehavior( + behavior: TaskRemovedBehaviorDto? + ): @TaskRemovedBehavior Int { return when (behavior) { - TaskRemovedBehaviorDto.CONTINUESERVICE -> TaskRemovedBehavior.CONTINUE_SERVICE; - TaskRemovedBehaviorDto.QUITSERVICE -> TaskRemovedBehavior.QUIT_SERVICE; - else -> TaskRemovedBehavior.CONTINUE_SERVICE; - }; + TaskRemovedBehaviorDto.CONTINUESERVICE -> TaskRemovedBehavior.CONTINUE_SERVICE + TaskRemovedBehaviorDto.QUITSERVICE -> TaskRemovedBehavior.QUIT_SERVICE + else -> TaskRemovedBehavior.CONTINUE_SERVICE + } } } 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 2fcd1fee..48205558 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 @@ -1,17 +1,17 @@ // Copyright 2023 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. -// +// // Autogenerated from Pigeon (v15.0.0), do not edit directly. // See also: https://pub.dev/packages/pigeon @@ -31,38 +31,43 @@ private fun wrapResult(result: Any?): List { private fun wrapError(exception: Throwable): List { if (exception is FlutterError) { - return listOf( - exception.code, - exception.message, - exception.details - ) + return listOf(exception.code, exception.message, exception.details) } else { return listOf( exception.javaClass.simpleName, exception.toString(), - "Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception) + "Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception), ) } } private fun createConnectionError(channelName: String): FlutterError { - return FlutterError("channel-error", "Unable to establish connection on channel: '$channelName'.", "")} + return FlutterError( + "channel-error", + "Unable to establish connection on channel: '$channelName'.", + "", + ) +} /** * Error class for passing custom error details to Flutter via a thrown PlatformException. + * * @property code The error code. * @property message The error message. * @property details The error details. Must be a datatype supported by the api codec. */ -class FlutterError ( +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); @@ -76,10 +81,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); @@ -341,7 +343,9 @@ enum class ManeuverDto(val raw: Int) { OFFRAMPUTURNCOUNTERCLOCKWISE(22), /** Keep to the left side of the road when entering a turnpike or freeway as the road diverges. */ ONRAMPKEEPLEFT(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. + */ ONRAMPKEEPRIGHT(24), /** Regular left turn to enter a turnpike or freeway. */ ONRAMPLEFT(25), @@ -397,9 +401,15 @@ enum class ManeuverDto(val raw: Int) { ROUNDABOUTSTRAIGHTCLOCKWISE(50), /** Enter a roundabout in the counterclockwise direction and continue straight. */ ROUNDABOUTSTRAIGHTCOUNTERCLOCKWISE(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. + */ ROUNDABOUTUTURNCLOCKWISE(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. + */ ROUNDABOUTUTURNCOUNTERCLOCKWISE(53), /** Continue straight. */ STRAIGHT(54), @@ -500,11 +510,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. */ CONTINUESERVICE(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. + */ QUITSERVICE(1); companion object { @@ -519,7 +532,7 @@ enum class TaskRemovedBehaviorDto(val raw: Int) { * * 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.). */ @@ -550,8 +563,7 @@ data class MapOptionsDto ( */ val cameraTargetBounds: LatLngBoundsDto? = null, /** Specifies the padding for the map. */ - val padding: MapPaddingDto? = null - + val padding: MapPaddingDto? = null, ) { companion object { @Suppress("UNCHECKED_CAST") @@ -568,15 +580,28 @@ data class MapOptionsDto ( val minZoomPreference = list[9] as Double? val maxZoomPreference = list[10] as Double? val zoomControlsEnabled = list[11] as Boolean - val cameraTargetBounds: LatLngBoundsDto? = (list[12] as List?)?.let { - LatLngBoundsDto.fromList(it) - } - val padding: MapPaddingDto? = (list[13] as List?)?.let { - MapPaddingDto.fromList(it) - } - return MapOptionsDto(cameraPosition, mapType, compassEnabled, rotateGesturesEnabled, scrollGesturesEnabled, tiltGesturesEnabled, zoomGesturesEnabled, scrollGesturesEnabledDuringRotateOrZoom, mapToolbarEnabled, minZoomPreference, maxZoomPreference, zoomControlsEnabled, cameraTargetBounds, padding) + val cameraTargetBounds: LatLngBoundsDto? = + (list[12] as List?)?.let { LatLngBoundsDto.fromList(it) } + val padding: MapPaddingDto? = (list[13] as List?)?.let { MapPaddingDto.fromList(it) } + return MapOptionsDto( + cameraPosition, + mapType, + compassEnabled, + rotateGesturesEnabled, + scrollGesturesEnabled, + tiltGesturesEnabled, + zoomGesturesEnabled, + scrollGesturesEnabledDuringRotateOrZoom, + mapToolbarEnabled, + minZoomPreference, + maxZoomPreference, + zoomControlsEnabled, + cameraTargetBounds, + padding, + ) } } + fun toList(): List { return listOf( cameraPosition.toList(), @@ -602,10 +627,9 @@ 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 - ) { companion object { @Suppress("UNCHECKED_CAST") @@ -614,54 +638,46 @@ data class NavigationViewOptionsDto ( return NavigationViewOptionsDto(navigationUIEnabledPreference) } } + fun toList(): List { - return listOf( - navigationUIEnabledPreference.raw, - ) + return listOf(navigationUIEnabledPreference.raw) } } /** * 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 { @Suppress("UNCHECKED_CAST") fun fromList(list: List): ViewCreationOptionsDto { val mapViewType = MapViewTypeDto.ofRaw(list[0] as Int)!! val mapOptions = MapOptionsDto.fromList(list[1] as List) - val navigationViewOptions: NavigationViewOptionsDto? = (list[2] as List?)?.let { - NavigationViewOptionsDto.fromList(it) - } + val navigationViewOptions: NavigationViewOptionsDto? = + (list[2] as List?)?.let { NavigationViewOptionsDto.fromList(it) } return ViewCreationOptionsDto(mapViewType, mapOptions, navigationViewOptions) } } + fun toList(): List { - return listOf( - mapViewType.raw, - mapOptions.toList(), - navigationViewOptions?.toList(), - ) + return listOf(mapViewType.raw, mapOptions.toList(), navigationViewOptions?.toList()) } } /** 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 { @Suppress("UNCHECKED_CAST") @@ -673,23 +689,18 @@ data class CameraPositionDto ( return CameraPositionDto(bearing, target, tilt, zoom) } } + fun toList(): List { - return listOf( - bearing, - target.toList(), - tilt, - zoom, - ) + return listOf(bearing, target.toList(), tilt, zoom) } } /** 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 { @Suppress("UNCHECKED_CAST") @@ -699,16 +710,14 @@ data class MarkerDto ( return MarkerDto(markerId, options) } } + fun toList(): List { - return listOf( - markerId, - options.toList(), - ) + return listOf(markerId, options.toList()) } } /** 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, @@ -719,8 +728,7 @@ data class MarkerOptionsDto ( val infoWindow: InfoWindowDto, val visible: Boolean, val zIndex: Double, - val icon: ImageDescriptorDto - + val icon: ImageDescriptorDto, ) { companion object { @Suppress("UNCHECKED_CAST") @@ -736,9 +744,22 @@ data class MarkerOptionsDto ( val visible = list[8] as Boolean val zIndex = list[9] as Double val icon = ImageDescriptorDto.fromList(list[10] as List) - 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, @@ -757,12 +778,11 @@ data class MarkerOptionsDto ( } /** 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 height: Double? = null, ) { companion object { @Suppress("UNCHECKED_CAST") @@ -774,22 +794,17 @@ data class ImageDescriptorDto ( return ImageDescriptorDto(registeredImageId, imagePixelRatio, width, height) } } + fun toList(): List { - return listOf( - registeredImageId, - imagePixelRatio, - width, - height, - ) + return listOf(registeredImageId, imagePixelRatio, width, height) } } /** 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 { @Suppress("UNCHECKED_CAST") @@ -800,21 +815,15 @@ data class InfoWindowDto ( return InfoWindowDto(title, snippet, anchor) } } + fun toList(): List { - return listOf( - title, - snippet, - anchor.toList(), - ) + return listOf(title, snippet, anchor.toList()) } } /** 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 { @Suppress("UNCHECKED_CAST") fun fromList(list: List): MarkerAnchorDto { @@ -823,20 +832,15 @@ data class MarkerAnchorDto ( return MarkerAnchorDto(u, v) } } + fun toList(): List { - return listOf( - u, - v, - ) + return listOf(u, v) } } /** 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 { @Suppress("UNCHECKED_CAST") fun fromList(list: List): PolygonDto { @@ -845,16 +849,14 @@ data class PolygonDto ( return PolygonDto(polygonId, options) } } + fun toList(): List { - return listOf( - polygonId, - options.toList(), - ) + return listOf(polygonId, options.toList()) } } /** 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, @@ -863,8 +865,7 @@ data class PolygonOptionsDto ( val strokeColor: Long, val strokeWidth: Double, val visible: Boolean, - val zIndex: Double - + val zIndex: Double, ) { companion object { @Suppress("UNCHECKED_CAST") @@ -878,9 +879,20 @@ data class PolygonOptionsDto ( val strokeWidth = list[6] as Double val visible = list[7] as Boolean val zIndex = 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, @@ -897,10 +909,8 @@ data class PolygonOptionsDto ( } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolygonHoleDto ( - val points: List +data class PolygonHoleDto(val points: List) { -) { companion object { @Suppress("UNCHECKED_CAST") fun fromList(list: List): PolygonHoleDto { @@ -908,19 +918,17 @@ data class PolygonHoleDto ( return PolygonHoleDto(points) } } + fun toList(): List { - return listOf( - points, - ) + return listOf(points) } } /** 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 { @Suppress("UNCHECKED_CAST") @@ -931,21 +939,15 @@ data class StyleSpanStrokeStyleDto ( return StyleSpanStrokeStyleDto(solidColor, fromColor, toColor) } } + fun toList(): List { - return listOf( - solidColor, - fromColor, - toColor, - ) + return listOf(solidColor, fromColor, toColor) } } /** 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 { @Suppress("UNCHECKED_CAST") fun fromList(list: List): StyleSpanDto { @@ -954,20 +956,15 @@ data class StyleSpanDto ( return StyleSpanDto(length, style) } } + fun toList(): List { - return listOf( - length, - style.toList(), - ) + return listOf(length, style.toList()) } } /** 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 { @Suppress("UNCHECKED_CAST") fun fromList(list: List): PolylineDto { @@ -976,20 +973,15 @@ data class PolylineDto ( return PolylineDto(polylineId, options) } } + fun toList(): List { - return listOf( - polylineId, - options.toList(), - ) + return listOf(polylineId, options.toList()) } } /** 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 { @Suppress("UNCHECKED_CAST") fun fromList(list: List): PatternItemDto { @@ -998,16 +990,14 @@ data class PatternItemDto ( return PatternItemDto(type, length) } } + fun toList(): List { - return listOf( - type.raw, - length, - ) + return listOf(type.raw, length) } } /** 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, @@ -1017,8 +1007,7 @@ data class PolylineOptionsDto ( val strokeWidth: Double? = null, val visible: Boolean? = null, val zIndex: Double? = null, - val spans: List - + val spans: List, ) { companion object { @Suppress("UNCHECKED_CAST") @@ -1027,17 +1016,28 @@ data class PolylineOptionsDto ( val clickable = list[1] as Boolean? val geodesic = list[2] as Boolean? val strokeColor = list[3].let { if (it is Int) it.toLong() else it as Long? } - val strokeJointType: StrokeJointTypeDto? = (list[4] as Int?)?.let { - StrokeJointTypeDto.ofRaw(it) - } + val strokeJointType: StrokeJointTypeDto? = + (list[4] as Int?)?.let { StrokeJointTypeDto.ofRaw(it) } val strokePattern = list[5] as List? val strokeWidth = list[6] as Double? val visible = list[7] as Boolean? val zIndex = list[8] as Double? val spans = 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, @@ -1055,12 +1055,11 @@ data class PolylineOptionsDto ( } /** 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 { @Suppress("UNCHECKED_CAST") @@ -1070,16 +1069,14 @@ data class CircleDto ( return CircleDto(circleId, options) } } + fun toList(): List { - return listOf( - circleId, - options.toList(), - ) + return listOf(circleId, options.toList()) } } /** 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, @@ -1088,8 +1085,7 @@ data class CircleOptionsDto ( val fillColor: Long, val zIndex: Double, val visible: Boolean, - val clickable: Boolean - + val clickable: Boolean, ) { companion object { @Suppress("UNCHECKED_CAST") @@ -1103,9 +1099,20 @@ data class CircleOptionsDto ( val zIndex = list[6] as Double val visible = list[7] as Boolean val clickable = 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.toList(), @@ -1122,13 +1129,8 @@ data class CircleOptionsDto ( } /** 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 { @Suppress("UNCHECKED_CAST") fun fromList(list: List): MapPaddingDto { @@ -1139,62 +1141,49 @@ data class MapPaddingDto ( return MapPaddingDto(top, left, bottom, right) } } + fun toList(): List { - return listOf( - top, - left, - bottom, - right, - ) + return listOf(top, left, bottom, right) } } /** 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 { @Suppress("UNCHECKED_CAST") fun fromList(list: List): RouteTokenOptionsDto { val routeToken = list[0] as String - val travelMode: TravelModeDto? = (list[1] as Int?)?.let { - TravelModeDto.ofRaw(it) - } + val travelMode: TravelModeDto? = (list[1] as Int?)?.let { TravelModeDto.ofRaw(it) } return RouteTokenOptionsDto(routeToken, travelMode) } } + fun toList(): List { - return listOf( - routeToken, - travelMode?.raw, - ) + return listOf(routeToken, travelMode?.raw) } } /** 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 { @Suppress("UNCHECKED_CAST") fun fromList(list: List): DestinationsDto { val waypoints = list[0] as List val displayOptions = NavigationDisplayOptionsDto.fromList(list[1] as List) - val routingOptions: RoutingOptionsDto? = (list[2] as List?)?.let { - RoutingOptionsDto.fromList(it) - } - val routeTokenOptions: RouteTokenOptionsDto? = (list[3] as List?)?.let { - RouteTokenOptionsDto.fromList(it) - } + val routingOptions: RoutingOptionsDto? = + (list[2] as List?)?.let { RoutingOptionsDto.fromList(it) } + val routeTokenOptions: RouteTokenOptionsDto? = + (list[3] as List?)?.let { RouteTokenOptionsDto.fromList(it) } return DestinationsDto(waypoints, displayOptions, routingOptions, routeTokenOptions) } } + fun toList(): List { return listOf( waypoints, @@ -1206,7 +1195,7 @@ data class DestinationsDto ( } /** 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, @@ -1214,29 +1203,34 @@ 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 { @Suppress("UNCHECKED_CAST") fun fromList(list: List): RoutingOptionsDto { - val alternateRoutesStrategy: AlternateRoutesStrategyDto? = (list[0] as Int?)?.let { - AlternateRoutesStrategyDto.ofRaw(it) - } - val routingStrategy: RoutingStrategyDto? = (list[1] as Int?)?.let { - RoutingStrategyDto.ofRaw(it) - } + val alternateRoutesStrategy: AlternateRoutesStrategyDto? = + (list[0] as Int?)?.let { AlternateRoutesStrategyDto.ofRaw(it) } + val routingStrategy: RoutingStrategyDto? = + (list[1] as Int?)?.let { RoutingStrategyDto.ofRaw(it) } val targetDistanceMeters = list[2] as List? - val travelMode: TravelModeDto? = (list[3] as Int?)?.let { - TravelModeDto.ofRaw(it) - } + val travelMode: TravelModeDto? = (list[3] as Int?)?.let { TravelModeDto.ofRaw(it) } val avoidTolls = list[4] as Boolean? val avoidFerries = list[5] as Boolean? val avoidHighways = list[6] as Boolean? val locationTimeoutMs = list[7].let { if (it is Int) it.toLong() else it 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?.raw, @@ -1252,11 +1246,10 @@ data class RoutingOptionsDto ( } /** Generated class from Pigeon that represents data sent in messages. */ -data class NavigationDisplayOptionsDto ( +data class NavigationDisplayOptionsDto( val showDestinationMarkers: Boolean? = null, val showStopSigns: Boolean? = null, - val showTrafficLights: Boolean? = null - + val showTrafficLights: Boolean? = null, ) { companion object { @Suppress("UNCHECKED_CAST") @@ -1267,37 +1260,38 @@ data class NavigationDisplayOptionsDto ( return NavigationDisplayOptionsDto(showDestinationMarkers, showStopSigns, showTrafficLights) } } + fun toList(): List { - return listOf( - showDestinationMarkers, - showStopSigns, - showTrafficLights, - ) + return listOf(showDestinationMarkers, showStopSigns, showTrafficLights) } } /** 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 { @Suppress("UNCHECKED_CAST") fun fromList(list: List): NavigationWaypointDto { val title = list[0] as String - val target: LatLngDto? = (list[1] as List?)?.let { - LatLngDto.fromList(it) - } + val target: LatLngDto? = (list[1] as List?)?.let { LatLngDto.fromList(it) } val placeID = list[2] as String? val preferSameSideOfRoad = list[3] as Boolean? val preferredSegmentHeading = list[4].let { if (it is Int) it.toLong() else it as Long? } - return NavigationWaypointDto(title, target, placeID, preferSameSideOfRoad, preferredSegmentHeading) + return NavigationWaypointDto( + title, + target, + placeID, + preferSameSideOfRoad, + preferredSegmentHeading, + ) } } + fun toList(): List { return listOf( title, @@ -1310,11 +1304,8 @@ data class NavigationWaypointDto ( } /** Generated class from Pigeon that represents data sent in messages. */ -data class NavigationTimeAndDistanceDto ( - val time: Double, - val distance: Double +data class NavigationTimeAndDistanceDto(val time: Double, val distance: Double) { -) { companion object { @Suppress("UNCHECKED_CAST") fun fromList(list: List): NavigationTimeAndDistanceDto { @@ -1323,46 +1314,41 @@ data class NavigationTimeAndDistanceDto ( return NavigationTimeAndDistanceDto(time, distance) } } + fun toList(): List { - return listOf( - time, - distance, - ) + return listOf(time, distance) } } /** 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 { @Suppress("UNCHECKED_CAST") fun fromList(list: List): NavigationAudioGuidanceSettingsDto { val isBluetoothAudioEnabled = list[0] as Boolean? val isVibrationEnabled = list[1] as Boolean? - val guidanceType: AudioGuidanceTypeDto? = (list[2] as Int?)?.let { - AudioGuidanceTypeDto.ofRaw(it) - } - return NavigationAudioGuidanceSettingsDto(isBluetoothAudioEnabled, isVibrationEnabled, guidanceType) + val guidanceType: AudioGuidanceTypeDto? = + (list[2] as Int?)?.let { AudioGuidanceTypeDto.ofRaw(it) } + return NavigationAudioGuidanceSettingsDto( + isBluetoothAudioEnabled, + isVibrationEnabled, + guidanceType, + ) } } + fun toList(): List { - return listOf( - isBluetoothAudioEnabled, - isVibrationEnabled, - guidanceType?.raw, - ) + return listOf(isBluetoothAudioEnabled, isVibrationEnabled, guidanceType?.raw) } } /** Generated class from Pigeon that represents data sent in messages. */ -data class SimulationOptionsDto ( - val speedMultiplier: Double +data class SimulationOptionsDto(val speedMultiplier: Double) { -) { companion object { @Suppress("UNCHECKED_CAST") fun fromList(list: List): SimulationOptionsDto { @@ -1370,19 +1356,15 @@ data class SimulationOptionsDto ( return SimulationOptionsDto(speedMultiplier) } } + fun toList(): List { - return listOf( - speedMultiplier, - ) + return listOf(speedMultiplier) } } /** 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 { @Suppress("UNCHECKED_CAST") fun fromList(list: List): LatLngDto { @@ -1391,20 +1373,15 @@ data class LatLngDto ( return LatLngDto(latitude, longitude) } } + fun toList(): List { - return listOf( - latitude, - longitude, - ) + return listOf(latitude, longitude) } } /** 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 { @Suppress("UNCHECKED_CAST") fun fromList(list: List): LatLngBoundsDto { @@ -1413,19 +1390,16 @@ data class LatLngBoundsDto ( return LatLngBoundsDto(southwest, northeast) } } + fun toList(): List { - return listOf( - southwest.toList(), - northeast.toList(), - ) + return listOf(southwest.toList(), northeast.toList()) } } /** 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 { @Suppress("UNCHECKED_CAST") @@ -1435,20 +1409,17 @@ data class SpeedingUpdatedEventDto ( return SpeedingUpdatedEventDto(percentageAboveLimit, severity) } } + fun toList(): List { - return listOf( - percentageAboveLimit, - severity.raw, - ) + return listOf(percentageAboveLimit, severity.raw) } } /** 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 { @Suppress("UNCHECKED_CAST") @@ -1456,9 +1427,14 @@ data class SpeedAlertOptionsDto ( val severityUpgradeDurationSeconds = list[0] as Double val minorSpeedAlertThresholdPercentage = list[1] as Double val majorSpeedAlertThresholdPercentage = list[2] as Double - return SpeedAlertOptionsDto(severityUpgradeDurationSeconds, minorSpeedAlertThresholdPercentage, majorSpeedAlertThresholdPercentage) + return SpeedAlertOptionsDto( + severityUpgradeDurationSeconds, + minorSpeedAlertThresholdPercentage, + majorSpeedAlertThresholdPercentage, + ) } } + fun toList(): List { return listOf( severityUpgradeDurationSeconds, @@ -1469,11 +1445,10 @@ data class SpeedAlertOptionsDto ( } /** 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 { @Suppress("UNCHECKED_CAST") @@ -1484,59 +1459,52 @@ data class RouteSegmentTrafficDataRoadStretchRenderingDataDto ( return RouteSegmentTrafficDataRoadStretchRenderingDataDto(style, lengthMeters, offsetMeters) } } + fun toList(): List { - return listOf( - style.raw, - lengthMeters, - offsetMeters, - ) + return listOf(style.raw, lengthMeters, offsetMeters) } } /** 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 { @Suppress("UNCHECKED_CAST") fun fromList(list: List): RouteSegmentTrafficDataDto { val status = RouteSegmentTrafficDataStatusDto.ofRaw(list[0] as Int)!! - val roadStretchRenderingDataList = list[1] as List + val roadStretchRenderingDataList = + list[1] as List return RouteSegmentTrafficDataDto(status, roadStretchRenderingDataList) } } + fun toList(): List { - return listOf( - status.raw, - roadStretchRenderingDataList, - ) + return listOf(status.raw, roadStretchRenderingDataList) } } /** 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 { @Suppress("UNCHECKED_CAST") fun fromList(list: List): RouteSegmentDto { - val trafficData: RouteSegmentTrafficDataDto? = (list[0] as List?)?.let { - RouteSegmentTrafficDataDto.fromList(it) - } + val trafficData: RouteSegmentTrafficDataDto? = + (list[0] as List?)?.let { RouteSegmentTrafficDataDto.fromList(it) } val destinationLatLng = LatLngDto.fromList(list[1] as List) val latLngs = list[2] as List? - val destinationWaypoint: NavigationWaypointDto? = (list[3] as List?)?.let { - NavigationWaypointDto.fromList(it) - } + val destinationWaypoint: NavigationWaypointDto? = + (list[3] as List?)?.let { NavigationWaypointDto.fromList(it) } return RouteSegmentDto(trafficData, destinationLatLng, latLngs, destinationWaypoint) } } + fun toList(): List { return listOf( trafficData?.toList(), @@ -1548,16 +1516,16 @@ data class RouteSegmentDto ( } /** - * 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 { @Suppress("UNCHECKED_CAST") @@ -1567,11 +1535,9 @@ data class LaneDirectionDto ( return LaneDirectionDto(laneShape, isRecommended) } } + fun toList(): List { - return listOf( - laneShape.raw, - isRecommended, - ) + return listOf(laneShape.raw, isRecommended) } } @@ -1580,10 +1546,12 @@ 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 { @Suppress("UNCHECKED_CAST") @@ -1592,10 +1560,9 @@ data class LaneDto ( return LaneDto(laneDirections) } } + fun toList(): List { - return listOf( - laneDirections, - ) + return listOf(laneDirections) } } @@ -1604,7 +1571,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. */ val distanceFromPrevStepMeters: Long, /** Time in seconds from the previous step to this step. */ @@ -1620,8 +1587,8 @@ data class StepInfoDto ( /** The simplified version of the road name. */ val simpleRoadName: String, /** - * The counted number of the exit to take relative to the location where the - * roundabout was entered. + * The counted number of the exit to take relative to the location where the roundabout was + * entered. */ val roundaboutTurnNumber: Long, /** The list of available lanes at the end of this route step. */ @@ -1629,8 +1596,7 @@ data class StepInfoDto ( /** The maneuver for this step. */ val maneuver: ManeuverDto, /** The index of the step in the list of all steps in the route. */ - val stepNumber: Long - + val stepNumber: Long, ) { companion object { @Suppress("UNCHECKED_CAST") @@ -1646,9 +1612,22 @@ data class StepInfoDto ( val lanes = list[8] as List val maneuver = ManeuverDto.ofRaw(list[9] as Int)!! val stepNumber = list[10].let { if (it is Int) it.toLong() else it as Long } - return StepInfoDto(distanceFromPrevStepMeters, timeFromPrevStepSeconds, drivingSide, exitNumber, fullInstructions, fullRoadName, simpleRoadName, roundaboutTurnNumber, lanes, maneuver, stepNumber) + return StepInfoDto( + distanceFromPrevStepMeters, + timeFromPrevStepSeconds, + drivingSide, + exitNumber, + fullInstructions, + fullRoadName, + simpleRoadName, + roundaboutTurnNumber, + lanes, + maneuver, + stepNumber, + ) } } + fun toList(): List { return listOf( distanceFromPrevStepMeters, @@ -1667,12 +1646,12 @@ data class StepInfoDto ( } /** - * 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. */ @@ -1681,14 +1660,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, /** @@ -1697,14 +1673,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, /** @@ -1712,27 +1685,39 @@ data class NavInfoDto ( * * Android only. */ - val timeToNextDestinationSeconds: Long? = null - + val timeToNextDestinationSeconds: Long? = null, ) { companion object { @Suppress("UNCHECKED_CAST") fun fromList(list: List): NavInfoDto { val navState = NavStateDto.ofRaw(list[0] as Int)!! - val currentStep: StepInfoDto? = (list[1] as List?)?.let { - StepInfoDto.fromList(it) - } + val currentStep: StepInfoDto? = (list[1] as List?)?.let { StepInfoDto.fromList(it) } val remainingSteps = list[2] as List val routeChanged = list[3] as Boolean val distanceToCurrentStepMeters = list[4].let { if (it is Int) it.toLong() else it as Long? } - val distanceToFinalDestinationMeters = list[5].let { if (it is Int) it.toLong() else it as Long? } - val distanceToNextDestinationMeters = list[6].let { if (it is Int) it.toLong() else it as Long? } + val distanceToFinalDestinationMeters = + list[5].let { if (it is Int) it.toLong() else it as Long? } + val distanceToNextDestinationMeters = + list[6].let { if (it is Int) it.toLong() else it as Long? } val timeToCurrentStepSeconds = list[7].let { if (it is Int) it.toLong() else it as Long? } - val timeToFinalDestinationSeconds = list[8].let { if (it is Int) it.toLong() else it as Long? } + val timeToFinalDestinationSeconds = + list[8].let { if (it is Int) it.toLong() else it as Long? } val timeToNextDestinationSeconds = list[9].let { if (it is Int) it.toLong() else it 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.raw, @@ -1754,44 +1739,31 @@ private object NavigationViewCreationApiCodec : StandardMessageCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { 128.toByte() -> { - return (readValue(buffer) as? List)?.let { - CameraPositionDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { CameraPositionDto.fromList(it) } } 129.toByte() -> { - return (readValue(buffer) as? List)?.let { - LatLngBoundsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { LatLngBoundsDto.fromList(it) } } 130.toByte() -> { - return (readValue(buffer) as? List)?.let { - LatLngDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { LatLngDto.fromList(it) } } 131.toByte() -> { - return (readValue(buffer) as? List)?.let { - MapOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { MapOptionsDto.fromList(it) } } 132.toByte() -> { - return (readValue(buffer) as? List)?.let { - MapPaddingDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { MapPaddingDto.fromList(it) } } 133.toByte() -> { - return (readValue(buffer) as? List)?.let { - NavigationViewOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { NavigationViewOptionsDto.fromList(it) } } 134.toByte() -> { - return (readValue(buffer) as? List)?.let { - ViewCreationOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { ViewCreationOptionsDto.fromList(it) } } else -> super.readValueOfType(type, buffer) } } - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { when (value) { is CameraPositionDto -> { stream.write(128) @@ -1827,9 +1799,8 @@ private object NavigationViewCreationApiCodec : StandardMessageCodec() { } /** - * Pigeon only generates messages if the messages are used in API. - * [ViewCreationOptionsDto] is encoded and decoded directly to generate a - * PlatformView creation message. + * 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. * @@ -1840,14 +1811,21 @@ interface NavigationViewCreationApi { companion object { /** The codec used by NavigationViewCreationApi. */ - val codec: MessageCodec by lazy { - NavigationViewCreationApiCodec - } - /** Sets up an instance of `NavigationViewCreationApi` to handle messages through the `binaryMessenger`. */ + val codec: MessageCodec by lazy { NavigationViewCreationApiCodec } + + /** + * Sets up an instance of `NavigationViewCreationApi` to handle messages through the + * `binaryMessenger`. + */ @Suppress("UNCHECKED_CAST") fun setUp(binaryMessenger: BinaryMessenger, api: NavigationViewCreationApi?) { run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationViewCreationApi.create", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationViewCreationApi.create", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -1868,114 +1846,76 @@ interface NavigationViewCreationApi { } } } + @Suppress("UNCHECKED_CAST") private object MapViewApiCodec : StandardMessageCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { 128.toByte() -> { - return (readValue(buffer) as? List)?.let { - CameraPositionDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { CameraPositionDto.fromList(it) } } 129.toByte() -> { - return (readValue(buffer) as? List)?.let { - CircleDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { CircleDto.fromList(it) } } 130.toByte() -> { - return (readValue(buffer) as? List)?.let { - CircleOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { CircleOptionsDto.fromList(it) } } 131.toByte() -> { - return (readValue(buffer) as? List)?.let { - ImageDescriptorDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { ImageDescriptorDto.fromList(it) } } 132.toByte() -> { - return (readValue(buffer) as? List)?.let { - InfoWindowDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { InfoWindowDto.fromList(it) } } 133.toByte() -> { - return (readValue(buffer) as? List)?.let { - LatLngBoundsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { LatLngBoundsDto.fromList(it) } } 134.toByte() -> { - return (readValue(buffer) as? List)?.let { - LatLngDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { LatLngDto.fromList(it) } } 135.toByte() -> { - return (readValue(buffer) as? List)?.let { - LatLngDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { LatLngDto.fromList(it) } } 136.toByte() -> { - return (readValue(buffer) as? List)?.let { - MapPaddingDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { MapPaddingDto.fromList(it) } } 137.toByte() -> { - return (readValue(buffer) as? List)?.let { - MarkerAnchorDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { MarkerAnchorDto.fromList(it) } } 138.toByte() -> { - return (readValue(buffer) as? List)?.let { - MarkerDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { MarkerDto.fromList(it) } } 139.toByte() -> { - return (readValue(buffer) as? List)?.let { - MarkerOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { MarkerOptionsDto.fromList(it) } } 140.toByte() -> { - return (readValue(buffer) as? List)?.let { - PatternItemDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PatternItemDto.fromList(it) } } 141.toByte() -> { - return (readValue(buffer) as? List)?.let { - PolygonDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PolygonDto.fromList(it) } } 142.toByte() -> { - return (readValue(buffer) as? List)?.let { - PolygonHoleDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PolygonHoleDto.fromList(it) } } 143.toByte() -> { - return (readValue(buffer) as? List)?.let { - PolygonOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PolygonOptionsDto.fromList(it) } } 144.toByte() -> { - return (readValue(buffer) as? List)?.let { - PolylineDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PolylineDto.fromList(it) } } 145.toByte() -> { - return (readValue(buffer) as? List)?.let { - PolylineOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PolylineOptionsDto.fromList(it) } } 146.toByte() -> { - return (readValue(buffer) as? List)?.let { - StyleSpanDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { StyleSpanDto.fromList(it) } } 147.toByte() -> { - return (readValue(buffer) as? List)?.let { - StyleSpanStrokeStyleDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { StyleSpanStrokeStyleDto.fromList(it) } } else -> super.readValueOfType(type, buffer) } } - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { when (value) { is CameraPositionDto -> { stream.write(128) @@ -2065,108 +2005,243 @@ private object MapViewApiCodec : StandardMessageCodec() { /** 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 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 isTrafficIncidentCardsEnabled(viewId: Long): Boolean + fun setTrafficIncidentCardsEnabled(viewId: Long, enabled: Boolean) + fun isNavigationUIEnabled(viewId: Long): Boolean + fun setNavigationUIEnabled(viewId: Long, enabled: Boolean) + 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 setMyLocationButtonEnabled(viewId: Long, enabled: Boolean) + fun setConsumeMyLocationButtonClickEventsEnabled(viewId: Long, enabled: Boolean) + fun setZoomGesturesEnabled(viewId: Long, enabled: Boolean) + fun setZoomControlsEnabled(viewId: Long, enabled: Boolean) + fun setCompassEnabled(viewId: Long, enabled: Boolean) + fun setRotateGesturesEnabled(viewId: Long, enabled: Boolean) + fun setScrollGesturesEnabled(viewId: Long, enabled: Boolean) + fun setScrollGesturesDuringRotateOrZoomEnabled(viewId: Long, enabled: Boolean) + fun setTiltGesturesEnabled(viewId: Long, enabled: Boolean) + fun setMapToolbarEnabled(viewId: Long, enabled: Boolean) + fun setTrafficEnabled(viewId: Long, enabled: Boolean) + fun isMyLocationButtonEnabled(viewId: Long): Boolean + fun isConsumeMyLocationButtonClickEventsEnabled(viewId: Long): Boolean + fun isZoomGesturesEnabled(viewId: Long): Boolean + fun isZoomControlsEnabled(viewId: Long): Boolean + fun isCompassEnabled(viewId: Long): Boolean + fun isRotateGesturesEnabled(viewId: Long): Boolean + fun isScrollGesturesEnabled(viewId: Long): Boolean + fun isScrollGesturesEnabledDuringRotateOrZoom(viewId: Long): Boolean + fun isTiltGesturesEnabled(viewId: Long): Boolean + fun isMapToolbarEnabled(viewId: Long): Boolean + fun isTrafficEnabled(viewId: Long): Boolean + 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 registerOnCameraChangedListener(viewId: Long) + fun setPadding(viewId: Long, padding: MapPaddingDto) + fun getPadding(viewId: Long): MapPaddingDto companion object { /** The codec used by MapViewApi. */ - val codec: MessageCodec by lazy { - MapViewApiCodec - } + val codec: MessageCodec by lazy { MapViewApiCodec } + /** Sets up an instance of `MapViewApi` to handle messages through the `binaryMessenger`. */ @Suppress("UNCHECKED_CAST") fun setUp(binaryMessenger: BinaryMessenger, api: MapViewApi?) { run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2185,7 +2260,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2203,7 +2283,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2223,7 +2308,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2241,7 +2331,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2259,7 +2354,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2279,7 +2379,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2299,7 +2404,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2317,7 +2427,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2337,7 +2452,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2355,7 +2475,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2375,7 +2500,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2393,7 +2523,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2413,7 +2548,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2431,7 +2571,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2451,7 +2596,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2469,7 +2619,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2489,7 +2644,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2507,7 +2667,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2527,7 +2692,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2545,7 +2715,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2565,7 +2740,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2583,7 +2763,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2603,7 +2788,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2621,7 +2811,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2639,7 +2834,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2660,14 +2860,20 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0].let { if (it is Int) it.toLong() else it as Long } val cameraPositionArg = args[1] as CameraPositionDto val durationArg = args[2].let { if (it is Int) it.toLong() else it 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(wrapError(error)) @@ -2682,7 +2888,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2704,7 +2915,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2712,7 +2928,8 @@ interface MapViewApi { val boundsArg = args[1] as LatLngBoundsDto val paddingArg = args[2] as Double val durationArg = args[3].let { if (it is Int) it.toLong() else it 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(wrapError(error)) @@ -2727,7 +2944,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2735,7 +2957,8 @@ interface MapViewApi { val pointArg = args[1] as LatLngDto val zoomArg = args[2] as Double val durationArg = args[3].let { if (it is Int) it.toLong() else it 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(wrapError(error)) @@ -2750,7 +2973,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2758,7 +2986,8 @@ interface MapViewApi { val scrollByDxArg = args[1] as Double val scrollByDyArg = args[2] as Double val durationArg = args[3].let { if (it is Int) it.toLong() else it 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(wrapError(error)) @@ -2773,7 +3002,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2782,7 +3016,8 @@ interface MapViewApi { val focusDxArg = args[2] as Double? val focusDyArg = args[3] as Double? val durationArg = args[4].let { if (it is Int) it.toLong() else it 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(wrapError(error)) @@ -2797,7 +3032,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2819,7 +3059,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2839,7 +3084,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2859,7 +3109,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2880,7 +3135,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2901,7 +3161,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2922,7 +3187,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2944,7 +3214,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2964,7 +3239,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2983,7 +3263,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3001,7 +3286,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3019,7 +3309,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3038,7 +3333,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3058,7 +3358,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3078,7 +3383,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3098,7 +3408,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3118,7 +3433,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3138,7 +3458,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3158,7 +3483,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3178,7 +3508,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3198,7 +3533,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3218,7 +3558,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3238,7 +3583,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3258,7 +3608,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3278,7 +3633,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3298,7 +3658,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3316,7 +3681,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3334,7 +3704,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3352,7 +3727,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3370,7 +3750,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3388,7 +3773,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3406,7 +3796,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3424,7 +3819,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3442,7 +3842,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3460,7 +3865,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3478,7 +3888,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3496,7 +3911,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3514,7 +3934,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3533,7 +3958,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3552,7 +3982,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3572,7 +4007,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3591,7 +4031,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3610,7 +4055,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3628,7 +4078,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3647,7 +4102,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3666,7 +4126,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3686,7 +4151,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3705,7 +4175,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3723,7 +4198,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3742,7 +4222,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3761,7 +4246,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3781,7 +4271,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3800,7 +4295,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3818,7 +4318,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3837,7 +4342,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3856,7 +4366,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3876,7 +4391,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3895,7 +4415,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.registerOnCameraChangedListener", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.registerOnCameraChangedListener", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3914,7 +4439,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3934,7 +4464,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3954,24 +4489,22 @@ interface MapViewApi { } } } + @Suppress("UNCHECKED_CAST") private object ImageRegistryApiCodec : StandardMessageCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { 128.toByte() -> { - return (readValue(buffer) as? List)?.let { - ImageDescriptorDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { ImageDescriptorDto.fromList(it) } } 129.toByte() -> { - return (readValue(buffer) as? List)?.let { - ImageDescriptorDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { ImageDescriptorDto.fromList(it) } } else -> super.readValueOfType(type, buffer) } } - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { when (value) { is ImageDescriptorDto -> { stream.write(128) @@ -3988,21 +4521,36 @@ private object ImageRegistryApiCodec : StandardMessageCodec() { /** 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() companion object { /** The codec used by ImageRegistryApi. */ - val codec: MessageCodec by lazy { - ImageRegistryApiCodec - } - /** Sets up an instance of `ImageRegistryApi` to handle messages through the `binaryMessenger`. */ + val codec: MessageCodec by lazy { ImageRegistryApiCodec } + + /** + * Sets up an instance of `ImageRegistryApi` to handle messages through the `binaryMessenger`. + */ @Suppress("UNCHECKED_CAST") fun setUp(binaryMessenger: BinaryMessenger, api: ImageRegistryApi?) { run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4013,7 +4561,16 @@ interface ImageRegistryApi { val heightArg = args[4] as Double? var wrapped: List try { - wrapped = listOf(api.registerBitmapImage(imageIdArg, bytesArg, imagePixelRatioArg, widthArg, heightArg)) + wrapped = + listOf( + api.registerBitmapImage( + imageIdArg, + bytesArg, + imagePixelRatioArg, + widthArg, + heightArg, + ) + ) } catch (exception: Throwable) { wrapped = wrapError(exception) } @@ -4024,7 +4581,12 @@ interface ImageRegistryApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4043,7 +4605,12 @@ interface ImageRegistryApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -4059,7 +4626,12 @@ interface ImageRegistryApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -4078,24 +4650,22 @@ interface ImageRegistryApi { } } } + @Suppress("UNCHECKED_CAST") private object ViewEventApiCodec : StandardMessageCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { 128.toByte() -> { - return (readValue(buffer) as? List)?.let { - CameraPositionDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { CameraPositionDto.fromList(it) } } 129.toByte() -> { - return (readValue(buffer) as? List)?.let { - LatLngDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { LatLngDto.fromList(it) } } else -> super.readValueOfType(type, buffer) } } - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { when (value) { is CameraPositionDto -> { stream.write(128) @@ -4115,10 +4685,9 @@ private object ViewEventApiCodec : StandardMessageCodec() { class ViewEventApi(private val binaryMessenger: BinaryMessenger) { companion object { /** The codec used by ViewEventApi. */ - val codec: MessageCodec by lazy { - ViewEventApiCodec - } + val codec: MessageCodec by lazy { ViewEventApiCodec } } + fun onMapClickEvent(viewIdArg: Long, latLngArg: LatLngDto, callback: (Result) -> Unit) { val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) @@ -4131,11 +4700,13 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } + fun onMapLongClickEvent(viewIdArg: Long, latLngArg: LatLngDto, callback: (Result) -> Unit) { - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, latLngArg)) { if (it is List<*>) { @@ -4146,11 +4717,13 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } + fun onRecenterButtonClicked(viewIdArg: Long, callback: (Result) -> Unit) { - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg)) { if (it is List<*>) { @@ -4161,10 +4734,16 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } - fun onMarkerEvent(viewIdArg: Long, markerIdArg: String, eventTypeArg: MarkerEventTypeDto, callback: (Result) -> Unit) { + + fun onMarkerEvent( + viewIdArg: Long, + markerIdArg: String, + eventTypeArg: MarkerEventTypeDto, + callback: (Result) -> Unit, + ) { val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, markerIdArg, eventTypeArg.raw)) { @@ -4176,10 +4755,17 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } - fun onMarkerDragEvent(viewIdArg: Long, markerIdArg: String, eventTypeArg: MarkerDragEventTypeDto, positionArg: LatLngDto, callback: (Result) -> Unit) { + + fun onMarkerDragEvent( + viewIdArg: Long, + markerIdArg: String, + eventTypeArg: MarkerDragEventTypeDto, + positionArg: LatLngDto, + callback: (Result) -> Unit, + ) { val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, markerIdArg, eventTypeArg.raw, positionArg)) { @@ -4191,9 +4777,10 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } + fun onPolygonClicked(viewIdArg: Long, polygonIdArg: String, callback: (Result) -> Unit) { val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) @@ -4206,9 +4793,10 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } + fun onPolylineClicked(viewIdArg: Long, polylineIdArg: String, callback: (Result) -> Unit) { val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) @@ -4221,9 +4809,10 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } + fun onCircleClicked(viewIdArg: Long, circleIdArg: String, callback: (Result) -> Unit) { val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) @@ -4236,11 +4825,17 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } - fun onNavigationUIEnabledChanged(viewIdArg: Long, navigationUIEnabledArg: Boolean, callback: (Result) -> Unit) { - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged" + + fun onNavigationUIEnabledChanged( + viewIdArg: Long, + navigationUIEnabledArg: Boolean, + callback: (Result) -> Unit, + ) { + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, navigationUIEnabledArg)) { if (it is List<*>) { @@ -4251,11 +4846,13 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } + fun onMyLocationClicked(viewIdArg: Long, callback: (Result) -> Unit) { - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg)) { if (it is List<*>) { @@ -4266,11 +4863,13 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } + fun onMyLocationButtonClicked(viewIdArg: Long, callback: (Result) -> Unit) { - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg)) { if (it is List<*>) { @@ -4281,10 +4880,16 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } - fun onCameraChanged(viewIdArg: Long, eventTypeArg: CameraEventTypeDto, positionArg: CameraPositionDto, callback: (Result) -> Unit) { + + fun onCameraChanged( + viewIdArg: Long, + eventTypeArg: CameraEventTypeDto, + positionArg: CameraPositionDto, + callback: (Result) -> Unit, + ) { val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, eventTypeArg.raw, positionArg)) { @@ -4296,28 +4901,23 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } } + @Suppress("UNCHECKED_CAST") private object NavigationSessionApiCodec : StandardMessageCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { 128.toByte() -> { - return (readValue(buffer) as? List)?.let { - DestinationsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { DestinationsDto.fromList(it) } } 129.toByte() -> { - return (readValue(buffer) as? List)?.let { - LatLngDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { LatLngDto.fromList(it) } } 130.toByte() -> { - return (readValue(buffer) as? List)?.let { - LatLngDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { LatLngDto.fromList(it) } } 131.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -4325,39 +4925,25 @@ private object NavigationSessionApiCodec : StandardMessageCodec() { } } 132.toByte() -> { - return (readValue(buffer) as? List)?.let { - NavigationDisplayOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { NavigationDisplayOptionsDto.fromList(it) } } 133.toByte() -> { - return (readValue(buffer) as? List)?.let { - NavigationTimeAndDistanceDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { NavigationTimeAndDistanceDto.fromList(it) } } 134.toByte() -> { - return (readValue(buffer) as? List)?.let { - NavigationWaypointDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { NavigationWaypointDto.fromList(it) } } 135.toByte() -> { - return (readValue(buffer) as? List)?.let { - NavigationWaypointDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { NavigationWaypointDto.fromList(it) } } 136.toByte() -> { - return (readValue(buffer) as? List)?.let { - RouteSegmentDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { RouteSegmentDto.fromList(it) } } 137.toByte() -> { - return (readValue(buffer) as? List)?.let { - RouteSegmentDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { RouteSegmentDto.fromList(it) } } 138.toByte() -> { - return (readValue(buffer) as? List)?.let { - RouteSegmentTrafficDataDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { RouteSegmentTrafficDataDto.fromList(it) } } 139.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -4365,29 +4951,22 @@ private object NavigationSessionApiCodec : StandardMessageCodec() { } } 140.toByte() -> { - return (readValue(buffer) as? List)?.let { - RouteTokenOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { RouteTokenOptionsDto.fromList(it) } } 141.toByte() -> { - return (readValue(buffer) as? List)?.let { - RoutingOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { RoutingOptionsDto.fromList(it) } } 142.toByte() -> { - return (readValue(buffer) as? List)?.let { - SimulationOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { SimulationOptionsDto.fromList(it) } } 143.toByte() -> { - return (readValue(buffer) as? List)?.let { - SpeedAlertOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { SpeedAlertOptionsDto.fromList(it) } } else -> super.readValueOfType(type, buffer) } } - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { when (value) { is DestinationsDto -> { stream.write(128) @@ -4461,62 +5040,127 @@ private object NavigationSessionApiCodec : StandardMessageCodec() { /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface NavigationSessionApi { /** General. */ - fun createNavigationSession(abnormalTerminationReportingEnabled: Boolean, behavior: TaskRemovedBehaviorDto, callback: (Result) -> Unit) + fun createNavigationSession( + abnormalTerminationReportingEnabled: Boolean, + behavior: TaskRemovedBehaviorDto, + callback: (Result) -> Unit, + ) + fun isInitialized(): Boolean + fun cleanup() - fun showTermsAndConditionsDialog(title: String, companyName: String, shouldOnlyShowDriverAwarenessDisclaimer: Boolean, callback: (Result) -> Unit) + + fun showTermsAndConditionsDialog( + title: String, + companyName: String, + shouldOnlyShowDriverAwarenessDisclaimer: Boolean, + callback: (Result) -> Unit, + ) + fun areTermsAccepted(): Boolean + fun resetTermsAccepted() + fun getNavSDKVersion(): String + /** Navigation. */ fun isGuidanceRunning(): Boolean + fun startGuidance() + fun stopGuidance() + fun setDestinations(destinations: DestinationsDto, callback: (Result) -> Unit) + fun clearDestinations() + fun continueToNextDestination(): NavigationWaypointDto? + fun getCurrentTimeAndDistance(): NavigationTimeAndDistanceDto + fun setAudioGuidance(settings: NavigationAudioGuidanceSettingsDto) + fun setSpeedAlertOptions(options: SpeedAlertOptionsDto) + fun getRouteSegments(): List + fun getTraveledRoute(): List + fun getCurrentRouteSegment(): RouteSegmentDto? + /** Simulation */ 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() + /** Simulation (iOS only) */ fun allowBackgroundLocationUpdates(allow: Boolean) + /** Road snapped location updates. */ fun enableRoadSnappedLocationUpdates() + fun disableRoadSnappedLocationUpdates() + /** Enable Turn-by-Turn navigation events. */ fun enableTurnByTurnNavigationEvents(numNextStepsToPreview: Long?) + 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 { - NavigationSessionApiCodec - } - /** Sets up an instance of `NavigationSessionApi` to handle messages through the `binaryMessenger`. */ + val codec: MessageCodec by lazy { NavigationSessionApiCodec } + + /** + * Sets up an instance of `NavigationSessionApi` to handle messages through the + * `binaryMessenger`. + */ @Suppress("UNCHECKED_CAST") fun setUp(binaryMessenger: BinaryMessenger, api: NavigationSessionApi?) { run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val abnormalTerminationReportingEnabledArg = args[0] as Boolean val behaviorArg = TaskRemovedBehaviorDto.ofRaw(args[1] as Int)!! - api.createNavigationSession(abnormalTerminationReportingEnabledArg, behaviorArg) { result: Result -> + api.createNavigationSession(abnormalTerminationReportingEnabledArg, behaviorArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(wrapError(error)) @@ -4530,7 +5174,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -4546,7 +5195,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -4563,14 +5217,23 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val titleArg = args[0] as String val companyNameArg = args[1] as String val shouldOnlyShowDriverAwarenessDisclaimerArg = args[2] as Boolean - api.showTermsAndConditionsDialog(titleArg, companyNameArg, shouldOnlyShowDriverAwarenessDisclaimerArg) { result: Result -> + api.showTermsAndConditionsDialog( + titleArg, + companyNameArg, + shouldOnlyShowDriverAwarenessDisclaimerArg, + ) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(wrapError(error)) @@ -4585,7 +5248,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -4601,7 +5269,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -4618,7 +5291,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -4634,7 +5312,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -4650,7 +5333,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -4667,7 +5355,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -4684,7 +5377,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4704,7 +5402,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -4721,7 +5424,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -4737,7 +5445,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -4753,7 +5466,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4772,7 +5490,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4791,7 +5514,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -4807,7 +5535,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -4823,7 +5556,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -4839,7 +5577,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4858,7 +5601,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -4875,7 +5623,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -4892,7 +5645,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4911,7 +5669,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4931,13 +5694,19 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions", + 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(wrapError(error)) @@ -4952,14 +5721,23 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions", + 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(wrapError(error)) @@ -4974,7 +5752,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -4991,7 +5774,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -5008,7 +5796,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5027,7 +5820,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -5044,7 +5842,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -5061,11 +5864,17 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List - val numNextStepsToPreviewArg = args[0].let { if (it is Int) it.toLong() else it as Long? } + val numNextStepsToPreviewArg = + args[0].let { if (it is Int) it.toLong() else it as Long? } var wrapped: List try { api.enableTurnByTurnNavigationEvents(numNextStepsToPreviewArg) @@ -5080,7 +5889,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -5097,15 +5911,25 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List - val remainingTimeThresholdSecondsArg = args[0].let { if (it is Int) it.toLong() else it as Long } - val remainingDistanceThresholdMetersArg = args[1].let { if (it is Int) it.toLong() else it as Long } + val remainingTimeThresholdSecondsArg = + args[0].let { if (it is Int) it.toLong() else it as Long } + val remainingDistanceThresholdMetersArg = + args[1].let { if (it is Int) it.toLong() else it as Long } var wrapped: List try { - api.registerRemainingTimeOrDistanceChangedListener(remainingTimeThresholdSecondsArg, remainingDistanceThresholdMetersArg) + api.registerRemainingTimeOrDistanceChangedListener( + remainingTimeThresholdSecondsArg, + remainingDistanceThresholdMetersArg, + ) wrapped = listOf(null) } catch (exception: Throwable) { wrapped = wrapError(exception) @@ -5119,54 +5943,40 @@ interface NavigationSessionApi { } } } + @Suppress("UNCHECKED_CAST") private object NavigationSessionEventApiCodec : StandardMessageCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { 128.toByte() -> { - return (readValue(buffer) as? List)?.let { - LaneDirectionDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { LaneDirectionDto.fromList(it) } } 129.toByte() -> { - return (readValue(buffer) as? List)?.let { - LaneDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { LaneDto.fromList(it) } } 130.toByte() -> { - return (readValue(buffer) as? List)?.let { - LatLngDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { LatLngDto.fromList(it) } } 131.toByte() -> { - return (readValue(buffer) as? List)?.let { - NavInfoDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { NavInfoDto.fromList(it) } } 132.toByte() -> { - return (readValue(buffer) as? List)?.let { - NavigationWaypointDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { NavigationWaypointDto.fromList(it) } } 133.toByte() -> { - return (readValue(buffer) as? List)?.let { - SpeedingUpdatedEventDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { SpeedingUpdatedEventDto.fromList(it) } } 134.toByte() -> { - return (readValue(buffer) as? List)?.let { - StepInfoDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { StepInfoDto.fromList(it) } } 135.toByte() -> { - return (readValue(buffer) as? List)?.let { - StepInfoDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { StepInfoDto.fromList(it) } } else -> super.readValueOfType(type, buffer) } } - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { when (value) { is LaneDirectionDto -> { stream.write(128) @@ -5210,12 +6020,12 @@ private object NavigationSessionEventApiCodec : StandardMessageCodec() { class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger) { companion object { /** The codec used by NavigationSessionEventApi. */ - val codec: MessageCodec by lazy { - NavigationSessionEventApiCodec - } + val codec: MessageCodec by lazy { NavigationSessionEventApiCodec } } + fun onSpeedingUpdated(msgArg: SpeedingUpdatedEventDto, callback: (Result) -> Unit) { - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(msgArg)) { if (it is List<*>) { @@ -5226,11 +6036,13 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } + fun onRoadSnappedLocationUpdated(locationArg: LatLngDto, callback: (Result) -> Unit) { - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(locationArg)) { if (it is List<*>) { @@ -5241,11 +6053,13 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } + fun onRoadSnappedRawLocationUpdated(locationArg: LatLngDto, callback: (Result) -> Unit) { - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(locationArg)) { if (it is List<*>) { @@ -5256,11 +6070,13 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } + fun onArrival(waypointArg: NavigationWaypointDto, callback: (Result) -> Unit) { - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(waypointArg)) { if (it is List<*>) { @@ -5271,11 +6087,13 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } + fun onRouteChanged(callback: (Result) -> Unit) { - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -5286,11 +6104,17 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } - fun onRemainingTimeOrDistanceChanged(remainingTimeArg: Double, remainingDistanceArg: Double, callback: (Result) -> Unit) { - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged" + + fun onRemainingTimeOrDistanceChanged( + remainingTimeArg: Double, + remainingDistanceArg: Double, + callback: (Result) -> Unit, + ) { + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(remainingTimeArg, remainingDistanceArg)) { if (it is List<*>) { @@ -5301,12 +6125,14 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } + /** Android-only event. */ fun onTrafficUpdated(callback: (Result) -> Unit) { - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -5317,12 +6143,14 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } + /** Android-only event. */ fun onRerouting(callback: (Result) -> Unit) { - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -5333,12 +6161,14 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } + /** Android-only event. */ fun onGpsAvailabilityUpdate(availableArg: Boolean, callback: (Result) -> Unit) { - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(availableArg)) { if (it is List<*>) { @@ -5349,12 +6179,14 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } + /** Turn-by-Turn navigation events. */ fun onNavInfo(navInfoArg: NavInfoDto, callback: (Result) -> Unit) { - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(navInfoArg)) { if (it is List<*>) { @@ -5365,118 +6197,80 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } } + @Suppress("UNCHECKED_CAST") private object AutoMapViewApiCodec : StandardMessageCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { 128.toByte() -> { - return (readValue(buffer) as? List)?.let { - CameraPositionDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { CameraPositionDto.fromList(it) } } 129.toByte() -> { - return (readValue(buffer) as? List)?.let { - CircleDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { CircleDto.fromList(it) } } 130.toByte() -> { - return (readValue(buffer) as? List)?.let { - CircleOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { CircleOptionsDto.fromList(it) } } 131.toByte() -> { - return (readValue(buffer) as? List)?.let { - ImageDescriptorDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { ImageDescriptorDto.fromList(it) } } 132.toByte() -> { - return (readValue(buffer) as? List)?.let { - InfoWindowDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { InfoWindowDto.fromList(it) } } 133.toByte() -> { - return (readValue(buffer) as? List)?.let { - LatLngBoundsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { LatLngBoundsDto.fromList(it) } } 134.toByte() -> { - return (readValue(buffer) as? List)?.let { - LatLngDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { LatLngDto.fromList(it) } } 135.toByte() -> { - return (readValue(buffer) as? List)?.let { - LatLngDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { LatLngDto.fromList(it) } } 136.toByte() -> { - return (readValue(buffer) as? List)?.let { - MapPaddingDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { MapPaddingDto.fromList(it) } } 137.toByte() -> { - return (readValue(buffer) as? List)?.let { - MarkerAnchorDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { MarkerAnchorDto.fromList(it) } } 138.toByte() -> { - return (readValue(buffer) as? List)?.let { - MarkerDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { MarkerDto.fromList(it) } } 139.toByte() -> { - return (readValue(buffer) as? List)?.let { - MarkerOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { MarkerOptionsDto.fromList(it) } } 140.toByte() -> { - return (readValue(buffer) as? List)?.let { - PatternItemDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PatternItemDto.fromList(it) } } 141.toByte() -> { - return (readValue(buffer) as? List)?.let { - PolygonDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PolygonDto.fromList(it) } } 142.toByte() -> { - return (readValue(buffer) as? List)?.let { - PolygonHoleDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PolygonHoleDto.fromList(it) } } 143.toByte() -> { - return (readValue(buffer) as? List)?.let { - PolygonOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PolygonOptionsDto.fromList(it) } } 144.toByte() -> { - return (readValue(buffer) as? List)?.let { - PolylineDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PolylineDto.fromList(it) } } 145.toByte() -> { - return (readValue(buffer) as? List)?.let { - PolylineOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PolylineOptionsDto.fromList(it) } } 146.toByte() -> { - return (readValue(buffer) as? List)?.let { - StyleSpanDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { StyleSpanDto.fromList(it) } } 147.toByte() -> { - return (readValue(buffer) as? List)?.let { - StyleSpanStrokeStyleDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { StyleSpanStrokeStyleDto.fromList(it) } } else -> super.readValueOfType(type, buffer) } } - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { when (value) { is CameraPositionDto -> { stream.write(128) @@ -5566,91 +6360,194 @@ private object AutoMapViewApiCodec : StandardMessageCodec() { /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface AutoMapViewApi { 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 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 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 registerOnCameraChangedListener() + fun isAutoScreenAvailable(): Boolean + fun setPadding(padding: MapPaddingDto) + fun getPadding(): MapPaddingDto companion object { /** The codec used by AutoMapViewApi. */ - val codec: MessageCodec by lazy { - AutoMapViewApiCodec - } + val codec: MessageCodec by lazy { AutoMapViewApiCodec } + /** Sets up an instance of `AutoMapViewApi` to handle messages through the `binaryMessenger`. */ @Suppress("UNCHECKED_CAST") fun setUp(binaryMessenger: BinaryMessenger, api: AutoMapViewApi?) { run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -5666,7 +6563,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5685,7 +6587,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -5701,7 +6608,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -5717,7 +6629,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5736,7 +6653,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5755,7 +6677,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -5771,7 +6698,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -5787,7 +6719,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5807,13 +6744,19 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val cameraPositionArg = args[0] as CameraPositionDto val durationArg = args[1].let { if (it is Int) it.toLong() else it as Long? } - api.animateCameraToCameraPosition(cameraPositionArg, durationArg) { result: Result -> + api.animateCameraToCameraPosition(cameraPositionArg, durationArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(wrapError(error)) @@ -5828,7 +6771,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5849,14 +6797,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds", + 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].let { if (it is Int) it.toLong() else it 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(wrapError(error)) @@ -5871,14 +6825,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom", + 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].let { if (it is Int) it.toLong() else it 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(wrapError(error)) @@ -5893,14 +6853,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll", + 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].let { if (it is Int) it.toLong() else it 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(wrapError(error)) @@ -5915,7 +6881,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5923,7 +6894,8 @@ interface AutoMapViewApi { val focusDxArg = args[1] as Double? val focusDyArg = args[2] as Double? val durationArg = args[3].let { if (it is Int) it.toLong() else it 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(wrapError(error)) @@ -5938,7 +6910,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5959,7 +6936,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5978,7 +6960,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5997,7 +6984,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6017,7 +7009,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6037,7 +7034,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6057,7 +7059,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6078,7 +7085,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6097,7 +7109,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -6113,7 +7130,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -6129,7 +7151,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -6146,7 +7173,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6165,7 +7197,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6184,7 +7221,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6203,7 +7245,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6222,7 +7269,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6241,7 +7293,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6260,7 +7317,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6279,7 +7341,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6298,7 +7365,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6317,7 +7389,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6336,7 +7413,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6355,7 +7437,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6374,7 +7461,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6393,7 +7485,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -6409,7 +7506,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -6425,7 +7527,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -6441,7 +7548,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -6457,7 +7569,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -6473,7 +7590,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -6489,7 +7611,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -6505,7 +7632,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -6521,7 +7653,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -6537,7 +7674,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -6553,7 +7695,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -6569,7 +7716,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -6585,7 +7737,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6603,7 +7760,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6621,7 +7783,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6640,7 +7807,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -6657,7 +7829,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -6674,7 +7851,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -6690,7 +7872,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6708,7 +7895,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6726,7 +7918,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6745,7 +7942,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -6762,7 +7964,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -6778,7 +7985,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6796,7 +8008,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6814,7 +8031,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6833,7 +8055,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -6850,7 +8077,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -6866,7 +8098,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6884,7 +8121,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6902,7 +8144,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6921,7 +8168,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -6938,7 +8190,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.registerOnCameraChangedListener", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.registerOnCameraChangedListener", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -6955,7 +8212,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -6971,7 +8233,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6990,7 +8257,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> var wrapped: List @@ -7008,89 +8280,58 @@ interface AutoMapViewApi { } } } + @Suppress("UNCHECKED_CAST") private object AutoViewEventApiCodec : StandardMessageCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { 128.toByte() -> { - return (readValue(buffer) as? List)?.let { - CameraPositionDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { CameraPositionDto.fromList(it) } } 129.toByte() -> { - return (readValue(buffer) as? List)?.let { - CircleDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { CircleDto.fromList(it) } } 130.toByte() -> { - return (readValue(buffer) as? List)?.let { - CircleOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { CircleOptionsDto.fromList(it) } } 131.toByte() -> { - return (readValue(buffer) as? List)?.let { - DestinationsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { DestinationsDto.fromList(it) } } 132.toByte() -> { - return (readValue(buffer) as? List)?.let { - ImageDescriptorDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { ImageDescriptorDto.fromList(it) } } 133.toByte() -> { - return (readValue(buffer) as? List)?.let { - InfoWindowDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { InfoWindowDto.fromList(it) } } 134.toByte() -> { - return (readValue(buffer) as? List)?.let { - LaneDirectionDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { LaneDirectionDto.fromList(it) } } 135.toByte() -> { - return (readValue(buffer) as? List)?.let { - LaneDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { LaneDto.fromList(it) } } 136.toByte() -> { - return (readValue(buffer) as? List)?.let { - LatLngBoundsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { LatLngBoundsDto.fromList(it) } } 137.toByte() -> { - return (readValue(buffer) as? List)?.let { - LatLngDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { LatLngDto.fromList(it) } } 138.toByte() -> { - return (readValue(buffer) as? List)?.let { - MapOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { MapOptionsDto.fromList(it) } } 139.toByte() -> { - return (readValue(buffer) as? List)?.let { - MapPaddingDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { MapPaddingDto.fromList(it) } } 140.toByte() -> { - return (readValue(buffer) as? List)?.let { - MarkerAnchorDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { MarkerAnchorDto.fromList(it) } } 141.toByte() -> { - return (readValue(buffer) as? List)?.let { - MarkerDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { MarkerDto.fromList(it) } } 142.toByte() -> { - return (readValue(buffer) as? List)?.let { - MarkerOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { MarkerOptionsDto.fromList(it) } } 143.toByte() -> { - return (readValue(buffer) as? List)?.let { - NavInfoDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { NavInfoDto.fromList(it) } } 144.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -7098,64 +8339,40 @@ private object AutoViewEventApiCodec : StandardMessageCodec() { } } 145.toByte() -> { - return (readValue(buffer) as? List)?.let { - NavigationDisplayOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { NavigationDisplayOptionsDto.fromList(it) } } 146.toByte() -> { - return (readValue(buffer) as? List)?.let { - NavigationTimeAndDistanceDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { NavigationTimeAndDistanceDto.fromList(it) } } 147.toByte() -> { - return (readValue(buffer) as? List)?.let { - NavigationViewOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { NavigationViewOptionsDto.fromList(it) } } 148.toByte() -> { - return (readValue(buffer) as? List)?.let { - NavigationWaypointDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { NavigationWaypointDto.fromList(it) } } 149.toByte() -> { - return (readValue(buffer) as? List)?.let { - PatternItemDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PatternItemDto.fromList(it) } } 150.toByte() -> { - return (readValue(buffer) as? List)?.let { - PolygonDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PolygonDto.fromList(it) } } 151.toByte() -> { - return (readValue(buffer) as? List)?.let { - PolygonHoleDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PolygonHoleDto.fromList(it) } } 152.toByte() -> { - return (readValue(buffer) as? List)?.let { - PolygonOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PolygonOptionsDto.fromList(it) } } 153.toByte() -> { - return (readValue(buffer) as? List)?.let { - PolylineDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PolylineDto.fromList(it) } } 154.toByte() -> { - return (readValue(buffer) as? List)?.let { - PolylineOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PolylineOptionsDto.fromList(it) } } 155.toByte() -> { - return (readValue(buffer) as? List)?.let { - RouteSegmentDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { RouteSegmentDto.fromList(it) } } 156.toByte() -> { - return (readValue(buffer) as? List)?.let { - RouteSegmentTrafficDataDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { RouteSegmentTrafficDataDto.fromList(it) } } 157.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -7163,54 +8380,37 @@ private object AutoViewEventApiCodec : StandardMessageCodec() { } } 158.toByte() -> { - return (readValue(buffer) as? List)?.let { - RouteTokenOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { RouteTokenOptionsDto.fromList(it) } } 159.toByte() -> { - return (readValue(buffer) as? List)?.let { - RoutingOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { RoutingOptionsDto.fromList(it) } } 160.toByte() -> { - return (readValue(buffer) as? List)?.let { - SimulationOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { SimulationOptionsDto.fromList(it) } } 161.toByte() -> { - return (readValue(buffer) as? List)?.let { - SpeedAlertOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { SpeedAlertOptionsDto.fromList(it) } } 162.toByte() -> { - return (readValue(buffer) as? List)?.let { - SpeedingUpdatedEventDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { SpeedingUpdatedEventDto.fromList(it) } } 163.toByte() -> { - return (readValue(buffer) as? List)?.let { - StepInfoDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { StepInfoDto.fromList(it) } } 164.toByte() -> { - return (readValue(buffer) as? List)?.let { - StyleSpanDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { StyleSpanDto.fromList(it) } } 165.toByte() -> { - return (readValue(buffer) as? List)?.let { - StyleSpanStrokeStyleDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { StyleSpanStrokeStyleDto.fromList(it) } } 166.toByte() -> { - return (readValue(buffer) as? List)?.let { - ViewCreationOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { ViewCreationOptionsDto.fromList(it) } } else -> super.readValueOfType(type, buffer) } } - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { when (value) { is CameraPositionDto -> { stream.write(128) @@ -7378,12 +8578,16 @@ private object AutoViewEventApiCodec : StandardMessageCodec() { class AutoViewEventApi(private val binaryMessenger: BinaryMessenger) { companion object { /** The codec used by AutoViewEventApi. */ - val codec: MessageCodec by lazy { - AutoViewEventApiCodec - } + val codec: MessageCodec by lazy { AutoViewEventApiCodec } } - fun onCustomNavigationAutoEvent(eventArg: String, dataArg: Any, callback: (Result) -> Unit) { - val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent" + + fun onCustomNavigationAutoEvent( + eventArg: String, + dataArg: Any, + callback: (Result) -> Unit, + ) { + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(eventArg, dataArg)) { if (it is List<*>) { @@ -7394,11 +8598,13 @@ class AutoViewEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } + fun onAutoScreenAvailabilityChanged(isAvailableArg: Boolean, callback: (Result) -> Unit) { - val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(isAvailableArg)) { if (it is List<*>) { @@ -7409,24 +8615,32 @@ class AutoViewEventApi(private val binaryMessenger: BinaryMessenger) { } } else { callback(Result.failure(createConnectionError(channelName))) - } + } } } } + /** 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 { - StandardMessageCodec() - } - /** Sets up an instance of `NavigationInspector` to handle messages through the `binaryMessenger`. */ + val codec: MessageCodec by lazy { StandardMessageCodec() } + + /** + * Sets up an instance of `NavigationInspector` to handle messages through the + * `binaryMessenger`. + */ @Suppress("UNCHECKED_CAST") fun setUp(binaryMessenger: BinaryMessenger, api: NavigationInspector?) { run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List diff --git a/android/src/test/kotlin/com/google/maps/flutter/navigation/ConvertTest.kt b/android/src/test/kotlin/com/google/maps/flutter/navigation/ConvertTest.kt index c688a59a..b0a7a35a 100644 --- a/android/src/test/kotlin/com/google/maps/flutter/navigation/ConvertTest.kt +++ b/android/src/test/kotlin/com/google/maps/flutter/navigation/ConvertTest.kt @@ -609,8 +609,17 @@ internal class ConvertTest { @Test fun taskRemovedBehaviorDtoToTaskRemovedBehavior_returnsExpectedValue() { - assertEquals(TaskRemovedBehavior.QUIT_SERVICE, Convert.taskRemovedBehaviorDtoToTaskRemovedBehavior(TaskRemovedBehaviorDto.QUITSERVICE)) - assertEquals(TaskRemovedBehavior.CONTINUE_SERVICE, Convert.taskRemovedBehaviorDtoToTaskRemovedBehavior(TaskRemovedBehaviorDto.CONTINUESERVICE)) - assertEquals(TaskRemovedBehavior.CONTINUE_SERVICE, Convert.taskRemovedBehaviorDtoToTaskRemovedBehavior(null)) + assertEquals( + TaskRemovedBehavior.QUIT_SERVICE, + Convert.taskRemovedBehaviorDtoToTaskRemovedBehavior(TaskRemovedBehaviorDto.QUITSERVICE), + ) + assertEquals( + TaskRemovedBehavior.CONTINUE_SERVICE, + Convert.taskRemovedBehaviorDtoToTaskRemovedBehavior(TaskRemovedBehaviorDto.CONTINUESERVICE), + ) + assertEquals( + TaskRemovedBehavior.CONTINUE_SERVICE, + Convert.taskRemovedBehaviorDtoToTaskRemovedBehavior(null), + ) } } 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 aa9ee619..a432afeb 100644 --- a/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationSessionMessageHandler.swift +++ b/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationSessionMessageHandler.swift @@ -57,7 +57,8 @@ class GoogleMapsNavigationSessionMessageHandler: NavigationSessionApi { } func createNavigationSession(abnormalTerminationReportingEnabled: Bool, - // taskRemovedBehaviourValue is Android only value and not used on iOS. + // taskRemovedBehaviourValue is Android only value and not used on + // iOS. behavior: TaskRemovedBehaviorDto, 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 e8559e34..52369124 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 @@ -1,31 +1,31 @@ // Copyright 2023 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. -// +// // Autogenerated from Pigeon (v15.0.0), do not edit directly. // See also: https://pub.dev/packages/pigeon import Foundation #if os(iOS) -import Flutter + import Flutter #elseif os(macOS) -import FlutterMacOS + import FlutterMacOS #else -#error("Unsupported platform.") + #error("Unsupported platform.") #endif private func wrapResult(_ result: Any?) -> [Any?] { - return [result] + [result] } private func wrapError(_ error: Any) -> [Any?] { @@ -33,22 +33,26 @@ private func wrapError(_ error: Any) -> [Any?] { return [ flutterError.code, flutterError.message, - flutterError.details + flutterError.details, ] } return [ "\(error)", "\(type(of: error))", - "Stacktrace: \(Thread.callStackSymbols)" + "Stacktrace: \(Thread.callStackSymbols)", ] } private func createConnectionError(withChannelName channelName: String) -> FlutterError { - return FlutterError(code: "channel-error", message: "Unable to establish connection on channel: '\(channelName)'.", details: "") + FlutterError( + code: "channel-error", + message: "Unable to establish connection on channel: '\(channelName)'.", + details: "" + ) } private func isNullish(_ value: Any?) -> Bool { - return value is NSNull || value == nil + value is NSNull || value == nil } private func nilOrValue(_ value: Any?) -> T? { @@ -58,7 +62,8 @@ private func nilOrValue(_ value: Any?) -> T? { /// Describes the type of map to construct. enum MapViewTypeDto: 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. case navigation = 0 /// Classic map view, without navigation overlay. case map = 1 @@ -289,9 +294,11 @@ enum ManeuverDto: Int { case roundaboutStraightClockwise = 50 /// Enter a roundabout in the counterclockwise direction and continue straight. case roundaboutStraightCounterclockwise = 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. case roundaboutUTurnClockwise = 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. case roundaboutUTurnCounterclockwise = 53 /// Continue straight. case straight = 54 @@ -367,10 +374,11 @@ enum LaneShapeDto: Int { /// Determines how application should behave when a application task is removed. enum TaskRemovedBehaviorDto: Int { - /// The default state, indicating that navigation guidance, + /// The default state, indicating that navigation guidance, /// location updates, and notification should persist after user removes the application task. case continueService = 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. case quitService = 1 } @@ -397,16 +405,16 @@ struct MapOptionsDto { /// If true, enables the map toolbar. var mapToolbarEnabled: Bool /// The minimum zoom level that can be set for the map. - var minZoomPreference: Double? = nil + var minZoomPreference: Double? /// The maximum zoom level that can be set for the map. - var maxZoomPreference: Double? = nil + var maxZoomPreference: Double? /// If true, enables zoom controls for the map. var zoomControlsEnabled: Bool /// Specifies a bounds to constrain the camera target, so that when users scroll and pan the map, /// the camera target does not move outside these bounds. - var cameraTargetBounds: LatLngBoundsDto? = nil + var cameraTargetBounds: LatLngBoundsDto? /// Specifies the padding for the map. - var padding: MapPaddingDto? = nil + var padding: MapPaddingDto? static func fromList(_ list: [Any?]) -> MapOptionsDto? { let cameraPosition = CameraPositionDto.fromList(list[0] as! [Any?])! @@ -421,11 +429,11 @@ struct MapOptionsDto { let minZoomPreference: Double? = nilOrValue(list[9]) let maxZoomPreference: Double? = nilOrValue(list[10]) let zoomControlsEnabled = list[11] as! Bool - var cameraTargetBounds: LatLngBoundsDto? = nil + var cameraTargetBounds: LatLngBoundsDto? if let cameraTargetBoundsList: [Any?] = nilOrValue(list[12]) { cameraTargetBounds = LatLngBoundsDto.fromList(cameraTargetBoundsList) } - var padding: MapPaddingDto? = nil + var padding: MapPaddingDto? if let paddingList: [Any?] = nilOrValue(list[13]) { padding = MapPaddingDto.fromList(paddingList) } @@ -447,8 +455,9 @@ struct MapOptionsDto { padding: padding ) } + func toList() -> [Any?] { - return [ + [ cameraPosition.toList(), mapType.rawValue, compassEnabled, @@ -481,8 +490,9 @@ struct NavigationViewOptionsDto { navigationUIEnabledPreference: navigationUIEnabledPreference ) } + func toList() -> [Any?] { - return [ + [ navigationUIEnabledPreference.rawValue, ] } @@ -497,12 +507,12 @@ struct NavigationViewOptionsDto { struct ViewCreationOptionsDto { var mapViewType: MapViewTypeDto var mapOptions: MapOptionsDto - var navigationViewOptions: NavigationViewOptionsDto? = nil + var navigationViewOptions: NavigationViewOptionsDto? static func fromList(_ list: [Any?]) -> ViewCreationOptionsDto? { let mapViewType = MapViewTypeDto(rawValue: list[0] as! Int)! let mapOptions = MapOptionsDto.fromList(list[1] as! [Any?])! - var navigationViewOptions: NavigationViewOptionsDto? = nil + var navigationViewOptions: NavigationViewOptionsDto? if let navigationViewOptionsList: [Any?] = nilOrValue(list[2]) { navigationViewOptions = NavigationViewOptionsDto.fromList(navigationViewOptionsList) } @@ -513,8 +523,9 @@ struct ViewCreationOptionsDto { navigationViewOptions: navigationViewOptions ) } + func toList() -> [Any?] { - return [ + [ mapViewType.rawValue, mapOptions.toList(), navigationViewOptions?.toList(), @@ -542,8 +553,9 @@ struct CameraPositionDto { zoom: zoom ) } + func toList() -> [Any?] { - return [ + [ bearing, target.toList(), tilt, @@ -568,8 +580,9 @@ struct MarkerDto { options: options ) } + func toList() -> [Any?] { - return [ + [ markerId, options.toList(), ] @@ -617,8 +630,9 @@ struct MarkerOptionsDto { icon: icon ) } + func toList() -> [Any?] { - return [ + [ alpha, anchor.toList(), draggable, @@ -636,10 +650,10 @@ struct MarkerOptionsDto { /// Generated class from Pigeon that represents data sent in messages. struct ImageDescriptorDto { - var registeredImageId: String? = nil - var imagePixelRatio: Double? = nil - var width: Double? = nil - var height: Double? = nil + var registeredImageId: String? + var imagePixelRatio: Double? + var width: Double? + var height: Double? static func fromList(_ list: [Any?]) -> ImageDescriptorDto? { let registeredImageId: String? = nilOrValue(list[0]) @@ -654,8 +668,9 @@ struct ImageDescriptorDto { height: height ) } + func toList() -> [Any?] { - return [ + [ registeredImageId, imagePixelRatio, width, @@ -666,8 +681,8 @@ struct ImageDescriptorDto { /// Generated class from Pigeon that represents data sent in messages. struct InfoWindowDto { - var title: String? = nil - var snippet: String? = nil + var title: String? + var snippet: String? var anchor: MarkerAnchorDto static func fromList(_ list: [Any?]) -> InfoWindowDto? { @@ -681,8 +696,9 @@ struct InfoWindowDto { anchor: anchor ) } + func toList() -> [Any?] { - return [ + [ title, snippet, anchor.toList(), @@ -704,8 +720,9 @@ struct MarkerAnchorDto { v: v ) } + func toList() -> [Any?] { - return [ + [ u, v, ] @@ -726,8 +743,9 @@ struct PolygonDto { options: options ) } + func toList() -> [Any?] { - return [ + [ polygonId, options.toList(), ] @@ -769,8 +787,9 @@ struct PolygonOptionsDto { zIndex: zIndex ) } + func toList() -> [Any?] { - return [ + [ points, holes, clickable, @@ -795,8 +814,9 @@ struct PolygonHoleDto { points: points ) } + func toList() -> [Any?] { - return [ + [ points, ] } @@ -804,14 +824,17 @@ struct PolygonHoleDto { /// Generated class from Pigeon that represents data sent in messages. struct StyleSpanStrokeStyleDto { - var solidColor: Int64? = nil - var fromColor: Int64? = nil - var toColor: Int64? = nil + var solidColor: Int64? + var fromColor: Int64? + var toColor: Int64? static func fromList(_ list: [Any?]) -> StyleSpanStrokeStyleDto? { - let solidColor: Int64? = isNullish(list[0]) ? nil : (list[0] is Int64? ? list[0] as! Int64? : Int64(list[0] as! Int32)) - let fromColor: Int64? = isNullish(list[1]) ? nil : (list[1] is Int64? ? list[1] as! Int64? : Int64(list[1] as! Int32)) - let toColor: Int64? = isNullish(list[2]) ? nil : (list[2] is Int64? ? list[2] as! Int64? : Int64(list[2] as! Int32)) + let solidColor: Int64? = isNullish(list[0]) ? nil : + (list[0] is Int64? ? list[0] as! Int64? : Int64(list[0] as! Int32)) + let fromColor: Int64? = isNullish(list[1]) ? nil : + (list[1] is Int64? ? list[1] as! Int64? : Int64(list[1] as! Int32)) + let toColor: Int64? = isNullish(list[2]) ? nil : + (list[2] is Int64? ? list[2] as! Int64? : Int64(list[2] as! Int32)) return StyleSpanStrokeStyleDto( solidColor: solidColor, @@ -819,8 +842,9 @@ struct StyleSpanStrokeStyleDto { toColor: toColor ) } + func toList() -> [Any?] { - return [ + [ solidColor, fromColor, toColor, @@ -842,8 +866,9 @@ struct StyleSpanDto { style: style ) } + func toList() -> [Any?] { - return [ + [ length, style.toList(), ] @@ -864,8 +889,9 @@ struct PolylineDto { options: options ) } + func toList() -> [Any?] { - return [ + [ polylineId, options.toList(), ] @@ -875,7 +901,7 @@ struct PolylineDto { /// Generated class from Pigeon that represents data sent in messages. struct PatternItemDto { var type: PatternTypeDto - var length: Double? = nil + var length: Double? static func fromList(_ list: [Any?]) -> PatternItemDto? { let type = PatternTypeDto(rawValue: list[0] as! Int)! @@ -886,8 +912,9 @@ struct PatternItemDto { length: length ) } + func toList() -> [Any?] { - return [ + [ type.rawValue, length, ] @@ -896,23 +923,24 @@ struct PatternItemDto { /// Generated class from Pigeon that represents data sent in messages. struct PolylineOptionsDto { - var points: [LatLngDto?]? = nil - var clickable: Bool? = nil - var geodesic: Bool? = nil - var strokeColor: Int64? = nil - var strokeJointType: StrokeJointTypeDto? = nil - var strokePattern: [PatternItemDto?]? = nil - var strokeWidth: Double? = nil - var visible: Bool? = nil - var zIndex: Double? = nil + var points: [LatLngDto?]? + var clickable: Bool? + var geodesic: Bool? + var strokeColor: Int64? + var strokeJointType: StrokeJointTypeDto? + var strokePattern: [PatternItemDto?]? + var strokeWidth: Double? + var visible: Bool? + var zIndex: Double? var spans: [StyleSpanDto?] static func fromList(_ list: [Any?]) -> PolylineOptionsDto? { let points: [LatLngDto?]? = nilOrValue(list[0]) let clickable: Bool? = nilOrValue(list[1]) let geodesic: Bool? = nilOrValue(list[2]) - let strokeColor: Int64? = isNullish(list[3]) ? nil : (list[3] is Int64? ? list[3] as! Int64? : Int64(list[3] as! Int32)) - var strokeJointType: StrokeJointTypeDto? = nil + let strokeColor: Int64? = isNullish(list[3]) ? nil : + (list[3] is Int64? ? list[3] as! Int64? : Int64(list[3] as! Int32)) + var strokeJointType: StrokeJointTypeDto? let strokeJointTypeEnumVal: Int? = nilOrValue(list[4]) if let strokeJointTypeRawValue = strokeJointTypeEnumVal { strokeJointType = StrokeJointTypeDto(rawValue: strokeJointTypeRawValue)! @@ -936,8 +964,9 @@ struct PolylineOptionsDto { spans: spans ) } + func toList() -> [Any?] { - return [ + [ points, clickable, geodesic, @@ -968,8 +997,9 @@ struct CircleDto { options: options ) } + func toList() -> [Any?] { - return [ + [ circleId, options.toList(), ] @@ -1011,8 +1041,9 @@ struct CircleOptionsDto { clickable: clickable ) } + func toList() -> [Any?] { - return [ + [ position.toList(), radius, strokeWidth, @@ -1046,8 +1077,9 @@ struct MapPaddingDto { right: right ) } + func toList() -> [Any?] { - return [ + [ top, left, bottom, @@ -1059,11 +1091,11 @@ struct MapPaddingDto { /// Generated class from Pigeon that represents data sent in messages. struct RouteTokenOptionsDto { var routeToken: String - var travelMode: TravelModeDto? = nil + var travelMode: TravelModeDto? static func fromList(_ list: [Any?]) -> RouteTokenOptionsDto? { let routeToken = list[0] as! String - var travelMode: TravelModeDto? = nil + var travelMode: TravelModeDto? let travelModeEnumVal: Int? = nilOrValue(list[1]) if let travelModeRawValue = travelModeEnumVal { travelMode = TravelModeDto(rawValue: travelModeRawValue)! @@ -1074,8 +1106,9 @@ struct RouteTokenOptionsDto { travelMode: travelMode ) } + func toList() -> [Any?] { - return [ + [ routeToken, travelMode?.rawValue, ] @@ -1086,17 +1119,17 @@ struct RouteTokenOptionsDto { struct DestinationsDto { var waypoints: [NavigationWaypointDto?] var displayOptions: NavigationDisplayOptionsDto - var routingOptions: RoutingOptionsDto? = nil - var routeTokenOptions: RouteTokenOptionsDto? = nil + var routingOptions: RoutingOptionsDto? + var routeTokenOptions: RouteTokenOptionsDto? static func fromList(_ list: [Any?]) -> DestinationsDto? { let waypoints = list[0] as! [NavigationWaypointDto?] let displayOptions = NavigationDisplayOptionsDto.fromList(list[1] as! [Any?])! - var routingOptions: RoutingOptionsDto? = nil + var routingOptions: RoutingOptionsDto? if let routingOptionsList: [Any?] = nilOrValue(list[2]) { routingOptions = RoutingOptionsDto.fromList(routingOptionsList) } - var routeTokenOptions: RouteTokenOptionsDto? = nil + var routeTokenOptions: RouteTokenOptionsDto? if let routeTokenOptionsList: [Any?] = nilOrValue(list[3]) { routeTokenOptions = RouteTokenOptionsDto.fromList(routeTokenOptionsList) } @@ -1108,8 +1141,9 @@ struct DestinationsDto { routeTokenOptions: routeTokenOptions ) } + func toList() -> [Any?] { - return [ + [ waypoints, displayOptions.toList(), routingOptions?.toList(), @@ -1120,28 +1154,29 @@ struct DestinationsDto { /// Generated class from Pigeon that represents data sent in messages. struct RoutingOptionsDto { - var alternateRoutesStrategy: AlternateRoutesStrategyDto? = nil - var routingStrategy: RoutingStrategyDto? = nil - var targetDistanceMeters: [Int64?]? = nil - var travelMode: TravelModeDto? = nil - var avoidTolls: Bool? = nil - var avoidFerries: Bool? = nil - var avoidHighways: Bool? = nil - var locationTimeoutMs: Int64? = nil + var alternateRoutesStrategy: AlternateRoutesStrategyDto? + var routingStrategy: RoutingStrategyDto? + var targetDistanceMeters: [Int64?]? + var travelMode: TravelModeDto? + var avoidTolls: Bool? + var avoidFerries: Bool? + var avoidHighways: Bool? + var locationTimeoutMs: Int64? static func fromList(_ list: [Any?]) -> RoutingOptionsDto? { - var alternateRoutesStrategy: AlternateRoutesStrategyDto? = nil + var alternateRoutesStrategy: AlternateRoutesStrategyDto? let alternateRoutesStrategyEnumVal: Int? = nilOrValue(list[0]) if let alternateRoutesStrategyRawValue = alternateRoutesStrategyEnumVal { - alternateRoutesStrategy = AlternateRoutesStrategyDto(rawValue: alternateRoutesStrategyRawValue)! + alternateRoutesStrategy = + AlternateRoutesStrategyDto(rawValue: alternateRoutesStrategyRawValue)! } - var routingStrategy: RoutingStrategyDto? = nil + var routingStrategy: RoutingStrategyDto? let routingStrategyEnumVal: Int? = nilOrValue(list[1]) if let routingStrategyRawValue = routingStrategyEnumVal { routingStrategy = RoutingStrategyDto(rawValue: routingStrategyRawValue)! } let targetDistanceMeters: [Int64?]? = nilOrValue(list[2]) - var travelMode: TravelModeDto? = nil + var travelMode: TravelModeDto? let travelModeEnumVal: Int? = nilOrValue(list[3]) if let travelModeRawValue = travelModeEnumVal { travelMode = TravelModeDto(rawValue: travelModeRawValue)! @@ -1149,7 +1184,8 @@ struct RoutingOptionsDto { let avoidTolls: Bool? = nilOrValue(list[4]) let avoidFerries: Bool? = nilOrValue(list[5]) let avoidHighways: Bool? = nilOrValue(list[6]) - let locationTimeoutMs: Int64? = isNullish(list[7]) ? nil : (list[7] is Int64? ? list[7] as! Int64? : Int64(list[7] as! Int32)) + let locationTimeoutMs: Int64? = isNullish(list[7]) ? nil : + (list[7] is Int64? ? list[7] as! Int64? : Int64(list[7] as! Int32)) return RoutingOptionsDto( alternateRoutesStrategy: alternateRoutesStrategy, @@ -1162,8 +1198,9 @@ struct RoutingOptionsDto { locationTimeoutMs: locationTimeoutMs ) } + func toList() -> [Any?] { - return [ + [ alternateRoutesStrategy?.rawValue, routingStrategy?.rawValue, targetDistanceMeters, @@ -1178,9 +1215,9 @@ struct RoutingOptionsDto { /// Generated class from Pigeon that represents data sent in messages. struct NavigationDisplayOptionsDto { - var showDestinationMarkers: Bool? = nil - var showStopSigns: Bool? = nil - var showTrafficLights: Bool? = nil + var showDestinationMarkers: Bool? + var showStopSigns: Bool? + var showTrafficLights: Bool? static func fromList(_ list: [Any?]) -> NavigationDisplayOptionsDto? { let showDestinationMarkers: Bool? = nilOrValue(list[0]) @@ -1193,8 +1230,9 @@ struct NavigationDisplayOptionsDto { showTrafficLights: showTrafficLights ) } + func toList() -> [Any?] { - return [ + [ showDestinationMarkers, showStopSigns, showTrafficLights, @@ -1205,20 +1243,21 @@ struct NavigationDisplayOptionsDto { /// Generated class from Pigeon that represents data sent in messages. struct NavigationWaypointDto { var title: String - var target: LatLngDto? = nil - var placeID: String? = nil - var preferSameSideOfRoad: Bool? = nil - var preferredSegmentHeading: Int64? = nil + var target: LatLngDto? + var placeID: String? + var preferSameSideOfRoad: Bool? + var preferredSegmentHeading: Int64? static func fromList(_ list: [Any?]) -> NavigationWaypointDto? { let title = list[0] as! String - var target: LatLngDto? = nil + var target: LatLngDto? if let targetList: [Any?] = nilOrValue(list[1]) { target = LatLngDto.fromList(targetList) } let placeID: String? = nilOrValue(list[2]) let preferSameSideOfRoad: Bool? = nilOrValue(list[3]) - let preferredSegmentHeading: Int64? = isNullish(list[4]) ? nil : (list[4] is Int64? ? list[4] as! Int64? : Int64(list[4] as! Int32)) + let preferredSegmentHeading: Int64? = isNullish(list[4]) ? nil : + (list[4] is Int64? ? list[4] as! Int64? : Int64(list[4] as! Int32)) return NavigationWaypointDto( title: title, @@ -1228,8 +1267,9 @@ struct NavigationWaypointDto { preferredSegmentHeading: preferredSegmentHeading ) } + func toList() -> [Any?] { - return [ + [ title, target?.toList(), placeID, @@ -1253,8 +1293,9 @@ struct NavigationTimeAndDistanceDto { distance: distance ) } + func toList() -> [Any?] { - return [ + [ time, distance, ] @@ -1263,14 +1304,14 @@ struct NavigationTimeAndDistanceDto { /// Generated class from Pigeon that represents data sent in messages. struct NavigationAudioGuidanceSettingsDto { - var isBluetoothAudioEnabled: Bool? = nil - var isVibrationEnabled: Bool? = nil - var guidanceType: AudioGuidanceTypeDto? = nil + var isBluetoothAudioEnabled: Bool? + var isVibrationEnabled: Bool? + var guidanceType: AudioGuidanceTypeDto? static func fromList(_ list: [Any?]) -> NavigationAudioGuidanceSettingsDto? { let isBluetoothAudioEnabled: Bool? = nilOrValue(list[0]) let isVibrationEnabled: Bool? = nilOrValue(list[1]) - var guidanceType: AudioGuidanceTypeDto? = nil + var guidanceType: AudioGuidanceTypeDto? let guidanceTypeEnumVal: Int? = nilOrValue(list[2]) if let guidanceTypeRawValue = guidanceTypeEnumVal { guidanceType = AudioGuidanceTypeDto(rawValue: guidanceTypeRawValue)! @@ -1282,8 +1323,9 @@ struct NavigationAudioGuidanceSettingsDto { guidanceType: guidanceType ) } + func toList() -> [Any?] { - return [ + [ isBluetoothAudioEnabled, isVibrationEnabled, guidanceType?.rawValue, @@ -1302,8 +1344,9 @@ struct SimulationOptionsDto { speedMultiplier: speedMultiplier ) } + func toList() -> [Any?] { - return [ + [ speedMultiplier, ] } @@ -1323,8 +1366,9 @@ struct LatLngDto { longitude: longitude ) } + func toList() -> [Any?] { - return [ + [ latitude, longitude, ] @@ -1345,8 +1389,9 @@ struct LatLngBoundsDto { northeast: northeast ) } + func toList() -> [Any?] { - return [ + [ southwest.toList(), northeast.toList(), ] @@ -1367,8 +1412,9 @@ struct SpeedingUpdatedEventDto { severity: severity ) } + func toList() -> [Any?] { - return [ + [ percentageAboveLimit, severity.rawValue, ] @@ -1392,8 +1438,9 @@ struct SpeedAlertOptionsDto { majorSpeedAlertThresholdPercentage: majorSpeedAlertThresholdPercentage ) } + func toList() -> [Any?] { - return [ + [ severityUpgradeDurationSeconds, minorSpeedAlertThresholdPercentage, majorSpeedAlertThresholdPercentage, @@ -1418,8 +1465,9 @@ struct RouteSegmentTrafficDataRoadStretchRenderingDataDto { offsetMeters: offsetMeters ) } + func toList() -> [Any?] { - return [ + [ style.rawValue, lengthMeters, offsetMeters, @@ -1434,15 +1482,17 @@ struct RouteSegmentTrafficDataDto { static func fromList(_ list: [Any?]) -> RouteSegmentTrafficDataDto? { let status = RouteSegmentTrafficDataStatusDto(rawValue: list[0] as! Int)! - let roadStretchRenderingDataList = list[1] as! [RouteSegmentTrafficDataRoadStretchRenderingDataDto?] + let roadStretchRenderingDataList = + list[1] as! [RouteSegmentTrafficDataRoadStretchRenderingDataDto?] return RouteSegmentTrafficDataDto( status: status, roadStretchRenderingDataList: roadStretchRenderingDataList ) } + func toList() -> [Any?] { - return [ + [ status.rawValue, roadStretchRenderingDataList, ] @@ -1451,19 +1501,19 @@ struct RouteSegmentTrafficDataDto { /// Generated class from Pigeon that represents data sent in messages. struct RouteSegmentDto { - var trafficData: RouteSegmentTrafficDataDto? = nil + var trafficData: RouteSegmentTrafficDataDto? var destinationLatLng: LatLngDto - var latLngs: [LatLngDto?]? = nil - var destinationWaypoint: NavigationWaypointDto? = nil + var latLngs: [LatLngDto?]? + var destinationWaypoint: NavigationWaypointDto? static func fromList(_ list: [Any?]) -> RouteSegmentDto? { - var trafficData: RouteSegmentTrafficDataDto? = nil + var trafficData: RouteSegmentTrafficDataDto? if let trafficDataList: [Any?] = nilOrValue(list[0]) { trafficData = RouteSegmentTrafficDataDto.fromList(trafficDataList) } let destinationLatLng = LatLngDto.fromList(list[1] as! [Any?])! let latLngs: [LatLngDto?]? = nilOrValue(list[2]) - var destinationWaypoint: NavigationWaypointDto? = nil + var destinationWaypoint: NavigationWaypointDto? if let destinationWaypointList: [Any?] = nilOrValue(list[3]) { destinationWaypoint = NavigationWaypointDto.fromList(destinationWaypointList) } @@ -1475,8 +1525,9 @@ struct RouteSegmentDto { destinationWaypoint: destinationWaypoint ) } + func toList() -> [Any?] { - return [ + [ trafficData?.toList(), destinationLatLng.toList(), latLngs, @@ -1485,7 +1536,8 @@ struct RouteSegmentDto { } } -/// 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. struct LaneDirectionDto { @@ -1503,8 +1555,9 @@ struct LaneDirectionDto { isRecommended: isRecommended ) } + func toList() -> [Any?] { - return [ + [ laneShape.rawValue, isRecommended, ] @@ -1515,7 +1568,8 @@ struct LaneDirectionDto { /// /// Generated class from Pigeon that represents data sent in messages. struct LaneDto { - /// List of possible directions a driver can follow when using this lane at the end of the respective route step + /// List of possible directions a driver can follow when using this lane at the end of the + /// respective route step var laneDirections: [LaneDirectionDto?] static func fromList(_ list: [Any?]) -> LaneDto? { @@ -1525,8 +1579,9 @@ struct LaneDto { laneDirections: laneDirections ) } + func toList() -> [Any?] { - return [ + [ laneDirections, ] } @@ -1543,7 +1598,7 @@ struct StepInfoDto { /// Whether this step is on a drive-on-right or drive-on-left route. var drivingSide: DrivingSideDto /// The exit number if it exists. - var exitNumber: String? = nil + var exitNumber: String? /// The full text of the instruction for this step. var fullInstructions: String /// The full road name for this step. @@ -1587,8 +1642,9 @@ struct StepInfoDto { stepNumber: stepNumber ) } + func toList() -> [Any?] { - return [ + [ distanceFromPrevStepMeters, timeFromPrevStepSeconds, drivingSide.rawValue, @@ -1612,46 +1668,52 @@ struct NavInfoDto { /// The current state of navigation. var navState: NavStateDto /// Information about the upcoming maneuver step. - var currentStep: StepInfoDto? = nil + var currentStep: StepInfoDto? /// The remaining steps after the current step. var remainingSteps: [StepInfoDto?] /// Whether the route has changed since the last sent message. var routeChanged: Bool /// Estimated remaining distance in meters along the route to the /// current step. - var distanceToCurrentStepMeters: Int64? = nil + var distanceToCurrentStepMeters: Int64? /// The estimated remaining distance in meters to the final destination which /// is the last destination in a multi-destination trip. - var distanceToFinalDestinationMeters: Int64? = nil + var distanceToFinalDestinationMeters: Int64? /// The estimated remaining distance in meters to the next destination. /// /// Android only. - var distanceToNextDestinationMeters: Int64? = nil + var distanceToNextDestinationMeters: Int64? /// The estimated remaining time in seconds along the route to the /// current step. - var timeToCurrentStepSeconds: Int64? = nil + var timeToCurrentStepSeconds: Int64? /// The estimated remaining time in seconds to the final destination which is /// the last destination in a multi-destination trip. - var timeToFinalDestinationSeconds: Int64? = nil + var timeToFinalDestinationSeconds: Int64? /// The estimated remaining time in seconds to the next destination. /// /// Android only. - var timeToNextDestinationSeconds: Int64? = nil + var timeToNextDestinationSeconds: Int64? static func fromList(_ list: [Any?]) -> NavInfoDto? { let navState = NavStateDto(rawValue: list[0] as! Int)! - var currentStep: StepInfoDto? = nil + var currentStep: StepInfoDto? if let currentStepList: [Any?] = nilOrValue(list[1]) { currentStep = StepInfoDto.fromList(currentStepList) } let remainingSteps = list[2] as! [StepInfoDto?] let routeChanged = list[3] as! Bool - let distanceToCurrentStepMeters: Int64? = isNullish(list[4]) ? nil : (list[4] is Int64? ? list[4] as! Int64? : Int64(list[4] as! Int32)) - let distanceToFinalDestinationMeters: Int64? = isNullish(list[5]) ? nil : (list[5] is Int64? ? list[5] as! Int64? : Int64(list[5] as! Int32)) - let distanceToNextDestinationMeters: Int64? = isNullish(list[6]) ? nil : (list[6] is Int64? ? list[6] as! Int64? : Int64(list[6] as! Int32)) - let timeToCurrentStepSeconds: Int64? = isNullish(list[7]) ? nil : (list[7] is Int64? ? list[7] as! Int64? : Int64(list[7] as! Int32)) - let timeToFinalDestinationSeconds: Int64? = isNullish(list[8]) ? nil : (list[8] is Int64? ? list[8] as! Int64? : Int64(list[8] as! Int32)) - let timeToNextDestinationSeconds: Int64? = isNullish(list[9]) ? nil : (list[9] is Int64? ? list[9] as! Int64? : Int64(list[9] as! Int32)) + let distanceToCurrentStepMeters: Int64? = isNullish(list[4]) ? nil : + (list[4] is Int64? ? list[4] as! Int64? : Int64(list[4] as! Int32)) + let distanceToFinalDestinationMeters: Int64? = isNullish(list[5]) ? nil : + (list[5] is Int64? ? list[5] as! Int64? : Int64(list[5] as! Int32)) + let distanceToNextDestinationMeters: Int64? = isNullish(list[6]) ? nil : + (list[6] is Int64? ? list[6] as! Int64? : Int64(list[6] as! Int32)) + let timeToCurrentStepSeconds: Int64? = isNullish(list[7]) ? nil : + (list[7] is Int64? ? list[7] as! Int64? : Int64(list[7] as! Int32)) + let timeToFinalDestinationSeconds: Int64? = isNullish(list[8]) ? nil : + (list[8] is Int64? ? list[8] as! Int64? : Int64(list[8] as! Int32)) + let timeToNextDestinationSeconds: Int64? = isNullish(list[9]) ? nil : + (list[9] is Int64? ? list[9] as! Int64? : Int64(list[9] as! Int32)) return NavInfoDto( navState: navState, @@ -1666,8 +1728,9 @@ struct NavInfoDto { timeToNextDestinationSeconds: timeToNextDestinationSeconds ) } + func toList() -> [Any?] { - return [ + [ navState.rawValue, currentStep?.toList(), remainingSteps, @@ -1685,22 +1748,22 @@ struct NavInfoDto { private class NavigationViewCreationApiCodecReader: FlutterStandardReader { override func readValue(ofType type: UInt8) -> Any? { switch type { - case 128: - return CameraPositionDto.fromList(self.readValue() as! [Any?]) - case 129: - return LatLngBoundsDto.fromList(self.readValue() as! [Any?]) - case 130: - return LatLngDto.fromList(self.readValue() as! [Any?]) - case 131: - return MapOptionsDto.fromList(self.readValue() as! [Any?]) - case 132: - return MapPaddingDto.fromList(self.readValue() as! [Any?]) - case 133: - return NavigationViewOptionsDto.fromList(self.readValue() as! [Any?]) - case 134: - return ViewCreationOptionsDto.fromList(self.readValue() as! [Any?]) - default: - return super.readValue(ofType: type) + case 128: + return CameraPositionDto.fromList(readValue() as! [Any?]) + case 129: + return LatLngBoundsDto.fromList(readValue() as! [Any?]) + case 130: + return LatLngDto.fromList(readValue() as! [Any?]) + case 131: + return MapOptionsDto.fromList(readValue() as! [Any?]) + case 132: + return MapPaddingDto.fromList(readValue() as! [Any?]) + case 133: + return NavigationViewOptionsDto.fromList(readValue() as! [Any?]) + case 134: + return ViewCreationOptionsDto.fromList(readValue() as! [Any?]) + default: + return super.readValue(ofType: type) } } } @@ -1736,16 +1799,17 @@ private class NavigationViewCreationApiCodecWriter: FlutterStandardWriter { private class NavigationViewCreationApiCodecReaderWriter: FlutterStandardReaderWriter { override func reader(with data: Data) -> FlutterStandardReader { - return NavigationViewCreationApiCodecReader(data: data) + NavigationViewCreationApiCodecReader(data: data) } override func writer(with data: NSMutableData) -> FlutterStandardWriter { - return NavigationViewCreationApiCodecWriter(data: data) + NavigationViewCreationApiCodecWriter(data: data) } } class NavigationViewCreationApiCodec: FlutterStandardMessageCodec { - static let shared = NavigationViewCreationApiCodec(readerWriter: NavigationViewCreationApiCodecReaderWriter()) + static let shared = + NavigationViewCreationApiCodec(readerWriter: NavigationViewCreationApiCodecReaderWriter()) } /// Pigeon only generates messages if the messages are used in API. @@ -1760,13 +1824,18 @@ protocol NavigationViewCreationApi { } /// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. -class NavigationViewCreationApiSetup { +enum NavigationViewCreationApiSetup { /// The codec used by NavigationViewCreationApi. static var codec: FlutterStandardMessageCodec { NavigationViewCreationApiCodec.shared } - /// Sets up an instance of `NavigationViewCreationApi` to handle messages through the `binaryMessenger`. + /// Sets up an instance of `NavigationViewCreationApi` to handle messages through the + /// `binaryMessenger`. static func setUp(binaryMessenger: FlutterBinaryMessenger, api: NavigationViewCreationApi?) { - let createChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationViewCreationApi.create", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let createChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationViewCreationApi.create", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { createChannel.setMessageHandler { message, reply in let args = message as! [Any?] let msgArg = args[0] as! ViewCreationOptionsDto @@ -1782,51 +1851,52 @@ class NavigationViewCreationApiSetup { } } } + private class MapViewApiCodecReader: FlutterStandardReader { override func readValue(ofType type: UInt8) -> Any? { switch type { - case 128: - return CameraPositionDto.fromList(self.readValue() as! [Any?]) - case 129: - return CircleDto.fromList(self.readValue() as! [Any?]) - case 130: - return CircleOptionsDto.fromList(self.readValue() as! [Any?]) - case 131: - return ImageDescriptorDto.fromList(self.readValue() as! [Any?]) - case 132: - return InfoWindowDto.fromList(self.readValue() as! [Any?]) - case 133: - return LatLngBoundsDto.fromList(self.readValue() as! [Any?]) - case 134: - return LatLngDto.fromList(self.readValue() as! [Any?]) - case 135: - return LatLngDto.fromList(self.readValue() as! [Any?]) - case 136: - return MapPaddingDto.fromList(self.readValue() as! [Any?]) - case 137: - return MarkerAnchorDto.fromList(self.readValue() as! [Any?]) - case 138: - return MarkerDto.fromList(self.readValue() as! [Any?]) - case 139: - return MarkerOptionsDto.fromList(self.readValue() as! [Any?]) - case 140: - return PatternItemDto.fromList(self.readValue() as! [Any?]) - case 141: - return PolygonDto.fromList(self.readValue() as! [Any?]) - case 142: - return PolygonHoleDto.fromList(self.readValue() as! [Any?]) - case 143: - return PolygonOptionsDto.fromList(self.readValue() as! [Any?]) - case 144: - return PolylineDto.fromList(self.readValue() as! [Any?]) - case 145: - return PolylineOptionsDto.fromList(self.readValue() as! [Any?]) - case 146: - return StyleSpanDto.fromList(self.readValue() as! [Any?]) - case 147: - return StyleSpanStrokeStyleDto.fromList(self.readValue() as! [Any?]) - default: - return super.readValue(ofType: type) + case 128: + return CameraPositionDto.fromList(readValue() as! [Any?]) + case 129: + return CircleDto.fromList(readValue() as! [Any?]) + case 130: + return CircleOptionsDto.fromList(readValue() as! [Any?]) + case 131: + return ImageDescriptorDto.fromList(readValue() as! [Any?]) + case 132: + return InfoWindowDto.fromList(readValue() as! [Any?]) + case 133: + return LatLngBoundsDto.fromList(readValue() as! [Any?]) + case 134: + return LatLngDto.fromList(readValue() as! [Any?]) + case 135: + return LatLngDto.fromList(readValue() as! [Any?]) + case 136: + return MapPaddingDto.fromList(readValue() as! [Any?]) + case 137: + return MarkerAnchorDto.fromList(readValue() as! [Any?]) + case 138: + return MarkerDto.fromList(readValue() as! [Any?]) + case 139: + return MarkerOptionsDto.fromList(readValue() as! [Any?]) + case 140: + return PatternItemDto.fromList(readValue() as! [Any?]) + case 141: + return PolygonDto.fromList(readValue() as! [Any?]) + case 142: + return PolygonHoleDto.fromList(readValue() as! [Any?]) + case 143: + return PolygonOptionsDto.fromList(readValue() as! [Any?]) + case 144: + return PolylineDto.fromList(readValue() as! [Any?]) + case 145: + return PolylineOptionsDto.fromList(readValue() as! [Any?]) + case 146: + return StyleSpanDto.fromList(readValue() as! [Any?]) + case 147: + return StyleSpanStrokeStyleDto.fromList(readValue() as! [Any?]) + default: + return super.readValue(ofType: type) } } } @@ -1901,11 +1971,11 @@ private class MapViewApiCodecWriter: FlutterStandardWriter { private class MapViewApiCodecReaderWriter: FlutterStandardReaderWriter { override func reader(with data: Data) -> FlutterStandardReader { - return MapViewApiCodecReader(data: data) + MapViewApiCodecReader(data: data) } override func writer(with data: NSMutableData) -> FlutterStandardWriter { - return MapViewApiCodecWriter(data: data) + MapViewApiCodecWriter(data: data) } } @@ -1941,13 +2011,22 @@ 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 @@ -2010,30 +2089,38 @@ protocol MapViewApi { } /// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. -class MapViewApiSetup { +enum MapViewApiSetup { /// The codec used by MapViewApi. static var codec: FlutterStandardMessageCodec { MapViewApiCodec.shared } /// Sets up an instance of `MapViewApi` to handle messages through the `binaryMessenger`. static func setUp(binaryMessenger: FlutterBinaryMessenger, api: MapViewApi?) { - let awaitMapReadyChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let awaitMapReadyChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { awaitMapReadyChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) api.awaitMapReady(viewId: viewIdArg) { result in switch result { - case .success: - reply(wrapResult(nil)) - case .failure(let error): - reply(wrapError(error)) + case .success: + reply(wrapResult(nil)) + case let .failure(error): + reply(wrapError(error)) } } } } else { awaitMapReadyChannel.setMessageHandler(nil) } - let isMyLocationEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isMyLocationEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isMyLocationEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2047,8 +2134,12 @@ class MapViewApiSetup { } else { isMyLocationEnabledChannel.setMessageHandler(nil) } - let setMyLocationEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setMyLocationEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setMyLocationEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2063,8 +2154,12 @@ class MapViewApiSetup { } else { setMyLocationEnabledChannel.setMessageHandler(nil) } - let getMyLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let getMyLocationChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { getMyLocationChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2078,8 +2173,12 @@ class MapViewApiSetup { } else { getMyLocationChannel.setMessageHandler(nil) } - let getMapTypeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let getMapTypeChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { getMapTypeChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2093,8 +2192,12 @@ class MapViewApiSetup { } else { getMapTypeChannel.setMessageHandler(nil) } - let setMapTypeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setMapTypeChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setMapTypeChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2109,8 +2212,12 @@ class MapViewApiSetup { } else { setMapTypeChannel.setMessageHandler(nil) } - let setMapStyleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setMapStyleChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setMapStyleChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2125,8 +2232,12 @@ class MapViewApiSetup { } else { setMapStyleChannel.setMessageHandler(nil) } - let isNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isNavigationTripProgressBarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2140,8 +2251,12 @@ class MapViewApiSetup { } else { isNavigationTripProgressBarEnabledChannel.setMessageHandler(nil) } - let setNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setNavigationTripProgressBarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2156,8 +2271,12 @@ class MapViewApiSetup { } else { setNavigationTripProgressBarEnabledChannel.setMessageHandler(nil) } - let isNavigationHeaderEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isNavigationHeaderEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isNavigationHeaderEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2171,8 +2290,12 @@ class MapViewApiSetup { } else { isNavigationHeaderEnabledChannel.setMessageHandler(nil) } - let setNavigationHeaderEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setNavigationHeaderEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setNavigationHeaderEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2187,8 +2310,12 @@ class MapViewApiSetup { } else { setNavigationHeaderEnabledChannel.setMessageHandler(nil) } - let isNavigationFooterEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isNavigationFooterEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isNavigationFooterEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2202,8 +2329,12 @@ class MapViewApiSetup { } else { isNavigationFooterEnabledChannel.setMessageHandler(nil) } - let setNavigationFooterEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setNavigationFooterEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setNavigationFooterEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2218,8 +2349,12 @@ class MapViewApiSetup { } else { setNavigationFooterEnabledChannel.setMessageHandler(nil) } - let isRecenterButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isRecenterButtonEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isRecenterButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2233,8 +2368,12 @@ class MapViewApiSetup { } else { isRecenterButtonEnabledChannel.setMessageHandler(nil) } - let setRecenterButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setRecenterButtonEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setRecenterButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2249,8 +2388,12 @@ class MapViewApiSetup { } else { setRecenterButtonEnabledChannel.setMessageHandler(nil) } - let isSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isSpeedLimitIconEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2264,8 +2407,12 @@ class MapViewApiSetup { } else { isSpeedLimitIconEnabledChannel.setMessageHandler(nil) } - let setSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setSpeedLimitIconEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2280,8 +2427,12 @@ class MapViewApiSetup { } else { setSpeedLimitIconEnabledChannel.setMessageHandler(nil) } - let isSpeedometerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isSpeedometerEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isSpeedometerEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2295,8 +2446,12 @@ class MapViewApiSetup { } else { isSpeedometerEnabledChannel.setMessageHandler(nil) } - let setSpeedometerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setSpeedometerEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setSpeedometerEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2311,8 +2466,12 @@ class MapViewApiSetup { } else { setSpeedometerEnabledChannel.setMessageHandler(nil) } - let isTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isTrafficIncidentCardsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2326,8 +2485,12 @@ class MapViewApiSetup { } else { isTrafficIncidentCardsEnabledChannel.setMessageHandler(nil) } - let setTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setTrafficIncidentCardsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2342,8 +2505,12 @@ class MapViewApiSetup { } else { setTrafficIncidentCardsEnabledChannel.setMessageHandler(nil) } - let isNavigationUIEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isNavigationUIEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isNavigationUIEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2357,8 +2524,12 @@ class MapViewApiSetup { } else { isNavigationUIEnabledChannel.setMessageHandler(nil) } - let setNavigationUIEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setNavigationUIEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setNavigationUIEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2373,8 +2544,12 @@ class MapViewApiSetup { } else { setNavigationUIEnabledChannel.setMessageHandler(nil) } - let getCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let getCameraPositionChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { getCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2388,8 +2563,12 @@ class MapViewApiSetup { } else { getCameraPositionChannel.setMessageHandler(nil) } - let getVisibleRegionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let getVisibleRegionChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { getVisibleRegionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2403,15 +2582,23 @@ class MapViewApiSetup { } else { getVisibleRegionChannel.setMessageHandler(nil) } - let followMyLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let followMyLocationChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { followMyLocationChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) let perspectiveArg = CameraPerspectiveDto(rawValue: args[1] as! Int)! 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)) @@ -2420,146 +2607,212 @@ class MapViewApiSetup { } else { followMyLocationChannel.setMessageHandler(nil) } - let animateCameraToCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let animateCameraToCameraPositionChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { animateCameraToCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) let cameraPositionArg = args[1] as! CameraPositionDto - let durationArg: Int64? = isNullish(args[2]) ? nil : (args[2] is Int64? ? args[2] as! Int64? : Int64(args[2] as! Int32)) - api.animateCameraToCameraPosition(viewId: viewIdArg, cameraPosition: cameraPositionArg, duration: durationArg) { result in + let durationArg: Int64? = isNullish(args[2]) ? nil : + (args[2] is Int64? ? args[2] as! Int64? : Int64(args[2] as! Int32)) + api.animateCameraToCameraPosition( + viewId: viewIdArg, + cameraPosition: cameraPositionArg, + duration: durationArg + ) { result in switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) + case let .success(res): + reply(wrapResult(res)) + case let .failure(error): + reply(wrapError(error)) } } } } else { animateCameraToCameraPositionChannel.setMessageHandler(nil) } - let animateCameraToLatLngChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let animateCameraToLatLngChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { animateCameraToLatLngChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) let pointArg = args[1] as! LatLngDto - let durationArg: Int64? = isNullish(args[2]) ? nil : (args[2] is Int64? ? args[2] as! Int64? : Int64(args[2] as! Int32)) - api.animateCameraToLatLng(viewId: viewIdArg, point: pointArg, duration: durationArg) { result in - switch result { - case .success(let res): + let durationArg: Int64? = isNullish(args[2]) ? nil : + (args[2] is Int64? ? args[2] as! Int64? : Int64(args[2] as! Int32)) + api + .animateCameraToLatLng(viewId: viewIdArg, point: pointArg, + duration: durationArg) { result in + switch result { + case let .success(res): reply(wrapResult(res)) - case .failure(let error): + case let .failure(error): reply(wrapError(error)) + } } - } } } else { animateCameraToLatLngChannel.setMessageHandler(nil) } - let animateCameraToLatLngBoundsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let animateCameraToLatLngBoundsChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { animateCameraToLatLngBoundsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) let boundsArg = args[1] as! LatLngBoundsDto let paddingArg = args[2] as! Double - let durationArg: Int64? = isNullish(args[3]) ? nil : (args[3] is Int64? ? args[3] as! Int64? : Int64(args[3] as! Int32)) - api.animateCameraToLatLngBounds(viewId: viewIdArg, bounds: boundsArg, padding: paddingArg, duration: durationArg) { result in + let durationArg: Int64? = isNullish(args[3]) ? nil : + (args[3] is Int64? ? args[3] as! Int64? : Int64(args[3] as! Int32)) + api.animateCameraToLatLngBounds( + viewId: viewIdArg, + bounds: boundsArg, + padding: paddingArg, + duration: durationArg + ) { result in switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) + case let .success(res): + reply(wrapResult(res)) + case let .failure(error): + reply(wrapError(error)) } } } } else { animateCameraToLatLngBoundsChannel.setMessageHandler(nil) } - let animateCameraToLatLngZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let animateCameraToLatLngZoomChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { animateCameraToLatLngZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) let pointArg = args[1] as! LatLngDto let zoomArg = args[2] as! Double - let durationArg: Int64? = isNullish(args[3]) ? nil : (args[3] is Int64? ? args[3] as! Int64? : Int64(args[3] as! Int32)) - api.animateCameraToLatLngZoom(viewId: viewIdArg, point: pointArg, zoom: zoomArg, duration: durationArg) { result in + let durationArg: Int64? = isNullish(args[3]) ? nil : + (args[3] is Int64? ? args[3] as! Int64? : Int64(args[3] as! Int32)) + api.animateCameraToLatLngZoom( + viewId: viewIdArg, + point: pointArg, + zoom: zoomArg, + duration: durationArg + ) { result in switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) + case let .success(res): + reply(wrapResult(res)) + case let .failure(error): + reply(wrapError(error)) } } } } else { animateCameraToLatLngZoomChannel.setMessageHandler(nil) } - let animateCameraByScrollChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let animateCameraByScrollChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { animateCameraByScrollChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) let scrollByDxArg = args[1] as! Double let scrollByDyArg = args[2] as! Double - let durationArg: Int64? = isNullish(args[3]) ? nil : (args[3] is Int64? ? args[3] as! Int64? : Int64(args[3] as! Int32)) - api.animateCameraByScroll(viewId: viewIdArg, scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg, duration: durationArg) { result in + let durationArg: Int64? = isNullish(args[3]) ? nil : + (args[3] is Int64? ? args[3] as! Int64? : Int64(args[3] as! Int32)) + api.animateCameraByScroll( + viewId: viewIdArg, + scrollByDx: scrollByDxArg, + scrollByDy: scrollByDyArg, + duration: durationArg + ) { result in switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) + case let .success(res): + reply(wrapResult(res)) + case let .failure(error): + reply(wrapError(error)) } } } } else { animateCameraByScrollChannel.setMessageHandler(nil) } - let animateCameraByZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let animateCameraByZoomChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { animateCameraByZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) let zoomByArg = args[1] as! Double let focusDxArg: Double? = nilOrValue(args[2]) let focusDyArg: Double? = nilOrValue(args[3]) - let durationArg: Int64? = isNullish(args[4]) ? nil : (args[4] is Int64? ? args[4] as! Int64? : Int64(args[4] as! Int32)) - api.animateCameraByZoom(viewId: viewIdArg, zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg, duration: durationArg) { result in + let durationArg: Int64? = isNullish(args[4]) ? nil : + (args[4] is Int64? ? args[4] as! Int64? : Int64(args[4] as! Int32)) + api.animateCameraByZoom( + viewId: viewIdArg, + zoomBy: zoomByArg, + focusDx: focusDxArg, + focusDy: focusDyArg, + duration: durationArg + ) { result in switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) + case let .success(res): + reply(wrapResult(res)) + case let .failure(error): + reply(wrapError(error)) } } } } else { animateCameraByZoomChannel.setMessageHandler(nil) } - let animateCameraToZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let animateCameraToZoomChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { animateCameraToZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) let zoomArg = args[1] as! Double - let durationArg: Int64? = isNullish(args[2]) ? nil : (args[2] is Int64? ? args[2] as! Int64? : Int64(args[2] as! Int32)) + let durationArg: Int64? = isNullish(args[2]) ? nil : + (args[2] is Int64? ? args[2] as! Int64? : Int64(args[2] as! Int32)) api.animateCameraToZoom(viewId: viewIdArg, zoom: zoomArg, duration: durationArg) { result in switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) + case let .success(res): + reply(wrapResult(res)) + case let .failure(error): + reply(wrapError(error)) } } } } else { animateCameraToZoomChannel.setMessageHandler(nil) } - let moveCameraToCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let moveCameraToCameraPositionChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { moveCameraToCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2574,8 +2827,12 @@ class MapViewApiSetup { } else { moveCameraToCameraPositionChannel.setMessageHandler(nil) } - let moveCameraToLatLngChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let moveCameraToLatLngChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { moveCameraToLatLngChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2590,15 +2847,23 @@ class MapViewApiSetup { } else { moveCameraToLatLngChannel.setMessageHandler(nil) } - let moveCameraToLatLngBoundsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let moveCameraToLatLngBoundsChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { moveCameraToLatLngBoundsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) 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)) @@ -2607,8 +2872,12 @@ class MapViewApiSetup { } else { moveCameraToLatLngBoundsChannel.setMessageHandler(nil) } - let moveCameraToLatLngZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let moveCameraToLatLngZoomChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { moveCameraToLatLngZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2624,15 +2893,23 @@ class MapViewApiSetup { } else { moveCameraToLatLngZoomChannel.setMessageHandler(nil) } - let moveCameraByScrollChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let moveCameraByScrollChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { moveCameraByScrollChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) 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)) @@ -2641,8 +2918,12 @@ class MapViewApiSetup { } else { moveCameraByScrollChannel.setMessageHandler(nil) } - let moveCameraByZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let moveCameraByZoomChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { moveCameraByZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2650,7 +2931,12 @@ 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)) @@ -2659,8 +2945,12 @@ class MapViewApiSetup { } else { moveCameraByZoomChannel.setMessageHandler(nil) } - let moveCameraToZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let moveCameraToZoomChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { moveCameraToZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2675,8 +2965,12 @@ class MapViewApiSetup { } else { moveCameraToZoomChannel.setMessageHandler(nil) } - let showRouteOverviewChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let showRouteOverviewChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { showRouteOverviewChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2690,8 +2984,12 @@ class MapViewApiSetup { } else { showRouteOverviewChannel.setMessageHandler(nil) } - let getMinZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let getMinZoomPreferenceChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { getMinZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2705,8 +3003,12 @@ class MapViewApiSetup { } else { getMinZoomPreferenceChannel.setMessageHandler(nil) } - let getMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let getMaxZoomPreferenceChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { getMaxZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2720,8 +3022,12 @@ class MapViewApiSetup { } else { getMaxZoomPreferenceChannel.setMessageHandler(nil) } - let resetMinMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let resetMinMaxZoomPreferenceChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { resetMinMaxZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2735,8 +3041,12 @@ class MapViewApiSetup { } else { resetMinMaxZoomPreferenceChannel.setMessageHandler(nil) } - let setMinZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setMinZoomPreferenceChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setMinZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2751,8 +3061,12 @@ class MapViewApiSetup { } else { setMinZoomPreferenceChannel.setMessageHandler(nil) } - let setMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setMaxZoomPreferenceChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setMaxZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2767,8 +3081,12 @@ class MapViewApiSetup { } else { setMaxZoomPreferenceChannel.setMessageHandler(nil) } - let setMyLocationButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setMyLocationButtonEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setMyLocationButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2783,14 +3101,21 @@ class MapViewApiSetup { } else { setMyLocationButtonEnabledChannel.setMessageHandler(nil) } - let setConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) 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)) @@ -2799,8 +3124,12 @@ class MapViewApiSetup { } else { setConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler(nil) } - let setZoomGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setZoomGesturesEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setZoomGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2815,8 +3144,12 @@ class MapViewApiSetup { } else { setZoomGesturesEnabledChannel.setMessageHandler(nil) } - let setZoomControlsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setZoomControlsEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setZoomControlsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2831,8 +3164,12 @@ class MapViewApiSetup { } else { setZoomControlsEnabledChannel.setMessageHandler(nil) } - let setCompassEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setCompassEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setCompassEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2847,8 +3184,12 @@ class MapViewApiSetup { } else { setCompassEnabledChannel.setMessageHandler(nil) } - let setRotateGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setRotateGesturesEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setRotateGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2863,8 +3204,12 @@ class MapViewApiSetup { } else { setRotateGesturesEnabledChannel.setMessageHandler(nil) } - let setScrollGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setScrollGesturesEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setScrollGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2879,8 +3224,12 @@ class MapViewApiSetup { } else { setScrollGesturesEnabledChannel.setMessageHandler(nil) } - let setScrollGesturesDuringRotateOrZoomEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setScrollGesturesDuringRotateOrZoomEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setScrollGesturesDuringRotateOrZoomEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2895,8 +3244,12 @@ class MapViewApiSetup { } else { setScrollGesturesDuringRotateOrZoomEnabledChannel.setMessageHandler(nil) } - let setTiltGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setTiltGesturesEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setTiltGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2911,8 +3264,12 @@ class MapViewApiSetup { } else { setTiltGesturesEnabledChannel.setMessageHandler(nil) } - let setMapToolbarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setMapToolbarEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setMapToolbarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2927,8 +3284,12 @@ class MapViewApiSetup { } else { setMapToolbarEnabledChannel.setMessageHandler(nil) } - let setTrafficEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setTrafficEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setTrafficEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2943,8 +3304,12 @@ class MapViewApiSetup { } else { setTrafficEnabledChannel.setMessageHandler(nil) } - let isMyLocationButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isMyLocationButtonEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isMyLocationButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2958,8 +3323,12 @@ class MapViewApiSetup { } else { isMyLocationButtonEnabledChannel.setMessageHandler(nil) } - let isConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2973,8 +3342,12 @@ class MapViewApiSetup { } else { isConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler(nil) } - let isZoomGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isZoomGesturesEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isZoomGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -2988,8 +3361,12 @@ class MapViewApiSetup { } else { isZoomGesturesEnabledChannel.setMessageHandler(nil) } - let isZoomControlsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isZoomControlsEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isZoomControlsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3003,8 +3380,12 @@ class MapViewApiSetup { } else { isZoomControlsEnabledChannel.setMessageHandler(nil) } - let isCompassEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isCompassEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isCompassEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3018,8 +3399,12 @@ class MapViewApiSetup { } else { isCompassEnabledChannel.setMessageHandler(nil) } - let isRotateGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isRotateGesturesEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isRotateGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3033,8 +3418,12 @@ class MapViewApiSetup { } else { isRotateGesturesEnabledChannel.setMessageHandler(nil) } - let isScrollGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isScrollGesturesEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isScrollGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3048,8 +3437,12 @@ class MapViewApiSetup { } else { isScrollGesturesEnabledChannel.setMessageHandler(nil) } - let isScrollGesturesEnabledDuringRotateOrZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isScrollGesturesEnabledDuringRotateOrZoomChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isScrollGesturesEnabledDuringRotateOrZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3063,8 +3456,12 @@ class MapViewApiSetup { } else { isScrollGesturesEnabledDuringRotateOrZoomChannel.setMessageHandler(nil) } - let isTiltGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isTiltGesturesEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isTiltGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3078,8 +3475,12 @@ class MapViewApiSetup { } else { isTiltGesturesEnabledChannel.setMessageHandler(nil) } - let isMapToolbarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isMapToolbarEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isMapToolbarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3093,8 +3494,12 @@ class MapViewApiSetup { } else { isMapToolbarEnabledChannel.setMessageHandler(nil) } - let isTrafficEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isTrafficEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isTrafficEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3108,8 +3513,12 @@ class MapViewApiSetup { } else { isTrafficEnabledChannel.setMessageHandler(nil) } - let getMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let getMarkersChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { getMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3123,8 +3532,12 @@ class MapViewApiSetup { } else { getMarkersChannel.setMessageHandler(nil) } - let addMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let addMarkersChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { addMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3139,8 +3552,12 @@ class MapViewApiSetup { } else { addMarkersChannel.setMessageHandler(nil) } - let updateMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let updateMarkersChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { updateMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3155,8 +3572,12 @@ class MapViewApiSetup { } else { updateMarkersChannel.setMessageHandler(nil) } - let removeMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let removeMarkersChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { removeMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3171,8 +3592,12 @@ class MapViewApiSetup { } else { removeMarkersChannel.setMessageHandler(nil) } - let clearMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let clearMarkersChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { clearMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3186,8 +3611,12 @@ class MapViewApiSetup { } else { clearMarkersChannel.setMessageHandler(nil) } - let clearChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let clearChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { clearChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3201,8 +3630,12 @@ class MapViewApiSetup { } else { clearChannel.setMessageHandler(nil) } - let getPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let getPolygonsChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { getPolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3216,8 +3649,12 @@ class MapViewApiSetup { } else { getPolygonsChannel.setMessageHandler(nil) } - let addPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let addPolygonsChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { addPolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3232,8 +3669,12 @@ class MapViewApiSetup { } else { addPolygonsChannel.setMessageHandler(nil) } - let updatePolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let updatePolygonsChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { updatePolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3248,8 +3689,12 @@ class MapViewApiSetup { } else { updatePolygonsChannel.setMessageHandler(nil) } - let removePolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let removePolygonsChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { removePolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3264,8 +3709,12 @@ class MapViewApiSetup { } else { removePolygonsChannel.setMessageHandler(nil) } - let clearPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let clearPolygonsChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { clearPolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3279,8 +3728,12 @@ class MapViewApiSetup { } else { clearPolygonsChannel.setMessageHandler(nil) } - let getPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let getPolylinesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { getPolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3294,8 +3747,12 @@ class MapViewApiSetup { } else { getPolylinesChannel.setMessageHandler(nil) } - let addPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let addPolylinesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { addPolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3310,8 +3767,12 @@ class MapViewApiSetup { } else { addPolylinesChannel.setMessageHandler(nil) } - let updatePolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let updatePolylinesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { updatePolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3326,8 +3787,12 @@ class MapViewApiSetup { } else { updatePolylinesChannel.setMessageHandler(nil) } - let removePolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let removePolylinesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { removePolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3342,8 +3807,12 @@ class MapViewApiSetup { } else { removePolylinesChannel.setMessageHandler(nil) } - let clearPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let clearPolylinesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { clearPolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3357,8 +3826,12 @@ class MapViewApiSetup { } else { clearPolylinesChannel.setMessageHandler(nil) } - let getCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let getCirclesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { getCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3372,8 +3845,12 @@ class MapViewApiSetup { } else { getCirclesChannel.setMessageHandler(nil) } - let addCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let addCirclesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { addCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3388,8 +3865,12 @@ class MapViewApiSetup { } else { addCirclesChannel.setMessageHandler(nil) } - let updateCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let updateCirclesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { updateCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3404,8 +3885,12 @@ class MapViewApiSetup { } else { updateCirclesChannel.setMessageHandler(nil) } - let removeCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let removeCirclesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { removeCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3420,8 +3905,12 @@ class MapViewApiSetup { } else { removeCirclesChannel.setMessageHandler(nil) } - let clearCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let clearCirclesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { clearCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3435,8 +3924,12 @@ class MapViewApiSetup { } else { clearCirclesChannel.setMessageHandler(nil) } - let registerOnCameraChangedListenerChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.registerOnCameraChangedListener", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let registerOnCameraChangedListenerChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.registerOnCameraChangedListener", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { registerOnCameraChangedListenerChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3450,8 +3943,12 @@ class MapViewApiSetup { } else { registerOnCameraChangedListenerChannel.setMessageHandler(nil) } - let setPaddingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setPaddingChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setPaddingChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3466,8 +3963,12 @@ class MapViewApiSetup { } else { setPaddingChannel.setMessageHandler(nil) } - let getPaddingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let getPaddingChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { getPaddingChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) @@ -3483,15 +3984,16 @@ class MapViewApiSetup { } } } + private class ImageRegistryApiCodecReader: FlutterStandardReader { override func readValue(ofType type: UInt8) -> Any? { switch type { - case 128: - return ImageDescriptorDto.fromList(self.readValue() as! [Any?]) - case 129: - return ImageDescriptorDto.fromList(self.readValue() as! [Any?]) - default: - return super.readValue(ofType: type) + case 128: + return ImageDescriptorDto.fromList(readValue() as! [Any?]) + case 129: + return ImageDescriptorDto.fromList(readValue() as! [Any?]) + default: + return super.readValue(ofType: type) } } } @@ -3512,11 +4014,11 @@ private class ImageRegistryApiCodecWriter: FlutterStandardWriter { private class ImageRegistryApiCodecReaderWriter: FlutterStandardReaderWriter { override func reader(with data: Data) -> FlutterStandardReader { - return ImageRegistryApiCodecReader(data: data) + ImageRegistryApiCodecReader(data: data) } override func writer(with data: NSMutableData) -> FlutterStandardWriter { - return ImageRegistryApiCodecWriter(data: data) + ImageRegistryApiCodecWriter(data: data) } } @@ -3526,20 +4028,26 @@ class ImageRegistryApiCodec: FlutterStandardMessageCodec { /// 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() throws } /// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. -class ImageRegistryApiSetup { +enum ImageRegistryApiSetup { /// The codec used by ImageRegistryApi. static var codec: FlutterStandardMessageCodec { ImageRegistryApiCodec.shared } /// Sets up an instance of `ImageRegistryApi` to handle messages through the `binaryMessenger`. static func setUp(binaryMessenger: FlutterBinaryMessenger, api: ImageRegistryApi?) { - let registerBitmapImageChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let registerBitmapImageChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { registerBitmapImageChannel.setMessageHandler { message, reply in let args = message as! [Any?] let imageIdArg = args[0] as! String @@ -3548,7 +4056,13 @@ 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)) @@ -3557,8 +4071,12 @@ class ImageRegistryApiSetup { } else { registerBitmapImageChannel.setMessageHandler(nil) } - let unregisterImageChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let unregisterImageChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { unregisterImageChannel.setMessageHandler { message, reply in let args = message as! [Any?] let imageDescriptorArg = args[0] as! ImageDescriptorDto @@ -3572,8 +4090,12 @@ class ImageRegistryApiSetup { } else { unregisterImageChannel.setMessageHandler(nil) } - let getRegisteredImagesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let getRegisteredImagesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { getRegisteredImagesChannel.setMessageHandler { _, reply in do { let result = try api.getRegisteredImages() @@ -3585,8 +4107,12 @@ class ImageRegistryApiSetup { } else { getRegisteredImagesChannel.setMessageHandler(nil) } - let clearRegisteredImagesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let clearRegisteredImagesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { clearRegisteredImagesChannel.setMessageHandler { _, reply in do { try api.clearRegisteredImages() @@ -3600,15 +4126,16 @@ class ImageRegistryApiSetup { } } } + private class ViewEventApiCodecReader: FlutterStandardReader { override func readValue(ofType type: UInt8) -> Any? { switch type { - case 128: - return CameraPositionDto.fromList(self.readValue() as! [Any?]) - case 129: - return LatLngDto.fromList(self.readValue() as! [Any?]) - default: - return super.readValue(ofType: type) + case 128: + return CameraPositionDto.fromList(readValue() as! [Any?]) + case 129: + return LatLngDto.fromList(readValue() as! [Any?]) + default: + return super.readValue(ofType: type) } } } @@ -3629,11 +4156,11 @@ private class ViewEventApiCodecWriter: FlutterStandardWriter { private class ViewEventApiCodecReaderWriter: FlutterStandardReaderWriter { override func reader(with data: Data) -> FlutterStandardReader { - return ViewEventApiCodecReader(data: data) + ViewEventApiCodecReader(data: data) } override func writer(with data: NSMutableData) -> FlutterStandardWriter { - return ViewEventApiCodecWriter(data: data) + ViewEventApiCodecWriter(data: data) } } @@ -3643,281 +4170,385 @@ class ViewEventApiCodec: FlutterStandardMessageCodec { /// 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 onNavigationUIEnabledChanged(viewId viewIdArg: Int64, navigationUIEnabled navigationUIEnabledArg: Bool, completion: @escaping (Result) -> Void) - func onMyLocationClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) - func onMyLocationButtonClicked(viewId viewIdArg: Int64, 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 onNavigationUIEnabledChanged(viewId viewIdArg: Int64, + navigationUIEnabled navigationUIEnabledArg: Bool, + completion: @escaping (Result) -> Void) + func onMyLocationClicked(viewId viewIdArg: Int64, + completion: @escaping (Result) -> Void) + func onMyLocationButtonClicked(viewId viewIdArg: Int64, + 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 - init(binaryMessenger: FlutterBinaryMessenger){ + init(binaryMessenger: FlutterBinaryMessenger) { self.binaryMessenger = binaryMessenger } + var codec: FlutterStandardMessageCodec { - return ViewEventApiCodec.shared + ViewEventApiCodec.shared } - func onMapClickEvent(viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + + func onMapClickEvent(viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, + completion: @escaping (Result) -> Void) { + let channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent" + 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))) + completion(.failure(createConnectionError(withChannelName: channelName))) return } - if (listResponse.count > 1) { + if listResponse.count > 1 { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))); + completion(.failure(FlutterError(code: code, message: message, details: details))) } else { - completion(.success(Void())) + completion(.success(())) } } } - func onMapLongClickEvent(viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + + func onMapLongClickEvent(viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, + completion: @escaping (Result) -> Void) { + let channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent" + 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))) + completion(.failure(createConnectionError(withChannelName: channelName))) return } - if (listResponse.count > 1) { + if listResponse.count > 1 { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))); + completion(.failure(FlutterError(code: code, message: message, details: details))) } else { - completion(.success(Void())) + completion(.success(())) } } } - func onRecenterButtonClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + + func onRecenterButtonClicked(viewId viewIdArg: Int64, + completion: @escaping (Result) -> Void) { + let channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked" + 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))) + completion(.failure(createConnectionError(withChannelName: channelName))) return } - if (listResponse.count > 1) { + if listResponse.count > 1 { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))); + completion(.failure(FlutterError(code: code, message: message, details: details))) } else { - completion(.success(Void())) + completion(.success(())) } } } - 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" - 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 = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent" + let channel = FlutterBasicMessageChannel( + name: channelName, + binaryMessenger: binaryMessenger, + codec: codec + ) channel.sendMessage([viewIdArg, markerIdArg, eventTypeArg.rawValue] as [Any?]) { response in guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName:channelName))) + completion(.failure(createConnectionError(withChannelName: channelName))) return } - if (listResponse.count > 1) { + if listResponse.count > 1 { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))); + completion(.failure(FlutterError(code: code, message: message, details: details))) } else { - completion(.success(Void())) + completion(.success(())) } } } - 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" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([viewIdArg, markerIdArg, eventTypeArg.rawValue, positionArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName:channelName))) - return - } - if (listResponse.count > 1) { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))); - } else { - completion(.success(Void())) - } - } - } - func onPolygonClicked(viewId viewIdArg: Int64, polygonId polygonIdArg: String, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked" - 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 = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent" + let channel = FlutterBasicMessageChannel( + name: channelName, + binaryMessenger: binaryMessenger, + codec: codec + ) + channel + .sendMessage([viewIdArg, markerIdArg, eventTypeArg.rawValue, + positionArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(FlutterError(code: code, message: message, details: details))) + } else { + completion(.success(())) + } + } + } + + func onPolygonClicked(viewId viewIdArg: Int64, polygonId polygonIdArg: String, + completion: @escaping (Result) -> Void) { + let channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked" + 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))) + completion(.failure(createConnectionError(withChannelName: channelName))) return } - if (listResponse.count > 1) { + if listResponse.count > 1 { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))); + completion(.failure(FlutterError(code: code, message: message, details: details))) } else { - completion(.success(Void())) + completion(.success(())) } } } - func onPolylineClicked(viewId viewIdArg: Int64, polylineId polylineIdArg: String, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + + func onPolylineClicked(viewId viewIdArg: Int64, polylineId polylineIdArg: String, + completion: @escaping (Result) -> Void) { + let channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked" + 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))) + completion(.failure(createConnectionError(withChannelName: channelName))) return } - if (listResponse.count > 1) { + if listResponse.count > 1 { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))); + completion(.failure(FlutterError(code: code, message: message, details: details))) } else { - completion(.success(Void())) + completion(.success(())) } } } - func onCircleClicked(viewId viewIdArg: Int64, circleId circleIdArg: String, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + + func onCircleClicked(viewId viewIdArg: Int64, circleId circleIdArg: String, + completion: @escaping (Result) -> Void) { + let channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked" + 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))) + completion(.failure(createConnectionError(withChannelName: channelName))) return } - if (listResponse.count > 1) { + if listResponse.count > 1 { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))); + completion(.failure(FlutterError(code: code, message: message, details: details))) } else { - completion(.success(Void())) + completion(.success(())) } } } - func onNavigationUIEnabledChanged(viewId viewIdArg: Int64, navigationUIEnabled navigationUIEnabledArg: Bool, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + + func onNavigationUIEnabledChanged(viewId viewIdArg: Int64, + navigationUIEnabled navigationUIEnabledArg: Bool, + completion: @escaping (Result) -> Void) { + let channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged" + 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))) + completion(.failure(createConnectionError(withChannelName: channelName))) return } - if (listResponse.count > 1) { + if listResponse.count > 1 { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))); + completion(.failure(FlutterError(code: code, message: message, details: details))) } else { - completion(.success(Void())) + completion(.success(())) } } } - func onMyLocationClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + + func onMyLocationClicked(viewId viewIdArg: Int64, + completion: @escaping (Result) -> Void) { + let channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked" + 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))) + completion(.failure(createConnectionError(withChannelName: channelName))) return } - if (listResponse.count > 1) { + if listResponse.count > 1 { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))); + completion(.failure(FlutterError(code: code, message: message, details: details))) } else { - completion(.success(Void())) + completion(.success(())) } } } - func onMyLocationButtonClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + + func onMyLocationButtonClicked(viewId viewIdArg: Int64, + completion: @escaping (Result) -> Void) { + let channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked" + 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))) + completion(.failure(createConnectionError(withChannelName: channelName))) return } - if (listResponse.count > 1) { + if listResponse.count > 1 { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))); + completion(.failure(FlutterError(code: code, message: message, details: details))) } else { - completion(.success(Void())) + completion(.success(())) } } } - 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" - 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 = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged" + let channel = FlutterBasicMessageChannel( + name: channelName, + binaryMessenger: binaryMessenger, + codec: codec + ) channel.sendMessage([viewIdArg, eventTypeArg.rawValue, positionArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName:channelName))) + completion(.failure(createConnectionError(withChannelName: channelName))) return } - if (listResponse.count > 1) { + if listResponse.count > 1 { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))); + completion(.failure(FlutterError(code: code, message: message, details: details))) } else { - completion(.success(Void())) + completion(.success(())) } } } } + private class NavigationSessionApiCodecReader: FlutterStandardReader { override func readValue(ofType type: UInt8) -> Any? { switch type { - case 128: - return DestinationsDto.fromList(self.readValue() as! [Any?]) - case 129: - return LatLngDto.fromList(self.readValue() as! [Any?]) - case 130: - return LatLngDto.fromList(self.readValue() as! [Any?]) - case 131: - return NavigationAudioGuidanceSettingsDto.fromList(self.readValue() as! [Any?]) - case 132: - return NavigationDisplayOptionsDto.fromList(self.readValue() as! [Any?]) - case 133: - return NavigationTimeAndDistanceDto.fromList(self.readValue() as! [Any?]) - case 134: - return NavigationWaypointDto.fromList(self.readValue() as! [Any?]) - case 135: - return NavigationWaypointDto.fromList(self.readValue() as! [Any?]) - case 136: - return RouteSegmentDto.fromList(self.readValue() as! [Any?]) - case 137: - return RouteSegmentDto.fromList(self.readValue() as! [Any?]) - case 138: - return RouteSegmentTrafficDataDto.fromList(self.readValue() as! [Any?]) - case 139: - return RouteSegmentTrafficDataRoadStretchRenderingDataDto.fromList(self.readValue() as! [Any?]) - case 140: - return RouteTokenOptionsDto.fromList(self.readValue() as! [Any?]) - case 141: - return RoutingOptionsDto.fromList(self.readValue() as! [Any?]) - case 142: - return SimulationOptionsDto.fromList(self.readValue() as! [Any?]) - case 143: - return SpeedAlertOptionsDto.fromList(self.readValue() as! [Any?]) - default: - return super.readValue(ofType: type) + case 128: + return DestinationsDto.fromList(readValue() as! [Any?]) + case 129: + return LatLngDto.fromList(readValue() as! [Any?]) + case 130: + return LatLngDto.fromList(readValue() as! [Any?]) + case 131: + return NavigationAudioGuidanceSettingsDto.fromList(readValue() as! [Any?]) + case 132: + return NavigationDisplayOptionsDto.fromList(readValue() as! [Any?]) + case 133: + return NavigationTimeAndDistanceDto.fromList(readValue() as! [Any?]) + case 134: + return NavigationWaypointDto.fromList(readValue() as! [Any?]) + case 135: + return NavigationWaypointDto.fromList(readValue() as! [Any?]) + case 136: + return RouteSegmentDto.fromList(readValue() as! [Any?]) + case 137: + return RouteSegmentDto.fromList(readValue() as! [Any?]) + case 138: + return RouteSegmentTrafficDataDto.fromList(readValue() as! [Any?]) + case 139: + return RouteSegmentTrafficDataRoadStretchRenderingDataDto.fromList(readValue() as! [Any?]) + case 140: + return RouteTokenOptionsDto.fromList(readValue() as! [Any?]) + case 141: + return RoutingOptionsDto.fromList(readValue() as! [Any?]) + case 142: + return SimulationOptionsDto.fromList(readValue() as! [Any?]) + case 143: + return SpeedAlertOptionsDto.fromList(readValue() as! [Any?]) + default: + return super.readValue(ofType: type) } } } @@ -3980,25 +4611,30 @@ private class NavigationSessionApiCodecWriter: FlutterStandardWriter { private class NavigationSessionApiCodecReaderWriter: FlutterStandardReaderWriter { override func reader(with data: Data) -> FlutterStandardReader { - return NavigationSessionApiCodecReader(data: data) + NavigationSessionApiCodecReader(data: data) } override func writer(with data: NSMutableData) -> FlutterStandardWriter { - return NavigationSessionApiCodecWriter(data: data) + NavigationSessionApiCodecWriter(data: data) } } class NavigationSessionApiCodec: FlutterStandardMessageCodec { - static let shared = NavigationSessionApiCodec(readerWriter: NavigationSessionApiCodecReaderWriter()) + static let shared = + NavigationSessionApiCodec(readerWriter: NavigationSessionApiCodecReaderWriter()) } /// Generated protocol from Pigeon that represents a handler of messages from Flutter. protocol NavigationSessionApi { /// General. - func createNavigationSession(abnormalTerminationReportingEnabled: Bool, behavior: TaskRemovedBehaviorDto, completion: @escaping (Result) -> Void) + func createNavigationSession(abnormalTerminationReportingEnabled: Bool, + behavior: TaskRemovedBehaviorDto, + completion: @escaping (Result) -> Void) func isInitialized() throws -> Bool func cleanup() throws - func showTermsAndConditionsDialog(title: String, companyName: String, shouldOnlyShowDriverAwarenessDisclaimer: Bool, completion: @escaping (Result) -> Void) + func showTermsAndConditionsDialog(title: String, companyName: String, + shouldOnlyShowDriverAwarenessDisclaimer: Bool, + completion: @escaping (Result) -> Void) func areTermsAccepted() throws -> Bool func resetTermsAccepted() throws func getNavSDKVersion() throws -> String @@ -4006,7 +4642,8 @@ protocol NavigationSessionApi { 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() throws -> NavigationWaypointDto? func getCurrentTimeAndDistance() throws -> NavigationTimeAndDistanceDto @@ -4020,9 +4657,23 @@ 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< + RouteStatusDto, + Error + >) -> Void) + func simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(waypoints: [ + NavigationWaypointDto + ], + routingOptions: RoutingOptionsDto, + simulationOptions: SimulationOptionsDto, + completion: @escaping (Result< + RouteStatusDto, + Error + >) -> Void) func pauseSimulation() throws func resumeSimulation() throws /// Simulation (iOS only) @@ -4033,36 +4684,49 @@ protocol NavigationSessionApi { /// Enable Turn-by-Turn navigation events. func enableTurnByTurnNavigationEvents(numNextStepsToPreview: Int64?) 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 { +enum NavigationSessionApiSetup { /// The codec used by NavigationSessionApi. static var codec: FlutterStandardMessageCodec { NavigationSessionApiCodec.shared } - /// Sets up an instance of `NavigationSessionApi` to handle messages through the `binaryMessenger`. + /// Sets up an instance of `NavigationSessionApi` to handle messages through the + /// `binaryMessenger`. static func setUp(binaryMessenger: FlutterBinaryMessenger, api: NavigationSessionApi?) { /// General. - let createNavigationSessionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let createNavigationSessionChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { createNavigationSessionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let abnormalTerminationReportingEnabledArg = args[0] as! Bool let behaviorArg = TaskRemovedBehaviorDto(rawValue: args[1] as! Int)! - api.createNavigationSession(abnormalTerminationReportingEnabled: abnormalTerminationReportingEnabledArg, behavior: behaviorArg) { result in + api.createNavigationSession( + abnormalTerminationReportingEnabled: abnormalTerminationReportingEnabledArg, + behavior: behaviorArg + ) { result in switch result { - case .success: - reply(wrapResult(nil)) - case .failure(let error): - reply(wrapError(error)) + case .success: + reply(wrapResult(nil)) + case let .failure(error): + reply(wrapError(error)) } } } } else { createNavigationSessionChannel.setMessageHandler(nil) } - let isInitializedChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isInitializedChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isInitializedChannel.setMessageHandler { _, reply in do { let result = try api.isInitialized() @@ -4074,8 +4738,12 @@ class NavigationSessionApiSetup { } else { isInitializedChannel.setMessageHandler(nil) } - let cleanupChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let cleanupChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { cleanupChannel.setMessageHandler { _, reply in do { try api.cleanup() @@ -4087,27 +4755,39 @@ class NavigationSessionApiSetup { } else { cleanupChannel.setMessageHandler(nil) } - let showTermsAndConditionsDialogChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let showTermsAndConditionsDialogChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { showTermsAndConditionsDialogChannel.setMessageHandler { message, reply in let args = message as! [Any?] let titleArg = args[0] as! String let companyNameArg = args[1] as! String let shouldOnlyShowDriverAwarenessDisclaimerArg = args[2] as! Bool - api.showTermsAndConditionsDialog(title: titleArg, companyName: companyNameArg, shouldOnlyShowDriverAwarenessDisclaimer: shouldOnlyShowDriverAwarenessDisclaimerArg) { result in + api.showTermsAndConditionsDialog( + title: titleArg, + companyName: companyNameArg, + shouldOnlyShowDriverAwarenessDisclaimer: shouldOnlyShowDriverAwarenessDisclaimerArg + ) { result in switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) + case let .success(res): + reply(wrapResult(res)) + case let .failure(error): + reply(wrapError(error)) } } } } else { showTermsAndConditionsDialogChannel.setMessageHandler(nil) } - let areTermsAcceptedChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let areTermsAcceptedChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { areTermsAcceptedChannel.setMessageHandler { _, reply in do { let result = try api.areTermsAccepted() @@ -4119,8 +4799,12 @@ class NavigationSessionApiSetup { } else { areTermsAcceptedChannel.setMessageHandler(nil) } - let resetTermsAcceptedChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let resetTermsAcceptedChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { resetTermsAcceptedChannel.setMessageHandler { _, reply in do { try api.resetTermsAccepted() @@ -4132,8 +4816,12 @@ class NavigationSessionApiSetup { } else { resetTermsAcceptedChannel.setMessageHandler(nil) } - let getNavSDKVersionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let getNavSDKVersionChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { getNavSDKVersionChannel.setMessageHandler { _, reply in do { let result = try api.getNavSDKVersion() @@ -4146,8 +4834,12 @@ class NavigationSessionApiSetup { getNavSDKVersionChannel.setMessageHandler(nil) } /// Navigation. - let isGuidanceRunningChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isGuidanceRunningChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isGuidanceRunningChannel.setMessageHandler { _, reply in do { let result = try api.isGuidanceRunning() @@ -4159,8 +4851,12 @@ class NavigationSessionApiSetup { } else { isGuidanceRunningChannel.setMessageHandler(nil) } - let startGuidanceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let startGuidanceChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { startGuidanceChannel.setMessageHandler { _, reply in do { try api.startGuidance() @@ -4172,8 +4868,12 @@ class NavigationSessionApiSetup { } else { startGuidanceChannel.setMessageHandler(nil) } - let stopGuidanceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let stopGuidanceChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { stopGuidanceChannel.setMessageHandler { _, reply in do { try api.stopGuidance() @@ -4185,25 +4885,33 @@ class NavigationSessionApiSetup { } else { stopGuidanceChannel.setMessageHandler(nil) } - let setDestinationsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setDestinationsChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setDestinationsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let destinationsArg = args[0] as! DestinationsDto api.setDestinations(destinations: destinationsArg) { result in switch result { - case .success(let res): - reply(wrapResult(res.rawValue)) - case .failure(let error): - reply(wrapError(error)) + case let .success(res): + reply(wrapResult(res.rawValue)) + case let .failure(error): + reply(wrapError(error)) } } } } else { setDestinationsChannel.setMessageHandler(nil) } - let clearDestinationsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let clearDestinationsChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { clearDestinationsChannel.setMessageHandler { _, reply in do { try api.clearDestinations() @@ -4215,8 +4923,12 @@ class NavigationSessionApiSetup { } else { clearDestinationsChannel.setMessageHandler(nil) } - let continueToNextDestinationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let continueToNextDestinationChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { continueToNextDestinationChannel.setMessageHandler { _, reply in do { let result = try api.continueToNextDestination() @@ -4228,8 +4940,12 @@ class NavigationSessionApiSetup { } else { continueToNextDestinationChannel.setMessageHandler(nil) } - let getCurrentTimeAndDistanceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let getCurrentTimeAndDistanceChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { getCurrentTimeAndDistanceChannel.setMessageHandler { _, reply in do { let result = try api.getCurrentTimeAndDistance() @@ -4241,8 +4957,12 @@ class NavigationSessionApiSetup { } else { getCurrentTimeAndDistanceChannel.setMessageHandler(nil) } - let setAudioGuidanceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setAudioGuidanceChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setAudioGuidanceChannel.setMessageHandler { message, reply in let args = message as! [Any?] let settingsArg = args[0] as! NavigationAudioGuidanceSettingsDto @@ -4256,8 +4976,12 @@ class NavigationSessionApiSetup { } else { setAudioGuidanceChannel.setMessageHandler(nil) } - let setSpeedAlertOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setSpeedAlertOptionsChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setSpeedAlertOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let optionsArg = args[0] as! SpeedAlertOptionsDto @@ -4271,8 +4995,12 @@ class NavigationSessionApiSetup { } else { setSpeedAlertOptionsChannel.setMessageHandler(nil) } - let getRouteSegmentsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let getRouteSegmentsChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { getRouteSegmentsChannel.setMessageHandler { _, reply in do { let result = try api.getRouteSegments() @@ -4284,8 +5012,12 @@ class NavigationSessionApiSetup { } else { getRouteSegmentsChannel.setMessageHandler(nil) } - let getTraveledRouteChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let getTraveledRouteChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { getTraveledRouteChannel.setMessageHandler { _, reply in do { let result = try api.getTraveledRoute() @@ -4297,8 +5029,12 @@ class NavigationSessionApiSetup { } else { getTraveledRouteChannel.setMessageHandler(nil) } - let getCurrentRouteSegmentChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let getCurrentRouteSegmentChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { getCurrentRouteSegmentChannel.setMessageHandler { _, reply in do { let result = try api.getCurrentRouteSegment() @@ -4311,8 +5047,12 @@ class NavigationSessionApiSetup { getCurrentRouteSegmentChannel.setMessageHandler(nil) } /// Simulation - let setUserLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setUserLocationChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setUserLocationChannel.setMessageHandler { message, reply in let args = message as! [Any?] let locationArg = args[0] as! LatLngDto @@ -4326,8 +5066,12 @@ class NavigationSessionApiSetup { } else { setUserLocationChannel.setMessageHandler(nil) } - let removeUserLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let removeUserLocationChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { removeUserLocationChannel.setMessageHandler { _, reply in do { try api.removeUserLocation() @@ -4339,8 +5083,12 @@ class NavigationSessionApiSetup { } else { removeUserLocationChannel.setMessageHandler(nil) } - let simulateLocationsAlongExistingRouteChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let simulateLocationsAlongExistingRouteChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { simulateLocationsAlongExistingRouteChannel.setMessageHandler { _, reply in do { try api.simulateLocationsAlongExistingRoute() @@ -4352,8 +5100,12 @@ class NavigationSessionApiSetup { } else { simulateLocationsAlongExistingRouteChannel.setMessageHandler(nil) } - let simulateLocationsAlongExistingRouteWithOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let simulateLocationsAlongExistingRouteWithOptionsChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { simulateLocationsAlongExistingRouteWithOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let optionsArg = args[0] as! SimulationOptionsDto @@ -4367,62 +5119,87 @@ class NavigationSessionApiSetup { } else { simulateLocationsAlongExistingRouteWithOptionsChannel.setMessageHandler(nil) } - let simulateLocationsAlongNewRouteChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let simulateLocationsAlongNewRouteChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { simulateLocationsAlongNewRouteChannel.setMessageHandler { message, reply in let args = message as! [Any?] let waypointsArg = args[0] as! [NavigationWaypointDto] api.simulateLocationsAlongNewRoute(waypoints: waypointsArg) { result in switch result { - case .success(let res): - reply(wrapResult(res.rawValue)) - case .failure(let error): - reply(wrapError(error)) + case let .success(res): + reply(wrapResult(res.rawValue)) + case let .failure(error): + reply(wrapError(error)) } } } } else { simulateLocationsAlongNewRouteChannel.setMessageHandler(nil) } - let simulateLocationsAlongNewRouteWithRoutingOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let simulateLocationsAlongNewRouteWithRoutingOptionsChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let 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.rawValue)) - case .failure(let error): - reply(wrapError(error)) + case let .success(res): + reply(wrapResult(res.rawValue)) + case let .failure(error): + reply(wrapError(error)) } } } } else { simulateLocationsAlongNewRouteWithRoutingOptionsChannel.setMessageHandler(nil) } - let simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - 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 - switch result { - case .success(let res): + let simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel = + FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { + 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 + switch result { + case let .success(res): reply(wrapResult(res.rawValue)) - case .failure(let error): + case let .failure(error): reply(wrapError(error)) + } } } - } } else { simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel.setMessageHandler(nil) } - let pauseSimulationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let pauseSimulationChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { pauseSimulationChannel.setMessageHandler { _, reply in do { try api.pauseSimulation() @@ -4434,8 +5211,12 @@ class NavigationSessionApiSetup { } else { pauseSimulationChannel.setMessageHandler(nil) } - let resumeSimulationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let resumeSimulationChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { resumeSimulationChannel.setMessageHandler { _, reply in do { try api.resumeSimulation() @@ -4448,8 +5229,12 @@ class NavigationSessionApiSetup { resumeSimulationChannel.setMessageHandler(nil) } /// Simulation (iOS only) - let allowBackgroundLocationUpdatesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let allowBackgroundLocationUpdatesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { allowBackgroundLocationUpdatesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let allowArg = args[0] as! Bool @@ -4464,8 +5249,12 @@ class NavigationSessionApiSetup { allowBackgroundLocationUpdatesChannel.setMessageHandler(nil) } /// Road snapped location updates. - let enableRoadSnappedLocationUpdatesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let enableRoadSnappedLocationUpdatesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { enableRoadSnappedLocationUpdatesChannel.setMessageHandler { _, reply in do { try api.enableRoadSnappedLocationUpdates() @@ -4477,8 +5266,12 @@ class NavigationSessionApiSetup { } else { enableRoadSnappedLocationUpdatesChannel.setMessageHandler(nil) } - let disableRoadSnappedLocationUpdatesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let disableRoadSnappedLocationUpdatesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { disableRoadSnappedLocationUpdatesChannel.setMessageHandler { _, reply in do { try api.disableRoadSnappedLocationUpdates() @@ -4491,11 +5284,16 @@ class NavigationSessionApiSetup { disableRoadSnappedLocationUpdatesChannel.setMessageHandler(nil) } /// Enable Turn-by-Turn navigation events. - let enableTurnByTurnNavigationEventsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let enableTurnByTurnNavigationEventsChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { enableTurnByTurnNavigationEventsChannel.setMessageHandler { message, reply in let args = message as! [Any?] - let numNextStepsToPreviewArg: Int64? = isNullish(args[0]) ? nil : (args[0] is Int64? ? args[0] as! Int64? : Int64(args[0] as! Int32)) + let numNextStepsToPreviewArg: Int64? = isNullish(args[0]) ? nil : + (args[0] is Int64? ? args[0] as! Int64? : Int64(args[0] as! Int32)) do { try api.enableTurnByTurnNavigationEvents(numNextStepsToPreview: numNextStepsToPreviewArg) reply(wrapResult(nil)) @@ -4506,8 +5304,12 @@ class NavigationSessionApiSetup { } else { enableTurnByTurnNavigationEventsChannel.setMessageHandler(nil) } - let disableTurnByTurnNavigationEventsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let disableTurnByTurnNavigationEventsChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { disableTurnByTurnNavigationEventsChannel.setMessageHandler { _, reply in do { try api.disableTurnByTurnNavigationEvents() @@ -4519,14 +5321,23 @@ class NavigationSessionApiSetup { } else { disableTurnByTurnNavigationEventsChannel.setMessageHandler(nil) } - let registerRemainingTimeOrDistanceChangedListenerChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let registerRemainingTimeOrDistanceChangedListenerChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { registerRemainingTimeOrDistanceChangedListenerChannel.setMessageHandler { message, reply in let args = message as! [Any?] - let remainingTimeThresholdSecondsArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) - let remainingDistanceThresholdMetersArg = args[1] is Int64 ? args[1] as! Int64 : Int64(args[1] as! Int32) + let remainingTimeThresholdSecondsArg = args[0] is Int64 ? args[0] as! Int64 : + Int64(args[0] as! Int32) + let remainingDistanceThresholdMetersArg = args[1] is Int64 ? args[1] as! Int64 : + Int64(args[1] as! Int32) do { - try api.registerRemainingTimeOrDistanceChangedListener(remainingTimeThresholdSeconds: remainingTimeThresholdSecondsArg, remainingDistanceThresholdMeters: remainingDistanceThresholdMetersArg) + try api.registerRemainingTimeOrDistanceChangedListener( + remainingTimeThresholdSeconds: remainingTimeThresholdSecondsArg, + remainingDistanceThresholdMeters: remainingDistanceThresholdMetersArg + ) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -4537,27 +5348,28 @@ class NavigationSessionApiSetup { } } } + private class NavigationSessionEventApiCodecReader: FlutterStandardReader { override func readValue(ofType type: UInt8) -> Any? { switch type { - case 128: - return LaneDirectionDto.fromList(self.readValue() as! [Any?]) - case 129: - return LaneDto.fromList(self.readValue() as! [Any?]) - case 130: - return LatLngDto.fromList(self.readValue() as! [Any?]) - case 131: - return NavInfoDto.fromList(self.readValue() as! [Any?]) - case 132: - return NavigationWaypointDto.fromList(self.readValue() as! [Any?]) - case 133: - return SpeedingUpdatedEventDto.fromList(self.readValue() as! [Any?]) - case 134: - return StepInfoDto.fromList(self.readValue() as! [Any?]) - case 135: - return StepInfoDto.fromList(self.readValue() as! [Any?]) - default: - return super.readValue(ofType: type) + case 128: + return LaneDirectionDto.fromList(readValue() as! [Any?]) + case 129: + return LaneDto.fromList(readValue() as! [Any?]) + case 130: + return LatLngDto.fromList(readValue() as! [Any?]) + case 131: + return NavInfoDto.fromList(readValue() as! [Any?]) + case 132: + return NavigationWaypointDto.fromList(readValue() as! [Any?]) + case 133: + return SpeedingUpdatedEventDto.fromList(readValue() as! [Any?]) + case 134: + return StepInfoDto.fromList(readValue() as! [Any?]) + case 135: + return StepInfoDto.fromList(readValue() as! [Any?]) + default: + return super.readValue(ofType: type) } } } @@ -4596,273 +5408,354 @@ private class NavigationSessionEventApiCodecWriter: FlutterStandardWriter { private class NavigationSessionEventApiCodecReaderWriter: FlutterStandardReaderWriter { override func reader(with data: Data) -> FlutterStandardReader { - return NavigationSessionEventApiCodecReader(data: data) + NavigationSessionEventApiCodecReader(data: data) } override func writer(with data: NSMutableData) -> FlutterStandardWriter { - return NavigationSessionEventApiCodecWriter(data: data) + NavigationSessionEventApiCodecWriter(data: data) } } class NavigationSessionEventApiCodec: FlutterStandardMessageCodec { - static let shared = NavigationSessionEventApiCodec(readerWriter: NavigationSessionEventApiCodecReaderWriter()) + static let shared = + NavigationSessionEventApiCodec(readerWriter: NavigationSessionEventApiCodecReaderWriter()) } /// 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, completion: @escaping (Result) -> Void) + func onRemainingTimeOrDistanceChanged(remainingTime remainingTimeArg: Double, + remainingDistance remainingDistanceArg: Double, + 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) /// Turn-by-Turn navigation events. - func onNavInfo(navInfo navInfoArg: NavInfoDto, completion: @escaping (Result) -> Void) + func onNavInfo(navInfo navInfoArg: NavInfoDto, + completion: @escaping (Result) -> Void) } + class NavigationSessionEventApi: NavigationSessionEventApiProtocol { private let binaryMessenger: FlutterBinaryMessenger - init(binaryMessenger: FlutterBinaryMessenger){ + init(binaryMessenger: FlutterBinaryMessenger) { self.binaryMessenger = binaryMessenger } + var codec: FlutterStandardMessageCodec { - return NavigationSessionEventApiCodec.shared + NavigationSessionEventApiCodec.shared } - func onSpeedingUpdated(msg msgArg: SpeedingUpdatedEventDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + + func onSpeedingUpdated(msg msgArg: SpeedingUpdatedEventDto, + completion: @escaping (Result) -> Void) { + let channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated" + 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))) + completion(.failure(createConnectionError(withChannelName: channelName))) return } - if (listResponse.count > 1) { + if listResponse.count > 1 { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))); + completion(.failure(FlutterError(code: code, message: message, details: details))) } else { - completion(.success(Void())) + completion(.success(())) } } } - func onRoadSnappedLocationUpdated(location locationArg: LatLngDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + + func onRoadSnappedLocationUpdated(location locationArg: LatLngDto, + completion: @escaping (Result) -> Void) { + let channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated" + 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))) + completion(.failure(createConnectionError(withChannelName: channelName))) return } - if (listResponse.count > 1) { + if listResponse.count > 1 { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))); + completion(.failure(FlutterError(code: code, message: message, details: details))) } else { - completion(.success(Void())) + completion(.success(())) } } } - func onRoadSnappedRawLocationUpdated(location locationArg: LatLngDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + + func onRoadSnappedRawLocationUpdated(location locationArg: LatLngDto, + completion: @escaping (Result) -> Void) { + let channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated" + 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))) + completion(.failure(createConnectionError(withChannelName: channelName))) return } - if (listResponse.count > 1) { + if listResponse.count > 1 { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))); + completion(.failure(FlutterError(code: code, message: message, details: details))) } else { - completion(.success(Void())) + completion(.success(())) } } } - func onArrival(waypoint waypointArg: NavigationWaypointDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + + func onArrival(waypoint waypointArg: NavigationWaypointDto, + completion: @escaping (Result) -> Void) { + let channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival" + 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))) + completion(.failure(createConnectionError(withChannelName: channelName))) return } - if (listResponse.count > 1) { + if listResponse.count > 1 { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))); + completion(.failure(FlutterError(code: code, message: message, details: details))) } else { - completion(.success(Void())) + completion(.success(())) } } } + func onRouteChanged(completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged" + 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))) + completion(.failure(createConnectionError(withChannelName: channelName))) return } - if (listResponse.count > 1) { + if listResponse.count > 1 { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))); + completion(.failure(FlutterError(code: code, message: message, details: details))) } else { - completion(.success(Void())) + completion(.success(())) } } } - func onRemainingTimeOrDistanceChanged(remainingTime remainingTimeArg: Double, remainingDistance remainingDistanceArg: Double, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + + func onRemainingTimeOrDistanceChanged(remainingTime remainingTimeArg: Double, + remainingDistance remainingDistanceArg: Double, + completion: @escaping (Result) + -> Void) { + let channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged" + let channel = FlutterBasicMessageChannel( + name: channelName, + binaryMessenger: binaryMessenger, + codec: codec + ) channel.sendMessage([remainingTimeArg, remainingDistanceArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName:channelName))) + completion(.failure(createConnectionError(withChannelName: channelName))) return } - if (listResponse.count > 1) { + if listResponse.count > 1 { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))); + completion(.failure(FlutterError(code: code, message: message, details: details))) } else { - completion(.success(Void())) + completion(.success(())) } } } + /// Android-only event. func onTrafficUpdated(completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated" + 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))) + completion(.failure(createConnectionError(withChannelName: channelName))) return } - if (listResponse.count > 1) { + if listResponse.count > 1 { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))); + completion(.failure(FlutterError(code: code, message: message, details: details))) } else { - completion(.success(Void())) + completion(.success(())) } } } + /// Android-only event. func onRerouting(completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting" + 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))) + completion(.failure(createConnectionError(withChannelName: channelName))) return } - if (listResponse.count > 1) { + if listResponse.count > 1 { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))); + completion(.failure(FlutterError(code: code, message: message, details: details))) } else { - completion(.success(Void())) + completion(.success(())) } } } + /// Android-only event. - func onGpsAvailabilityUpdate(available availableArg: Bool, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onGpsAvailabilityUpdate(available availableArg: Bool, + completion: @escaping (Result) -> Void) { + let channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate" + 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))) + completion(.failure(createConnectionError(withChannelName: channelName))) return } - if (listResponse.count > 1) { + if listResponse.count > 1 { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))); + completion(.failure(FlutterError(code: code, message: message, details: details))) } else { - completion(.success(Void())) + completion(.success(())) } } } + /// 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" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onNavInfo(navInfo navInfoArg: NavInfoDto, + completion: @escaping (Result) -> Void) { + let channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo" + 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))) + completion(.failure(createConnectionError(withChannelName: channelName))) return } - if (listResponse.count > 1) { + if listResponse.count > 1 { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))); + completion(.failure(FlutterError(code: code, message: message, details: details))) } else { - completion(.success(Void())) + completion(.success(())) } } } } + private class AutoMapViewApiCodecReader: FlutterStandardReader { override func readValue(ofType type: UInt8) -> Any? { switch type { - case 128: - return CameraPositionDto.fromList(self.readValue() as! [Any?]) - case 129: - return CircleDto.fromList(self.readValue() as! [Any?]) - case 130: - return CircleOptionsDto.fromList(self.readValue() as! [Any?]) - case 131: - return ImageDescriptorDto.fromList(self.readValue() as! [Any?]) - case 132: - return InfoWindowDto.fromList(self.readValue() as! [Any?]) - case 133: - return LatLngBoundsDto.fromList(self.readValue() as! [Any?]) - case 134: - return LatLngDto.fromList(self.readValue() as! [Any?]) - case 135: - return LatLngDto.fromList(self.readValue() as! [Any?]) - case 136: - return MapPaddingDto.fromList(self.readValue() as! [Any?]) - case 137: - return MarkerAnchorDto.fromList(self.readValue() as! [Any?]) - case 138: - return MarkerDto.fromList(self.readValue() as! [Any?]) - case 139: - return MarkerOptionsDto.fromList(self.readValue() as! [Any?]) - case 140: - return PatternItemDto.fromList(self.readValue() as! [Any?]) - case 141: - return PolygonDto.fromList(self.readValue() as! [Any?]) - case 142: - return PolygonHoleDto.fromList(self.readValue() as! [Any?]) - case 143: - return PolygonOptionsDto.fromList(self.readValue() as! [Any?]) - case 144: - return PolylineDto.fromList(self.readValue() as! [Any?]) - case 145: - return PolylineOptionsDto.fromList(self.readValue() as! [Any?]) - case 146: - return StyleSpanDto.fromList(self.readValue() as! [Any?]) - case 147: - return StyleSpanStrokeStyleDto.fromList(self.readValue() as! [Any?]) - default: - return super.readValue(ofType: type) + case 128: + return CameraPositionDto.fromList(readValue() as! [Any?]) + case 129: + return CircleDto.fromList(readValue() as! [Any?]) + case 130: + return CircleOptionsDto.fromList(readValue() as! [Any?]) + case 131: + return ImageDescriptorDto.fromList(readValue() as! [Any?]) + case 132: + return InfoWindowDto.fromList(readValue() as! [Any?]) + case 133: + return LatLngBoundsDto.fromList(readValue() as! [Any?]) + case 134: + return LatLngDto.fromList(readValue() as! [Any?]) + case 135: + return LatLngDto.fromList(readValue() as! [Any?]) + case 136: + return MapPaddingDto.fromList(readValue() as! [Any?]) + case 137: + return MarkerAnchorDto.fromList(readValue() as! [Any?]) + case 138: + return MarkerDto.fromList(readValue() as! [Any?]) + case 139: + return MarkerOptionsDto.fromList(readValue() as! [Any?]) + case 140: + return PatternItemDto.fromList(readValue() as! [Any?]) + case 141: + return PolygonDto.fromList(readValue() as! [Any?]) + case 142: + return PolygonHoleDto.fromList(readValue() as! [Any?]) + case 143: + return PolygonOptionsDto.fromList(readValue() as! [Any?]) + case 144: + return PolylineDto.fromList(readValue() as! [Any?]) + case 145: + return PolylineOptionsDto.fromList(readValue() as! [Any?]) + case 146: + return StyleSpanDto.fromList(readValue() as! [Any?]) + case 147: + return StyleSpanStrokeStyleDto.fromList(readValue() as! [Any?]) + default: + return super.readValue(ofType: type) } } } @@ -4937,11 +5830,11 @@ private class AutoMapViewApiCodecWriter: FlutterStandardWriter { private class AutoMapViewApiCodecReaderWriter: FlutterStandardReaderWriter { override func reader(with data: Data) -> FlutterStandardReader { - return AutoMapViewApiCodecReader(data: data) + AutoMapViewApiCodecReader(data: data) } override func writer(with data: NSMutableData) -> FlutterStandardWriter { - return AutoMapViewApiCodecWriter(data: data) + AutoMapViewApiCodecWriter(data: data) } } @@ -4960,13 +5853,20 @@ 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 @@ -5029,13 +5929,17 @@ protocol AutoMapViewApi { } /// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. -class AutoMapViewApiSetup { +enum AutoMapViewApiSetup { /// The codec used by AutoMapViewApi. static var codec: FlutterStandardMessageCodec { AutoMapViewApiCodec.shared } /// Sets up an instance of `AutoMapViewApi` to handle messages through the `binaryMessenger`. static func setUp(binaryMessenger: FlutterBinaryMessenger, api: AutoMapViewApi?) { - let isMyLocationEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isMyLocationEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isMyLocationEnabledChannel.setMessageHandler { _, reply in do { let result = try api.isMyLocationEnabled() @@ -5047,8 +5951,12 @@ class AutoMapViewApiSetup { } else { isMyLocationEnabledChannel.setMessageHandler(nil) } - let setMyLocationEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setMyLocationEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setMyLocationEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let enabledArg = args[0] as! Bool @@ -5062,8 +5970,12 @@ class AutoMapViewApiSetup { } else { setMyLocationEnabledChannel.setMessageHandler(nil) } - let getMyLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let getMyLocationChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { getMyLocationChannel.setMessageHandler { _, reply in do { let result = try api.getMyLocation() @@ -5075,8 +5987,12 @@ class AutoMapViewApiSetup { } else { getMyLocationChannel.setMessageHandler(nil) } - let getMapTypeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let getMapTypeChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { getMapTypeChannel.setMessageHandler { _, reply in do { let result = try api.getMapType() @@ -5088,8 +6004,12 @@ class AutoMapViewApiSetup { } else { getMapTypeChannel.setMessageHandler(nil) } - let setMapTypeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setMapTypeChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setMapTypeChannel.setMessageHandler { message, reply in let args = message as! [Any?] let mapTypeArg = MapTypeDto(rawValue: args[0] as! Int)! @@ -5103,8 +6023,12 @@ class AutoMapViewApiSetup { } else { setMapTypeChannel.setMessageHandler(nil) } - let setMapStyleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setMapStyleChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setMapStyleChannel.setMessageHandler { message, reply in let args = message as! [Any?] let styleJsonArg = args[0] as! String @@ -5118,8 +6042,12 @@ class AutoMapViewApiSetup { } else { setMapStyleChannel.setMessageHandler(nil) } - let getCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let getCameraPositionChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { getCameraPositionChannel.setMessageHandler { _, reply in do { let result = try api.getCameraPosition() @@ -5131,8 +6059,12 @@ class AutoMapViewApiSetup { } else { getCameraPositionChannel.setMessageHandler(nil) } - let getVisibleRegionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let getVisibleRegionChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { getVisibleRegionChannel.setMessageHandler { _, reply in do { let result = try api.getVisibleRegion() @@ -5144,8 +6076,12 @@ class AutoMapViewApiSetup { } else { getVisibleRegionChannel.setMessageHandler(nil) } - let followMyLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let followMyLocationChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { followMyLocationChannel.setMessageHandler { message, reply in let args = message as! [Any?] let perspectiveArg = CameraPerspectiveDto(rawValue: args[0] as! Int)! @@ -5160,139 +6096,195 @@ class AutoMapViewApiSetup { } else { followMyLocationChannel.setMessageHandler(nil) } - let animateCameraToCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let animateCameraToCameraPositionChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { animateCameraToCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let cameraPositionArg = args[0] as! CameraPositionDto - let durationArg: Int64? = isNullish(args[1]) ? nil : (args[1] is Int64? ? args[1] as! Int64? : Int64(args[1] as! Int32)) - api.animateCameraToCameraPosition(cameraPosition: cameraPositionArg, duration: durationArg) { result in - switch result { - case .success(let res): + let durationArg: Int64? = isNullish(args[1]) ? nil : + (args[1] is Int64? ? args[1] as! Int64? : Int64(args[1] as! Int32)) + api + .animateCameraToCameraPosition(cameraPosition: cameraPositionArg, + duration: durationArg) { result in + switch result { + case let .success(res): reply(wrapResult(res)) - case .failure(let error): + case let .failure(error): reply(wrapError(error)) + } } - } } } else { animateCameraToCameraPositionChannel.setMessageHandler(nil) } - let animateCameraToLatLngChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let animateCameraToLatLngChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { animateCameraToLatLngChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pointArg = args[0] as! LatLngDto - let durationArg: Int64? = isNullish(args[1]) ? nil : (args[1] is Int64? ? args[1] as! Int64? : Int64(args[1] as! Int32)) + let durationArg: Int64? = isNullish(args[1]) ? nil : + (args[1] is Int64? ? args[1] as! Int64? : Int64(args[1] as! Int32)) api.animateCameraToLatLng(point: pointArg, duration: durationArg) { result in switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) + case let .success(res): + reply(wrapResult(res)) + case let .failure(error): + reply(wrapError(error)) } } } } else { animateCameraToLatLngChannel.setMessageHandler(nil) } - let animateCameraToLatLngBoundsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let animateCameraToLatLngBoundsChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let 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? = isNullish(args[2]) ? nil : (args[2] is Int64? ? args[2] as! Int64? : Int64(args[2] as! Int32)) - api.animateCameraToLatLngBounds(bounds: boundsArg, padding: paddingArg, duration: durationArg) { result in + let durationArg: Int64? = isNullish(args[2]) ? nil : + (args[2] is Int64? ? args[2] as! Int64? : Int64(args[2] as! Int32)) + api.animateCameraToLatLngBounds( + bounds: boundsArg, + padding: paddingArg, + duration: durationArg + ) { result in switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) + case let .success(res): + reply(wrapResult(res)) + case let .failure(error): + reply(wrapError(error)) } } } } else { animateCameraToLatLngBoundsChannel.setMessageHandler(nil) } - let animateCameraToLatLngZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let animateCameraToLatLngZoomChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let 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? = isNullish(args[2]) ? nil : (args[2] is Int64? ? args[2] as! Int64? : Int64(args[2] as! Int32)) - api.animateCameraToLatLngZoom(point: pointArg, zoom: zoomArg, duration: durationArg) { result in - switch result { - case .success(let res): + let durationArg: Int64? = isNullish(args[2]) ? nil : + (args[2] is Int64? ? args[2] as! Int64? : Int64(args[2] as! Int32)) + api + .animateCameraToLatLngZoom(point: pointArg, zoom: zoomArg, + duration: durationArg) { result in + switch result { + case let .success(res): reply(wrapResult(res)) - case .failure(let error): + case let .failure(error): reply(wrapError(error)) + } } - } } } else { animateCameraToLatLngZoomChannel.setMessageHandler(nil) } - let animateCameraByScrollChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let animateCameraByScrollChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let 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? = isNullish(args[2]) ? nil : (args[2] is Int64? ? args[2] as! Int64? : Int64(args[2] as! Int32)) - api.animateCameraByScroll(scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg, duration: durationArg) { result in + let durationArg: Int64? = isNullish(args[2]) ? nil : + (args[2] is Int64? ? args[2] as! Int64? : Int64(args[2] as! Int32)) + api.animateCameraByScroll( + scrollByDx: scrollByDxArg, + scrollByDy: scrollByDyArg, + duration: durationArg + ) { result in switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) + case let .success(res): + reply(wrapResult(res)) + case let .failure(error): + reply(wrapError(error)) } } } } else { animateCameraByScrollChannel.setMessageHandler(nil) } - let animateCameraByZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let animateCameraByZoomChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { animateCameraByZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] let zoomByArg = args[0] as! Double let focusDxArg: Double? = nilOrValue(args[1]) let focusDyArg: Double? = nilOrValue(args[2]) - let durationArg: Int64? = isNullish(args[3]) ? nil : (args[3] is Int64? ? args[3] as! Int64? : Int64(args[3] as! Int32)) - api.animateCameraByZoom(zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg, duration: durationArg) { result in + let durationArg: Int64? = isNullish(args[3]) ? nil : + (args[3] is Int64? ? args[3] as! Int64? : Int64(args[3] as! Int32)) + api.animateCameraByZoom( + zoomBy: zoomByArg, + focusDx: focusDxArg, + focusDy: focusDyArg, + duration: durationArg + ) { result in switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) + case let .success(res): + reply(wrapResult(res)) + case let .failure(error): + reply(wrapError(error)) } } } } else { animateCameraByZoomChannel.setMessageHandler(nil) } - let animateCameraToZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let animateCameraToZoomChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { animateCameraToZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] let zoomArg = args[0] as! Double - let durationArg: Int64? = isNullish(args[1]) ? nil : (args[1] is Int64? ? args[1] as! Int64? : Int64(args[1] as! Int32)) + let durationArg: Int64? = isNullish(args[1]) ? nil : + (args[1] is Int64? ? args[1] as! Int64? : Int64(args[1] as! Int32)) api.animateCameraToZoom(zoom: zoomArg, duration: durationArg) { result in switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) + case let .success(res): + reply(wrapResult(res)) + case let .failure(error): + reply(wrapError(error)) } } } } else { animateCameraToZoomChannel.setMessageHandler(nil) } - let moveCameraToCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let moveCameraToCameraPositionChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { moveCameraToCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let cameraPositionArg = args[0] as! CameraPositionDto @@ -5306,8 +6298,12 @@ class AutoMapViewApiSetup { } else { moveCameraToCameraPositionChannel.setMessageHandler(nil) } - let moveCameraToLatLngChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let moveCameraToLatLngChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { moveCameraToLatLngChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pointArg = args[0] as! LatLngDto @@ -5321,8 +6317,12 @@ class AutoMapViewApiSetup { } else { moveCameraToLatLngChannel.setMessageHandler(nil) } - let moveCameraToLatLngBoundsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let moveCameraToLatLngBoundsChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { moveCameraToLatLngBoundsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let boundsArg = args[0] as! LatLngBoundsDto @@ -5337,8 +6337,12 @@ class AutoMapViewApiSetup { } else { moveCameraToLatLngBoundsChannel.setMessageHandler(nil) } - let moveCameraToLatLngZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let moveCameraToLatLngZoomChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { moveCameraToLatLngZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pointArg = args[0] as! LatLngDto @@ -5353,8 +6357,12 @@ class AutoMapViewApiSetup { } else { moveCameraToLatLngZoomChannel.setMessageHandler(nil) } - let moveCameraByScrollChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let moveCameraByScrollChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { moveCameraByScrollChannel.setMessageHandler { message, reply in let args = message as! [Any?] let scrollByDxArg = args[0] as! Double @@ -5369,8 +6377,12 @@ class AutoMapViewApiSetup { } else { moveCameraByScrollChannel.setMessageHandler(nil) } - let moveCameraByZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let moveCameraByZoomChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { moveCameraByZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] let zoomByArg = args[0] as! Double @@ -5386,8 +6398,12 @@ class AutoMapViewApiSetup { } else { moveCameraByZoomChannel.setMessageHandler(nil) } - let moveCameraToZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let moveCameraToZoomChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { moveCameraToZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] let zoomArg = args[0] as! Double @@ -5401,8 +6417,12 @@ class AutoMapViewApiSetup { } else { moveCameraToZoomChannel.setMessageHandler(nil) } - let getMinZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let getMinZoomPreferenceChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { getMinZoomPreferenceChannel.setMessageHandler { _, reply in do { let result = try api.getMinZoomPreference() @@ -5414,8 +6434,12 @@ class AutoMapViewApiSetup { } else { getMinZoomPreferenceChannel.setMessageHandler(nil) } - let getMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let getMaxZoomPreferenceChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { getMaxZoomPreferenceChannel.setMessageHandler { _, reply in do { let result = try api.getMaxZoomPreference() @@ -5427,8 +6451,12 @@ class AutoMapViewApiSetup { } else { getMaxZoomPreferenceChannel.setMessageHandler(nil) } - let resetMinMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let resetMinMaxZoomPreferenceChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { resetMinMaxZoomPreferenceChannel.setMessageHandler { _, reply in do { try api.resetMinMaxZoomPreference() @@ -5440,8 +6468,12 @@ class AutoMapViewApiSetup { } else { resetMinMaxZoomPreferenceChannel.setMessageHandler(nil) } - let setMinZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setMinZoomPreferenceChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setMinZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] let minZoomPreferenceArg = args[0] as! Double @@ -5455,8 +6487,12 @@ class AutoMapViewApiSetup { } else { setMinZoomPreferenceChannel.setMessageHandler(nil) } - let setMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setMaxZoomPreferenceChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setMaxZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] let maxZoomPreferenceArg = args[0] as! Double @@ -5470,8 +6506,12 @@ class AutoMapViewApiSetup { } else { setMaxZoomPreferenceChannel.setMessageHandler(nil) } - let setMyLocationButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setMyLocationButtonEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setMyLocationButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let enabledArg = args[0] as! Bool @@ -5485,8 +6525,12 @@ class AutoMapViewApiSetup { } else { setMyLocationButtonEnabledChannel.setMessageHandler(nil) } - let setConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let enabledArg = args[0] as! Bool @@ -5500,8 +6544,12 @@ class AutoMapViewApiSetup { } else { setConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler(nil) } - let setZoomGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setZoomGesturesEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setZoomGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let enabledArg = args[0] as! Bool @@ -5515,8 +6563,12 @@ class AutoMapViewApiSetup { } else { setZoomGesturesEnabledChannel.setMessageHandler(nil) } - let setZoomControlsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setZoomControlsEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setZoomControlsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let enabledArg = args[0] as! Bool @@ -5530,8 +6582,12 @@ class AutoMapViewApiSetup { } else { setZoomControlsEnabledChannel.setMessageHandler(nil) } - let setCompassEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setCompassEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setCompassEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let enabledArg = args[0] as! Bool @@ -5545,8 +6601,12 @@ class AutoMapViewApiSetup { } else { setCompassEnabledChannel.setMessageHandler(nil) } - let setRotateGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setRotateGesturesEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setRotateGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let enabledArg = args[0] as! Bool @@ -5560,8 +6620,12 @@ class AutoMapViewApiSetup { } else { setRotateGesturesEnabledChannel.setMessageHandler(nil) } - let setScrollGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setScrollGesturesEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setScrollGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let enabledArg = args[0] as! Bool @@ -5575,8 +6639,12 @@ class AutoMapViewApiSetup { } else { setScrollGesturesEnabledChannel.setMessageHandler(nil) } - let setScrollGesturesDuringRotateOrZoomEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setScrollGesturesDuringRotateOrZoomEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setScrollGesturesDuringRotateOrZoomEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let enabledArg = args[0] as! Bool @@ -5590,8 +6658,12 @@ class AutoMapViewApiSetup { } else { setScrollGesturesDuringRotateOrZoomEnabledChannel.setMessageHandler(nil) } - let setTiltGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setTiltGesturesEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setTiltGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let enabledArg = args[0] as! Bool @@ -5605,8 +6677,12 @@ class AutoMapViewApiSetup { } else { setTiltGesturesEnabledChannel.setMessageHandler(nil) } - let setMapToolbarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setMapToolbarEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setMapToolbarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let enabledArg = args[0] as! Bool @@ -5620,8 +6696,12 @@ class AutoMapViewApiSetup { } else { setMapToolbarEnabledChannel.setMessageHandler(nil) } - let setTrafficEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setTrafficEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setTrafficEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let enabledArg = args[0] as! Bool @@ -5635,8 +6715,12 @@ class AutoMapViewApiSetup { } else { setTrafficEnabledChannel.setMessageHandler(nil) } - let isMyLocationButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isMyLocationButtonEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isMyLocationButtonEnabledChannel.setMessageHandler { _, reply in do { let result = try api.isMyLocationButtonEnabled() @@ -5648,8 +6732,12 @@ class AutoMapViewApiSetup { } else { isMyLocationButtonEnabledChannel.setMessageHandler(nil) } - let isConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler { _, reply in do { let result = try api.isConsumeMyLocationButtonClickEventsEnabled() @@ -5661,8 +6749,12 @@ class AutoMapViewApiSetup { } else { isConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler(nil) } - let isZoomGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isZoomGesturesEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isZoomGesturesEnabledChannel.setMessageHandler { _, reply in do { let result = try api.isZoomGesturesEnabled() @@ -5674,8 +6766,12 @@ class AutoMapViewApiSetup { } else { isZoomGesturesEnabledChannel.setMessageHandler(nil) } - let isZoomControlsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isZoomControlsEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isZoomControlsEnabledChannel.setMessageHandler { _, reply in do { let result = try api.isZoomControlsEnabled() @@ -5687,8 +6783,12 @@ class AutoMapViewApiSetup { } else { isZoomControlsEnabledChannel.setMessageHandler(nil) } - let isCompassEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isCompassEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isCompassEnabledChannel.setMessageHandler { _, reply in do { let result = try api.isCompassEnabled() @@ -5700,8 +6800,12 @@ class AutoMapViewApiSetup { } else { isCompassEnabledChannel.setMessageHandler(nil) } - let isRotateGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isRotateGesturesEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isRotateGesturesEnabledChannel.setMessageHandler { _, reply in do { let result = try api.isRotateGesturesEnabled() @@ -5713,8 +6817,12 @@ class AutoMapViewApiSetup { } else { isRotateGesturesEnabledChannel.setMessageHandler(nil) } - let isScrollGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isScrollGesturesEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isScrollGesturesEnabledChannel.setMessageHandler { _, reply in do { let result = try api.isScrollGesturesEnabled() @@ -5726,8 +6834,12 @@ class AutoMapViewApiSetup { } else { isScrollGesturesEnabledChannel.setMessageHandler(nil) } - let isScrollGesturesEnabledDuringRotateOrZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isScrollGesturesEnabledDuringRotateOrZoomChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isScrollGesturesEnabledDuringRotateOrZoomChannel.setMessageHandler { _, reply in do { let result = try api.isScrollGesturesEnabledDuringRotateOrZoom() @@ -5739,8 +6851,12 @@ class AutoMapViewApiSetup { } else { isScrollGesturesEnabledDuringRotateOrZoomChannel.setMessageHandler(nil) } - let isTiltGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isTiltGesturesEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isTiltGesturesEnabledChannel.setMessageHandler { _, reply in do { let result = try api.isTiltGesturesEnabled() @@ -5752,8 +6868,12 @@ class AutoMapViewApiSetup { } else { isTiltGesturesEnabledChannel.setMessageHandler(nil) } - let isMapToolbarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isMapToolbarEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isMapToolbarEnabledChannel.setMessageHandler { _, reply in do { let result = try api.isMapToolbarEnabled() @@ -5765,8 +6885,12 @@ class AutoMapViewApiSetup { } else { isMapToolbarEnabledChannel.setMessageHandler(nil) } - let isTrafficEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isTrafficEnabledChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isTrafficEnabledChannel.setMessageHandler { _, reply in do { let result = try api.isTrafficEnabled() @@ -5778,8 +6902,12 @@ class AutoMapViewApiSetup { } else { isTrafficEnabledChannel.setMessageHandler(nil) } - let getMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let getMarkersChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { getMarkersChannel.setMessageHandler { _, reply in do { let result = try api.getMarkers() @@ -5791,8 +6919,12 @@ class AutoMapViewApiSetup { } else { getMarkersChannel.setMessageHandler(nil) } - let addMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let addMarkersChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { addMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] let markersArg = args[0] as! [MarkerDto] @@ -5806,8 +6938,12 @@ class AutoMapViewApiSetup { } else { addMarkersChannel.setMessageHandler(nil) } - let updateMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let updateMarkersChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { updateMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] let markersArg = args[0] as! [MarkerDto] @@ -5821,8 +6957,12 @@ class AutoMapViewApiSetup { } else { updateMarkersChannel.setMessageHandler(nil) } - let removeMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let removeMarkersChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { removeMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] let markersArg = args[0] as! [MarkerDto] @@ -5836,8 +6976,12 @@ class AutoMapViewApiSetup { } else { removeMarkersChannel.setMessageHandler(nil) } - let clearMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let clearMarkersChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { clearMarkersChannel.setMessageHandler { _, reply in do { try api.clearMarkers() @@ -5849,8 +6993,12 @@ class AutoMapViewApiSetup { } else { clearMarkersChannel.setMessageHandler(nil) } - let clearChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let clearChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { clearChannel.setMessageHandler { _, reply in do { try api.clear() @@ -5862,8 +7010,12 @@ class AutoMapViewApiSetup { } else { clearChannel.setMessageHandler(nil) } - let getPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let getPolygonsChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { getPolygonsChannel.setMessageHandler { _, reply in do { let result = try api.getPolygons() @@ -5875,8 +7027,12 @@ class AutoMapViewApiSetup { } else { getPolygonsChannel.setMessageHandler(nil) } - let addPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let addPolygonsChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { addPolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let polygonsArg = args[0] as! [PolygonDto] @@ -5890,8 +7046,12 @@ class AutoMapViewApiSetup { } else { addPolygonsChannel.setMessageHandler(nil) } - let updatePolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let updatePolygonsChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { updatePolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let polygonsArg = args[0] as! [PolygonDto] @@ -5905,8 +7065,12 @@ class AutoMapViewApiSetup { } else { updatePolygonsChannel.setMessageHandler(nil) } - let removePolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let removePolygonsChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { removePolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let polygonsArg = args[0] as! [PolygonDto] @@ -5920,8 +7084,12 @@ class AutoMapViewApiSetup { } else { removePolygonsChannel.setMessageHandler(nil) } - let clearPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let clearPolygonsChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { clearPolygonsChannel.setMessageHandler { _, reply in do { try api.clearPolygons() @@ -5933,8 +7101,12 @@ class AutoMapViewApiSetup { } else { clearPolygonsChannel.setMessageHandler(nil) } - let getPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let getPolylinesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { getPolylinesChannel.setMessageHandler { _, reply in do { let result = try api.getPolylines() @@ -5946,8 +7118,12 @@ class AutoMapViewApiSetup { } else { getPolylinesChannel.setMessageHandler(nil) } - let addPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let addPolylinesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { addPolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let polylinesArg = args[0] as! [PolylineDto] @@ -5961,8 +7137,12 @@ class AutoMapViewApiSetup { } else { addPolylinesChannel.setMessageHandler(nil) } - let updatePolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let updatePolylinesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { updatePolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let polylinesArg = args[0] as! [PolylineDto] @@ -5976,8 +7156,12 @@ class AutoMapViewApiSetup { } else { updatePolylinesChannel.setMessageHandler(nil) } - let removePolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let removePolylinesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { removePolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let polylinesArg = args[0] as! [PolylineDto] @@ -5991,8 +7175,12 @@ class AutoMapViewApiSetup { } else { removePolylinesChannel.setMessageHandler(nil) } - let clearPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let clearPolylinesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { clearPolylinesChannel.setMessageHandler { _, reply in do { try api.clearPolylines() @@ -6004,8 +7192,12 @@ class AutoMapViewApiSetup { } else { clearPolylinesChannel.setMessageHandler(nil) } - let getCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let getCirclesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { getCirclesChannel.setMessageHandler { _, reply in do { let result = try api.getCircles() @@ -6017,8 +7209,12 @@ class AutoMapViewApiSetup { } else { getCirclesChannel.setMessageHandler(nil) } - let addCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let addCirclesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { addCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let circlesArg = args[0] as! [CircleDto] @@ -6032,8 +7228,12 @@ class AutoMapViewApiSetup { } else { addCirclesChannel.setMessageHandler(nil) } - let updateCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let updateCirclesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { updateCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let circlesArg = args[0] as! [CircleDto] @@ -6047,8 +7247,12 @@ class AutoMapViewApiSetup { } else { updateCirclesChannel.setMessageHandler(nil) } - let removeCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let removeCirclesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { removeCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let circlesArg = args[0] as! [CircleDto] @@ -6062,8 +7266,12 @@ class AutoMapViewApiSetup { } else { removeCirclesChannel.setMessageHandler(nil) } - let clearCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let clearCirclesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { clearCirclesChannel.setMessageHandler { _, reply in do { try api.clearCircles() @@ -6075,8 +7283,12 @@ class AutoMapViewApiSetup { } else { clearCirclesChannel.setMessageHandler(nil) } - let registerOnCameraChangedListenerChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.registerOnCameraChangedListener", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let registerOnCameraChangedListenerChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.registerOnCameraChangedListener", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { registerOnCameraChangedListenerChannel.setMessageHandler { _, reply in do { try api.registerOnCameraChangedListener() @@ -6088,8 +7300,12 @@ class AutoMapViewApiSetup { } else { registerOnCameraChangedListenerChannel.setMessageHandler(nil) } - let isAutoScreenAvailableChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let isAutoScreenAvailableChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { isAutoScreenAvailableChannel.setMessageHandler { _, reply in do { let result = try api.isAutoScreenAvailable() @@ -6101,8 +7317,12 @@ class AutoMapViewApiSetup { } else { isAutoScreenAvailableChannel.setMessageHandler(nil) } - let setPaddingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let setPaddingChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { setPaddingChannel.setMessageHandler { message, reply in let args = message as! [Any?] let paddingArg = args[0] as! MapPaddingDto @@ -6116,8 +7336,12 @@ class AutoMapViewApiSetup { } else { setPaddingChannel.setMessageHandler(nil) } - let getPaddingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding", binaryMessenger: binaryMessenger, codec: codec) - if let api = api { + let getPaddingChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding", + binaryMessenger: binaryMessenger, + codec: codec + ) + if let api { getPaddingChannel.setMessageHandler { _, reply in do { let result = try api.getPadding() @@ -6131,89 +7355,90 @@ class AutoMapViewApiSetup { } } } + private class AutoViewEventApiCodecReader: FlutterStandardReader { override func readValue(ofType type: UInt8) -> Any? { switch type { - case 128: - return CameraPositionDto.fromList(self.readValue() as! [Any?]) - case 129: - return CircleDto.fromList(self.readValue() as! [Any?]) - case 130: - return CircleOptionsDto.fromList(self.readValue() as! [Any?]) - case 131: - return DestinationsDto.fromList(self.readValue() as! [Any?]) - case 132: - return ImageDescriptorDto.fromList(self.readValue() as! [Any?]) - case 133: - return InfoWindowDto.fromList(self.readValue() as! [Any?]) - case 134: - return LaneDirectionDto.fromList(self.readValue() as! [Any?]) - case 135: - return LaneDto.fromList(self.readValue() as! [Any?]) - case 136: - return LatLngBoundsDto.fromList(self.readValue() as! [Any?]) - case 137: - return LatLngDto.fromList(self.readValue() as! [Any?]) - case 138: - return MapOptionsDto.fromList(self.readValue() as! [Any?]) - case 139: - return MapPaddingDto.fromList(self.readValue() as! [Any?]) - case 140: - return MarkerAnchorDto.fromList(self.readValue() as! [Any?]) - case 141: - return MarkerDto.fromList(self.readValue() as! [Any?]) - case 142: - return MarkerOptionsDto.fromList(self.readValue() as! [Any?]) - case 143: - return NavInfoDto.fromList(self.readValue() as! [Any?]) - case 144: - return NavigationAudioGuidanceSettingsDto.fromList(self.readValue() as! [Any?]) - case 145: - return NavigationDisplayOptionsDto.fromList(self.readValue() as! [Any?]) - case 146: - return NavigationTimeAndDistanceDto.fromList(self.readValue() as! [Any?]) - case 147: - return NavigationViewOptionsDto.fromList(self.readValue() as! [Any?]) - case 148: - return NavigationWaypointDto.fromList(self.readValue() as! [Any?]) - case 149: - return PatternItemDto.fromList(self.readValue() as! [Any?]) - case 150: - return PolygonDto.fromList(self.readValue() as! [Any?]) - case 151: - return PolygonHoleDto.fromList(self.readValue() as! [Any?]) - case 152: - return PolygonOptionsDto.fromList(self.readValue() as! [Any?]) - case 153: - return PolylineDto.fromList(self.readValue() as! [Any?]) - case 154: - return PolylineOptionsDto.fromList(self.readValue() as! [Any?]) - case 155: - return RouteSegmentDto.fromList(self.readValue() as! [Any?]) - case 156: - return RouteSegmentTrafficDataDto.fromList(self.readValue() as! [Any?]) - case 157: - return RouteSegmentTrafficDataRoadStretchRenderingDataDto.fromList(self.readValue() as! [Any?]) - case 158: - return RouteTokenOptionsDto.fromList(self.readValue() as! [Any?]) - case 159: - return RoutingOptionsDto.fromList(self.readValue() as! [Any?]) - case 160: - return SimulationOptionsDto.fromList(self.readValue() as! [Any?]) - case 161: - return SpeedAlertOptionsDto.fromList(self.readValue() as! [Any?]) - case 162: - return SpeedingUpdatedEventDto.fromList(self.readValue() as! [Any?]) - case 163: - return StepInfoDto.fromList(self.readValue() as! [Any?]) - case 164: - return StyleSpanDto.fromList(self.readValue() as! [Any?]) - case 165: - return StyleSpanStrokeStyleDto.fromList(self.readValue() as! [Any?]) - case 166: - return ViewCreationOptionsDto.fromList(self.readValue() as! [Any?]) - default: - return super.readValue(ofType: type) + case 128: + return CameraPositionDto.fromList(readValue() as! [Any?]) + case 129: + return CircleDto.fromList(readValue() as! [Any?]) + case 130: + return CircleOptionsDto.fromList(readValue() as! [Any?]) + case 131: + return DestinationsDto.fromList(readValue() as! [Any?]) + case 132: + return ImageDescriptorDto.fromList(readValue() as! [Any?]) + case 133: + return InfoWindowDto.fromList(readValue() as! [Any?]) + case 134: + return LaneDirectionDto.fromList(readValue() as! [Any?]) + case 135: + return LaneDto.fromList(readValue() as! [Any?]) + case 136: + return LatLngBoundsDto.fromList(readValue() as! [Any?]) + case 137: + return LatLngDto.fromList(readValue() as! [Any?]) + case 138: + return MapOptionsDto.fromList(readValue() as! [Any?]) + case 139: + return MapPaddingDto.fromList(readValue() as! [Any?]) + case 140: + return MarkerAnchorDto.fromList(readValue() as! [Any?]) + case 141: + return MarkerDto.fromList(readValue() as! [Any?]) + case 142: + return MarkerOptionsDto.fromList(readValue() as! [Any?]) + case 143: + return NavInfoDto.fromList(readValue() as! [Any?]) + case 144: + return NavigationAudioGuidanceSettingsDto.fromList(readValue() as! [Any?]) + case 145: + return NavigationDisplayOptionsDto.fromList(readValue() as! [Any?]) + case 146: + return NavigationTimeAndDistanceDto.fromList(readValue() as! [Any?]) + case 147: + return NavigationViewOptionsDto.fromList(readValue() as! [Any?]) + case 148: + return NavigationWaypointDto.fromList(readValue() as! [Any?]) + case 149: + return PatternItemDto.fromList(readValue() as! [Any?]) + case 150: + return PolygonDto.fromList(readValue() as! [Any?]) + case 151: + return PolygonHoleDto.fromList(readValue() as! [Any?]) + case 152: + return PolygonOptionsDto.fromList(readValue() as! [Any?]) + case 153: + return PolylineDto.fromList(readValue() as! [Any?]) + case 154: + return PolylineOptionsDto.fromList(readValue() as! [Any?]) + case 155: + return RouteSegmentDto.fromList(readValue() as! [Any?]) + case 156: + return RouteSegmentTrafficDataDto.fromList(readValue() as! [Any?]) + case 157: + return RouteSegmentTrafficDataRoadStretchRenderingDataDto.fromList(readValue() as! [Any?]) + case 158: + return RouteTokenOptionsDto.fromList(readValue() as! [Any?]) + case 159: + return RoutingOptionsDto.fromList(readValue() as! [Any?]) + case 160: + return SimulationOptionsDto.fromList(readValue() as! [Any?]) + case 161: + return SpeedAlertOptionsDto.fromList(readValue() as! [Any?]) + case 162: + return SpeedingUpdatedEventDto.fromList(readValue() as! [Any?]) + case 163: + return StepInfoDto.fromList(readValue() as! [Any?]) + case 164: + return StyleSpanDto.fromList(readValue() as! [Any?]) + case 165: + return StyleSpanStrokeStyleDto.fromList(readValue() as! [Any?]) + case 166: + return ViewCreationOptionsDto.fromList(readValue() as! [Any?]) + default: + return super.readValue(ofType: type) } } } @@ -6345,11 +7570,11 @@ private class AutoViewEventApiCodecWriter: FlutterStandardWriter { private class AutoViewEventApiCodecReaderWriter: FlutterStandardReaderWriter { override func reader(with data: Data) -> FlutterStandardReader { - return AutoViewEventApiCodecReader(data: data) + AutoViewEventApiCodecReader(data: data) } override func writer(with data: NSMutableData) -> FlutterStandardWriter { - return AutoViewEventApiCodecWriter(data: data) + AutoViewEventApiCodecWriter(data: data) } } @@ -6359,66 +7584,88 @@ class AutoViewEventApiCodec: FlutterStandardMessageCodec { /// 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 onCustomNavigationAutoEvent(event eventArg: String, data dataArg: Any, + completion: @escaping (Result) -> Void) + func onAutoScreenAvailabilityChanged(isAvailable isAvailableArg: Bool, + completion: @escaping (Result) -> Void) } + class AutoViewEventApi: AutoViewEventApiProtocol { private let binaryMessenger: FlutterBinaryMessenger - init(binaryMessenger: FlutterBinaryMessenger){ + init(binaryMessenger: FlutterBinaryMessenger) { self.binaryMessenger = binaryMessenger } + var codec: FlutterStandardMessageCodec { - return AutoViewEventApiCodec.shared + AutoViewEventApiCodec.shared } - func onCustomNavigationAutoEvent(event eventArg: String, data dataArg: Any, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + + func onCustomNavigationAutoEvent(event eventArg: String, data dataArg: Any, + completion: @escaping (Result) -> Void) { + let channelName = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent" + 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))) + completion(.failure(createConnectionError(withChannelName: channelName))) return } - if (listResponse.count > 1) { + if listResponse.count > 1 { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))); + completion(.failure(FlutterError(code: code, message: message, details: details))) } else { - completion(.success(Void())) + completion(.success(())) } } } - func onAutoScreenAvailabilityChanged(isAvailable isAvailableArg: Bool, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + + func onAutoScreenAvailabilityChanged(isAvailable isAvailableArg: Bool, + completion: @escaping (Result) -> Void) { + let channelName = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged" + 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))) + completion(.failure(createConnectionError(withChannelName: channelName))) return } - if (listResponse.count > 1) { + if listResponse.count > 1 { let code: String = listResponse[0] as! String let message: String? = nilOrValue(listResponse[1]) let details: String? = nilOrValue(listResponse[2]) - completion(.failure(FlutterError(code: code, message: message, details: details))); + completion(.failure(FlutterError(code: code, message: message, details: details))) } else { - completion(.success(Void())) + completion(.success(())) } } } } + /// Generated protocol from Pigeon that represents a handler of messages from Flutter. protocol NavigationInspector { func isViewAttachedToSession(viewId: Int64) throws -> Bool } /// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. -class NavigationInspectorSetup { +enum NavigationInspectorSetup { /// The codec used by NavigationInspector. /// Sets up an instance of `NavigationInspector` to handle messages through the `binaryMessenger`. static func setUp(binaryMessenger: FlutterBinaryMessenger, api: NavigationInspector?) { - let isViewAttachedToSessionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession", binaryMessenger: binaryMessenger) - if let api = api { + let isViewAttachedToSessionChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession", + binaryMessenger: binaryMessenger + ) + if let api { isViewAttachedToSessionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] is Int64 ? args[0] as! Int64 : Int64(args[0] as! Int32) diff --git a/lib/src/method_channel/convert/navigation.dart b/lib/src/method_channel/convert/navigation.dart index ef09033a..e310ebc9 100644 --- a/lib/src/method_channel/convert/navigation.dart +++ b/lib/src/method_channel/convert/navigation.dart @@ -216,4 +216,4 @@ extension ConvertTaskRemovedBehavior on TaskRemovedBehavior { return TaskRemovedBehaviorDto.quitService; } } -} \ No newline at end of file +} diff --git a/lib/src/method_channel/messages.g.dart b/lib/src/method_channel/messages.g.dart index 21bffb01..ad7ad4ea 100644 --- a/lib/src/method_channel/messages.g.dart +++ b/lib/src/method_channel/messages.g.dart @@ -1,17 +1,17 @@ // Copyright 2023 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. -// +// // Autogenerated from Pigeon (v15.0.0), do not edit directly. // See also: https://pub.dev/packages/pigeon // ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name, unnecessary_import, no_leading_underscores_for_local_identifiers @@ -29,7 +29,8 @@ 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 []; } @@ -43,6 +44,7 @@ List wrapResponse({Object? result, PlatformException? error, bool empty enum MapViewTypeDto { /// Navigation view supports navigation overlay, and current navigation session is displayed on the map. navigation, + /// Classic map view, without navigation overlay. map, } @@ -52,6 +54,7 @@ enum NavigationUIEnabledPreferenceDto { /// Navigation UI gets enabled if the navigation /// session has already been successfully started. automatic, + /// Navigation UI is disabled. disabled, } @@ -170,134 +173,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, } @@ -306,8 +374,10 @@ enum ManeuverDto { enum DrivingSideDto { /// Drive-on-left side. left, + /// Unspecified side. none, + /// Drive-on-right side. right, } @@ -316,10 +386,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, } @@ -328,31 +401,41 @@ 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, } /// Determines how application should behave when a application task is removed. enum TaskRemovedBehaviorDto { - /// The default state, indicating that navigation guidance, + /// 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, } @@ -481,7 +564,8 @@ class NavigationViewOptionsDto { static NavigationViewOptionsDto decode(Object result) { result as List; return NavigationViewOptionsDto( - navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto.values[result[0]! as int], + navigationUIEnabledPreference: + NavigationUIEnabledPreferenceDto.values[result[0]! as int], ); } } @@ -1182,9 +1266,8 @@ class RouteTokenOptionsDto { result as List; return RouteTokenOptionsDto( routeToken: result[0]! as String, - travelMode: result[1] != null - ? TravelModeDto.values[result[1]! as int] - : null, + travelMode: + result[1] != null ? TravelModeDto.values[result[1]! as int] : null, ); } } @@ -1218,7 +1301,8 @@ class DestinationsDto { result as List; return DestinationsDto( waypoints: (result[0] as List?)!.cast(), - displayOptions: NavigationDisplayOptionsDto.decode(result[1]! as List), + displayOptions: + NavigationDisplayOptionsDto.decode(result[1]! as List), routingOptions: result[2] != null ? RoutingOptionsDto.decode(result[2]! as List) : null, @@ -1280,9 +1364,8 @@ class RoutingOptionsDto { ? RoutingStrategyDto.values[result[1]! as int] : null, targetDistanceMeters: (result[2] as List?)?.cast(), - travelMode: result[3] != null - ? TravelModeDto.values[result[3]! as int] - : null, + travelMode: + result[3] != null ? TravelModeDto.values[result[3]! as int] : null, avoidTolls: result[4] as bool?, avoidFerries: result[5] as bool?, avoidHighways: result[6] as bool?, @@ -1575,10 +1658,12 @@ class RouteSegmentTrafficDataRoadStretchRenderingDataDto { ]; } - static RouteSegmentTrafficDataRoadStretchRenderingDataDto decode(Object result) { + static RouteSegmentTrafficDataRoadStretchRenderingDataDto decode( + Object result) { result as List; return RouteSegmentTrafficDataRoadStretchRenderingDataDto( - style: RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto.values[result[0]! as int], + style: RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto + .values[result[0]! as int], lengthMeters: result[1]! as int, offsetMeters: result[2]! as int, ); @@ -1593,7 +1678,8 @@ class RouteSegmentTrafficDataDto { RouteSegmentTrafficDataStatusDto status; - List roadStretchRenderingDataList; + List + roadStretchRenderingDataList; Object encode() { return [ @@ -1606,7 +1692,8 @@ class RouteSegmentTrafficDataDto { result as List; return RouteSegmentTrafficDataDto( status: RouteSegmentTrafficDataStatusDto.values[result[0]! as int], - roadStretchRenderingDataList: (result[1] as List?)!.cast(), + roadStretchRenderingDataList: (result[1] as List?)! + .cast(), ); } } @@ -1908,19 +1995,19 @@ class _NavigationViewCreationApiCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 128: + case 128: return CameraPositionDto.decode(readValue(buffer)!); - case 129: + case 129: return LatLngBoundsDto.decode(readValue(buffer)!); - case 130: + case 130: return LatLngDto.decode(readValue(buffer)!); - case 131: + case 131: return MapOptionsDto.decode(readValue(buffer)!); - case 132: + case 132: return MapPaddingDto.decode(readValue(buffer)!); - case 133: + case 133: return NavigationViewOptionsDto.decode(readValue(buffer)!); - case 134: + case 134: return ViewCreationOptionsDto.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -1941,11 +2028,14 @@ class NavigationViewCreationApi { : __pigeon_binaryMessenger = binaryMessenger; final BinaryMessenger? __pigeon_binaryMessenger; - static const MessageCodec pigeonChannelCodec = _NavigationViewCreationApiCodec(); + static const MessageCodec pigeonChannelCodec = + _NavigationViewCreationApiCodec(); Future create(ViewCreationOptionsDto msg) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationViewCreationApi.create'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationViewCreationApi.create'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -2038,45 +2128,45 @@ class _MapViewApiCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 128: + case 128: return CameraPositionDto.decode(readValue(buffer)!); - case 129: + case 129: return CircleDto.decode(readValue(buffer)!); - case 130: + case 130: return CircleOptionsDto.decode(readValue(buffer)!); - case 131: + case 131: return ImageDescriptorDto.decode(readValue(buffer)!); - case 132: + case 132: return InfoWindowDto.decode(readValue(buffer)!); - case 133: + case 133: return LatLngBoundsDto.decode(readValue(buffer)!); - case 134: + case 134: return LatLngDto.decode(readValue(buffer)!); - case 135: + case 135: return LatLngDto.decode(readValue(buffer)!); - case 136: + case 136: return MapPaddingDto.decode(readValue(buffer)!); - case 137: + case 137: return MarkerAnchorDto.decode(readValue(buffer)!); - case 138: + case 138: return MarkerDto.decode(readValue(buffer)!); - case 139: + case 139: return MarkerOptionsDto.decode(readValue(buffer)!); - case 140: + case 140: return PatternItemDto.decode(readValue(buffer)!); - case 141: + case 141: return PolygonDto.decode(readValue(buffer)!); - case 142: + case 142: return PolygonHoleDto.decode(readValue(buffer)!); - case 143: + case 143: return PolygonOptionsDto.decode(readValue(buffer)!); - case 144: + case 144: return PolylineDto.decode(readValue(buffer)!); - case 145: + case 145: return PolylineOptionsDto.decode(readValue(buffer)!); - case 146: + case 146: return StyleSpanDto.decode(readValue(buffer)!); - case 147: + case 147: return StyleSpanStrokeStyleDto.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -2095,8 +2185,10 @@ class MapViewApi { static const MessageCodec pigeonChannelCodec = _MapViewApiCodec(); Future awaitMapReady(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -2117,8 +2209,10 @@ class MapViewApi { } Future isMyLocationEnabled(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -2144,14 +2238,16 @@ class MapViewApi { } Future setMyLocationEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, enabled]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2166,8 +2262,10 @@ class MapViewApi { } Future getMyLocation(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -2188,8 +2286,10 @@ class MapViewApi { } Future getMapType(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -2215,14 +2315,16 @@ class MapViewApi { } Future setMapType(int viewId, MapTypeDto mapType) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, mapType.index]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, mapType.index]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2237,14 +2339,16 @@ class MapViewApi { } Future setMapStyle(int viewId, String styleJson) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, styleJson]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, styleJson]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2259,8 +2363,10 @@ class MapViewApi { } Future isNavigationTripProgressBarEnabled(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -2285,15 +2391,18 @@ class MapViewApi { } } - Future setNavigationTripProgressBarEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future setNavigationTripProgressBarEnabled( + int viewId, bool enabled) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, enabled]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2308,8 +2417,10 @@ class MapViewApi { } Future isNavigationHeaderEnabled(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -2335,14 +2446,16 @@ class MapViewApi { } Future setNavigationHeaderEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, enabled]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2357,8 +2470,10 @@ class MapViewApi { } Future isNavigationFooterEnabled(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -2384,14 +2499,16 @@ class MapViewApi { } Future setNavigationFooterEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, enabled]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2406,8 +2523,10 @@ class MapViewApi { } Future isRecenterButtonEnabled(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -2433,14 +2552,16 @@ class MapViewApi { } Future setRecenterButtonEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, enabled]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2455,8 +2576,10 @@ class MapViewApi { } Future isSpeedLimitIconEnabled(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -2482,14 +2605,16 @@ class MapViewApi { } Future setSpeedLimitIconEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, enabled]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2504,8 +2629,10 @@ class MapViewApi { } Future isSpeedometerEnabled(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -2531,14 +2658,16 @@ class MapViewApi { } Future setSpeedometerEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, enabled]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2553,8 +2682,10 @@ class MapViewApi { } Future isTrafficIncidentCardsEnabled(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -2580,14 +2711,16 @@ class MapViewApi { } Future setTrafficIncidentCardsEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, enabled]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2602,8 +2735,10 @@ class MapViewApi { } Future isNavigationUIEnabled(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -2629,14 +2764,16 @@ class MapViewApi { } Future setNavigationUIEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, enabled]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2651,8 +2788,10 @@ class MapViewApi { } Future getCameraPosition(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -2678,8 +2817,10 @@ class MapViewApi { } Future getVisibleRegion(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -2704,15 +2845,19 @@ class MapViewApi { } } - Future followMyLocation(int viewId, CameraPerspectiveDto perspective, double? zoomLevel) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future followMyLocation( + int viewId, CameraPerspectiveDto perspective, double? zoomLevel) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, perspective.index, zoomLevel]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, perspective.index, zoomLevel]) + as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2726,15 +2871,18 @@ class MapViewApi { } } - Future animateCameraToCameraPosition(int viewId, CameraPositionDto cameraPosition, int? duration) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future animateCameraToCameraPosition( + int viewId, CameraPositionDto cameraPosition, int? duration) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, cameraPosition, duration]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, cameraPosition, duration]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2753,15 +2901,18 @@ class MapViewApi { } } - Future animateCameraToLatLng(int viewId, LatLngDto point, int? duration) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future animateCameraToLatLng( + int viewId, LatLngDto point, int? duration) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, point, duration]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, point, duration]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2780,15 +2931,18 @@ class MapViewApi { } } - Future animateCameraToLatLngBounds(int viewId, LatLngBoundsDto bounds, double padding, int? duration) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future animateCameraToLatLngBounds( + int viewId, LatLngBoundsDto bounds, double padding, int? duration) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, bounds, padding, duration]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, bounds, padding, duration]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2807,15 +2961,18 @@ class MapViewApi { } } - Future animateCameraToLatLngZoom(int viewId, LatLngDto point, double zoom, int? duration) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future animateCameraToLatLngZoom( + int viewId, LatLngDto point, double zoom, int? duration) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, point, zoom, duration]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, point, zoom, duration]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2834,15 +2991,19 @@ class MapViewApi { } } - Future animateCameraByScroll(int viewId, double scrollByDx, double scrollByDy, int? duration) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future animateCameraByScroll( + int viewId, double scrollByDx, double scrollByDy, int? duration) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, scrollByDx, scrollByDy, duration]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, scrollByDx, scrollByDy, duration]) + as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2861,15 +3022,19 @@ class MapViewApi { } } - Future animateCameraByZoom(int viewId, double zoomBy, double? focusDx, double? focusDy, int? duration) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future animateCameraByZoom(int viewId, double zoomBy, double? focusDx, + double? focusDy, int? duration) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, zoomBy, focusDx, focusDy, duration]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, zoomBy, focusDx, focusDy, duration]) + as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2888,15 +3053,18 @@ class MapViewApi { } } - Future animateCameraToZoom(int viewId, double zoom, int? duration) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future animateCameraToZoom( + int viewId, double zoom, int? duration) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, zoom, duration]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, zoom, duration]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2915,15 +3083,18 @@ class MapViewApi { } } - Future moveCameraToCameraPosition(int viewId, CameraPositionDto cameraPosition) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future moveCameraToCameraPosition( + int viewId, CameraPositionDto cameraPosition) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, cameraPosition]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, cameraPosition]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2938,8 +3109,10 @@ class MapViewApi { } Future moveCameraToLatLng(int viewId, LatLngDto point) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -2959,15 +3132,18 @@ class MapViewApi { } } - Future moveCameraToLatLngBounds(int viewId, LatLngBoundsDto bounds, double padding) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future moveCameraToLatLngBounds( + int viewId, LatLngBoundsDto bounds, double padding) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, bounds, padding]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, bounds, padding]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2981,15 +3157,18 @@ class MapViewApi { } } - Future moveCameraToLatLngZoom(int viewId, LatLngDto point, double zoom) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future moveCameraToLatLngZoom( + int viewId, LatLngDto point, double zoom) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, point, zoom]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, point, zoom]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3003,15 +3182,18 @@ class MapViewApi { } } - Future moveCameraByScroll(int viewId, double scrollByDx, double scrollByDy) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future moveCameraByScroll( + int viewId, double scrollByDx, double scrollByDy) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, scrollByDx, scrollByDy]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, scrollByDx, scrollByDy]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3025,15 +3207,18 @@ class MapViewApi { } } - Future moveCameraByZoom(int viewId, double zoomBy, double? focusDx, double? focusDy) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future moveCameraByZoom( + int viewId, double zoomBy, double? focusDx, double? focusDy) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, zoomBy, focusDx, focusDy]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, zoomBy, focusDx, focusDy]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3048,8 +3233,10 @@ class MapViewApi { } Future moveCameraToZoom(int viewId, double zoom) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3070,8 +3257,10 @@ class MapViewApi { } Future showRouteOverview(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3092,8 +3281,10 @@ class MapViewApi { } Future getMinZoomPreference(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3119,8 +3310,10 @@ class MapViewApi { } Future getMaxZoomPreference(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3146,8 +3339,10 @@ class MapViewApi { } Future resetMinMaxZoomPreference(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3167,15 +3362,18 @@ class MapViewApi { } } - Future setMinZoomPreference(int viewId, double minZoomPreference) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future setMinZoomPreference( + int viewId, double minZoomPreference) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, minZoomPreference]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, minZoomPreference]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3189,15 +3387,18 @@ class MapViewApi { } } - Future setMaxZoomPreference(int viewId, double maxZoomPreference) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future setMaxZoomPreference( + int viewId, double maxZoomPreference) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, maxZoomPreference]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, maxZoomPreference]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3212,14 +3413,16 @@ class MapViewApi { } Future setMyLocationButtonEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, enabled]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3233,15 +3436,18 @@ class MapViewApi { } } - Future setConsumeMyLocationButtonClickEventsEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future setConsumeMyLocationButtonClickEventsEnabled( + int viewId, bool enabled) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, enabled]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3256,14 +3462,16 @@ class MapViewApi { } Future setZoomGesturesEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, enabled]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3278,14 +3486,16 @@ class MapViewApi { } Future setZoomControlsEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, enabled]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3300,14 +3510,16 @@ class MapViewApi { } Future setCompassEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, enabled]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3322,14 +3534,16 @@ class MapViewApi { } Future setRotateGesturesEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, enabled]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3344,14 +3558,16 @@ class MapViewApi { } Future setScrollGesturesEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, enabled]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3365,15 +3581,18 @@ class MapViewApi { } } - Future setScrollGesturesDuringRotateOrZoomEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future setScrollGesturesDuringRotateOrZoomEnabled( + int viewId, bool enabled) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, enabled]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3388,14 +3607,16 @@ class MapViewApi { } Future setTiltGesturesEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, enabled]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3410,14 +3631,16 @@ class MapViewApi { } Future setMapToolbarEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, enabled]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3432,14 +3655,16 @@ class MapViewApi { } Future setTrafficEnabled(int viewId, bool enabled) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, enabled]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, enabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3454,8 +3679,10 @@ class MapViewApi { } Future isMyLocationButtonEnabled(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3481,8 +3708,10 @@ class MapViewApi { } Future isConsumeMyLocationButtonClickEventsEnabled(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3508,8 +3737,10 @@ class MapViewApi { } Future isZoomGesturesEnabled(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3535,8 +3766,10 @@ class MapViewApi { } Future isZoomControlsEnabled(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3562,8 +3795,10 @@ class MapViewApi { } Future isCompassEnabled(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3589,8 +3824,10 @@ class MapViewApi { } Future isRotateGesturesEnabled(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3616,8 +3853,10 @@ class MapViewApi { } Future isScrollGesturesEnabled(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3643,8 +3882,10 @@ class MapViewApi { } Future isScrollGesturesEnabledDuringRotateOrZoom(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3670,8 +3911,10 @@ class MapViewApi { } Future isTiltGesturesEnabled(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3697,8 +3940,10 @@ class MapViewApi { } Future isMapToolbarEnabled(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3724,8 +3969,10 @@ class MapViewApi { } Future isTrafficEnabled(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3751,8 +3998,10 @@ class MapViewApi { } Future> getMarkers(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3777,15 +4026,18 @@ class MapViewApi { } } - Future> addMarkers(int viewId, List markers) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future> addMarkers( + int viewId, List markers) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, markers]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, markers]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3804,15 +4056,18 @@ class MapViewApi { } } - Future> updateMarkers(int viewId, List markers) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future> updateMarkers( + int viewId, List markers) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, markers]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, markers]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3832,14 +4087,16 @@ class MapViewApi { } Future removeMarkers(int viewId, List markers) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, markers]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, markers]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3854,8 +4111,10 @@ class MapViewApi { } Future clearMarkers(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3876,8 +4135,10 @@ class MapViewApi { } Future clear(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3898,8 +4159,10 @@ class MapViewApi { } Future> getPolygons(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -3924,15 +4187,18 @@ class MapViewApi { } } - Future> addPolygons(int viewId, List polygons) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future> addPolygons( + int viewId, List polygons) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, polygons]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, polygons]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3951,15 +4217,18 @@ class MapViewApi { } } - Future> updatePolygons(int viewId, List polygons) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future> updatePolygons( + int viewId, List polygons) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, polygons]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, polygons]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -3979,14 +4248,16 @@ class MapViewApi { } Future removePolygons(int viewId, List polygons) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, polygons]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, polygons]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -4001,8 +4272,10 @@ class MapViewApi { } Future clearPolygons(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -4023,8 +4296,10 @@ class MapViewApi { } Future> getPolylines(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -4049,15 +4324,18 @@ class MapViewApi { } } - Future> addPolylines(int viewId, List polylines) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future> addPolylines( + int viewId, List polylines) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, polylines]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, polylines]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -4076,15 +4354,18 @@ class MapViewApi { } } - Future> updatePolylines(int viewId, List polylines) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future> updatePolylines( + int viewId, List polylines) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, polylines]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, polylines]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -4104,14 +4385,16 @@ class MapViewApi { } Future removePolylines(int viewId, List polylines) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, polylines]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, polylines]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -4126,8 +4409,10 @@ class MapViewApi { } Future clearPolylines(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -4148,8 +4433,10 @@ class MapViewApi { } Future> getCircles(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -4174,15 +4461,18 @@ class MapViewApi { } } - Future> addCircles(int viewId, List circles) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future> addCircles( + int viewId, List circles) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, circles]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, circles]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -4201,15 +4491,18 @@ class MapViewApi { } } - Future> updateCircles(int viewId, List circles) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future> updateCircles( + int viewId, List circles) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, circles]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, circles]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -4229,14 +4522,16 @@ class MapViewApi { } Future removeCircles(int viewId, List circles) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, circles]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, circles]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -4251,8 +4546,10 @@ class MapViewApi { } Future clearCircles(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -4273,8 +4570,10 @@ class MapViewApi { } Future registerOnCameraChangedListener(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.registerOnCameraChangedListener'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.registerOnCameraChangedListener'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -4295,14 +4594,16 @@ class MapViewApi { } Future setPadding(int viewId, MapPaddingDto padding) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([viewId, padding]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([viewId, padding]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -4317,8 +4618,10 @@ class MapViewApi { } Future getPadding(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -4362,9 +4665,9 @@ class _ImageRegistryApiCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 128: + case 128: return ImageDescriptorDto.decode(readValue(buffer)!); - case 129: + case 129: return ImageDescriptorDto.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -4380,17 +4683,26 @@ class ImageRegistryApi { : __pigeon_binaryMessenger = binaryMessenger; final BinaryMessenger? __pigeon_binaryMessenger; - static const MessageCodec pigeonChannelCodec = _ImageRegistryApiCodec(); + static const MessageCodec pigeonChannelCodec = + _ImageRegistryApiCodec(); - Future registerBitmapImage(String imageId, Uint8List bytes, double imagePixelRatio, double? width, double? height) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future registerBitmapImage( + String imageId, + Uint8List bytes, + double imagePixelRatio, + double? width, + double? height) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([imageId, bytes, imagePixelRatio, width, height]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([imageId, bytes, imagePixelRatio, width, height]) + as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -4410,14 +4722,16 @@ class ImageRegistryApi { } Future unregisterImage(ImageDescriptorDto imageDescriptor) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([imageDescriptor]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([imageDescriptor]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -4432,8 +4746,10 @@ class ImageRegistryApi { } Future> getRegisteredImages() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -4454,13 +4770,16 @@ class ImageRegistryApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as List?)!.cast(); + return (__pigeon_replyList[0] as List?)! + .cast(); } } Future clearRegisteredImages() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -4499,9 +4818,9 @@ class _ViewEventApiCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 128: + case 128: return CameraPositionDto.decode(readValue(buffer)!); - case 129: + case 129: return LatLngDto.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -4520,7 +4839,8 @@ 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); @@ -4534,19 +4854,22 @@ abstract class ViewEventApi { void onMyLocationButtonClicked(int viewId); - void onCameraChanged(int viewId, CameraEventTypeDto eventType, CameraPositionDto position); + void onCameraChanged( + int viewId, CameraEventTypeDto eventType, CameraPositionDto position); static void setup(ViewEventApi? api, {BinaryMessenger? binaryMessenger}) { { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent was 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, @@ -4559,22 +4882,25 @@ abstract class ViewEventApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent was 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, @@ -4587,22 +4913,25 @@ abstract class ViewEventApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked was 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, @@ -4612,22 +4941,25 @@ abstract class ViewEventApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent was 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, @@ -4635,7 +4967,9 @@ abstract class ViewEventApi { 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] == null ? null : MarkerEventTypeDto.values[args[2]! as int]; + final MarkerEventTypeDto? arg_eventType = args[2] == null + ? null + : MarkerEventTypeDto.values[args[2]! as int]; assert(arg_eventType != null, 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent was null, expected non-null MarkerEventTypeDto.'); try { @@ -4643,22 +4977,25 @@ abstract class ViewEventApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was 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, @@ -4666,33 +5003,39 @@ abstract class ViewEventApi { 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] == null ? null : MarkerDragEventTypeDto.values[args[2]! as int]; + final MarkerDragEventTypeDto? arg_eventType = args[2] == null + ? null + : MarkerDragEventTypeDto.values[args[2]! as int]; 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.'); 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked was 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, @@ -4705,22 +5048,25 @@ abstract class ViewEventApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked was 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, @@ -4733,22 +5079,25 @@ abstract class ViewEventApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked was 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, @@ -4761,22 +5110,25 @@ abstract class ViewEventApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged was 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, @@ -4785,26 +5137,30 @@ abstract class ViewEventApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked was 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, @@ -4814,22 +5170,25 @@ abstract class ViewEventApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked was 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, @@ -4839,30 +5198,36 @@ abstract class ViewEventApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged was 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] == null ? null : CameraEventTypeDto.values[args[1]! as int]; + final CameraEventTypeDto? arg_eventType = args[1] == null + ? null + : CameraEventTypeDto.values[args[1]! as int]; 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?); + 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 { @@ -4870,8 +5235,9 @@ abstract class ViewEventApi { 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())); } }); } @@ -4939,37 +5305,38 @@ class _NavigationSessionApiCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 128: + case 128: return DestinationsDto.decode(readValue(buffer)!); - case 129: + case 129: return LatLngDto.decode(readValue(buffer)!); - case 130: + case 130: return LatLngDto.decode(readValue(buffer)!); - case 131: + case 131: return NavigationAudioGuidanceSettingsDto.decode(readValue(buffer)!); - case 132: + case 132: return NavigationDisplayOptionsDto.decode(readValue(buffer)!); - case 133: + case 133: return NavigationTimeAndDistanceDto.decode(readValue(buffer)!); - case 134: + case 134: return NavigationWaypointDto.decode(readValue(buffer)!); - case 135: + case 135: return NavigationWaypointDto.decode(readValue(buffer)!); - case 136: + case 136: return RouteSegmentDto.decode(readValue(buffer)!); - case 137: + case 137: return RouteSegmentDto.decode(readValue(buffer)!); - case 138: + case 138: return RouteSegmentTrafficDataDto.decode(readValue(buffer)!); - case 139: - return RouteSegmentTrafficDataRoadStretchRenderingDataDto.decode(readValue(buffer)!); - case 140: + case 139: + return RouteSegmentTrafficDataRoadStretchRenderingDataDto.decode( + readValue(buffer)!); + case 140: return RouteTokenOptionsDto.decode(readValue(buffer)!); - case 141: + case 141: return RoutingOptionsDto.decode(readValue(buffer)!); - case 142: + case 142: return SimulationOptionsDto.decode(readValue(buffer)!); - case 143: + case 143: return SpeedAlertOptionsDto.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -4985,18 +5352,23 @@ class NavigationSessionApi { : __pigeon_binaryMessenger = binaryMessenger; final BinaryMessenger? __pigeon_binaryMessenger; - static const MessageCodec pigeonChannelCodec = _NavigationSessionApiCodec(); + static const MessageCodec pigeonChannelCodec = + _NavigationSessionApiCodec(); /// General. - Future createNavigationSession(bool abnormalTerminationReportingEnabled, TaskRemovedBehaviorDto behavior) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future createNavigationSession(bool abnormalTerminationReportingEnabled, + TaskRemovedBehaviorDto behavior) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([abnormalTerminationReportingEnabled, behavior.index]) as List?; + final List? __pigeon_replyList = await __pigeon_channel.send( + [abnormalTerminationReportingEnabled, behavior.index]) + as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -5011,8 +5383,10 @@ class NavigationSessionApi { } Future isInitialized() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5038,8 +5412,10 @@ class NavigationSessionApi { } Future cleanup() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5059,15 +5435,22 @@ class NavigationSessionApi { } } - Future showTermsAndConditionsDialog(String title, String companyName, bool shouldOnlyShowDriverAwarenessDisclaimer) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future showTermsAndConditionsDialog(String title, String companyName, + bool shouldOnlyShowDriverAwarenessDisclaimer) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([title, companyName, shouldOnlyShowDriverAwarenessDisclaimer]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([ + title, + companyName, + shouldOnlyShowDriverAwarenessDisclaimer + ]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -5087,8 +5470,10 @@ class NavigationSessionApi { } Future areTermsAccepted() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5114,8 +5499,10 @@ class NavigationSessionApi { } Future resetTermsAccepted() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5136,8 +5523,10 @@ class NavigationSessionApi { } Future getNavSDKVersion() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5164,8 +5553,10 @@ class NavigationSessionApi { /// Navigation. Future isGuidanceRunning() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5191,8 +5582,10 @@ class NavigationSessionApi { } Future startGuidance() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5213,8 +5606,10 @@ class NavigationSessionApi { } Future stopGuidance() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5235,8 +5630,10 @@ class NavigationSessionApi { } Future setDestinations(DestinationsDto destinations) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5262,8 +5659,10 @@ class NavigationSessionApi { } Future clearDestinations() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5284,8 +5683,10 @@ class NavigationSessionApi { } Future continueToNextDestination() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5306,8 +5707,10 @@ class NavigationSessionApi { } Future getCurrentTimeAndDistance() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5332,9 +5735,12 @@ class NavigationSessionApi { } } - Future setAudioGuidance(NavigationAudioGuidanceSettingsDto settings) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future setAudioGuidance( + NavigationAudioGuidanceSettingsDto settings) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5355,8 +5761,10 @@ class NavigationSessionApi { } Future setSpeedAlertOptions(SpeedAlertOptionsDto options) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5377,8 +5785,10 @@ class NavigationSessionApi { } Future> getRouteSegments() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5399,13 +5809,16 @@ class NavigationSessionApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as List?)!.cast(); + return (__pigeon_replyList[0] as List?)! + .cast(); } } Future> getTraveledRoute() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5431,8 +5844,10 @@ class NavigationSessionApi { } Future getCurrentRouteSegment() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5454,8 +5869,10 @@ class NavigationSessionApi { /// Simulation Future setUserLocation(LatLngDto location) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5476,8 +5893,10 @@ class NavigationSessionApi { } Future removeUserLocation() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5498,8 +5917,10 @@ class NavigationSessionApi { } Future simulateLocationsAlongExistingRoute() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5519,9 +5940,12 @@ class NavigationSessionApi { } } - Future simulateLocationsAlongExistingRouteWithOptions(SimulationOptionsDto options) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future simulateLocationsAlongExistingRouteWithOptions( + SimulationOptionsDto options) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5541,9 +5965,12 @@ class NavigationSessionApi { } } - Future simulateLocationsAlongNewRoute(List waypoints) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future simulateLocationsAlongNewRoute( + List waypoints) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5568,15 +5995,19 @@ class NavigationSessionApi { } } - Future simulateLocationsAlongNewRouteWithRoutingOptions(List waypoints, RoutingOptionsDto routingOptions) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future simulateLocationsAlongNewRouteWithRoutingOptions( + List waypoints, + RoutingOptionsDto routingOptions) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([waypoints, routingOptions]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([waypoints, routingOptions]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -5595,15 +6026,22 @@ class NavigationSessionApi { } } - Future simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(List waypoints, RoutingOptionsDto routingOptions, SimulationOptionsDto simulationOptions) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future + simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( + List waypoints, + RoutingOptionsDto routingOptions, + SimulationOptionsDto simulationOptions) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([waypoints, routingOptions, simulationOptions]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([waypoints, routingOptions, simulationOptions]) + as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -5623,8 +6061,10 @@ class NavigationSessionApi { } Future pauseSimulation() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5645,8 +6085,10 @@ class NavigationSessionApi { } Future resumeSimulation() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5668,8 +6110,10 @@ class NavigationSessionApi { /// Simulation (iOS only) Future allowBackgroundLocationUpdates(bool allow) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5691,8 +6135,10 @@ class NavigationSessionApi { /// Road snapped location updates. Future enableRoadSnappedLocationUpdates() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5713,8 +6159,10 @@ class NavigationSessionApi { } Future disableRoadSnappedLocationUpdates() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5735,15 +6183,18 @@ class NavigationSessionApi { } /// Enable Turn-by-Turn navigation events. - Future enableTurnByTurnNavigationEvents(int? numNextStepsToPreview) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future enableTurnByTurnNavigationEvents( + int? numNextStepsToPreview) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([numNextStepsToPreview]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([numNextStepsToPreview]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -5758,8 +6209,10 @@ class NavigationSessionApi { } Future disableTurnByTurnNavigationEvents() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -5779,15 +6232,22 @@ class NavigationSessionApi { } } - Future registerRemainingTimeOrDistanceChangedListener(int remainingTimeThresholdSeconds, int remainingDistanceThresholdMeters) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future registerRemainingTimeOrDistanceChangedListener( + int remainingTimeThresholdSeconds, + int remainingDistanceThresholdMeters) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([remainingTimeThresholdSeconds, remainingDistanceThresholdMeters]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([ + remainingTimeThresholdSeconds, + remainingDistanceThresholdMeters + ]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -5838,21 +6298,21 @@ class _NavigationSessionEventApiCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 128: + case 128: return LaneDirectionDto.decode(readValue(buffer)!); - case 129: + case 129: return LaneDto.decode(readValue(buffer)!); - case 130: + case 130: return LatLngDto.decode(readValue(buffer)!); - case 131: + case 131: return NavInfoDto.decode(readValue(buffer)!); - case 132: + case 132: return NavigationWaypointDto.decode(readValue(buffer)!); - case 133: + case 133: return SpeedingUpdatedEventDto.decode(readValue(buffer)!); - case 134: + case 134: return StepInfoDto.decode(readValue(buffer)!); - case 135: + case 135: return StepInfoDto.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -5861,7 +6321,8 @@ class _NavigationSessionEventApiCodec extends StandardMessageCodec { } abstract class NavigationSessionEventApi { - static const MessageCodec pigeonChannelCodec = _NavigationSessionEventApiCodec(); + static const MessageCodec pigeonChannelCodec = + _NavigationSessionEventApiCodec(); void onSpeedingUpdated(SpeedingUpdatedEventDto msg); @@ -5873,7 +6334,8 @@ abstract class NavigationSessionEventApi { void onRouteChanged(); - void onRemainingTimeOrDistanceChanged(double remainingTime, double remainingDistance); + void onRemainingTimeOrDistanceChanged( + double remainingTime, double remainingDistance); /// Android-only event. void onTrafficUpdated(); @@ -5887,19 +6349,23 @@ abstract class NavigationSessionEventApi { /// Turn-by-Turn navigation events. void onNavInfo(NavInfoDto navInfo); - static void setup(NavigationSessionEventApi? api, {BinaryMessenger? binaryMessenger}) { + static void setup(NavigationSessionEventApi? api, + {BinaryMessenger? binaryMessenger}) { { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated was 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?); + 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 { @@ -5907,22 +6373,25 @@ 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated was 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, @@ -5932,22 +6401,25 @@ 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated was 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, @@ -5957,24 +6429,28 @@ 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival was 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?); + 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 { @@ -5982,15 +6458,18 @@ 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); @@ -6001,22 +6480,25 @@ 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was 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, @@ -6025,19 +6507,23 @@ abstract class NavigationSessionEventApi { assert(arg_remainingDistance != null, 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was null, expected non-null double.'); try { - api.onRemainingTimeOrDistanceChanged(arg_remainingTime!, arg_remainingDistance!); + api.onRemainingTimeOrDistanceChanged( + arg_remainingTime!, arg_remainingDistance!); 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); @@ -6048,15 +6534,18 @@ 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); @@ -6067,22 +6556,25 @@ 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate was 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, @@ -6092,22 +6584,25 @@ 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo was 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, @@ -6117,8 +6612,9 @@ 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())); } }); } @@ -6198,45 +6694,45 @@ class _AutoMapViewApiCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 128: + case 128: return CameraPositionDto.decode(readValue(buffer)!); - case 129: + case 129: return CircleDto.decode(readValue(buffer)!); - case 130: + case 130: return CircleOptionsDto.decode(readValue(buffer)!); - case 131: + case 131: return ImageDescriptorDto.decode(readValue(buffer)!); - case 132: + case 132: return InfoWindowDto.decode(readValue(buffer)!); - case 133: + case 133: return LatLngBoundsDto.decode(readValue(buffer)!); - case 134: + case 134: return LatLngDto.decode(readValue(buffer)!); - case 135: + case 135: return LatLngDto.decode(readValue(buffer)!); - case 136: + case 136: return MapPaddingDto.decode(readValue(buffer)!); - case 137: + case 137: return MarkerAnchorDto.decode(readValue(buffer)!); - case 138: + case 138: return MarkerDto.decode(readValue(buffer)!); - case 139: + case 139: return MarkerOptionsDto.decode(readValue(buffer)!); - case 140: + case 140: return PatternItemDto.decode(readValue(buffer)!); - case 141: + case 141: return PolygonDto.decode(readValue(buffer)!); - case 142: + case 142: return PolygonHoleDto.decode(readValue(buffer)!); - case 143: + case 143: return PolygonOptionsDto.decode(readValue(buffer)!); - case 144: + case 144: return PolylineDto.decode(readValue(buffer)!); - case 145: + case 145: return PolylineOptionsDto.decode(readValue(buffer)!); - case 146: + case 146: return StyleSpanDto.decode(readValue(buffer)!); - case 147: + case 147: return StyleSpanStrokeStyleDto.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -6252,11 +6748,14 @@ class AutoMapViewApi { : __pigeon_binaryMessenger = binaryMessenger; final BinaryMessenger? __pigeon_binaryMessenger; - static const MessageCodec pigeonChannelCodec = _AutoMapViewApiCodec(); + static const MessageCodec pigeonChannelCodec = + _AutoMapViewApiCodec(); Future isMyLocationEnabled() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -6282,8 +6781,10 @@ class AutoMapViewApi { } Future setMyLocationEnabled(bool enabled) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -6304,8 +6805,10 @@ class AutoMapViewApi { } Future getMyLocation() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -6326,8 +6829,10 @@ class AutoMapViewApi { } Future getMapType() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -6353,8 +6858,10 @@ class AutoMapViewApi { } Future setMapType(MapTypeDto mapType) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -6375,8 +6882,10 @@ class AutoMapViewApi { } Future setMapStyle(String styleJson) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -6397,8 +6906,10 @@ class AutoMapViewApi { } Future getCameraPosition() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -6424,8 +6935,10 @@ class AutoMapViewApi { } Future getVisibleRegion() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -6450,15 +6963,18 @@ class AutoMapViewApi { } } - Future followMyLocation(CameraPerspectiveDto perspective, double? zoomLevel) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future followMyLocation( + CameraPerspectiveDto perspective, double? zoomLevel) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([perspective.index, zoomLevel]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([perspective.index, zoomLevel]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -6472,15 +6988,18 @@ class AutoMapViewApi { } } - Future animateCameraToCameraPosition(CameraPositionDto cameraPosition, int? duration) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future animateCameraToCameraPosition( + CameraPositionDto cameraPosition, int? duration) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([cameraPosition, duration]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([cameraPosition, duration]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -6500,14 +7019,16 @@ class AutoMapViewApi { } Future animateCameraToLatLng(LatLngDto point, int? duration) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([point, duration]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([point, duration]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -6526,15 +7047,18 @@ class AutoMapViewApi { } } - Future animateCameraToLatLngBounds(LatLngBoundsDto bounds, double padding, int? duration) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future animateCameraToLatLngBounds( + LatLngBoundsDto bounds, double padding, int? duration) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([bounds, padding, duration]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([bounds, padding, duration]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -6553,15 +7077,18 @@ class AutoMapViewApi { } } - Future animateCameraToLatLngZoom(LatLngDto point, double zoom, int? duration) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future animateCameraToLatLngZoom( + LatLngDto point, double zoom, int? duration) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([point, zoom, duration]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([point, zoom, duration]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -6580,15 +7107,18 @@ class AutoMapViewApi { } } - Future animateCameraByScroll(double scrollByDx, double scrollByDy, int? duration) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future animateCameraByScroll( + double scrollByDx, double scrollByDy, int? duration) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([scrollByDx, scrollByDy, duration]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([scrollByDx, scrollByDy, duration]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -6607,15 +7137,18 @@ class AutoMapViewApi { } } - Future animateCameraByZoom(double zoomBy, double? focusDx, double? focusDy, int? duration) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future animateCameraByZoom( + double zoomBy, double? focusDx, double? focusDy, int? duration) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([zoomBy, focusDx, focusDy, duration]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([zoomBy, focusDx, focusDy, duration]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -6635,14 +7168,16 @@ class AutoMapViewApi { } Future animateCameraToZoom(double zoom, int? duration) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([zoom, duration]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([zoom, duration]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -6661,15 +7196,18 @@ class AutoMapViewApi { } } - Future moveCameraToCameraPosition(CameraPositionDto cameraPosition) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future moveCameraToCameraPosition( + CameraPositionDto cameraPosition) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([cameraPosition]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([cameraPosition]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -6684,8 +7222,10 @@ class AutoMapViewApi { } Future moveCameraToLatLng(LatLngDto point) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -6705,15 +7245,18 @@ class AutoMapViewApi { } } - Future moveCameraToLatLngBounds(LatLngBoundsDto bounds, double padding) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future moveCameraToLatLngBounds( + LatLngBoundsDto bounds, double padding) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([bounds, padding]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([bounds, padding]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -6728,8 +7271,10 @@ class AutoMapViewApi { } Future moveCameraToLatLngZoom(LatLngDto point, double zoom) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -6750,14 +7295,16 @@ class AutoMapViewApi { } Future moveCameraByScroll(double scrollByDx, double scrollByDy) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([scrollByDx, scrollByDy]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([scrollByDx, scrollByDy]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -6771,15 +7318,18 @@ class AutoMapViewApi { } } - Future moveCameraByZoom(double zoomBy, double? focusDx, double? focusDy) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future moveCameraByZoom( + double zoomBy, double? focusDx, double? focusDy) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([zoomBy, focusDx, focusDy]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([zoomBy, focusDx, focusDy]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -6794,8 +7344,10 @@ class AutoMapViewApi { } Future moveCameraToZoom(double zoom) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -6816,8 +7368,10 @@ class AutoMapViewApi { } Future getMinZoomPreference() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -6843,8 +7397,10 @@ class AutoMapViewApi { } Future getMaxZoomPreference() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -6870,8 +7426,10 @@ class AutoMapViewApi { } Future resetMinMaxZoomPreference() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -6892,14 +7450,16 @@ class AutoMapViewApi { } Future setMinZoomPreference(double minZoomPreference) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([minZoomPreference]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([minZoomPreference]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -6914,14 +7474,16 @@ class AutoMapViewApi { } Future setMaxZoomPreference(double maxZoomPreference) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([maxZoomPreference]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([maxZoomPreference]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -6936,8 +7498,10 @@ class AutoMapViewApi { } Future setMyLocationButtonEnabled(bool enabled) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -6957,9 +7521,12 @@ class AutoMapViewApi { } } - Future setConsumeMyLocationButtonClickEventsEnabled(bool enabled) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future setConsumeMyLocationButtonClickEventsEnabled( + bool enabled) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -6980,8 +7547,10 @@ class AutoMapViewApi { } Future setZoomGesturesEnabled(bool enabled) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7002,8 +7571,10 @@ class AutoMapViewApi { } Future setZoomControlsEnabled(bool enabled) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7024,8 +7595,10 @@ class AutoMapViewApi { } Future setCompassEnabled(bool enabled) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7046,8 +7619,10 @@ class AutoMapViewApi { } Future setRotateGesturesEnabled(bool enabled) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7068,8 +7643,10 @@ class AutoMapViewApi { } Future setScrollGesturesEnabled(bool enabled) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7090,8 +7667,10 @@ class AutoMapViewApi { } Future setScrollGesturesDuringRotateOrZoomEnabled(bool enabled) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7112,8 +7691,10 @@ class AutoMapViewApi { } Future setTiltGesturesEnabled(bool enabled) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7134,8 +7715,10 @@ class AutoMapViewApi { } Future setMapToolbarEnabled(bool enabled) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7156,8 +7739,10 @@ class AutoMapViewApi { } Future setTrafficEnabled(bool enabled) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7178,8 +7763,10 @@ class AutoMapViewApi { } Future isMyLocationButtonEnabled() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7205,8 +7792,10 @@ class AutoMapViewApi { } Future isConsumeMyLocationButtonClickEventsEnabled() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7232,8 +7821,10 @@ class AutoMapViewApi { } Future isZoomGesturesEnabled() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7259,8 +7850,10 @@ class AutoMapViewApi { } Future isZoomControlsEnabled() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7286,8 +7879,10 @@ class AutoMapViewApi { } Future isCompassEnabled() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7313,8 +7908,10 @@ class AutoMapViewApi { } Future isRotateGesturesEnabled() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7340,8 +7937,10 @@ class AutoMapViewApi { } Future isScrollGesturesEnabled() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7367,8 +7966,10 @@ class AutoMapViewApi { } Future isScrollGesturesEnabledDuringRotateOrZoom() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7394,8 +7995,10 @@ class AutoMapViewApi { } Future isTiltGesturesEnabled() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7421,8 +8024,10 @@ class AutoMapViewApi { } Future isMapToolbarEnabled() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7448,8 +8053,10 @@ class AutoMapViewApi { } Future isTrafficEnabled() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7475,8 +8082,10 @@ class AutoMapViewApi { } Future> getMarkers() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7502,8 +8111,10 @@ class AutoMapViewApi { } Future> addMarkers(List markers) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7529,8 +8140,10 @@ class AutoMapViewApi { } Future> updateMarkers(List markers) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7556,8 +8169,10 @@ class AutoMapViewApi { } Future removeMarkers(List markers) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7578,8 +8193,10 @@ class AutoMapViewApi { } Future clearMarkers() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7600,8 +8217,10 @@ class AutoMapViewApi { } Future clear() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7622,8 +8241,10 @@ class AutoMapViewApi { } Future> getPolygons() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7649,8 +8270,10 @@ class AutoMapViewApi { } Future> addPolygons(List polygons) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7676,8 +8299,10 @@ class AutoMapViewApi { } Future> updatePolygons(List polygons) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7703,8 +8328,10 @@ class AutoMapViewApi { } Future removePolygons(List polygons) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7725,8 +8352,10 @@ class AutoMapViewApi { } Future clearPolygons() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7747,8 +8376,10 @@ class AutoMapViewApi { } Future> getPolylines() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7774,8 +8405,10 @@ class AutoMapViewApi { } Future> addPolylines(List polylines) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7800,9 +8433,12 @@ class AutoMapViewApi { } } - Future> updatePolylines(List polylines) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future> updatePolylines( + List polylines) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7828,8 +8464,10 @@ class AutoMapViewApi { } Future removePolylines(List polylines) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7850,8 +8488,10 @@ class AutoMapViewApi { } Future clearPolylines() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7872,8 +8512,10 @@ class AutoMapViewApi { } Future> getCircles() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7899,8 +8541,10 @@ class AutoMapViewApi { } Future> addCircles(List circles) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7926,8 +8570,10 @@ class AutoMapViewApi { } Future> updateCircles(List circles) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7953,8 +8599,10 @@ class AutoMapViewApi { } Future removeCircles(List circles) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7975,8 +8623,10 @@ class AutoMapViewApi { } Future clearCircles() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -7997,8 +8647,10 @@ class AutoMapViewApi { } Future registerOnCameraChangedListener() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.registerOnCameraChangedListener'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.registerOnCameraChangedListener'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -8019,8 +8671,10 @@ class AutoMapViewApi { } Future isAutoScreenAvailable() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -8046,8 +8700,10 @@ class AutoMapViewApi { } Future setPadding(MapPaddingDto padding) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -8068,8 +8724,10 @@ class AutoMapViewApi { } Future getPadding() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -8224,83 +8882,84 @@ class _AutoViewEventApiCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 128: + case 128: return CameraPositionDto.decode(readValue(buffer)!); - case 129: + case 129: return CircleDto.decode(readValue(buffer)!); - case 130: + case 130: return CircleOptionsDto.decode(readValue(buffer)!); - case 131: + case 131: return DestinationsDto.decode(readValue(buffer)!); - case 132: + case 132: return ImageDescriptorDto.decode(readValue(buffer)!); - case 133: + case 133: return InfoWindowDto.decode(readValue(buffer)!); - case 134: + case 134: return LaneDirectionDto.decode(readValue(buffer)!); - case 135: + case 135: return LaneDto.decode(readValue(buffer)!); - case 136: + case 136: return LatLngBoundsDto.decode(readValue(buffer)!); - case 137: + case 137: return LatLngDto.decode(readValue(buffer)!); - case 138: + case 138: return MapOptionsDto.decode(readValue(buffer)!); - case 139: + case 139: return MapPaddingDto.decode(readValue(buffer)!); - case 140: + case 140: return MarkerAnchorDto.decode(readValue(buffer)!); - case 141: + case 141: return MarkerDto.decode(readValue(buffer)!); - case 142: + case 142: return MarkerOptionsDto.decode(readValue(buffer)!); - case 143: + case 143: return NavInfoDto.decode(readValue(buffer)!); - case 144: + case 144: return NavigationAudioGuidanceSettingsDto.decode(readValue(buffer)!); - case 145: + case 145: return NavigationDisplayOptionsDto.decode(readValue(buffer)!); - case 146: + case 146: return NavigationTimeAndDistanceDto.decode(readValue(buffer)!); - case 147: + case 147: return NavigationViewOptionsDto.decode(readValue(buffer)!); - case 148: + case 148: return NavigationWaypointDto.decode(readValue(buffer)!); - case 149: + case 149: return PatternItemDto.decode(readValue(buffer)!); - case 150: + case 150: return PolygonDto.decode(readValue(buffer)!); - case 151: + case 151: return PolygonHoleDto.decode(readValue(buffer)!); - case 152: + case 152: return PolygonOptionsDto.decode(readValue(buffer)!); - case 153: + case 153: return PolylineDto.decode(readValue(buffer)!); - case 154: + case 154: return PolylineOptionsDto.decode(readValue(buffer)!); - case 155: + case 155: return RouteSegmentDto.decode(readValue(buffer)!); - case 156: + case 156: return RouteSegmentTrafficDataDto.decode(readValue(buffer)!); - case 157: - return RouteSegmentTrafficDataRoadStretchRenderingDataDto.decode(readValue(buffer)!); - case 158: + case 157: + return RouteSegmentTrafficDataRoadStretchRenderingDataDto.decode( + readValue(buffer)!); + case 158: return RouteTokenOptionsDto.decode(readValue(buffer)!); - case 159: + case 159: return RoutingOptionsDto.decode(readValue(buffer)!); - case 160: + case 160: return SimulationOptionsDto.decode(readValue(buffer)!); - case 161: + case 161: return SpeedAlertOptionsDto.decode(readValue(buffer)!); - case 162: + case 162: return SpeedingUpdatedEventDto.decode(readValue(buffer)!); - case 163: + case 163: return StepInfoDto.decode(readValue(buffer)!); - case 164: + case 164: return StyleSpanDto.decode(readValue(buffer)!); - case 165: + case 165: return StyleSpanStrokeStyleDto.decode(readValue(buffer)!); - case 166: + case 166: return ViewCreationOptionsDto.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -8309,7 +8968,8 @@ class _AutoViewEventApiCodec extends StandardMessageCodec { } abstract class AutoViewEventApi { - static const MessageCodec pigeonChannelCodec = _AutoViewEventApiCodec(); + static const MessageCodec pigeonChannelCodec = + _AutoViewEventApiCodec(); void onCustomNavigationAutoEvent(String event, Object data); @@ -8317,15 +8977,17 @@ abstract class AutoViewEventApi { static void setup(AutoViewEventApi? api, {BinaryMessenger? binaryMessenger}) { { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent was 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, @@ -8338,22 +9000,25 @@ abstract class AutoViewEventApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged was 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, @@ -8363,8 +9028,9 @@ abstract class AutoViewEventApi { 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())); } }); } @@ -8380,11 +9046,14 @@ class NavigationInspector { : __pigeon_binaryMessenger = binaryMessenger; final BinaryMessenger? __pigeon_binaryMessenger; - static const MessageCodec pigeonChannelCodec = StandardMessageCodec(); + static const MessageCodec pigeonChannelCodec = + StandardMessageCodec(); Future isViewAttachedToSession(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, diff --git a/lib/src/types/navigation_initialization_params.dart b/lib/src/types/navigation_initialization_params.dart index 10ab22a7..71170dbc 100644 --- a/lib/src/types/navigation_initialization_params.dart +++ b/lib/src/types/navigation_initialization_params.dart @@ -15,10 +15,10 @@ /// Determines how application should behave when a application task is removed. /// {@category Navigation} enum TaskRemovedBehavior { - /// The default state, indicating that navigation guidance, + /// 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, -} \ No newline at end of file +} diff --git a/pigeons/messages.dart b/pigeons/messages.dart index a71eed81..2d30811f 100644 --- a/pigeons/messages.dart +++ b/pigeons/messages.dart @@ -1184,7 +1184,7 @@ class NavInfoDto { /// Determines how application should behave when a application task is removed. enum TaskRemovedBehaviorDto { - /// The default state, indicating that navigation guidance, + /// The default state, indicating that navigation guidance, /// location updates, and notification should persist after user removes the application task. continueService, @@ -1196,7 +1196,8 @@ enum TaskRemovedBehaviorDto { abstract class NavigationSessionApi { /// General. @async - void createNavigationSession(bool abnormalTerminationReportingEnabled, TaskRemovedBehaviorDto behavior); + void createNavigationSession(bool abnormalTerminationReportingEnabled, + TaskRemovedBehaviorDto behavior); bool isInitialized(); void cleanup(); @async diff --git a/test/google_navigation_flutter_test.dart b/test/google_navigation_flutter_test.dart index 29fd3e30..99a186b2 100644 --- a/test/google_navigation_flutter_test.dart +++ b/test/google_navigation_flutter_test.dart @@ -695,8 +695,8 @@ void main() { // Initialize session and session controller. await GoogleMapsNavigator.initializeNavigationSession( abnormalTerminationReportingEnabled: false); - VerificationResult result = - verify(sessionMockApi.createNavigationSession(captureAny)); + VerificationResult result = verify( + sessionMockApi.createNavigationSession(captureAny, captureAny)); expect(result.captured[0] as bool, false); // Start/stop guidance. diff --git a/test/google_navigation_flutter_test.mocks.dart b/test/google_navigation_flutter_test.mocks.dart index 882cf015..cfe8c5df 100644 --- a/test/google_navigation_flutter_test.mocks.dart +++ b/test/google_navigation_flutter_test.mocks.dart @@ -105,11 +105,16 @@ class MockTestNavigationSessionApi extends _i1.Mock @override _i4.Future createNavigationSession( - bool? abnormalTerminationReportingEnabled) => + bool? abnormalTerminationReportingEnabled, + _i2.TaskRemovedBehaviorDto? behavior, + ) => (super.noSuchMethod( Invocation.method( #createNavigationSession, - [abnormalTerminationReportingEnabled], + [ + abnormalTerminationReportingEnabled, + behavior, + ], ), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), diff --git a/test/messages_test.g.dart b/test/messages_test.g.dart index 4b23bdfc..e8d2c30b 100644 --- a/test/messages_test.g.dart +++ b/test/messages_test.g.dart @@ -1,17 +1,17 @@ // Copyright 2023 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. -// +// // Autogenerated from Pigeon (v15.0.0), do not edit directly. // See also: https://pub.dev/packages/pigeon // ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, unnecessary_import, no_leading_underscores_for_local_identifiers @@ -96,45 +96,45 @@ class _TestMapViewApiCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 128: + case 128: return CameraPositionDto.decode(readValue(buffer)!); - case 129: + case 129: return CircleDto.decode(readValue(buffer)!); - case 130: + case 130: return CircleOptionsDto.decode(readValue(buffer)!); - case 131: + case 131: return ImageDescriptorDto.decode(readValue(buffer)!); - case 132: + case 132: return InfoWindowDto.decode(readValue(buffer)!); - case 133: + case 133: return LatLngBoundsDto.decode(readValue(buffer)!); - case 134: + case 134: return LatLngDto.decode(readValue(buffer)!); - case 135: + case 135: return LatLngDto.decode(readValue(buffer)!); - case 136: + case 136: return MapPaddingDto.decode(readValue(buffer)!); - case 137: + case 137: return MarkerAnchorDto.decode(readValue(buffer)!); - case 138: + case 138: return MarkerDto.decode(readValue(buffer)!); - case 139: + case 139: return MarkerOptionsDto.decode(readValue(buffer)!); - case 140: + case 140: return PatternItemDto.decode(readValue(buffer)!); - case 141: + case 141: return PolygonDto.decode(readValue(buffer)!); - case 142: + case 142: return PolygonHoleDto.decode(readValue(buffer)!); - case 143: + case 143: return PolygonOptionsDto.decode(readValue(buffer)!); - case 144: + case 144: return PolylineDto.decode(readValue(buffer)!); - case 145: + case 145: return PolylineOptionsDto.decode(readValue(buffer)!); - case 146: + case 146: return StyleSpanDto.decode(readValue(buffer)!); - case 147: + case 147: return StyleSpanStrokeStyleDto.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -143,8 +143,10 @@ class _TestMapViewApiCodec extends StandardMessageCodec { } abstract class TestMapViewApi { - static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => TestDefaultBinaryMessengerBinding.instance; - static const MessageCodec pigeonChannelCodec = _TestMapViewApiCodec(); + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => + TestDefaultBinaryMessengerBinding.instance; + static const MessageCodec pigeonChannelCodec = + _TestMapViewApiCodec(); Future awaitMapReady(int viewId); @@ -196,19 +198,26 @@ abstract class TestMapViewApi { LatLngBoundsDto getVisibleRegion(int viewId); - void followMyLocation(int viewId, CameraPerspectiveDto perspective, double? zoomLevel); + void followMyLocation( + int viewId, CameraPerspectiveDto perspective, double? zoomLevel); - Future animateCameraToCameraPosition(int viewId, CameraPositionDto cameraPosition, int? duration); + Future animateCameraToCameraPosition( + int viewId, CameraPositionDto cameraPosition, int? duration); - Future animateCameraToLatLng(int viewId, LatLngDto point, int? duration); + Future animateCameraToLatLng( + int viewId, LatLngDto point, int? duration); - Future animateCameraToLatLngBounds(int viewId, LatLngBoundsDto bounds, double padding, int? duration); + Future animateCameraToLatLngBounds( + int viewId, LatLngBoundsDto bounds, double padding, int? duration); - Future animateCameraToLatLngZoom(int viewId, LatLngDto point, double zoom, int? duration); + Future animateCameraToLatLngZoom( + int viewId, LatLngDto point, double zoom, int? duration); - Future animateCameraByScroll(int viewId, double scrollByDx, double scrollByDy, 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 animateCameraByZoom(int viewId, double zoomBy, double? focusDx, + double? focusDy, int? duration); Future animateCameraToZoom(int viewId, double zoom, int? duration); @@ -216,13 +225,15 @@ 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); @@ -332,15 +343,20 @@ abstract class TestMapViewApi { static void setup(TestMapViewApi? api, {BinaryMessenger? binaryMessenger}) { { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady was 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, @@ -350,22 +366,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled was 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, @@ -375,22 +397,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled was 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, @@ -403,22 +431,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation was 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, @@ -428,22 +462,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType was 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, @@ -453,27 +493,34 @@ abstract class TestMapViewApi { return [output.index]; } 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType was 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.setMapType was null, expected non-null int.'); - final MapTypeDto? arg_mapType = args[1] == null ? null : MapTypeDto.values[args[1]! as int]; + final MapTypeDto? arg_mapType = + args[1] == null ? null : MapTypeDto.values[args[1]! as int]; assert(arg_mapType != null, 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType was null, expected non-null MapTypeDto.'); try { @@ -481,22 +528,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle was 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, @@ -509,47 +562,60 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled was 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!); + 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())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled was 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, @@ -562,22 +628,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled was 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, @@ -587,22 +659,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled was 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, @@ -615,22 +693,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled was 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, @@ -640,22 +724,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled was 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, @@ -668,22 +758,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled was 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, @@ -693,22 +789,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled was 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, @@ -721,22 +823,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled was 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, @@ -746,22 +854,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled was 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, @@ -774,22 +888,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled was 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, @@ -799,22 +919,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled was 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, @@ -827,22 +953,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled was 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, @@ -852,22 +984,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled was 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, @@ -880,22 +1018,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled was 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, @@ -905,22 +1049,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled was 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, @@ -933,22 +1083,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition was 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, @@ -958,22 +1114,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion was 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, @@ -983,27 +1145,35 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation was 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] == null ? null : CameraPerspectiveDto.values[args[1]! as int]; + final CameraPerspectiveDto? arg_perspective = args[1] == null + ? null + : CameraPerspectiveDto.values[args[1]! as int]; 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?); @@ -1012,51 +1182,65 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition was 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?); + 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); + 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng was 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, @@ -1066,26 +1250,33 @@ abstract class TestMapViewApi { '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); + 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds was 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, @@ -1098,26 +1289,33 @@ abstract class TestMapViewApi { '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); + 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom was 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, @@ -1130,26 +1328,33 @@ abstract class TestMapViewApi { '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); + 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll was 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, @@ -1162,26 +1367,33 @@ abstract class TestMapViewApi { '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); + 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom was 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, @@ -1193,26 +1405,33 @@ abstract class TestMapViewApi { 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); + 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom was 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, @@ -1222,31 +1441,39 @@ abstract class TestMapViewApi { '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); + 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition was 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?); + 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 { @@ -1254,22 +1481,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng was 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, @@ -1282,22 +1515,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds was 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, @@ -1309,26 +1548,33 @@ abstract class TestMapViewApi { 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!); + 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom was 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, @@ -1344,22 +1590,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll was 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, @@ -1371,26 +1623,33 @@ abstract class TestMapViewApi { 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!); + 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom was 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, @@ -1401,26 +1660,33 @@ abstract class TestMapViewApi { 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); + 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom was 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, @@ -1433,22 +1699,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview was 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, @@ -1458,22 +1730,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference was 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, @@ -1483,22 +1761,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference was 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, @@ -1508,22 +1792,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference was 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, @@ -1533,22 +1823,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference was 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, @@ -1561,22 +1857,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference was 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, @@ -1589,22 +1891,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled was 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, @@ -1617,22 +1925,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled was 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, @@ -1641,26 +1955,33 @@ abstract class TestMapViewApi { 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!); + 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())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled was 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, @@ -1673,22 +1994,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled was 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, @@ -1701,22 +2028,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled was 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, @@ -1729,22 +2062,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled was 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, @@ -1757,22 +2096,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled was 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, @@ -1785,22 +2130,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was 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, @@ -1809,26 +2160,33 @@ abstract class TestMapViewApi { 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!); + 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled was 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, @@ -1841,22 +2199,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled was 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, @@ -1869,22 +2233,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled was 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, @@ -1897,22 +2267,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled was 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, @@ -1922,47 +2298,60 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled was 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!); + 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())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled was 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, @@ -1972,22 +2361,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled was 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, @@ -1997,22 +2392,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled was 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, @@ -2022,22 +2423,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled was 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, @@ -2047,22 +2454,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled was 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, @@ -2072,47 +2485,60 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom was 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!); + 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled was 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, @@ -2122,22 +2548,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled was 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, @@ -2147,22 +2579,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled was 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, @@ -2172,22 +2610,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers was 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, @@ -2197,83 +2641,106 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers was 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(); + 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!); + 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers was 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(); + 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!); + 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers was 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(); + 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 { @@ -2281,22 +2748,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers was 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, @@ -2306,22 +2779,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear was 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, @@ -2331,22 +2810,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons was 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, @@ -2356,83 +2841,106 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons was 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(); + 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!); + 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons was 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(); + 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!); + 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons was 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(); + 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 { @@ -2440,22 +2948,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons was 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, @@ -2465,22 +2979,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines was 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, @@ -2490,83 +3010,106 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines was 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(); + 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!); + 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines was 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(); + 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!); + 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines was 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(); + 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 { @@ -2574,22 +3117,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines was 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, @@ -2599,22 +3148,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles was 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, @@ -2624,83 +3179,106 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles was 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(); + 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!); + 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles was 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(); + 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!); + 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles was 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(); + 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 { @@ -2708,22 +3286,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles was 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, @@ -2733,22 +3317,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.registerOnCameraChangedListener', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.registerOnCameraChangedListener', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.registerOnCameraChangedListener was null.'); + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.registerOnCameraChangedListener was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); assert(arg_viewId != null, @@ -2758,22 +3348,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding was 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, @@ -2786,22 +3382,28 @@ abstract class TestMapViewApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding was 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, @@ -2811,8 +3413,9 @@ abstract class TestMapViewApi { 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())); } }); } @@ -2838,9 +3441,9 @@ class _TestImageRegistryApiCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 128: + case 128: return ImageDescriptorDto.decode(readValue(buffer)!); - case 129: + case 129: return ImageDescriptorDto.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -2849,10 +3452,13 @@ class _TestImageRegistryApiCodec extends StandardMessageCodec { } abstract class TestImageRegistryApi { - static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => TestDefaultBinaryMessengerBinding.instance; - static const MessageCodec pigeonChannelCodec = _TestImageRegistryApiCodec(); + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => + TestDefaultBinaryMessengerBinding.instance; + static const MessageCodec pigeonChannelCodec = + _TestImageRegistryApiCodec(); - ImageDescriptorDto registerBitmapImage(String imageId, Uint8List bytes, double imagePixelRatio, double? width, double? height); + ImageDescriptorDto registerBitmapImage(String imageId, Uint8List bytes, + double imagePixelRatio, double? width, double? height); void unregisterImage(ImageDescriptorDto imageDescriptor); @@ -2860,17 +3466,23 @@ abstract class TestImageRegistryApi { void clearRegisteredImages(); - static void setup(TestImageRegistryApi? api, {BinaryMessenger? binaryMessenger}) { + static void setup(TestImageRegistryApi? api, + {BinaryMessenger? binaryMessenger}) { { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage was 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, @@ -2884,28 +3496,40 @@ abstract class TestImageRegistryApi { 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); + 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage was 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?); + 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 { @@ -2913,46 +3537,59 @@ abstract class TestImageRegistryApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { try { api.clearRegisteredImages(); 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())); } }); } @@ -3020,37 +3657,38 @@ class _TestNavigationSessionApiCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 128: + case 128: return DestinationsDto.decode(readValue(buffer)!); - case 129: + case 129: return LatLngDto.decode(readValue(buffer)!); - case 130: + case 130: return LatLngDto.decode(readValue(buffer)!); - case 131: + case 131: return NavigationAudioGuidanceSettingsDto.decode(readValue(buffer)!); - case 132: + case 132: return NavigationDisplayOptionsDto.decode(readValue(buffer)!); - case 133: + case 133: return NavigationTimeAndDistanceDto.decode(readValue(buffer)!); - case 134: + case 134: return NavigationWaypointDto.decode(readValue(buffer)!); - case 135: + case 135: return NavigationWaypointDto.decode(readValue(buffer)!); - case 136: + case 136: return RouteSegmentDto.decode(readValue(buffer)!); - case 137: + case 137: return RouteSegmentDto.decode(readValue(buffer)!); - case 138: + case 138: return RouteSegmentTrafficDataDto.decode(readValue(buffer)!); - case 139: - return RouteSegmentTrafficDataRoadStretchRenderingDataDto.decode(readValue(buffer)!); - case 140: + case 139: + return RouteSegmentTrafficDataRoadStretchRenderingDataDto.decode( + readValue(buffer)!); + case 140: return RouteTokenOptionsDto.decode(readValue(buffer)!); - case 141: + case 141: return RoutingOptionsDto.decode(readValue(buffer)!); - case 142: + case 142: return SimulationOptionsDto.decode(readValue(buffer)!); - case 143: + case 143: return SpeedAlertOptionsDto.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -3059,17 +3697,21 @@ class _TestNavigationSessionApiCodec extends StandardMessageCodec { } abstract class TestNavigationSessionApi { - static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => TestDefaultBinaryMessengerBinding.instance; - static const MessageCodec pigeonChannelCodec = _TestNavigationSessionApiCodec(); + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => + TestDefaultBinaryMessengerBinding.instance; + static const MessageCodec pigeonChannelCodec = + _TestNavigationSessionApiCodec(); /// General. - Future createNavigationSession(bool abnormalTerminationReportingEnabled, TaskRemovedBehaviorDto behavior); + Future createNavigationSession(bool abnormalTerminationReportingEnabled, + TaskRemovedBehaviorDto behavior); bool isInitialized(); void cleanup(); - Future showTermsAndConditionsDialog(String title, String companyName, bool shouldOnlyShowDriverAwarenessDisclaimer); + Future showTermsAndConditionsDialog(String title, String companyName, + bool shouldOnlyShowDriverAwarenessDisclaimer); bool areTermsAccepted(); @@ -3109,13 +3751,20 @@ abstract class TestNavigationSessionApi { void simulateLocationsAlongExistingRoute(); - void simulateLocationsAlongExistingRouteWithOptions(SimulationOptionsDto options); + void simulateLocationsAlongExistingRouteWithOptions( + SimulationOptionsDto options); - Future simulateLocationsAlongNewRoute(List waypoints); + Future simulateLocationsAlongNewRoute( + List waypoints); - Future simulateLocationsAlongNewRouteWithRoutingOptions(List waypoints, RoutingOptionsDto routingOptions); + Future simulateLocationsAlongNewRouteWithRoutingOptions( + List waypoints, RoutingOptionsDto routingOptions); - Future simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(List waypoints, RoutingOptionsDto routingOptions, SimulationOptionsDto simulationOptions); + Future + simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( + List waypoints, + RoutingOptionsDto routingOptions, + SimulationOptionsDto simulationOptions); void pauseSimulation(); @@ -3134,85 +3783,114 @@ abstract class TestNavigationSessionApi { void disableTurnByTurnNavigationEvents(); - void registerRemainingTimeOrDistanceChangedListener(int remainingTimeThresholdSeconds, int remainingDistanceThresholdMeters); + void registerRemainingTimeOrDistanceChangedListener( + int remainingTimeThresholdSeconds, int remainingDistanceThresholdMeters); - static void setup(TestNavigationSessionApi? api, {BinaryMessenger? binaryMessenger}) { + static void setup(TestNavigationSessionApi? api, + {BinaryMessenger? binaryMessenger}) { { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession was 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?); + 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] == null ? null : TaskRemovedBehaviorDto.values[args[1]! as int]; + final TaskRemovedBehaviorDto? arg_behavior = args[1] == null + ? null + : TaskRemovedBehaviorDto.values[args[1]! as int]; assert(arg_behavior != null, 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession was null, expected non-null TaskRemovedBehaviorDto.'); try { - await api.createNavigationSession(arg_abnormalTerminationReportingEnabled!, arg_behavior!); + await api.createNavigationSession( + arg_abnormalTerminationReportingEnabled!, arg_behavior!); 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { try { api.cleanup(); 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog was 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, @@ -3220,228 +3898,303 @@ abstract class TestNavigationSessionApi { 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?); + 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.'); try { - final bool output = await api.showTermsAndConditionsDialog(arg_title!, arg_companyName!, arg_shouldOnlyShowDriverAwarenessDisclaimer!); + final bool output = await api.showTermsAndConditionsDialog( + arg_title!, + arg_companyName!, + arg_shouldOnlyShowDriverAwarenessDisclaimer!); 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations was 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?); + 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!); + final RouteStatusDto output = + await api.setDestinations(arg_destinations!); return [output.index]; } 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { try { - final NavigationWaypointDto? output = api.continueToNextDestination(); + final NavigationWaypointDto? output = + api.continueToNextDestination(); 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { try { - final NavigationTimeAndDistanceDto output = api.getCurrentTimeAndDistance(); + 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())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance was 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?); + 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 { @@ -3449,24 +4202,31 @@ abstract class TestNavigationSessionApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions was 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?); + 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 { @@ -3474,79 +4234,103 @@ abstract class TestNavigationSessionApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation was 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, @@ -3556,62 +4340,81 @@ abstract class TestNavigationSessionApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions was 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?); + 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 { @@ -3619,144 +4422,193 @@ abstract class TestNavigationSessionApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute was 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(); + 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!); + final RouteStatusDto output = + await api.simulateLocationsAlongNewRoute(arg_waypoints!); return [output.index]; } 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions was 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(); + 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?); + 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!); + final RouteStatusDto output = + await api.simulateLocationsAlongNewRouteWithRoutingOptions( + arg_waypoints!, arg_routingOptions!); return [output.index]; } 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions was 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(); + 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?); + 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?); + 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!); + final RouteStatusDto output = await api + .simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( + arg_waypoints!, + arg_routingOptions!, + arg_simulationOptions!); return [output.index]; } 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates was 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, @@ -3766,60 +4618,78 @@ abstract class TestNavigationSessionApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents was 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?); try { @@ -3827,41 +4697,53 @@ abstract class TestNavigationSessionApi { 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 __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_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())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(__pigeon_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(__pigeon_channel, + (Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener was 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, @@ -3870,12 +4752,15 @@ abstract class TestNavigationSessionApi { 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!); + 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())); } }); } From 4f3878846fd24dafa1850e41a02b6703d7f160a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20V=C3=A4limaa?= Date: Thu, 27 Feb 2025 14:47:24 +0800 Subject: [PATCH 3/6] fix: task removed behavior default state fix --- lib/src/navigator/google_navigation_flutter_navigator.dart | 2 +- lib/src/types/navigation_initialization_params.dart | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/src/navigator/google_navigation_flutter_navigator.dart b/lib/src/navigator/google_navigation_flutter_navigator.dart index 5b588f38..24ef78ff 100644 --- a/lib/src/navigator/google_navigation_flutter_navigator.dart +++ b/lib/src/navigator/google_navigation_flutter_navigator.dart @@ -52,7 +52,7 @@ class GoogleMapsNavigator { static Future initializeNavigationSession( {bool abnormalTerminationReportingEnabled = true, TaskRemovedBehavior taskRemovedBehavior = - TaskRemovedBehavior.quitService}) async { + TaskRemovedBehavior.continueService}) async { await GoogleMapsNavigationPlatform.instance.navigationSessionAPI .createNavigationSession( abnormalTerminationReportingEnabled, taskRemovedBehavior); diff --git a/lib/src/types/navigation_initialization_params.dart b/lib/src/types/navigation_initialization_params.dart index 71170dbc..3ab0e89e 100644 --- a/lib/src/types/navigation_initialization_params.dart +++ b/lib/src/types/navigation_initialization_params.dart @@ -13,6 +13,7 @@ // limitations under the License. /// Determines how application should behave when a application task is removed. +/// Android only. /// {@category Navigation} enum TaskRemovedBehavior { /// The default state, indicating that navigation guidance, From eff47d006910570b84ff1231a65f8e13977c6c67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20V=C3=A4limaa?= Date: Thu, 27 Feb 2025 16:59:51 +0800 Subject: [PATCH 4/6] docs: task removed behavior doc updates --- README.md | 11 ++++++++++- lib/src/types/navigation_initialization_params.dart | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 740f942c..f68f3b83 100644 --- a/README.md +++ b/README.md @@ -122,7 +122,7 @@ class _NavigationSampleState extends State { ); } // Note: make sure user has also granted location permissions before starting navigation session. - await GoogleMapsNavigator.initializeNavigationSession(); + await GoogleMapsNavigator.initializeNavigationSession(taskRemovedBehavior: TaskRemovedBehavior.continueService); setState(() { _navigationSessionInitialized = true; }); @@ -158,6 +158,15 @@ class _NavigationSampleState extends State { } ``` +#### Task Removed Behavior + +The taskRemovedBehavior parameter of navigation session initialization defines how the navigation should behave when a task is removed from the recent apps list on Android. It can either: + + CONTINUE_SERVICE: Continue running in the background. (default) + QUIT_SERVICE: Shut down immediately. + +This parameter has only an effect on Android. + ### Add a map view ```dart diff --git a/lib/src/types/navigation_initialization_params.dart b/lib/src/types/navigation_initialization_params.dart index 3ab0e89e..31b3ee80 100644 --- a/lib/src/types/navigation_initialization_params.dart +++ b/lib/src/types/navigation_initialization_params.dart @@ -13,6 +13,7 @@ // limitations under the License. /// Determines how application should behave when a application task is removed. +/// /// Android only. /// {@category Navigation} enum TaskRemovedBehavior { From c4cfe1fe1ffa4e44c8c67dde45bc10b6de1a21ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20V=C3=A4limaa?= Date: Thu, 27 Feb 2025 17:05:17 +0800 Subject: [PATCH 5/6] chore: formatting --- lib/src/types/navigation_initialization_params.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/types/navigation_initialization_params.dart b/lib/src/types/navigation_initialization_params.dart index 31b3ee80..ec962205 100644 --- a/lib/src/types/navigation_initialization_params.dart +++ b/lib/src/types/navigation_initialization_params.dart @@ -13,7 +13,7 @@ // limitations under the License. /// Determines how application should behave when a application task is removed. -/// +/// /// Android only. /// {@category Navigation} enum TaskRemovedBehavior { From 87016eaa6dcf55a50d0a3eb9515d5c434e385e8a Mon Sep 17 00:00:00 2001 From: Joonas Kerttula Date: Thu, 27 Feb 2025 13:16:34 +0200 Subject: [PATCH 6/6] docs: update readme TaskRemovedBehavior info --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f68f3b83..dbdbe7fb 100644 --- a/README.md +++ b/README.md @@ -160,10 +160,10 @@ class _NavigationSampleState extends State { #### Task Removed Behavior -The taskRemovedBehavior parameter of navigation session initialization defines how the navigation should behave when a task is removed from the recent apps list on Android. It can either: +The `taskRemovedBehavior` parameter of navigation session initialization defines how the navigation should behave when a task is removed from the recent apps list on Android. It can either: - CONTINUE_SERVICE: Continue running in the background. (default) - QUIT_SERVICE: Shut down immediately. + - `TaskRemovedBehavior.continueService`: Continue running in the background. (default) + - `TaskRemovedBehavior.quitService`: Shut down immediately. This parameter has only an effect on Android.